:root{
  --bg:#0d1016;--bg2:#141922;--panel:#1b212c;--panel2:#232b38;--line:#353f50;
  --text:#edf1f7;--muted:#8f9aac;--gold:#d6b46b;--gold2:#8b6d36;--red:#b84f51;--blue:#4b79a6;
  --green:#4d9a72;--radius:16px;--shadow:0 18px 60px rgba(0,0,0,.34)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 50% 0,#1d2430 0,#0c1016 52%,#080b10 100%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}button{color:inherit}.app-shell{min-height:100vh}.topbar{height:66px;display:flex;align-items:center;gap:18px;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(10,13,18,.93);backdrop-filter:blur(14px);position:sticky;top:0;z-index:50}.brand{display:flex;align-items:center;gap:10px;border:0;background:transparent;cursor:pointer;padding:0}.brand-mark{width:38px;height:38px;border:1px solid #80683e;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#332d20,#15171b);font-family:Georgia,serif;color:#e5c984;font-weight:900;box-shadow:inset 0 0 14px rgba(214,180,107,.12)}.brand-copy{display:flex;flex-direction:column;text-align:left;line-height:1.1}.brand-copy b{font-size:12px;letter-spacing:.11em}.brand-copy small{margin-top:4px;color:var(--muted);font-size:10px}.main-nav{display:flex;align-items:center;gap:4px;flex:1;justify-content:center}.nav-btn{border:0;background:transparent;color:#aab3c1;border-radius:10px;padding:7px 10px;display:flex;align-items:center;gap:6px;cursor:pointer;transition:.18s}.nav-btn span{font-size:16px}.nav-btn b{font-size:11px;font-weight:650}.nav-btn:hover,.nav-btn.active{background:#202633;color:#f5e7bf}.resources{display:flex;align-items:center;gap:8px}.resources>span{display:flex;align-items:center;gap:6px;background:#151a22;border:1px solid #2a3342;border-radius:9px;padding:7px 9px;font-size:11px}.resources i{font-style:normal;color:#d8b56b}.icon-btn{width:32px;height:32px;border:1px solid #2d3645;border-radius:9px;background:#171c24;cursor:pointer}.view-stack{padding:16px}.view{display:none}.view.active{display:grid}.view[data-view-panel="arena"]{max-width:1540px;margin:0 auto}.battle-session{grid-template-columns:minmax(0,1fr) 330px;gap:14px;width:100%}.hidden{display:none!important}.battle-card,.chat-panel,.simple-view>*{box-shadow:var(--shadow)}.battle-card{min-height:calc(100vh - 98px);border:1px solid #303a49;border-radius:18px;background:linear-gradient(180deg,#202734 0,#141922 100%);overflow:hidden;display:grid;grid-template-columns:1fr 88px 1fr;grid-template-rows:72px 48px minmax(360px,1fr) auto;position:relative}.fighter-hud{padding:13px 18px;display:flex;flex-direction:column;gap:5px;z-index:2}.fighter-hud-left{grid-column:1}.fighter-hud-right{grid-column:3;text-align:right}.hud-title{display:flex;align-items:center;justify-content:space-between;font-size:14px}.fighter-hud-right .hud-title{flex-direction:row}.hud-title span{font-size:11px;color:#8f98a7}.bar{height:12px;background:#0f131a;border:1px solid #313a48;border-radius:20px;overflow:hidden;position:relative}.bar i{display:block;height:100%;width:100%;transition:width .35s ease;background:linear-gradient(90deg,#873a3c,#cf6265)}.bar.mana i{background:linear-gradient(90deg,#345d82,#528fc0)}.bar span{position:absolute;inset:0;display:grid;place-items:center;font-size:8px;color:white;text-shadow:0 1px 2px #000}.round-state{grid-column:2;grid-row:1;align-self:center;justify-self:center;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#303746,#171c24);border:1px solid #4b5668;box-shadow:inset 0 0 18px #0d1117}.round-state small{font-size:7px;letter-spacing:.14em;color:#8e99aa;margin-bottom:-12px}.round-state b{font-family:Georgia,serif;font-size:22px;color:#dfc37f}.opponent-strip{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-start;gap:7px;padding:6px 12px;border-top:1px solid rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.08);background:#151a22;overflow-x:auto;scrollbar-width:thin}.opponent-chip{height:34px;min-width:128px;display:grid;grid-template-columns:26px 1fr;gap:8px;align-items:center;padding:3px 8px 3px 4px;border:1px solid #333e4d;border-radius:9px;background:#1d2430;cursor:pointer;transition:.16s}.opponent-chip:hover{border-color:#68778c}.opponent-chip.active{border-color:#a98b51;box-shadow:inset 0 0 0 1px rgba(214,180,107,.2)}.opponent-chip.dead{opacity:.35;filter:grayscale(1)}.opponent-chip.ally{cursor:default;opacity:.78;border-style:dashed}.opponent-chip.ally:hover{border-color:#333e4d}.opponent-chip img{width:26px;height:28px;object-fit:cover;object-position:50% 10%;border-radius:5px}.opponent-chip span{display:flex;flex-direction:column;min-width:0}.opponent-chip b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.opponent-chip small{font-size:8px;color:#9ba5b4}.battlefield{grid-column:1/-1;grid-row:3;position:relative;display:grid;grid-template-columns:minmax(180px,1fr) 180px minmax(180px,1fr);align-items:end;overflow:hidden;background:radial-gradient(ellipse at 50% 80%,rgba(110,88,50,.16) 0,transparent 37%),linear-gradient(180deg,#202735 0,#181e28 48%,#11151b 100%)}.battlefield:before{content:"";position:absolute;left:0;right:0;bottom:0;height:34%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.35)),repeating-linear-gradient(90deg,rgba(255,255,255,.015) 0 1px,transparent 1px 52px);clip-path:polygon(8% 0,92% 0,100% 100%,0 100%)}.battlefield:after{content:"";position:absolute;left:7%;right:7%;bottom:8%;height:2px;background:radial-gradient(ellipse,#7e6a43 0,rgba(126,106,67,.2) 40%,transparent 72%)}.arena-glow{position:absolute;width:38%;height:72%;top:8%;filter:blur(20px);opacity:.17;border-radius:50%}.arena-glow-left{left:-10%;background:#315d82}.arena-glow-right{right:-10%;background:#7d3438}.fighter{position:relative;z-index:3;align-self:end;justify-self:center;width:min(38vw,285px);height:min(52vh,430px);display:flex;align-items:flex-end;justify-content:center;transition:filter .2s}.fighter img{height:100%;width:auto;max-width:100%;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 12px 16px rgba(0,0,0,.45));transform:scale(1.35);transform-origin:50% 100%}.fighter-right img{transform:scaleX(-1) scale(1.35)}.fighter-shadow{position:absolute;bottom:7px;width:64%;height:18px;border-radius:50%;background:rgba(0,0,0,.5);filter:blur(6px);z-index:-1}.fighter.hit{animation:hitJolt .28s ease}.fighter.evade{animation:evade .34s ease}.fighter.guard{filter:drop-shadow(0 0 18px rgba(93,148,205,.45))}.fighter.crit{animation:critJolt .36s ease}.damage-float{position:absolute;top:32%;left:50%;transform:translate(-50%,-50%);font-family:Georgia,serif;font-size:38px;font-weight:900;color:#f6d08e;text-shadow:0 2px 7px #000;opacity:0;pointer-events:none;z-index:12}.damage-float.show{animation:damageUp .75s ease}.damage-float.blocked{color:#92b8df;font-size:24px}.impact-fx{position:absolute;width:170px;height:170px;border-radius:50%;left:50%;top:42%;transform:translate(-50%,-50%) scale(.2);opacity:0;pointer-events:none;background:radial-gradient(circle,rgba(255,239,188,.86) 0,rgba(218,103,77,.35) 18%,transparent 64%);filter:blur(1px);z-index:8}.impact-fx.show{animation:impact .34s ease-out}.combat-console{align-self:center;justify-self:center;z-index:15;width:166px;display:grid;grid-template-columns:44px 62px 44px;gap:8px;padding:9px;border:1px solid #414c5e;border-radius:22px;background:linear-gradient(180deg,rgba(36,43,55,.97),rgba(17,22,29,.97));box-shadow:0 18px 40px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.04)}.zone-stack{display:grid;grid-template-rows:repeat(4,40px);gap:5px}.zone-btn{width:44px;height:40px;border-radius:10px;border:1px solid #3f4959;background:linear-gradient(180deg,#2a3240,#191f29);cursor:pointer;display:grid;place-items:center;padding:0;transition:.13s}.zone-btn:hover{border-color:#77849a;transform:translateY(-1px)}.zone-btn.selected{border-color:#d7b76d;box-shadow:0 0 0 1px rgba(215,183,109,.25),0 0 14px rgba(214,180,107,.18);background:linear-gradient(180deg,#3b3528,#24221d)}.block-stack .zone-btn.selected{border-color:#7ca8d2;box-shadow:0 0 0 1px rgba(124,168,210,.2),0 0 14px rgba(76,118,157,.18);background:linear-gradient(180deg,#253849,#19232d)}.zone-glyph{height:25px;width:13px;display:grid;grid-template-rows:5px 7px 6px 7px;gap:1px}.zone-glyph i{display:block;border-radius:2px;background:#646e7c;transition:.15s}.zone-glyph.zone-0 i:nth-child(1),.zone-glyph.zone-1 i:nth-child(2),.zone-glyph.zone-2 i:nth-child(3),.zone-glyph.zone-3 i:nth-child(4){background:#e1bf72}.block-stack .zone-glyph.zone-0 i:nth-child(1),.block-stack .zone-glyph.zone-1 i:nth-child(2),.block-stack .zone-glyph.zone-2 i:nth-child(3),.block-stack .zone-glyph.zone-3 i:nth-child(4){background:#78a9d4}.console-core{display:grid;grid-template-rows:28px 1fr 48px 28px;gap:6px;align-items:center}.micro-action{height:28px;border:1px solid #3a4555;border-radius:9px;background:#171d26;color:#aeb8c8;cursor:pointer;font-size:14px}.micro-action.auto{font-size:8px;letter-spacing:.08em}.micro-action.active{border-color:#a98c50;color:#f0ce7d;background:#2a261d}.turn-orb{height:36px;display:grid;place-items:center;text-align:center;color:#7f8a9c;font-size:7px;text-transform:uppercase;line-height:1.15}.turn-btn{height:48px;border-radius:50%;border:1px solid #7c6536;background:radial-gradient(circle at 50% 35%,#725b32,#2a251c 70%);font-family:Georgia,serif;font-weight:900;font-size:11px;letter-spacing:.08em;color:#f2d58e;cursor:pointer;box-shadow:inset 0 0 12px rgba(255,218,137,.1),0 6px 14px rgba(0,0,0,.3)}.turn-btn:disabled{filter:grayscale(.8);opacity:.38;cursor:not-allowed}.battle-bottom{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:160px 1fr;gap:10px;padding:10px 12px 12px;border-top:1px solid #303846;background:#11161d;z-index:20}.tactics-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;align-content:center}.tactics-panel span{height:38px;border:1px solid #303a49;border-radius:9px;background:#191f28;display:flex;flex-direction:column;align-items:center;justify-content:center}.tactics-panel i{font-style:normal;font-size:9px;color:#b99859}.tactics-panel b{font-size:9px;margin-top:2px}.skills-wrap{min-width:0}.skills-head{height:28px;display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.skill-tabs{display:flex;gap:4px}.skill-tabs button{height:24px;min-width:28px;border:1px solid #303a49;border-radius:7px;background:#191f28;color:#8793a4;font-size:8px;cursor:pointer}.skill-tabs button.active{border-color:#8b713e;color:#e3c37c}.rage{display:flex;align-items:center;gap:7px;font-size:7px;color:#929dad}.rage>div{width:115px;height:6px;background:#242a34;border-radius:8px;overflow:hidden}.rage>div i{display:block;height:100%;width:0;background:linear-gradient(90deg,#7d3437,#d27d4c);transition:width .3s}.rage b{font-size:8px;color:#c7a768;min-width:27px}.skill-grid{display:grid;grid-template-columns:repeat(10,minmax(34px,1fr));gap:5px}.skill-slot{height:42px;border:1px solid #344052;border-radius:9px;background:linear-gradient(180deg,#242c38,#171c24);padding:3px;cursor:pointer;position:relative;overflow:hidden}.skill-slot img{width:100%;height:100%;object-fit:cover;border-radius:5px;filter:saturate(.9) contrast(1.05)}.skill-slot:hover{border-color:#7b8799}.skill-slot.selected{border-color:#dbb864;box-shadow:0 0 12px rgba(219,184,100,.2)}.skill-slot.cooldown:after{content:attr(data-cd);position:absolute;inset:0;background:rgba(6,9,13,.72);display:grid;place-items:center;font-size:12px;font-weight:800}.skill-slot.locked{opacity:.25;cursor:not-allowed}.skill-slot.group-muted:not(.selected){opacity:.42;filter:saturate(.55)}.skill-slot .cost{position:absolute;left:2px;right:2px;bottom:1px;text-align:center;background:rgba(10,12,16,.82);padding:1px 2px;border-radius:4px;font-size:5.6px;line-height:1.15;white-space:nowrap;overflow:hidden;color:#e8c77e}.chat-panel{border:1px solid #303a49;border-radius:18px;background:#151a22;min-height:calc(100vh - 98px);display:grid;grid-template-rows:46px 1fr 44px;overflow:hidden}.chat-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #303846}.chat-tabs button{border:0;background:#181e27;color:#8894a5;cursor:pointer;font-size:11px}.chat-tabs button.active{background:#202733;color:#f0d28d}.chat-tabs span{display:inline-grid;place-items:center;min-width:15px;height:15px;border-radius:10px;background:#8b3f42;color:white;font-size:8px;margin-left:3px}.chat-feed{display:none;overflow:auto;padding:12px;min-height:0;font-size:11px;line-height:1.45}.chat-feed.active{display:block}.chat-message{padding:7px 3px;border-bottom:1px solid rgba(255,255,255,.04)}.chat-message time{color:#687385;margin-right:5px}.chat-message b{color:#d5b872}.chat-message.system{color:#8f9cad}.battle-log .chat-message.hitlog b{color:#d7ba76}.battle-log .chat-message.enemy b{color:#ca7777}.chat-entry{border-top:1px solid #303846;display:grid;grid-template-columns:1fr 42px}.chat-entry input{min-width:0;border:0;outline:0;background:#10151c;color:#e5e9ef;padding:0 12px;font-size:11px}.chat-entry button{border:0;border-left:1px solid #303846;background:#202733;cursor:pointer;color:#dabb72}.simple-view{max-width:1280px;margin:0 auto;padding:10px;box-shadow:none!important}.section-title{display:flex;align-items:center;gap:14px;margin:6px 0 20px;box-shadow:none}.section-title>span{width:48px;height:48px;border:1px solid #665839;border-radius:13px;display:grid;place-items:center;font-size:22px;color:#d6b46b;background:#191b1e}.section-title h1{font-family:Georgia,serif;font-size:24px;margin:0}.section-title p{margin:3px 0 0;color:#8490a1;font-size:11px}.gear-layout{display:grid;grid-template-columns:330px 250px 1fr;gap:14px}.paper-doll,.stat-card,.inventory-card,.rating-card,.clan-card{border:1px solid #303a49;background:#171d25;border-radius:16px}.paper-doll{height:570px;position:relative;display:grid;place-items:center;overflow:hidden}.paper-doll:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,rgba(198,166,99,.1),transparent 42%)}.paper-doll>img{height:78%;width:auto;object-fit:contain;transform:scale(1.2);z-index:2}.gear-slots{position:absolute;inset:18px;z-index:3;display:grid;grid-template-columns:48px 1fr 48px;grid-template-rows:repeat(5,48px);align-content:space-between;pointer-events:none}.gear-slot{width:48px;height:48px;border:1px solid #485467;border-radius:10px;background:rgba(15,20,27,.72);display:grid;place-items:center;color:#687385;font-size:18px}.gear-slot:nth-child(even){grid-column:3}.stat-card{padding:20px}.stat-card h2,.inventory-card h2{margin:0 0 14px;font-family:Georgia,serif}.stat-card dl{margin:0}.stat-card dl div{display:contents}.stat-card dt,.stat-card dd{padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:12px}.stat-card dt{color:#8c97a7}.stat-card dd{float:right;text-align:right;margin:-32px 0 0;font-weight:700}.inventory-card{padding:18px}.inventory-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.inventory-item{aspect-ratio:1;border:1px solid #333e4f;border-radius:10px;background:#202733;display:grid;place-items:center;color:#728095}.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.shop-item{border:1px solid #303a49;border-radius:14px;background:#171d25;padding:16px;display:grid;grid-template-columns:54px 1fr;gap:12px}.shop-item .item-icon{width:54px;height:54px;border:1px solid #3b4656;border-radius:10px;display:grid;place-items:center;font-size:24px;background:#202731}.shop-item h3{font-size:13px;margin:0 0 4px}.shop-item p{font-size:10px;color:#8c97a7;margin:0 0 12px}.shop-item button,.secondary-btn,.primary-btn{border:1px solid #756038;border-radius:8px;background:#28241c;color:#e4c77f;padding:7px 10px;cursor:pointer;font-size:10px}.rating-card{overflow:hidden}.rating-row{display:grid;grid-template-columns:60px 1fr 120px 120px 120px;gap:10px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.05);font-size:11px}.rating-row.head{background:#202732;color:#7f8b9b;font-size:9px;text-transform:uppercase}.wheel-layout{display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:20px}.wheel{width:300px;height:300px;border-radius:50%;position:relative;border:8px solid #3f3523;background:conic-gradient(#3a2d24 0 60deg,#202a36 60deg 120deg,#3f2630 120deg 180deg,#252f24 180deg 240deg,#3a3020 240deg 300deg,#1c2734 300deg 360deg);box-shadow:0 20px 60px #000;transition:transform 3.2s cubic-bezier(.12,.67,.15,1)}.wheel span{position:absolute;left:50%;top:50%;transform-origin:0 0;font-size:12px;font-weight:800;color:#f1d79d}.wheel span:nth-child(1){transform:rotate(30deg) translate(90px) rotate(-30deg)}.wheel span:nth-child(2){transform:rotate(90deg) translate(90px) rotate(-90deg)}.wheel span:nth-child(3){transform:rotate(150deg) translate(90px) rotate(-150deg)}.wheel span:nth-child(4){transform:rotate(210deg) translate(90px) rotate(-210deg)}.wheel span:nth-child(5){transform:rotate(270deg) translate(90px) rotate(-270deg)}.wheel span:nth-child(6){transform:rotate(330deg) translate(90px) rotate(-330deg)}.wheel i{position:absolute;left:50%;top:-19px;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:22px solid #d6b46b;transform:translateX(-50%)}.primary-btn{padding:11px 28px;font-size:12px}.clan-card{padding:28px;display:flex;gap:22px;align-items:center}.clan-emblem{width:100px;height:116px;clip-path:polygon(50% 0,95% 18%,88% 76%,50% 100%,12% 76%,5% 18%);background:linear-gradient(145deg,#80683c,#25231f);display:grid;place-items:center;font:900 42px Georgia;color:#ead296}.clan-card h2{font-family:Georgia,serif;margin:0 0 4px}.clan-card p{color:#8e99a8;font-size:11px}.clan-progress{height:8px;background:#272e38;border-radius:9px;overflow:hidden;margin:14px 0}.clan-progress i{display:block;height:100%;width:68%;background:#9c7e45}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);padding:10px 14px;border:1px solid #4a5566;border-radius:10px;background:#171d26;box-shadow:0 10px 35px rgba(0,0,0,.4);font-size:11px;opacity:0;pointer-events:none;transition:.22s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes hitJolt{0%{transform:translateX(0)}35%{transform:translateX(13px)}70%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes critJolt{0%{transform:translateX(0)}30%{transform:translateX(20px) scale(1.02)}55%{transform:translateX(-8px)}100%{transform:translateX(0)}}@keyframes evade{0%{transform:translateX(0)}45%{transform:translateX(22px)}100%{transform:translateX(0)}}@keyframes damageUp{0%{opacity:0;transform:translate(-50%,0) scale(.75)}20%{opacity:1;transform:translate(-50%,-18px) scale(1.12)}100%{opacity:0;transform:translate(-50%,-70px) scale(.92)}}@keyframes impact{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.4)}}
@media(max-width:1120px){.brand-copy{display:none}.nav-btn b{display:none}.resources>span{padding:7px}.battle-session{grid-template-columns:1fr}.chat-panel{min-height:260px;max-height:330px}.battle-card{min-height:720px}.gear-layout{grid-template-columns:300px 1fr}.inventory-card{grid-column:1/-1}.shop-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.topbar{height:58px;padding:0 8px;gap:6px}.brand-mark{width:34px;height:34px}.main-nav{gap:1px;overflow-x:auto;justify-content:flex-start}.nav-btn{padding:7px 8px}.resources>span:nth-child(2){display:none}.view-stack{padding:7px}.battle-card{min-height:calc(100vh - 72px);border-radius:13px;grid-template-columns:1fr 62px 1fr;grid-template-rows:62px 42px minmax(340px,1fr) auto}.fighter-hud{padding:8px}.round-state{width:46px;height:46px}.round-state b{font-size:18px}.opponent-strip{justify-content:flex-start;overflow-x:auto}.opponent-chip{min-width:104px}.battlefield{grid-template-columns:1fr 132px 1fr}.fighter{width:34vw;height:42vh}.fighter img{transform:scale(1.2)}.fighter-right img{transform:scaleX(-1) scale(1.2)}.combat-console{width:128px;grid-template-columns:35px 42px 35px;gap:5px;padding:6px;border-radius:16px}.zone-stack{grid-template-rows:repeat(4,34px);gap:4px}.zone-btn{width:35px;height:34px;border-radius:8px}.console-core{grid-template-rows:23px 1fr 38px 23px;gap:4px}.micro-action{height:23px;font-size:10px}.micro-action.auto{font-size:6px}.turn-btn{height:38px;font-size:8px}.turn-orb{font-size:6px}.battle-bottom{grid-template-columns:1fr;padding:7px}.tactics-panel{grid-template-columns:repeat(3,42px);justify-content:center}.tactics-panel span{height:30px}.skills-head{height:24px}.skill-grid{grid-template-columns:repeat(5,1fr)}.skill-slot{height:38px}.chat-panel{border-radius:13px}.gear-layout,.shop-grid{grid-template-columns:1fr}.paper-doll{height:470px}.rating-row{grid-template-columns:40px 1fr 64px 74px}.rating-row span:nth-child(5){display:none}.wheel{width:250px;height:250px}}
@media(orientation:landscape) and (max-height:620px){.topbar{height:48px}.brand-mark{height:32px;width:32px}.view-stack{padding:5px}.battle-session{grid-template-columns:minmax(0,1fr) 265px;gap:6px}.battle-card{min-height:calc(100vh - 58px);height:calc(100vh - 58px);grid-template-rows:52px 38px 1fr 88px}.fighter-hud{padding:6px 12px}.opponent-strip{padding:3px 8px}.opponent-chip{height:30px}.battlefield{min-height:0}.fighter{height:min(47vh,310px)}.combat-console{transform:scale(.88)}.battle-bottom{grid-template-columns:118px 1fr;padding:5px 8px;gap:6px}.tactics-panel span{height:30px}.skills-head{height:20px;margin-bottom:3px}.skill-slot{height:33px}.chat-panel{min-height:calc(100vh - 58px);height:calc(100vh - 58px)}.chat-tabs{height:38px}.chat-entry{height:38px}.skill-grid{grid-template-columns:repeat(10,1fr)}}

/* Home + Arena lobby */
.home-view{display:none!important}.home-view.active{display:block!important;max-width:1280px}.home-hero{min-height:430px;border:1px solid #303a49;border-radius:18px;background:radial-gradient(circle at 72% 38%,rgba(214,180,107,.13),transparent 30%),linear-gradient(135deg,#202733,#12171f);display:grid;grid-template-columns:1.2fr .8fr;overflow:hidden;position:relative}.home-copy{padding:64px;align-self:center;z-index:2}.home-copy>small{font-size:9px;letter-spacing:.2em;color:#b79a5f}.home-copy h1{font:700 44px Georgia,serif;margin:8px 0 12px}.home-copy h1 span{font:600 16px system-ui;color:#8f9aac}.home-copy p{max-width:560px;color:#9da7b5;line-height:1.6;font-size:13px}.home-actions{display:flex;gap:8px;margin-top:24px}.home-character{display:grid;place-items:end center;min-height:430px;overflow:hidden}.home-character img{height:105%;max-width:100%;object-fit:contain;filter:drop-shadow(0 20px 30px rgba(0,0,0,.5))}.home-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.home-card{border:1px solid #303a49;border-radius:14px;background:#171d25;padding:16px;display:grid;grid-template-columns:38px 1fr;gap:10px;min-height:130px}.home-card>span{font-size:22px;color:#d6b46b}.home-card b{font-size:13px}.home-card p{font-size:10px;line-height:1.45;color:#8f9aac;margin:5px 0 14px}.home-card button{grid-column:2;border:0;background:transparent;color:#d6b46b;text-align:left;padding:0;cursor:pointer;font-size:10px}
.arena-lobby{width:100%;max-width:1180px;margin:0 auto;padding:10px}.arena-title{margin-bottom:12px}.arena-status{border:1px solid #303a49;background:#151a22;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:10px;margin-bottom:14px}.status-dot{width:8px;height:8px;border-radius:50%;background:#a87d45;box-shadow:0 0 0 4px rgba(168,125,69,.12)}.arena-status div{display:flex;flex-direction:column}.arena-status b{font-size:11px}.arena-status small{font-size:9px;color:#8390a0;margin-top:2px}.arena-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.arena-mode{border:1px solid #303a49;border-radius:16px;background:#171d25;padding:18px;min-height:230px;display:flex;flex-direction:column}.arena-mode.featured{background:linear-gradient(160deg,#242a34,#171d25)}.arena-mode.training{border-color:#4c4638}.mode-icon{width:46px;height:46px;border:1px solid #4b5667;border-radius:12px;background:#202733;display:grid;place-items:center;font-size:20px;color:#dcc17f}.arena-mode h2{font:700 18px Georgia,serif;margin:16px 0 6px}.arena-mode p{font-size:11px;color:#9aa5b3;line-height:1.5;min-height:50px}.arena-mode small{display:block;color:#6f7b8b;font-size:9px;margin-bottom:18px}.arena-mode button{margin-top:auto;align-self:flex-start}.arena-requests{border:1px solid #303a49;border-radius:16px;background:#151a22;margin-top:12px;overflow:hidden}.requests-head{height:46px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #303846}.requests-head b{font-size:11px}.requests-head span{font-size:9px;color:#7f8a99}.empty-state{padding:36px;text-align:center}.empty-state b{font-size:12px}.empty-state p{max-width:520px;margin:7px auto 0;color:#7f8b9a;font-size:10px;line-height:1.5}.battle-exit{position:absolute;top:8px;left:8px;z-index:12;border:1px solid #3a4554;border-radius:8px;background:rgba(17,22,29,.9);color:#aeb7c4;padding:5px 8px;cursor:pointer;font-size:9px}.battle-exit:hover{color:#ecd18c;border-color:#75633e}
@media(max-width:900px){.home-grid{grid-template-columns:repeat(2,1fr)}.home-copy{padding:36px}.arena-modes{grid-template-columns:1fr}.arena-mode{min-height:0}.arena-mode p{min-height:0}}
@media(max-width:620px){.home-hero{grid-template-columns:1fr;min-height:auto}.home-copy{padding:28px 22px}.home-copy h1{font-size:34px}.home-character{min-height:280px}.home-grid{grid-template-columns:1fr}.arena-lobby{padding:4px}}

/* arena-96: app shell, local backend and arena flow */
.brand-copy small{transition:.2s}.eyebrow-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.eyebrow-row>small{font-size:9px;letter-spacing:.2em;color:#b79a5f}.server-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(77,154,114,.38);background:rgba(77,154,114,.08);color:#81c7a1;border-radius:999px;padding:5px 8px;font-size:8px;text-transform:uppercase;letter-spacing:.05em}.server-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:#61b786}.server-pill.offline{color:#c49a6e;border-color:rgba(196,154,110,.3);background:rgba(196,154,110,.07)}.server-pill.offline:before{background:#b07b4e}.home-copy h1 em{font:600 16px system-ui;color:#8f9aac;font-style:normal}.profile-progress{max-width:460px;margin-top:20px}.profile-progress>div:first-child{display:flex;justify-content:space-between;font-size:9px;color:#8f9aac;margin-bottom:6px}.profile-progress b{color:#c6ced9;font-size:9px}.progress-track{height:7px;border:1px solid #384353;border-radius:99px;background:#11161d;overflow:hidden}.progress-track i{display:block;height:100%;width:76%;background:linear-gradient(90deg,#80683b,#d2b46e);transition:width .3s}.home-character{position:relative}.character-plate{position:absolute;right:24px;bottom:22px;display:flex;flex-direction:column;align-items:flex-end;padding:9px 11px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(12,16,22,.78);backdrop-filter:blur(10px)}.character-plate b{font-size:10px;color:#e1c887}.character-plate span{font-size:8px;color:#8f9aac;margin-top:2px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:14px}.dashboard-card{border:1px solid #303a49;border-radius:14px;background:#151b23;padding:16px;min-height:138px}.dashboard-card>small{font-size:8px;letter-spacing:.14em;color:#778496}.dashboard-card h3{font:700 16px Georgia,serif;margin:11px 0 5px}.dashboard-card p{font-size:9px;line-height:1.5;color:#8995a5;margin:0 0 12px}.dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:18px}.dashboard-stats span{border-left:1px solid #343e4d;padding-left:10px;display:flex;flex-direction:column}.dashboard-stats b{font:700 19px Georgia,serif}.dashboard-stats em{font-style:normal;font-size:8px;color:#7f8b9b;margin-top:3px}.text-btn{border:0;background:transparent;color:#ddc17f;padding:0;cursor:pointer;font-size:9px}.arena-status.offline .status-dot{background:#9a6748;box-shadow:0 0 0 4px rgba(154,103,72,.12)}.arena-tabs{display:flex;gap:5px;border:1px solid #303a49;border-radius:12px;background:#12171e;padding:5px;margin-bottom:12px;overflow-x:auto}.arena-tabs button{border:0;background:transparent;color:#8f9baa;padding:9px 13px;border-radius:8px;cursor:pointer;font-size:10px;white-space:nowrap}.arena-tabs button.active{background:#252c37;color:#ecd392}.arena-tabs button span{color:#d4ad60;margin-left:3px}.arena-tab-panel{display:none}.arena-tab-panel.active{display:block}.arena-split{display:grid;grid-template-columns:1.3fr .9fr;gap:12px}.arena-panel-card{border:1px solid #303a49;border-radius:16px;background:#151a22;padding:18px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.06)}.panel-head small,.training-head-card small{font-size:8px;letter-spacing:.14em;color:#7d8999}.panel-head h2,.training-head-card h2{font:700 19px Georgia,serif;margin:4px 0 0}.state-badge{display:inline-flex;border:1px solid rgba(214,180,107,.34);border-radius:999px;background:rgba(214,180,107,.08);color:#dfc27c;padding:5px 8px;font-size:8px;white-space:nowrap}.state-badge.muted{border-color:#374251;background:#1c222b;color:#7f8b9a}.empty-state.compact{padding:31px 16px}.arena-info-row{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.arena-info-row>div{border-right:1px solid #303846;padding:2px 12px}.arena-info-row>div:last-child{border-right:0}.arena-info-row b{display:block;font-size:10px}.arena-info-row span{display:block;margin-top:4px;font-size:8px;color:#7f8b9a}.request-summary{min-height:100px;padding:16px 0}.request-summary p{font-size:9px;line-height:1.55;color:#8693a3;margin:0}.request-data{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}.request-data span{border:1px solid #2e3744;border-radius:9px;background:#181e27;padding:9px;display:flex;flex-direction:column}.request-data small{font-size:7px;color:#768293;text-transform:uppercase}.request-data b{font-size:10px;margin-top:3px}.request-editor{max-width:880px;margin:0 auto}.request-form{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding-top:18px}.request-form label{display:flex;flex-direction:column;gap:6px}.request-form label>span{font-size:8px;color:#8b96a5;text-transform:uppercase;letter-spacing:.05em}.request-form select,.request-form input{width:100%;border:1px solid #354052;border-radius:9px;background:#11161d;color:#e9edf3;padding:10px 11px;outline:none;font-size:10px}.request-form select:focus,.request-form input:focus{border-color:#8d7442}.request-form input:disabled,.request-form select:disabled{opacity:.5}.request-form .wide{grid-column:1/-1}.range-row{display:grid;grid-template-columns:1fr 20px 1fr;align-items:center}.range-row i{text-align:center;color:#687484;font-style:normal}.request-note{border:1px solid #343b43;border-radius:9px;background:#191b1d;padding:10px 12px;font-size:8px;line-height:1.45;color:#8f938f}.form-actions{display:flex;gap:8px;align-items:center}.training-head-card p{max-width:720px;font-size:10px;color:#8995a5;line-height:1.5;margin:8px 0 0}.training-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px}.training-card{border:1px solid #303a49;border-radius:16px;background:#171d25;padding:18px;display:grid;grid-template-columns:52px 1fr;gap:14px;min-height:250px}.training-icon{width:52px;height:52px;border:1px solid #5b4c31;border-radius:12px;background:radial-gradient(circle at 50% 35%,#4b4029,#1b1c1c);display:grid;place-items:center;font:700 20px Georgia,serif;color:#e0c17c}.training-card h3{font:700 18px Georgia,serif;margin:3px 0 7px}.training-card p{font-size:9px;line-height:1.5;color:#8c98a8;margin:0}.training-card ul{padding-left:16px;color:#7f8b9a;font-size:8px;line-height:1.7}.training-card button{grid-column:2;justify-self:start;align-self:end}.history-list{min-height:140px}.history-row{display:grid;grid-template-columns:78px minmax(180px,1fr) 90px 110px 110px;gap:10px;align-items:center;padding:12px 4px;border-bottom:1px solid rgba(255,255,255,.06)}.history-row>div{display:flex;flex-direction:column}.history-row>div b{font-size:10px}.history-row>div small,.history-row>span small{font-size:7px;color:#788493}.history-row>span:not(.history-result){display:flex;flex-direction:column}.history-row>span b{font-size:10px;margin-top:2px}.history-result{display:inline-flex;justify-content:center;border-radius:999px;padding:5px 7px;font-size:8px;border:1px solid #394452;color:#9ca8b7}.history-result.win{border-color:rgba(77,154,114,.4);color:#7fc49e;background:rgba(77,154,114,.08)}.history-result.loss{border-color:rgba(184,79,81,.4);color:#d48385;background:rgba(184,79,81,.07)}.battle-mode-badge{position:absolute;top:9px;left:50%;transform:translateX(-50%);z-index:13;border:1px solid #574a34;border-radius:999px;background:rgba(19,21,22,.88);color:#d6b66e;padding:4px 8px;font-size:7px;letter-spacing:.12em}.micro-action:disabled{opacity:.28;cursor:not-allowed}.battle-result{position:absolute;inset:0;z-index:40;background:rgba(8,11,15,.72);backdrop-filter:blur(7px);display:grid;place-items:center;padding:18px}.result-card{width:min(440px,92%);border:1px solid #4a5564;border-radius:18px;background:linear-gradient(160deg,#252d38,#151a21);box-shadow:0 24px 80px #000;padding:26px;text-align:center}.result-card>small{font-size:8px;letter-spacing:.15em;color:#8c98a7}.result-card h2{font:700 32px Georgia,serif;color:#e5c67d;margin:7px 0 18px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:16px}.result-stats span{border:1px solid #343e4c;border-radius:10px;background:#171d25;padding:10px 5px;display:flex;flex-direction:column}.result-stats b{font:700 18px Georgia,serif}.result-stats em{font-style:normal;font-size:7px;color:#7d8998;margin-top:3px}.result-card p{font-size:8px;color:#85909f}.result-card>div:last-child{display:flex;justify-content:center;gap:7px;margin-top:18px}.modal-layer{position:fixed;inset:0;z-index:200;background:rgba(5,7,10,.7);backdrop-filter:blur(7px);display:grid;place-items:center;padding:18px}.prep-modal{width:min(520px,96vw);position:relative;border:1px solid #455063;border-radius:18px;background:linear-gradient(160deg,#252c37,#131820);box-shadow:0 25px 90px rgba(0,0,0,.7);padding:26px}.prep-modal>small{font-size:8px;letter-spacing:.15em;color:#a58d5d}.prep-modal h2{font:700 24px Georgia,serif;margin:6px 0 7px}.prep-modal>p{font-size:9px;line-height:1.5;color:#8d99a8}.modal-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#8f9aaa;font-size:22px;cursor:pointer}.prep-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:18px 0}.prep-summary div{border:1px solid #303a49;border-radius:10px;background:#171d25;padding:10px;display:flex;flex-direction:column}.prep-summary span{font-size:7px;color:#788493;text-transform:uppercase}.prep-summary b{font-size:10px;margin-top:3px}.prep-summary select{margin-top:5px;border:1px solid #354052;border-radius:7px;background:#11161d;color:#e9edf3;padding:6px 8px;font-size:9px;outline:none}.prep-summary select:focus{border-color:#8d7442}.prep-warning{border:1px solid rgba(214,180,107,.24);border-radius:9px;background:rgba(214,180,107,.06);color:#b9a06a;padding:9px 11px;font-size:8px;margin-bottom:16px}.skill-grid{grid-template-columns:repeat(5,minmax(40px,1fr));max-width:540px}.rating-empty-note{padding:18px 16px;color:#7d8998;font-size:9px;line-height:1.5}.local-mark{font-size:7px;color:#7f8b9a;font-weight:400;margin-left:5px}
@media(max-width:900px){.dashboard-grid,.arena-split,.training-grid{grid-template-columns:1fr}.arena-info-row{grid-template-columns:1fr}.arena-info-row>div{border-right:0;border-bottom:1px solid #303846;padding:10px 4px}.arena-info-row>div:last-child{border-bottom:0}.request-form{grid-template-columns:1fr 1fr}.history-row{grid-template-columns:70px 1fr 64px}.history-row>span:nth-child(4),.history-row>span:nth-child(5){display:none}}
@media(max-width:620px){.dashboard-grid{grid-template-columns:1fr}.character-plate{right:12px;bottom:12px}.request-form{grid-template-columns:1fr}.request-form label,.request-form .wide{grid-column:1}.training-card{grid-template-columns:42px 1fr;padding:14px}.training-icon{width:42px;height:42px}.prep-summary{grid-template-columns:1fr 1fr}.battle-mode-badge{top:5px;font-size:6px}.skill-grid{max-width:none}}
.secondary-btn:disabled,.primary-btn:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.5)}
.battle-session{display:grid}
@media(orientation:landscape) and (max-height:620px){
  .battle-card{grid-template-rows:46px 34px 1fr 82px}
  .fighter{height:min(49vh,300px)}
  .fighter img{transform:scale(1);transform-origin:50% 100%}
  .fighter-right img{transform:scaleX(-1) scale(1)}
  .opponent-chip{height:28px}
  .opponent-strip{padding:2px 8px}
}

/* arena-97: classic BK layout — battle first, chat/log below at full width */
.battle-session{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:10px;
  width:100%;
}
.battle-session>.battle-card,
.battle-session>.chat-panel{
  grid-column:1;
  width:100%;
}
.chat-panel{
  min-height:220px;
  height:260px;
  max-height:320px;
  border-radius:14px;
}
.chat-tabs{
  grid-template-columns:1fr 1fr;
}
.chat-feed{
  padding:10px 14px;
}
@media(max-width:760px){
  .chat-panel{min-height:190px;height:220px;max-height:260px}
}
@media(orientation:landscape) and (max-height:620px){
  .battle-session{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:6px}
  .chat-panel{min-height:180px;height:200px;max-height:220px}
}

/* arena-98 multiplayer shell */
.auth-layer{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 15%,#2a3342 0,#10151d 46%,#080b10 100%)}
.auth-card{width:min(440px,96vw);border:1px solid #465164;border-radius:20px;background:linear-gradient(160deg,#242c38,#12171e);box-shadow:0 28px 90px rgba(0,0,0,.65);padding:28px}
.auth-brand{display:flex;gap:12px;align-items:center;margin-bottom:25px}.auth-brand>span{width:48px;height:48px;display:grid;place-items:center;border:1px solid #80683e;border-radius:12px;background:#1d1b16;color:#e4c77d;font:900 16px Georgia,serif}.auth-brand div{display:flex;flex-direction:column}.auth-brand b{font-size:12px;letter-spacing:.1em}.auth-brand small{font-size:9px;color:#8995a5;margin-top:4px}.auth-card h1{font:700 28px Georgia,serif;margin:0 0 7px}.auth-card>p{font-size:10px;line-height:1.55;color:#8f9bab;margin:0 0 18px}.auth-card form{display:grid;gap:12px}.auth-card label{display:grid;gap:6px}.auth-card label span{font-size:8px;letter-spacing:.08em;color:#909baa;text-transform:uppercase}.auth-card input{width:100%;border:1px solid #384457;border-radius:10px;background:#0e1319;color:#eef2f7;padding:12px;outline:0}.auth-card input:focus{border-color:#9a7b41}.auth-card .primary-btn{margin-top:3px}.auth-switch{margin-top:13px}.auth-error{min-height:18px;margin-top:10px;color:#dc8587;font-size:9px}.auth-help{margin-top:16px;border-top:1px solid rgba(255,255,255,.07);padding-top:14px;color:#7f8a99;font-size:8px;line-height:1.5}.auth-help b{color:#b8c0cb}.online-resource i{color:#6fc293!important}.logout-btn{font-size:14px}.module-placeholder{border:1px solid #303a49;border-radius:16px;background:#151a22;padding:26px;min-height:180px}.module-placeholder b{font:700 19px Georgia,serif}.module-placeholder p,.module-note{color:#8591a1;font-size:9px;line-height:1.55}.module-note{margin:12px 0 0}

.request-list{display:grid;gap:8px;padding-top:12px;max-height:430px;overflow:auto}.request-card{display:grid;grid-template-columns:44px minmax(120px,1fr) auto;gap:10px;align-items:center;border:1px solid #303a49;border-radius:11px;background:#181e27;padding:9px}.request-card.mine{border-color:#6e5d3b;background:#1e1d19}.request-card img{width:44px;height:44px;object-fit:contain;border-radius:8px;background:#11161d}.request-card-main{min-width:0;display:flex;flex-direction:column}.request-card-main b{font-size:10px}.request-card-main small{font-size:8px;color:#7f8b9a;margin-top:3px}.request-card-main em{font-style:normal;font-size:8px;color:#b99b5f;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.request-card button{white-space:nowrap}.online-panel{margin-top:12px}.online-list{display:flex;flex-wrap:wrap;gap:7px;padding-top:12px}.online-chip{display:grid;grid-template-columns:30px auto;gap:7px;align-items:center;border:1px solid #303a49;border-radius:10px;background:#171d25;padding:5px 9px 5px 5px}.online-chip.me{border-color:#6e5d3b}.online-chip img{width:30px;height:30px;object-fit:contain;border-radius:6px;background:#11161d}.online-chip span{display:flex;flex-direction:column}.online-chip b{font-size:9px}.online-chip small{font-size:7px;color:#7d8998}.request-card .state-badge{justify-self:end}.arena-status .status-dot{background:#4d9a72;box-shadow:0 0 0 4px rgba(77,154,114,.12)}

/* Chat is global and always below the current BK screen. */
.global-chat{width:calc(100% - 32px);max-width:1540px;margin:0 auto 18px;min-height:210px;height:240px;max-height:290px;border-radius:14px;grid-template-rows:34px 38px 1fr 42px;box-shadow:var(--shadow)}
.chat-headline{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;border-bottom:1px solid #2e3744;background:#11161d}.chat-headline>div{display:flex;flex-direction:column}.chat-headline b{font-size:9px}.chat-headline small,.chat-headline>span{font-size:7px;color:#7f8b9a}.global-chat .chat-tabs{grid-template-columns:1fr 1fr}.global-chat .chat-feed{padding:9px 13px;min-height:0}.global-chat .chat-entry{height:42px}.global-chat .chat-entry input{font-size:10px}.chat-message.system{color:#8994a3}.chat-message .battle-tag{color:#dfbf75}.chat-tabs button.disabled{opacity:.42}.chat-tabs button.disabled:hover{cursor:default}

.battle-session{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:0;width:100%}.battle-session>.battle-card{grid-column:1;width:100%}.battle-card{min-height:620px}.battle-exit{min-width:58px}.waiting-turn .turn-orb{color:#ddb96c}.opponent-chip.single{cursor:default}.result-card .primary-btn.hidden{display:none!important}.battle-result{z-index:40}

.rating-row.self{background:rgba(214,180,107,.06)}.rating-row small{font-size:7px;color:#788493}.history-result.draw{border-color:#556477;color:#9eabba;background:rgba(85,100,119,.08)}

@media(max-width:920px){.request-card{grid-template-columns:38px 1fr auto}.request-card img{width:38px;height:38px}.global-chat{width:calc(100% - 20px);height:220px;margin-bottom:10px}.topbar{gap:8px}.resources .online-resource{display:none}}
@media(max-width:680px){.request-card{grid-template-columns:36px 1fr}.request-card button,.request-card .state-badge{grid-column:1/-1;justify-self:stretch;text-align:center}.main-nav{overflow-x:auto;justify-content:flex-start}.brand-copy{display:none}.resources>span{padding:6px}.global-chat{height:210px}.chat-headline{padding-inline:9px}}
@media(orientation:landscape) and (max-height:620px){.global-chat{height:190px;min-height:170px;max-height:210px}.battle-card{min-height:540px}.battlefield{min-height:310px}}

/* arena-99: server-side State Store, Berezka, inventory and equipment */
.ekr-resource{border-color:rgba(121,194,214,.25)!important;background:rgba(70,145,170,.08)!important}.ekr-resource i{color:#83d5e7!important}.small-btn{padding:7px 10px;font-size:8px;min-height:0}.shop-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #394554;border-radius:16px;background:linear-gradient(135deg,#202833,#141a21);padding:18px 20px;box-shadow:var(--shadow);margin-bottom:10px}.shop-hero>div:first-child small{font-size:7px;letter-spacing:.16em;color:#9d885f}.shop-hero h2{font:700 23px Georgia,serif;margin:3px 0 4px;color:#e4e8ee}.shop-hero p{font-size:9px;color:#8491a1;margin:0}.shop-balances{display:flex;gap:8px;flex-shrink:0}.shop-balances>span{min-width:116px;border:1px solid #354151;border-radius:11px;background:#12181f;padding:9px 11px;display:flex;flex-direction:column}.shop-balances small{font-size:7px;color:#7e8997;text-transform:uppercase}.shop-balances b{font:700 15px Georgia,serif;margin-top:3px}.shop-balances .premium{border-color:rgba(91,181,206,.38);background:linear-gradient(145deg,rgba(40,101,118,.18),#12181f)}.shop-balances .premium b{color:#91d8e9}.shop-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.shop-switch button,.shop-modes button,.shop-categories button{border:1px solid #333f4e;background:#151b23;color:#8e9aa9;border-radius:9px;cursor:pointer}.shop-switch button{padding:11px;font:700 11px Georgia,serif}.shop-switch button.active{border-color:#806b43;color:#e3c476;background:linear-gradient(180deg,#29251d,#1b1b19)}.shop-switch button[data-shop="berezka"].active{border-color:#438ca1;color:#9bd9e8;background:linear-gradient(180deg,#172b32,#161d22)}.shop-toolbar{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:8px;align-items:center;margin:8px 0}.shop-modes{display:flex;gap:5px}.shop-modes button{padding:8px 12px}.shop-modes button.active{color:#e3c476;border-color:#786542;background:#211f1a}.shop-toolbar input{border:1px solid #334050;border-radius:9px;background:#10161d;color:#e8edf3;padding:9px 11px;outline:0}.shop-toolbar input:focus{border-color:#826d45}.shop-notice{border:1px solid rgba(214,180,107,.18);border-radius:10px;background:rgba(214,180,107,.045);padding:9px 12px;color:#a6aebb;font-size:8px;line-height:1.5}.shop-notice b{color:#c9ad70}.shop-categories{display:flex;gap:5px;overflow-x:auto;padding:10px 0 8px}.shop-categories button{white-space:nowrap;padding:6px 10px;font-size:8px}.shop-categories button.active{border-color:#705f40;color:#dfc078;background:#211f1a}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shop-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #303b49;border-radius:12px;background:linear-gradient(145deg,#1a212a,#141a21);padding:10px;min-height:96px}.shop-item.premium{border-color:#304d57;background:linear-gradient(145deg,#18252b,#141a21)}.shop-item-image{position:relative;height:72px;border:1px solid #333d4b;border-radius:9px;background:#0f141a;display:grid;place-items:center;overflow:hidden}.shop-item-image img{max-width:64px;max-height:64px;image-rendering:auto}.shop-item-image span{position:absolute;right:3px;bottom:3px;border-radius:5px;background:rgba(8,11,15,.86);padding:2px 4px;font-size:6px;color:#aab4c0}.shop-item-copy{min-width:0}.shop-item-copy>small{font-size:7px;color:#788695}.shop-item-copy h3{font:700 13px Georgia,serif;margin:3px 0 5px}.shop-item-copy p{font-size:7.5px;color:#9ca7b5;line-height:1.45;margin:0}.shop-item-copy em{display:block;margin-top:5px;font-style:normal;font-size:7px;color:#b49a65}.shop-item-buy{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:90px}.shop-item-buy>b{font:700 12px Georgia,serif;color:#d9bd78}.shop-item.premium .shop-item-buy>b{color:#8fd5e7}.shop-item-buy button{white-space:nowrap;min-width:86px;padding:8px}.shop-history{margin-top:12px;border:1px solid #303b49;border-radius:13px;background:#151b22;padding:13px}.shop-transactions{display:grid;gap:4px;margin-top:9px}.shop-tx{display:grid;grid-template-columns:62px minmax(120px,1fr) 90px 90px;gap:8px;align-items:center;border-top:1px solid rgba(255,255,255,.05);padding:6px 4px;font-size:8px}.shop-tx:first-child{border-top:0}.shop-tx>span{color:#8793a2}.shop-tx>em{font-style:normal;color:#d2b873;text-align:right}.shop-tx>small{text-align:right;color:#6f7b89}.live-gear{grid-template-columns:minmax(210px,.72fr) minmax(180px,.52fr) minmax(320px,1.25fr)}.paper-doll{min-height:460px}.equipped-list{position:absolute;inset:10px;display:flex;flex-direction:column;gap:5px;pointer-events:none}.equipped-item{pointer-events:auto;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:6px;align-items:center;border:1px solid rgba(76,88,103,.8);border-radius:8px;background:rgba(15,20,26,.88);padding:4px}.equipped-item img{width:34px;height:34px;object-fit:contain;background:#0d1217;border-radius:5px}.equipped-item span{display:flex;flex-direction:column;min-width:0}.equipped-item b{font-size:7.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.equipped-item small{font-size:6px;color:#7f8b9a}.equipped-item button{border:0;background:transparent;color:#b49b65;font-size:7px;cursor:pointer}.empty-equip{align-self:flex-start;border:1px dashed #3b4655;border-radius:8px;background:rgba(15,20,26,.75);padding:8px;color:#798493;font-size:8px}.inventory-head{display:flex;justify-content:space-between;align-items:center}.live-inventory{display:grid;grid-template-columns:1fr;gap:6px;max-height:500px;overflow:auto}.inventory-live-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #303b49;border-radius:9px;background:#151b22;padding:6px}.inventory-live-item.equipped{border-color:#71603f;background:#1d1c18}.inventory-live-item img{width:48px;height:48px;object-fit:contain;border-radius:6px;background:#0e1319}.inventory-live-item>div{display:flex;flex-direction:column;min-width:0}.inventory-live-item b{font-size:9px}.inventory-live-item small{font-size:7px;color:#7d8997;margin-top:2px}.inventory-live-item em{font-size:7px;color:#ad9a70;font-style:normal;margin-top:3px}.inventory-live-item button{border:1px solid #4b5664;border-radius:7px;background:#1b222b;color:#c5ccd5;font-size:7px;padding:6px 8px;cursor:pointer}.stat-card dl{grid-template-columns:1fr auto}.stat-card dd{color:#d9bd78}
@media(max-width:1100px){.shop-grid{grid-template-columns:1fr}.live-gear{grid-template-columns:1fr 1fr}.live-gear .inventory-card{grid-column:1/-1}.home-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.shop-hero{align-items:flex-start;flex-direction:column}.shop-balances{width:100%}.shop-balances>span{flex:1;min-width:0}.shop-toolbar{grid-template-columns:1fr auto}.shop-modes{grid-column:1/-1}.shop-item{grid-template-columns:58px minmax(0,1fr)}.shop-item-image{height:58px}.shop-item-image img{max-width:52px;max-height:52px}.shop-item-buy{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;width:100%}.shop-tx{grid-template-columns:55px 1fr 76px}.shop-tx>small{display:none}.live-gear{grid-template-columns:1fr}.live-gear .inventory-card{grid-column:auto}.paper-doll{min-height:390px}.ekr-resource{display:flex!important}}

/* arena-100: restored character development and legacy combat modifiers */
.live-gear{grid-template-columns:minmax(220px,.72fr) minmax(210px,.58fr) minmax(300px,.95fr)}
.live-gear>.inventory-card{grid-column:1/-1}
.development-card{border:1px solid #303b49;border-radius:13px;background:linear-gradient(145deg,#1a212a,#141a21);padding:13px;min-width:0}
.development-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}.development-head small{font-size:6.5px;letter-spacing:.14em;color:#8c7a58}.development-head h2{font:700 16px Georgia,serif;margin:2px 0}.free-points{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.free-points span{border:1px solid #3a4553;border-radius:7px;background:#10161d;padding:5px 7px;font-size:6.5px;color:#8591a0}.free-points b{color:#dfbe75;font-size:9px;margin-left:3px}
.development-section{display:grid;gap:4px}.development-row{display:grid;grid-template-columns:1fr 34px auto;gap:5px;align-items:center;border-top:1px solid rgba(255,255,255,.055);padding:5px 0}.development-row:first-child{border-top:0}.development-row>span{font-size:8px;color:#a4aeba}.development-row>b{text-align:center;font:700 11px Georgia,serif;color:#e1e5eb}.development-row>div{display:flex;gap:3px}.development-row button,.mastery-row button{border:1px solid #5c5138;border-radius:6px;background:#211f19;color:#dabb72;font-size:7px;padding:4px 6px;cursor:pointer}.development-row button:disabled,.mastery-row button:disabled{opacity:.28;cursor:default}
.development-subhead{font-size:6.5px;letter-spacing:.11em;text-transform:uppercase;color:#7f8996;margin:10px 0 5px}.mastery-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px}.mastery-grid.magic{grid-template-columns:1fr 1fr}.mastery-row{display:grid;grid-template-columns:1fr 24px 22px;gap:4px;align-items:center;border:1px solid #2c3643;border-radius:7px;background:#11171e;padding:4px 5px}.mastery-row span{font-size:7px;color:#929eac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mastery-row b{font-size:8px;text-align:center;color:#d8dde4}.mastery-row button{padding:3px 5px}.item-req{color:#777f8b!important;font-size:6.5px!important;margin-top:3px!important}.shop-item-copy p.item-req{margin-top:4px;color:#707b89!important}.inventory-live-item .item-req{white-space:normal;line-height:1.35}
@media(max-width:1100px){.live-gear{grid-template-columns:1fr 1fr}.development-card{grid-column:1/-1}.live-gear>.inventory-card{grid-column:1/-1}}
@media(max-width:720px){.live-gear{grid-template-columns:1fr}.development-card,.live-gear>.inventory-card{grid-column:auto}.mastery-grid,.mastery-grid.magic{grid-template-columns:1fr 1fr}}

/* arena-101: imported library sets and large-catalog controls */
.item-set{color:#9e8758!important;font-size:6.4px!important;line-height:1.35!important;margin-top:4px!important}
.shop-item-copy p.item-set{margin-top:4px;color:#9e8758!important}
.set-status{pointer-events:auto;border:1px solid rgba(151,121,62,.55);border-radius:8px;background:linear-gradient(135deg,rgba(112,83,34,.22),rgba(15,20,26,.92));padding:6px 8px;display:flex;align-items:center}
.set-status span{display:flex;flex-direction:column;min-width:0}.set-status b{font:700 8px Georgia,serif;color:#dfbf77}.set-status small{font-size:6.2px;color:#9b8c70;margin-top:2px}
.shop-more{grid-column:1/-1;border:1px solid #4b5664;border-radius:10px;background:#171e26;color:#c6ced8;padding:10px;cursor:pointer;font-size:8px}.shop-more:hover{border-color:#7c6946;color:#dfc078}


/* arena-102: emergent combat profile and restored physical secondary modifiers */
.combat-profile{border:1px solid rgba(177,144,76,.38);border-radius:9px;background:linear-gradient(135deg,rgba(111,82,31,.18),rgba(16,22,29,.78));padding:8px 9px;margin:7px 0 10px;display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:baseline}
.combat-profile small{grid-column:1/-1;font-size:6px;letter-spacing:.13em;color:#8d7b59}.combat-profile b{font:700 13px Georgia,serif;color:#dfbd72}.combat-profile span{font-size:6.6px;color:#8995a3;text-align:right}
.magic-school-select{height:24px;max-width:115px;border:1px solid #394657;border-radius:7px;background:#151b23;color:#d8c48e;padding:0 6px;font-size:8px;outline:none}.magic-school-select:focus{border-color:#9a7f48}.skill-slot.magic-slot{position:relative}.skill-slot.magic-slot:after{content:attr(data-school);position:absolute;left:3px;top:2px;font-size:6px;letter-spacing:.03em;color:#d7bd7b;text-shadow:0 1px 2px #000}.skill-slot.magic-slot.locked img{filter:grayscale(1);opacity:.28}

/* arena-105+ persistent battle effects */
.fighter-hud{position:relative;padding-top:8px;padding-bottom:5px;gap:3px}.effect-strip{height:14px;display:flex;align-items:center;gap:3px;overflow:hidden;min-width:0}.fighter-hud-right .effect-strip{justify-content:flex-end}.effect-chip{height:13px;min-width:21px;padding:0 3px;border-radius:5px;border:1px solid #465367;background:#202936;display:inline-flex;align-items:center;justify-content:center;gap:2px;font-size:8px;line-height:1;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.effect-chip i{font-style:normal;font-size:9px}.effect-chip b{font-size:7px;color:#e4e9ef}.effect-chip.buff{border-color:#58745f;background:#1d2d25}.effect-chip.debuff{border-color:#805258;background:#322126}.battle-card{grid-template-rows:78px 48px minmax(360px,1fr) auto}@media(max-width:760px){.battle-card{grid-template-rows:70px 42px minmax(340px,1fr) auto}.effect-strip{height:11px}.effect-chip{height:11px;min-width:18px;font-size:7px}.effect-chip i{font-size:8px}}@media(orientation:landscape) and (max-height:620px){.battle-card{grid-template-rows:58px 38px 1fr 88px}.effect-strip{height:10px}.effect-chip{height:10px;min-width:17px}}

/* arena-106 progression and battle rewards */
.progress-reward{display:block;margin-top:7px;color:#7f8b9b;font-size:8px;line-height:1.35}.result-rewards{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:-7px 0 14px}.result-rewards span{border:1px solid rgba(214,180,107,.25);border-radius:10px;background:rgba(214,180,107,.06);padding:9px 5px;display:flex;flex-direction:column}.result-rewards b{font:700 16px Georgia,serif;color:#e4c77f}.result-rewards em{font-style:normal;font-size:7px;color:#8e99a8;margin-top:3px}.result-rewards.hidden{display:none!important}
.request-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.request-actions button{min-width:78px}.group-members{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.group-member{font-size:8px;padding:4px 7px;border-radius:999px;border:1px solid #394453;background:#151b23}.group-member.team-1{border-color:#6e5d3b}.group-member.team-2{border-color:#40576d}.group-member.chaos-member{border-color:#66546f;background:#1b1720}
@media(max-width:680px){.request-actions{grid-column:1/-1;justify-content:stretch}.request-actions button{flex:1}}


/* arena-110: durability, repair and backpack mass */
.inventory-actions{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.inventory-live-item .repair-btn{border-color:#755f3b;color:#d8ba77;background:#201c16}
.inventory-live-item.broken-item{border-color:#704343;background:#201719}
.inventory-live-item.broken-item>div>b{color:#d99a93}
.danger-text{color:#df7d72!important}
.shop-item-copy>small{line-height:1.35}
.inventory-live-item small{line-height:1.35}

/* arena-111 · Death Tower */
.tower-shell{overflow:hidden}.tower-root{padding-top:16px}.tower-intro{display:grid;grid-template-columns:1.4fr .65fr;gap:18px;align-items:center;min-height:220px;background:radial-gradient(circle at 10% 0,rgba(173,132,62,.1),transparent 45%)}.tower-intro small,.tower-lobby-actions>small{font-size:8px;letter-spacing:.14em;color:#a78e5d}.tower-intro h3{font:700 24px Georgia,serif;margin:6px 0 10px}.tower-intro p,.tower-lobby-actions p{font-size:9px;line-height:1.55;color:#8c98a7;max-width:650px}.tower-join,.tower-lobby-actions{border:1px solid #343f4e;border-radius:14px;background:#11171e;padding:16px;display:flex;flex-direction:column;gap:9px}.tower-join label,.tower-lobby-actions label{font-size:8px;color:#8793a3;display:flex;flex-direction:column;gap:6px}.tower-join input,.tower-lobby-actions input{border:1px solid #354052;border-radius:9px;background:#0f141a;color:#eef1f5;padding:10px}.tower-lobby-grid{display:grid;grid-template-columns:1fr 260px;gap:14px}.tower-summary,.tower-run-head{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.tower-summary span,.tower-run-head span{min-width:115px;border:1px solid #303a48;border-radius:10px;background:#171d25;padding:9px 11px;display:flex;flex-direction:column}.tower-summary small,.tower-run-head small{font-size:7px;color:#778494;text-transform:uppercase}.tower-summary b,.tower-run-head b{font-size:10px;margin-top:3px}.tower-entry-list{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:7px}.tower-entry{display:flex;align-items:center;gap:9px;border:1px solid #2e3745;border-radius:10px;background:#161c24;padding:8px}.tower-entry img{width:34px;height:34px;object-fit:contain}.tower-entry span{display:flex;flex-direction:column}.tower-entry b{font-size:9px}.tower-entry small{font-size:7px;color:#7f8b9b;margin-top:2px}.tower-lobby-actions>b{font:700 18px Georgia,serif;color:#dfc27c}.tower-active-grid{display:grid;grid-template-columns:minmax(330px,1.1fr) minmax(230px,.75fr) minmax(250px,.85fr);gap:10px}.tower-room-card,.tower-side-card{border:1px solid #303a49;border-radius:13px;background:#121820;padding:12px;min-width:0}.tower-room-title{display:grid;grid-template-columns:1fr auto;align-items:end;margin-bottom:10px}.tower-room-title small{grid-column:1/-1;font-size:7px;letter-spacing:.12em;color:#8a7650}.tower-room-title h3{font:700 20px Georgia,serif;margin:3px 0}.tower-room-title span{font-size:8px;color:#8894a3}.tower-room-image{display:block;width:min(100%,440px);aspect-ratio:293/224;object-fit:cover;margin:0 auto;border:1px solid #3b4552;border-radius:10px;background:#0c1015;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}.tower-exits{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:10px}.tower-move{border:1px solid #394452;border-radius:9px;background:#1b222c;color:#d4dae2;padding:8px;text-align:left;cursor:pointer}.tower-move:disabled{opacity:.35;cursor:not-allowed}.tower-move small{display:block;font-size:7px;color:#b99c60;text-transform:uppercase}.tower-move b{display:block;margin-top:2px;font-size:8px}.tower-side-card h4{font:700 13px Georgia,serif;margin:2px 0 8px;color:#d5bd83}.tower-person,.tower-item-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid rgba(255,255,255,.055);padding:8px 2px}.tower-person:last-child,.tower-item-row:last-child{border-bottom:0}.tower-person span,.tower-item-row span{display:flex;flex-direction:column;min-width:0}.tower-person b,.tower-item-row b{font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tower-person small,.tower-item-row small{font-size:7px;color:#788494;margin-top:2px}.tower-person.npc b{color:#d6b66e}.tower-person em{font-size:7px;color:#6f7c8d;font-style:normal}.tower-item-row.equipped{background:rgba(203,166,88,.045)}.tower-scroll{max-height:230px;overflow:auto;padding-right:3px}.tower-log-list{max-height:220px;overflow:auto}.tower-log{display:grid;grid-template-columns:68px 1fr;gap:7px;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.045)}.tower-log small{font-size:6px;color:#667282}.tower-log span{font-size:7px;line-height:1.35;color:#909baa}.tower-muted{font-size:7px;line-height:1.45;color:#748090;margin:8px 0}.tower-win-box{border:1px solid rgba(206,170,90,.38);border-radius:10px;background:rgba(206,170,90,.07);padding:10px 12px;margin:0 0 12px;display:flex;justify-content:space-between;gap:12px;color:#d7bb79;font-size:9px}
@media(max-width:900px){.tower-active-grid{grid-template-columns:1fr 1fr}.tower-room-card{grid-column:1/-1}.tower-lobby-grid,.tower-intro{grid-template-columns:1fr}.tower-lobby-actions{width:100%}}@media(max-width:620px){.tower-active-grid,.tower-entry-list{grid-template-columns:1fr}.tower-room-card{grid-column:auto}.tower-run-head span{min-width:92px;flex:1}.tower-exits{grid-template-columns:1fr 1fr}.tower-room-image{width:100%}}

/* arena-112 · Tavern dice game */
.tavern-view{max-width:1380px}.tavern-root{min-width:0}.tavern-profile-strip{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin-bottom:12px}.tavern-profile-strip span,.tavern-board-head span{border:1px solid #3b342b;border-radius:11px;background:linear-gradient(180deg,#211c17,#151515);padding:10px 12px;display:flex;flex-direction:column}.tavern-profile-strip small,.tavern-board-head small{font-size:7px;letter-spacing:.1em;color:#8f7b64;text-transform:uppercase}.tavern-profile-strip b,.tavern-board-head b{font:700 16px Georgia,serif;color:#e0c28a;margin-top:3px}.tavern-lobby-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px}.tavern-rule-card,.tavern-history,.tavern-opponent,.tavern-side,.tavern-bottom>section{border:1px solid #39342f;border-radius:14px;background:linear-gradient(180deg,#1d1a17,#121416);box-shadow:0 16px 36px rgba(0,0,0,.2)}.tavern-rule-card{padding:22px;background:radial-gradient(circle at 85% 0,rgba(181,126,54,.12),transparent 37%),linear-gradient(180deg,#211b16,#151618)}.tavern-rule-card>small,.tavern-history>small{font-size:8px;letter-spacing:.15em;color:#ad8a55}.tavern-rule-card h2{font:700 25px Georgia,serif;margin:7px 0 9px}.tavern-rule-card p{font-size:10px;line-height:1.6;color:#988e83;max-width:820px}.tavern-opponents{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:10px}.tavern-opponent{padding:14px;display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:start}.tavern-opponent-seal{width:40px;height:40px;border:1px solid #6e5736;border-radius:50%;display:grid;place-items:center;font-size:8px;color:#d1ad70;background:#221c15}.tavern-opponent small{font-size:6px;color:#837566}.tavern-opponent h3{font:700 14px Georgia,serif;margin:3px 0 5px}.tavern-opponent p{font-size:8px;line-height:1.4;color:#837e79;min-height:34px}.tavern-opponent button{grid-column:2;justify-self:start;padding:8px 14px}.tavern-history{padding:14px}.tavern-history h3{font:700 16px Georgia,serif;margin:4px 0 10px}.tavern-history-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:8px}.tavern-history-row b{font-size:7px}.tavern-history-row b.player{color:#8fba8f}.tavern-history-row b.enemy{color:#cc8580}.tavern-history-row b.draw{color:#b2a47f}.tavern-history-row small{color:#746e68}.tavern-result{border:1px solid #5f503a;border-radius:12px;background:#201b15;padding:12px 14px;margin-bottom:10px;display:flex;justify-content:space-between;gap:12px}.tavern-result b{font:700 18px Georgia,serif;color:#e4c586}.tavern-result span{font-size:9px;color:#9d9287}.tavern-result.enemy{border-color:#603f3f}.tavern-result.enemy b{color:#d28c85}.tavern-board{display:grid;grid-template-columns:1fr minmax(310px,.72fr) 1fr;grid-template-rows:auto 1fr;gap:10px;min-height:480px;border:1px solid #3d352c;border-radius:18px;padding:12px;background:radial-gradient(circle at 50% 50%,rgba(169,112,44,.1),transparent 34%),linear-gradient(135deg,#1b1714,#101316 65%)}.tavern-board-head{grid-column:1/-1;display:flex;gap:7px;align-items:stretch}.tavern-board-head span{min-width:100px;padding:7px 10px}.tavern-board-head b{font-size:12px}.tavern-board-head button{margin-left:auto;align-self:center}.tavern-side{padding:14px;display:flex;flex-direction:column;justify-content:center;min-width:0}.tavern-side.enemy{border-color:#4a3936}.tavern-side.player{border-color:#4b4436}.tavern-name{display:grid;grid-template-columns:1fr auto;align-items:end;margin-bottom:7px}.tavern-name small{grid-column:1/-1;font-size:7px;color:#877866;letter-spacing:.12em}.tavern-name h3{font:700 18px Georgia,serif;margin:2px 0}.tavern-name>b{font:700 16px Georgia,serif;color:#d8b575}.tavern-hp-pips{display:grid;grid-template-columns:repeat(15,1fr);gap:3px;margin:4px 0 16px}.tavern-hp-pips i{display:block;height:8px;border-radius:50%;background:#302525;border:1px solid #463536}.tavern-hp-pips i.on{background:radial-gradient(circle at 35% 30%,#d98d77,#743a34);border-color:#a65f51;box-shadow:0 0 5px rgba(196,92,73,.2)}.tavern-dice-row{display:grid;grid-template-columns:repeat(3,minmax(66px,1fr));gap:8px}.tavern-die{position:relative;min-height:78px;border:1px solid #51463b;border-radius:12px;background:linear-gradient(145deg,#d6c5a4,#aa966f);color:#2b251d;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;box-shadow:inset 0 0 0 2px rgba(255,255,255,.12),0 7px 13px rgba(0,0,0,.22);transition:.14s}.tavern-die:disabled{opacity:1;cursor:default}.tavern-die.selectable{border-color:#7c6744}.tavern-die.selectable:hover{transform:translateY(-3px);border-color:#e0b966;box-shadow:0 0 0 2px rgba(218,177,94,.17),0 10px 18px rgba(0,0,0,.3)}.tavern-die b{font-size:24px;line-height:1}.tavern-die small{font-size:7px;margin-top:5px;color:#4d4436}.tavern-die.marked{outline:2px dotted #6f4d20;outline-offset:-7px}.tavern-die.marked em{position:absolute;right:7px;top:5px;font:700 7px Georgia,serif;color:#654514}.tavern-die.held{transform:translateY(-7px);border-color:#f1c45f;box-shadow:0 0 0 3px rgba(241,196,95,.38),0 0 20px rgba(241,196,95,.2),0 10px 16px rgba(0,0,0,.3)}.tavern-die.locked:after{content:'✓';position:absolute;left:7px;top:6px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#725c2f;color:#f4d989;font-size:9px;font-weight:900}.tavern-die-state{position:absolute;left:5px;right:5px;bottom:4px;padding:3px 2px;border-radius:5px;background:rgba(35,29,21,.82);color:#e8d09e;font-size:6px;letter-spacing:.06em;text-align:center}.tavern-die.held .tavern-die-state{background:#6a5126;color:#ffe09a}.tavern-die.selectable:not(.held) .tavern-die-state{background:#29251f;color:#a49b8b}.tavern-dice-empty{min-height:165px;border:1px dashed #3b352e;border-radius:12px;display:grid;place-items:center;color:#71695f;font:italic 10px Georgia,serif}.tavern-center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;padding:4px}.tavern-cup{width:72px;height:72px;border:1px solid #70573a;border-radius:18px 18px 28px 28px;background:linear-gradient(160deg,#5d4530,#231c17);display:grid;place-items:center;font-size:34px;color:#d4b177;box-shadow:inset 0 4px 10px rgba(255,255,255,.04),0 14px 25px rgba(0,0,0,.26)}.tavern-center>small{font-size:7px;line-height:1.4;text-align:center;color:#80786f;max-width:260px}.tavern-roll-btn,.tavern-resolve-btn{width:min(260px,100%)}.tavern-tricks{width:100%;display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto;padding-right:3px}.tavern-no-trick{border:1px solid #4a433a;border-radius:8px;background:#181818;padding:7px;color:#8f877c;cursor:pointer;font-size:8px}.tavern-no-trick.active{border-color:#aa8950;color:#e1c084}.tavern-trick{border:1px solid #38332d;border-radius:9px;background:#171513;padding:7px;display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center}.tavern-trick>div:first-child{display:flex;flex-direction:column}.tavern-trick b{font-size:8px;color:#d6bf94}.tavern-trick small{font-size:6px;color:#80776e;margin-top:2px}.tavern-trick em{font-style:normal;font-size:6px;color:#865f58;margin-top:3px}.tavern-trick.locked{opacity:.42}.tavern-tier-row{display:flex;gap:3px}.tavern-tier-row button{width:36px;height:34px;border:1px solid #4a4033;border-radius:7px;background:#211c16;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}.tavern-tier-row button b{font-size:8px;color:#ddbd7c}.tavern-tier-row button span{font-size:6px;color:#8d8276}.tavern-tier-row button.active{border-color:#d0aa5e;background:#332818}.tavern-projected{font-size:6px;line-height:1.35;color:#777068;text-align:center}.tavern-bottom{display:grid;grid-template-columns:.8fr 1.2fr;gap:10px;margin-top:10px}.tavern-bottom>section{padding:12px}.tavern-bottom>section>small{font-size:7px;letter-spacing:.12em;color:#967c56}.tavern-legend{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.tavern-legend span{border:1px solid #39342e;border-radius:999px;background:#171717;padding:4px 7px;font-size:7px;color:#9c9286}.tavern-legend span.marked{border-style:dotted;color:#c2a36d}.tavern-log-list{max-height:190px;overflow:auto}.tavern-log{display:grid;grid-template-columns:74px 1fr;gap:7px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.045)}.tavern-log small{font-size:6px;color:#706b66}.tavern-log span{font-size:7px;line-height:1.35;color:#999087}.tavern-muted{font-size:7px;color:#766f68}.tavern-view .primary-btn{background:linear-gradient(180deg,#3b2d1d,#251d15);border-color:#82643d}.tavern-view .primary-btn:hover{border-color:#b18a52}
@media(max-width:1050px){.tavern-opponents{grid-template-columns:1fr}.tavern-board{grid-template-columns:1fr 240px 1fr}.tavern-dice-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.tavern-profile-strip{grid-template-columns:1fr 1fr}.tavern-lobby-grid{grid-template-columns:1fr}.tavern-board{grid-template-columns:1fr;grid-template-rows:auto auto auto auto}.tavern-board-head{grid-column:1}.tavern-side.enemy{order:1}.tavern-center{order:2}.tavern-side.player{order:3}.tavern-dice-row{grid-template-columns:repeat(3,1fr)}.tavern-bottom{grid-template-columns:1fr}.tavern-rule-card h2{font-size:20px}.tavern-board-head{flex-wrap:wrap}.tavern-board-head button{margin-left:0;width:100%}}

/* arena-113 · live tavern PvP */
.tavern-pvp-lobby{border:1px solid #4a3d2e;border-radius:15px;background:radial-gradient(circle at 15% 0,rgba(176,119,48,.11),transparent 34%),linear-gradient(180deg,#1d1915,#121416);padding:15px;margin:0 0 12px;box-shadow:0 14px 32px rgba(0,0,0,.18)}
.tavern-pvp-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.tavern-pvp-head small,.tavern-pvp-columns>div>small,.tavern-pvp-columns>aside>small{font-size:7px;letter-spacing:.14em;color:#ad8a55}.tavern-pvp-head h3{font:700 19px Georgia,serif;margin:4px 0}.tavern-pvp-head p{font-size:8px;line-height:1.5;color:#8e857b;max-width:760px}.tavern-pvp-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:10px;margin-top:12px}.tavern-pvp-columns>div,.tavern-pvp-columns>aside{border:1px solid #342f29;border-radius:11px;background:#141414;padding:10px}.tavern-pvp-table-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05)}.tavern-pvp-table-row:last-child{border-bottom:0}.tavern-pvp-table-row>div{display:flex;flex-direction:column;gap:2px}.tavern-pvp-table-row small{font-size:6px;color:#756a5d}.tavern-pvp-table-row b{font:700 12px Georgia,serif;color:#d7bf98}.tavern-pvp-table-row span{font-size:7px;color:#80786e}.tavern-pvp-table-row button{padding:7px 12px}.tavern-pvp-stats{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.tavern-pvp-stats span{border:1px solid #3b342b;border-radius:999px;padding:5px 9px;font-size:7px;color:#81776c}.tavern-pvp-stats b{color:#d3b57c;margin-left:3px}.tavern-pvp-wait{min-height:350px;border:1px solid #4b3d2d;border-radius:17px;background:radial-gradient(circle at 50% 10%,rgba(190,130,53,.12),transparent 35%),#141414;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.tavern-pvp-wait>small{font-size:7px;letter-spacing:.18em;color:#ad8a55}.tavern-pvp-wait h2{font:700 25px Georgia,serif;margin:8px 0}.tavern-pvp-wait>p{font-size:9px;line-height:1.5;color:#8c8379;max-width:520px}.tavern-pvp-wait .tavern-log-list{width:min(580px,100%);margin:15px 0}.tavern-pvp-banner{border:1px solid #604a31;border-radius:12px;background:linear-gradient(90deg,#21190f,#181614);padding:8px 12px;margin-bottom:9px;display:flex;align-items:center;gap:12px}.tavern-pvp-banner span{font-size:7px;letter-spacing:.12em;color:#9e8259}.tavern-pvp-banner b{font:700 11px Georgia,serif;color:#e1c17d}.tavern-pvp-banner em{margin-left:auto;font-style:normal;font-size:7px;color:#85796b}.tavern-pvp-wait-turn{border:1px dashed #504638;border-radius:11px;padding:13px;text-align:center;display:flex;flex-direction:column;gap:4px;width:min(260px,100%)}.tavern-pvp-wait-turn b{font:700 13px Georgia,serif;color:#d0b47b}.tavern-pvp-wait-turn small{font-size:7px;color:#81786f;line-height:1.4}.tavern-held-note{font-size:6px;color:#817568;text-align:center;margin-top:8px}.tavern-side.enemy .tavern-die.locked{transform:translateY(-4px);border-color:#9a7550;box-shadow:0 0 0 2px rgba(147,104,57,.18),0 8px 14px rgba(0,0,0,.24)}
@media(max-width:760px){.tavern-pvp-head{align-items:flex-start;flex-direction:column}.tavern-pvp-head>button{width:100%}.tavern-pvp-columns{grid-template-columns:1fr}.tavern-pvp-banner{flex-wrap:wrap}.tavern-pvp-banner em{margin-left:0;width:100%}}

/* arena-114: server-authoritative city and buildings */
.city-view{max-width:1380px;margin:0 auto}.city-title{margin-bottom:14px}.city-root{display:grid;gap:14px}.city-current{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:22px;background:linear-gradient(135deg,rgba(49,39,30,.96),rgba(19,22,27,.96));box-shadow:0 18px 50px rgba(0,0,0,.18)}.city-current:after{content:"";position:absolute;inset:auto -10% -55% 35%;height:220px;background:radial-gradient(circle,rgba(221,177,98,.14),transparent 67%);pointer-events:none}.city-current small,.city-exit small{letter-spacing:.12em;color:var(--muted);font-size:10px}.city-current h2{font-size:28px;margin:4px 0 7px}.city-current p{max-width:760px;color:var(--muted);margin:0}.city-current-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.city-current-meta span{border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.15);padding:6px 9px;border-radius:10px;font-size:12px}.city-moving{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:16px 18px;border:1px solid rgba(215,168,77,.28);border-radius:16px;background:rgba(105,74,28,.14)}.city-moving b{display:block;font-size:17px}.city-moving p{margin:4px 0 0;color:var(--muted)}.city-move-line{height:5px;border-radius:10px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:10px}.city-move-line i{display:block;height:100%;background:linear-gradient(90deg,#b98742,#efcf83);transition:width .5s}.city-exits-title{display:flex;justify-content:space-between;align-items:end;padding:3px 2px}.city-exits-title h3{margin:0}.city-exits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.city-exit{border:1px solid rgba(255,255,255,.09);background:linear-gradient(145deg,rgba(31,35,41,.96),rgba(20,22,26,.96));border-radius:17px;padding:16px;min-height:148px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;transition:.16s transform,.16s border-color,.16s background}.city-exit:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(224,182,103,.34);background:linear-gradient(145deg,rgba(41,42,43,.98),rgba(24,25,28,.98))}.city-exit .city-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:rgba(207,166,89,.11);font-size:20px;margin-bottom:12px}.city-exit b{font-size:16px}.city-exit p{font-size:12px;color:var(--muted);line-height:1.45;margin:5px 0 12px}.city-exit em{margin-top:auto;font-style:normal;color:#cbb37f;font-size:11px}.city-service-box{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid rgba(110,182,139,.2);background:rgba(57,108,77,.1);border-radius:14px}.city-service-box p{margin:3px 0 0;color:var(--muted);font-size:12px}.city-service-box b{display:block}.bank-root{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(380px,1.2fr);gap:16px}.bank-card{border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(25,28,33,.94);padding:20px}.bank-balances{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 18px}.bank-balances span{padding:14px;border-radius:14px;background:rgba(255,255,255,.04)}.bank-balances small{display:block;color:var(--muted);font-size:10px;letter-spacing:.1em}.bank-balances b{display:block;font-size:24px;margin-top:3px}.bank-form{display:grid;grid-template-columns:1fr auto auto;gap:8px}.bank-form input{min-width:0}.bank-history{display:grid;gap:7px;margin-top:12px;max-height:420px;overflow:auto}.bank-tx{display:grid;grid-template-columns:90px 1fr auto;gap:8px;padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.035);font-size:12px}.bank-tx span{color:var(--muted)}.bank-tx em{font-style:normal}.bookshop-placeholder{max-width:760px}.location-pill{display:inline-flex;align-items:center;gap:5px}.main-nav .nav-btn[data-view="city"] span{font-size:17px}
@media(max-width:900px){.city-exits{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-root{grid-template-columns:1fr}}@media(max-width:580px){.city-exits{grid-template-columns:1fr}.city-current{padding:17px}.city-current h2{font-size:23px}.bank-form{grid-template-columns:1fr 1fr}.bank-form input{grid-column:1/-1}}

/* arena-115: living city buildings */
.building-root{display:grid;gap:14px}.building-hero,.building-panel{background:rgba(16,18,25,.88);border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:16px}.building-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.building-hero h2,.building-panel h2{margin:3px 0 8px}.building-hero p,.building-panel p{opacity:.78;line-height:1.45}.building-balance{min-width:170px;display:grid;gap:3px;text-align:right}.building-balance b{font-size:22px}.building-balance span,.building-balance small{opacity:.72}.building-two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.book-card,.auction-lot,.auction-inv,.mail-row,.clan-invite,.clan-member{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);border-radius:12px;padding:12px}.book-card{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-height:170px}.book-card.learned{opacity:.62}.book-card h3,.auction-lot h3,.mail-row h3{margin:4px 0 6px}.book-card em,.auction-lot em,.mail-row em{font-size:12px;opacity:.68}.book-buy{display:flex;align-items:center;justify-content:space-between;gap:8px}.auction-list,.auction-inventory,.mail-list,.post-forms{display:grid;gap:9px}.auction-lot{display:flex;justify-content:space-between;gap:12px;align-items:center}.auction-bid{display:grid;grid-template-columns:minmax(90px,120px) auto;gap:6px;align-items:center}.auction-bid small{grid-column:1/-1;text-align:right;opacity:.65}.auction-own{font-size:12px;opacity:.6}.auction-inv{display:grid;grid-template-columns:1fr 120px auto;gap:8px;align-items:center}.post-forms label{display:grid;gap:5px;font-size:12px;opacity:.9}.post-forms input,.post-forms select,.post-forms textarea,.auction-bid input,.auction-inv input,.clan-create input,.clan-create textarea,.clan-invite-form input{width:100%;box-sizing:border-box}.post-forms textarea,.clan-create textarea{min-height:100px;resize:vertical}.post-form-row,.clan-invite-form{display:grid;grid-template-columns:1fr auto;gap:8px}.mail-row{display:flex;justify-content:space-between;gap:12px}.mail-row>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.mail-row.claimed{opacity:.52}.clan-create{display:grid;gap:12px}.clan-create label{display:grid;gap:5px}.clan-member,.clan-invite{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.clan-member span,.clan-invite>div:first-child{display:flex;gap:7px;align-items:center}.clan-member small{opacity:.65}.tiny-btn{padding:5px 7px;font-size:11px}.danger-btn{background:rgba(180,40,40,.18);border:1px solid rgba(255,90,90,.35);color:inherit;border-radius:8px;padding:7px 9px;cursor:pointer}
@media(max-width:900px){.building-two-col{grid-template-columns:1fr}.building-hero{flex-direction:column}.building-balance{text-align:left}.auction-lot,.mail-row{align-items:flex-start;flex-direction:column}.auction-inv{grid-template-columns:1fr}.auction-bid{width:100%;grid-template-columns:1fr auto}}

/* arena-120 clan caves */
.cave-owner-layout,.cave-raid-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:16px;align-items:start}
.cave-map-wrap{overflow:auto;padding:10px;border:1px solid rgba(112,82,42,.22);border-radius:14px;background:rgba(24,20,15,.06)}
.cave-map{display:grid;gap:2px;width:min(100%,620px);min-width:0;max-width:620px;aspect-ratio:1/1;margin:auto;align-content:stretch;justify-content:stretch}
.cave-cell{position:relative;min-width:0;min-height:0;width:auto;height:auto;appearance:none;-webkit-appearance:none;border:0;border-radius:4px;padding:0;display:grid;place-items:center;font:700 12px/1 system-ui;cursor:pointer;overflow:hidden}
.cave-cell.wall{background:#211f1b;cursor:default}.cave-cell.floor{background:linear-gradient(145deg,#d9cfb9,#b9aa8c);box-shadow:inset 0 0 0 1px rgba(66,49,28,.18)}
.cave-cell.unknown{background:#77736a;color:#e9e4d9;cursor:default}.cave-cell.entry{background:#c8d6b5}.cave-cell.treasure{background:#d8c77e}.cave-cell.player{box-shadow:inset 0 0 0 3px #342c20;background:#efe0a4}
.cave-cell span{white-space:nowrap;transform:scale(.9)}.cave-cell em{position:absolute;right:2px;bottom:1px;font-size:8px;font-style:normal;background:#342c20;color:#fff;border-radius:8px;padding:1px 3px}
.cave-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.cave-palette-item{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;text-align:left;gap:0 8px;padding:8px;border:1px solid rgba(98,70,36,.2);border-radius:10px;background:#f8f3e9}.cave-palette-item span{grid-row:1/3;font-size:20px;align-self:center}.cave-palette-item b{font-size:12px}.cave-palette-item small{font-size:10px;color:#756b5b}.cave-palette-item.active{outline:2px solid #6b5734;background:#eee1ca}
.cave-editor-actions,.cave-raid-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.cave-inspector{display:grid;gap:8px;margin-top:12px;padding:10px;border-radius:10px;background:rgba(120,90,45,.08)}.cave-inspector span{display:flex;align-items:center;gap:8px;justify-content:space-between}
.cave-target-list,.cave-log-list{display:grid;gap:8px}.cave-target{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px;border:1px solid rgba(90,65,35,.16);border-radius:10px}.cave-target>div{display:grid;gap:2px}.cave-target span{font-size:11px;color:#766c5e}.cave-log{display:grid;grid-template-columns:70px 1fr;gap:8px;padding:7px 9px;border-bottom:1px solid rgba(90,65,35,.1);font-size:12px}.cave-log small{color:#766c5e}.cave-log.loot span{font-weight:700}.cave-history-head{margin-top:18px}.cave-raid-hero{border-left:4px solid #7c3a2c}
@media (max-width:900px){.cave-owner-layout,.cave-raid-layout{grid-template-columns:1fr}.cave-map{width:min(100%,560px);min-width:0}.cave-palette{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.cave-map{width:100%;min-width:0}.cave-cell{font-size:10px}.cave-palette{grid-template-columns:1fr}.cave-target{align-items:flex-start;flex-direction:column}}
.tavern-howto{margin:10px 0 0;padding:10px 12px;border:1px solid #5b4a31;border-radius:12px;background:linear-gradient(180deg,#211c15,#171715);display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tavern-howto b{font:700 11px Georgia,serif;color:#e3c47f;margin-right:4px}.tavern-howto span{font-size:7px;color:#aca093;border:1px solid #3f382d;border-radius:7px;padding:5px 7px;background:#181715}.tavern-center>small b{color:#d9b873}.tavern-center>small u{text-decoration:none;color:#f0c96f;font-weight:800}
/* arena-123: склонности */
.alignment-hero{position:relative;overflow:hidden}.alignment-hero:after{content:"";position:absolute;inset:auto -8% -55% 40%;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.12),transparent 68%);pointer-events:none}.alignment-light{box-shadow:inset 0 1px rgba(255,255,255,.08)}.alignment-dark{box-shadow:inset 0 1px rgba(255,255,255,.04)}.alignment-elements{box-shadow:inset 0 1px rgba(255,255,255,.06)}
.alignment-choice{display:grid;gap:14px;max-width:760px}.alignment-choice .alignment-choose{justify-self:start;min-width:220px}
.alignment-profile-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.alignment-profile-strip>span{display:flex;flex-direction:column;gap:4px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.alignment-profile-strip small{opacity:.65;font-size:10px;letter-spacing:.1em}.alignment-profile-strip b{font-size:15px}
.alignment-daily.done{opacity:.86}.alignment-task-state{margin-top:10px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.035);font-size:12px}
.alignment-conflicts{display:grid;gap:10px;margin-top:14px}.alignment-conflict-card{border:1px solid var(--line);border-radius:15px;padding:13px;background:rgba(10,14,21,.35)}.alignment-sides{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.alignment-sides>span{display:flex;justify-content:space-between;align-items:center;gap:8px}.alignment-sides>span:last-child{text-align:right}.alignment-sides em{font-style:normal;opacity:.65;font-size:12px}.alignment-sides strong{opacity:.5;font-size:11px;letter-spacing:.12em}.alignment-conflict-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:11px;padding-top:11px}.alignment-conflict-meta>span{font-size:12px;opacity:.8}
@media(max-width:760px){.alignment-profile-strip{grid-template-columns:1fr 1fr}.alignment-sides{grid-template-columns:1fr auto 1fr}.alignment-conflict-meta{align-items:stretch;flex-direction:column}.alignment-conflict-meta button{width:100%}}

/* arena-130: BK-style entry + public character links */
.auth-layer{padding:24px;background:radial-gradient(circle at 20% 16%,rgba(122,92,44,.2),transparent 27%),radial-gradient(circle at 76% 24%,#2a3342 0,#111720 43%,#080b10 100%)}
.auth-shell{width:min(980px,96vw);min-height:610px;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(380px,.94fr);overflow:hidden;border:1px solid #455064;border-radius:22px;background:#11171f;box-shadow:0 32px 100px rgba(0,0,0,.7)}
.auth-world{position:relative;display:flex;flex-direction:column;padding:34px 38px;overflow:hidden;background:radial-gradient(circle at 74% 28%,rgba(220,181,100,.15),transparent 22%),linear-gradient(150deg,#2a3039 0,#171d25 52%,#10151c 100%);border-right:1px solid rgba(255,255,255,.07)}
.auth-world:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(220,181,100,.08);border-radius:50%;right:-170px;bottom:-110px;box-shadow:0 0 0 38px rgba(220,181,100,.02),0 0 0 76px rgba(220,181,100,.015)}
.auth-world .auth-brand{position:relative;z-index:2;margin-bottom:0}.auth-world .auth-brand>span{width:54px;height:54px;border-radius:14px;font-size:18px}.auth-world .auth-brand b{font-size:11px}.auth-world .auth-brand small{font-size:8px}
.auth-world-copy{position:relative;z-index:2;margin:auto 0}.auth-world-copy>small,.auth-heading>small{font-size:8px;letter-spacing:.18em;color:#b89b5e}.auth-world-copy h1{font:700 43px/1.04 Georgia,serif;margin:12px 0 16px;color:#f1f3f6}.auth-world-copy p{max-width:470px;margin:0;color:#9ba6b4;font-size:11px;line-height:1.7}.auth-world-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:28px}.auth-world-facts span{display:flex;min-height:74px;flex-direction:column;justify-content:center;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(4,7,11,.2)}.auth-world-facts b{font:700 19px Georgia,serif;color:#dec27d}.auth-world-facts em{margin-top:4px;font-style:normal;font-size:7px;line-height:1.35;color:#8793a2;text-transform:uppercase;letter-spacing:.06em}.auth-world-note{position:relative;z-index:2;font-size:8px;line-height:1.5;color:#6f7b8b}
.auth-shell>.auth-card{width:auto;border:0;border-radius:0;box-shadow:none;background:linear-gradient(180deg,#181e27,#11161d);padding:34px 38px;display:flex;flex-direction:column;justify-content:center}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid #303a49;border-radius:11px;background:#0c1117;margin-bottom:28px}.auth-tabs button{border:0;border-radius:8px;background:transparent;color:#7f8a99;padding:10px 12px;font-size:9px;cursor:pointer}.auth-tabs button.active{background:#252d38;color:#ead18f;box-shadow:inset 0 0 0 1px rgba(218,183,108,.12)}
.auth-heading h2{font:700 28px Georgia,serif;margin:7px 0 7px;color:#eef1f5}.auth-heading p{font-size:9px;line-height:1.55;color:#8390a0;margin:0 0 20px}.auth-shell .auth-card form{gap:11px}.auth-shell .auth-card label{gap:6px}.auth-shell .auth-card label>span,.auth-gender legend{font-size:8px;letter-spacing:.08em;color:#919cab;text-transform:uppercase}.auth-shell .auth-card input[type="text"],.auth-shell .auth-card input[type="password"],.auth-shell .auth-card input:not([type]){min-height:43px;border-radius:9px;background:#0b1016;border-color:#354052}.auth-shell .auth-card input:focus{border-color:#9c7d42;box-shadow:0 0 0 3px rgba(156,125,66,.08)}
.register-fields{display:grid;gap:11px}.auth-gender{display:grid;grid-template-columns:1fr 1fr;gap:7px;border:0;padding:0;margin:0}.auth-gender legend{grid-column:1/-1;margin-bottom:1px}.auth-gender label{display:block;position:relative}.auth-gender input{position:absolute;opacity:0;pointer-events:none}.auth-gender label span{display:grid;place-items:center;min-height:40px;border:1px solid #354052;border-radius:9px;background:#0b1016;color:#8f9aa8;font-size:9px;letter-spacing:0;text-transform:none;cursor:pointer}.auth-gender input:checked+span{border-color:#9a7b41;background:rgba(154,123,65,.12);color:#e4c982}
.auth-consent{display:grid;grid-template-columns:17px 1fr;align-items:start;gap:8px;margin-top:2px}.auth-consent input{width:15px;height:15px;min-height:0;margin:1px 0 0;accent-color:#a4864c}.auth-consent span{font-size:8px;line-height:1.5;letter-spacing:0;text-transform:none;color:#818d9d}
.auth-submit{min-height:44px;margin-top:4px;font-weight:700;letter-spacing:.03em}.auth-error{min-height:20px;margin-top:10px;font-size:9px}.auth-foot{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:10px;padding-top:14px;border-top:1px solid rgba(255,255,255,.06);font-size:8px;color:#778393}.auth-foot .auth-switch{margin:0;font-size:8px}
.character-info-link{color:inherit;text-decoration:none;cursor:pointer;border-bottom:1px dotted rgba(226,196,126,.45)}.character-info-link:hover{color:#e8cd8d;border-bottom-color:#e8cd8d}.character-info-link.disabled{pointer-events:none;border-bottom-color:transparent;color:inherit}
.player-name-link{color:#e7d096;text-decoration:none;border-bottom:1px dotted rgba(231,208,150,.5)}.player-name-link:hover{color:#fff0b8;border-color:#fff0b8}
@media(max-width:800px){.auth-layer{padding:10px}.auth-shell{width:min(520px,98vw);min-height:auto;grid-template-columns:1fr}.auth-world{display:none}.auth-shell>.auth-card{padding:26px 22px;border-radius:18px}.auth-tabs{margin-bottom:22px}.auth-heading h2{font-size:25px}}

/* arena-131: compact real BK techniques, no artificial technique pages */
.skills-title{display:flex;align-items:baseline;gap:8px;min-width:0}.skills-title b{font:700 9px Georgia,serif;letter-spacing:.08em;color:#d7bd7b}.skills-title small{font-size:6.5px;color:#6f7c8d}.skill-grid{grid-template-columns:repeat(10,minmax(72px,1fr));gap:4px}.skill-slot.technique-slot,.empty-skill-slot{height:54px;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:1fr 15px;column-gap:5px;align-items:center;padding:4px 5px;text-align:left;overflow:hidden}.skill-slot.technique-slot img{grid-row:1/3;width:40px;height:25px;object-fit:fill;border-radius:3px;image-rendering:auto;align-self:center}.skill-slot .skill-name{font:700 7.2px/1.15 Arial,sans-serif;color:#dbe0e7;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.skill-slot .cost{position:static!important;grid-column:2;background:transparent!important;padding:0!important;border-radius:0!important;text-align:left!important;font-size:5.7px!important;color:#c9aa69!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.skill-slot.locked .skill-name{color:#8b95a3}.skill-slot.locked{opacity:.48}.skill-slot.cooldown:after,.spell-slot.cooldown:after{content:attr(data-cd);position:absolute;inset:0;background:rgba(6,9,13,.78);display:grid;place-items:center;font:800 13px Arial;color:#e6c578}.empty-skill-slot{border:1px dashed #303946;border-radius:8px;background:#121820;opacity:.56}.empty-skill-mark{grid-row:1/3;display:grid;place-items:center;width:40px;height:25px;border:1px dashed #3b4655;border-radius:4px;color:#566273;font-size:14px}.empty-skill-slot .skill-name{color:#677383}.spell-strip{margin-top:6px;border-top:1px solid rgba(255,255,255,.06);padding-top:5px}.spell-strip-head{display:flex;align-items:center;gap:7px;margin-bottom:4px}.spell-strip-head>span{font:700 7px Georgia,serif;letter-spacing:.1em;color:#8fa8c1}.spell-grid{display:grid;grid-template-columns:repeat(8,minmax(70px,1fr));gap:4px}.spell-slot{min-height:48px;position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:1fr 14px;column-gap:4px;align-items:center;border:1px solid #344052;border-radius:8px;background:linear-gradient(180deg,#202a36,#161c24);padding:3px 4px;cursor:pointer;text-align:left}.spell-slot img{grid-row:1/3;width:32px;height:32px;object-fit:cover;border-radius:4px}.spell-slot .skill-name{font-size:6.8px;font-weight:700;line-height:1.15}.spell-slot .cost{font-size:5.8px;color:#89b5d0}.spell-slot.selected{border-color:#66a6c9;box-shadow:0 0 10px rgba(70,141,181,.18)}.spell-slot.locked{opacity:.4;cursor:not-allowed}

/* arena-131: equipment no longer covers the character */
.paper-doll{position:relative!important;display:flex!important;flex-direction:column;min-height:460px;height:auto!important;overflow:hidden}.paper-doll-stage{min-height:300px;display:flex;align-items:flex-end;justify-content:center;padding:8px 8px 0}.paper-doll-stage>img{position:static!important;max-height:300px!important;width:auto!important;max-width:96%!important;object-fit:contain!important}.equipped-grid{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:7px;pointer-events:auto}.equip-slot{min-height:42px;display:grid;grid-template-columns:30px minmax(0,1fr) 18px;gap:5px;align-items:center;border:1px solid #313b48;border-radius:7px;background:#141a21;padding:4px}.equip-slot.empty{grid-template-columns:1fr;gap:1px;align-content:center;border-style:dashed;color:#687483}.equip-slot.empty span{font-size:6.5px}.equip-slot.empty small{font-size:5.8px;color:#515d6b}.equip-slot img{width:30px;height:30px;object-fit:contain;background:#0d1217;border-radius:4px}.equip-slot span{display:flex;flex-direction:column;min-width:0}.equip-slot span small{font-size:5.5px;color:#7e8996}.equip-slot span b{font-size:6.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.equip-slot button{width:18px;height:18px;border:0;border-radius:5px;background:#24201a;color:#caae70;cursor:pointer}.equipment-sets{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;padding-top:2px}.equipment-sets span{border:1px solid #5b5038;border-radius:6px;background:#1e1c18;padding:3px 5px;font-size:5.8px;color:#b9a36f}.inventory-head>div{display:flex;align-items:baseline;gap:8px}.inventory-head>div>small{font-size:6.5px;color:#727f8f}.inventory-filters{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(3,minmax(105px,.8fr));gap:5px;margin:8px 0}.inventory-filters input,.inventory-filters select{height:30px;border:1px solid #33404e;border-radius:7px;background:#10161d;color:#cbd2db;padding:0 8px;font-size:7.5px;outline:0}.inventory-filters input:focus,.inventory-filters select:focus{border-color:#816c44}.inventory-live-item.can-equip:not(.equipped){border-left-color:#6c8158}.inventory-live-item button:disabled{opacity:.38;cursor:not-allowed}

@media(max-width:1180px){.skill-grid{grid-template-columns:repeat(5,minmax(78px,1fr))}.spell-grid{grid-template-columns:repeat(5,minmax(72px,1fr))}}
@media(max-width:760px){.skill-grid{grid-template-columns:repeat(5,minmax(58px,1fr));gap:3px}.skill-slot.technique-slot,.empty-skill-slot{height:48px;grid-template-columns:30px minmax(0,1fr);padding:3px}.skill-slot.technique-slot img,.empty-skill-mark{width:30px;height:20px}.skill-slot .skill-name{font-size:6.1px}.skill-slot .cost{font-size:5px!important}.spell-grid{grid-template-columns:repeat(4,minmax(60px,1fr))}.inventory-filters{grid-template-columns:1fr 1fr}.paper-doll-stage{min-height:250px}.paper-doll-stage>img{max-height:250px!important}}
.shop-toolbar select{height:34px;border:1px solid #334050;border-radius:9px;background:#10161d;color:#cbd2db;padding:0 8px;font-size:8px;outline:0}.shop-toolbar select:focus{border-color:#826d45}.shop-toolbar{grid-template-columns:auto minmax(170px,1fr) minmax(130px,.45fr) auto}
@media(max-width:720px){.shop-toolbar{grid-template-columns:1fr 1fr}.shop-toolbar .shop-modes{grid-column:1/-1}.shop-toolbar input{grid-column:1/-1}}

/* arena-132 — player-owned combat loadout */
.techniques-root{display:grid;gap:12px}.loadout-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border:1px solid rgba(214,183,112,.2);border-radius:14px;background:linear-gradient(180deg,rgba(31,28,23,.92),rgba(16,18,23,.94));padding:14px 16px}.loadout-hero h2{margin:3px 0 6px}.loadout-hero p{max-width:760px;margin:0;color:#9ea7b3;font-size:11px;line-height:1.45}.loadout-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.loadout-actions>span{font-size:10px;color:#d3b975;margin-right:4px}.loadout-layout{display:grid;grid-template-columns:minmax(520px,.95fr) minmax(420px,1.05fr);gap:12px}.loadout-slots-panel,.combat-library-panel{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(13,17,22,.92);padding:12px;min-width:0}.combat-loadout-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.combat-loadout-slot{position:relative;min-height:58px;border:1px solid #303a47;border-radius:8px;background:linear-gradient(180deg,#1b222b,#121820);color:#dbe1e8;display:grid;grid-template-columns:30px minmax(0,1fr);gap:5px;align-items:center;padding:6px 20px 6px 6px;text-align:left;cursor:pointer;min-width:0}.combat-loadout-slot:hover{border-color:#66583d}.combat-loadout-slot.selected{border-color:#b59859;box-shadow:0 0 0 1px rgba(194,158,82,.25),0 0 14px rgba(165,127,53,.12)}.combat-loadout-slot img{width:30px;height:30px;object-fit:cover;border-radius:4px;background:#090c10}.combat-loadout-slot .slot-no{position:absolute;left:3px;top:2px;min-width:13px;height:13px;border-radius:4px;background:rgba(0,0,0,.74);font:700 7px Arial;display:grid;place-items:center;color:#c7a966;z-index:2}.combat-loadout-slot .slot-copy{display:flex;flex-direction:column;min-width:0}.combat-loadout-slot .slot-copy b{font-size:7.2px;line-height:1.12;white-space:normal}.combat-loadout-slot .slot-copy small{font-size:5.7px;color:#a38d61;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.combat-loadout-slot>i{position:absolute;right:4px;top:4px;width:15px;height:15px;border-radius:4px;background:#25201c;color:#b99b68;display:grid;place-items:center;font-style:normal;font-size:10px}.combat-loadout-slot.empty{border-style:dashed;opacity:.65}.combat-loadout-slot .slot-empty{width:30px;height:30px;border:1px dashed #3b4653;border-radius:5px;display:grid;place-items:center;font-size:16px;color:#5f6a78}.combat-library-tools{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;gap:7px;margin-bottom:8px}.combat-library-tools input{height:30px;border:1px solid #33404e;border-radius:7px;background:#10161d;color:#cbd2db;padding:0 8px;font-size:8px}.combat-filter-row{display:flex;gap:4px;flex-wrap:wrap}.combat-filter-row button{height:30px;border:1px solid #303a47;border-radius:7px;background:#161d25;color:#aab3bf;padding:0 8px;font-size:7px;cursor:pointer}.combat-filter-row button.active{border-color:#8d7442;color:#e0c889;background:#211d17}.combat-library-list{display:grid;gap:5px;max-height:560px;overflow:auto;padding-right:3px}.combat-library-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #29333f;border-radius:8px;background:#141a21;padding:6px 7px}.combat-library-card img{width:36px;height:30px;object-fit:cover;border-radius:4px;background:#090c10}.combat-library-card h3{margin:1px 0 2px;font-size:9px}.combat-library-card p{margin:0;font-size:6.7px;color:#8f9aa8;line-height:1.3}.combat-library-card em{display:block;margin-top:3px;font-size:6.2px;color:#b59a63;font-style:normal}.combat-library-card small{font-size:6px;color:#7d8997;text-transform:uppercase;letter-spacing:.04em}.combat-library-card.locked{opacity:.58}.combat-library-card.installed{border-left-color:#a8894d}.combat-library-action{display:grid;gap:3px;justify-items:end}.combat-library-action span{font-size:6px;color:#b79b62}

/* The combat HUD shows exactly the saved 20-slot layout, compact and always labelled. */
.battle-bottom .skill-grid{grid-template-columns:repeat(10,minmax(58px,1fr));gap:3px}.battle-bottom .skill-slot.technique-slot,.battle-bottom .empty-skill-slot{position:relative;height:43px;grid-template-columns:27px minmax(0,1fr);grid-template-rows:1fr 12px;column-gap:4px;padding:3px 4px;text-align:left}.battle-bottom .skill-slot.technique-slot img{width:27px;height:25px}.battle-bottom .empty-skill-mark{width:27px;height:24px}.battle-bottom .skill-slot .skill-name{font-size:6px;line-height:1.05;-webkit-line-clamp:2}.battle-bottom .skill-slot .cost{font-size:4.8px!important}.battle-bottom .skill-slot .slot-number{position:absolute;top:1px;left:1px;z-index:3;min-width:11px;height:10px;padding:0 2px;border-radius:3px;background:rgba(0,0,0,.8);font:700 5.5px Arial;color:#d8bd80;display:grid;place-items:center}.battle-bottom .skill-slot.locked{opacity:.58;cursor:pointer}.battle-bottom .skill-slot.locked .cost{color:#d19672!important}.battle-bottom .skill-slot.magic-slot{border-color:#34495d}.battle-bottom .skill-slot.magic-slot.selected{border-color:#6f9fc3;box-shadow:0 0 8px rgba(74,136,180,.2)}

@media(max-width:1050px){.loadout-layout{grid-template-columns:1fr}.combat-library-list{max-height:none}.main-nav .nav-btn b{font-size:7px}}
@media(max-width:760px){.loadout-hero{flex-direction:column}.loadout-actions{justify-content:flex-start}.combat-loadout-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.combat-loadout-slot{min-height:54px;grid-template-columns:26px minmax(0,1fr);padding:5px 17px 5px 5px}.combat-loadout-slot img,.combat-loadout-slot .slot-empty{width:26px;height:26px}.combat-library-tools{grid-template-columns:1fr}.combat-library-card{grid-template-columns:32px minmax(0,1fr)}.combat-library-card img{width:32px;height:28px}.combat-library-action{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center}.battle-bottom .skill-grid{grid-template-columns:repeat(5,minmax(50px,1fr));gap:2px}.battle-bottom .skill-slot.technique-slot,.battle-bottom .empty-skill-slot{height:39px;grid-template-columns:24px minmax(0,1fr);padding:2px}.battle-bottom .skill-slot.technique-slot img,.battle-bottom .empty-skill-mark{width:24px;height:22px}.battle-bottom .skill-slot .skill-name{font-size:5.5px}.battle-bottom .skill-slot .cost{font-size:4.4px!important}}

/* arena-133 — combat loadout belongs to Gear/character development */
.gear-techniques-card{grid-column:1/-1;border:1px solid #303b49;border-radius:13px;background:linear-gradient(145deg,#1a212a,#141a21);padding:13px;min-width:0}
.gear-techniques-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid rgba(255,255,255,.07)}
.gear-techniques-head small{font-size:7px;letter-spacing:.12em;color:#a9905d}.gear-techniques-head h2{margin:3px 0 4px;font-size:18px}.gear-techniques-head p{margin:0;color:#8f9aa8;font-size:8px;line-height:1.4;max-width:760px}.gear-techniques-head>span{border:1px solid #5d5037;border-radius:7px;background:#211e18;color:#d2b978;padding:5px 8px;font-size:7px;white-space:nowrap}
.gear-techniques-card .loadout-hero{display:none}
@media(max-width:720px){.gear-techniques-head{flex-direction:column}.gear-techniques-head>span{align-self:flex-start}}
.gear-techniques-card .loadout-hero{display:flex;border:0;border-radius:0;background:transparent;padding:0 0 8px;justify-content:flex-end}
.gear-techniques-card .loadout-hero>div:first-child{display:none}


/* arena-135 — Death Tower testable core */
.tower-transition{border:1px solid #79643d;border-radius:11px;background:#201c15;padding:9px 12px;margin:0 0 10px}.tower-transition>div:first-child{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center}.tower-transition small{grid-column:1/-1;font-size:6px;letter-spacing:.15em;color:#b99a5f}.tower-transition b{font-size:9px}.tower-transition span{font:700 11px Georgia,serif;color:#e2c478}.tower-transition-line{height:5px;border-radius:9px;background:#11151a;overflow:hidden;margin-top:7px}.tower-transition-line i{display:block;height:100%;background:linear-gradient(90deg,#c19a50,#e1c77f);transition:width .25s linear}.tower-hunter-note{margin:-2px 0 10px;padding:7px 10px;border-left:2px solid #8c5e45;background:rgba(115,64,44,.09);font-size:7px;color:#a9907d}.tower-test-exit{margin-left:auto;align-self:center}.tower-build-card{margin-top:10px;border:1px solid #303b49;border-radius:13px;background:#121820;padding:12px}.tower-build-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid rgba(255,255,255,.06);padding-bottom:9px;margin-bottom:9px}.tower-build-head small{font-size:6px;letter-spacing:.12em;color:#a78e5d}.tower-build-head h4{font:700 15px Georgia,serif;margin:3px 0}.tower-build-head p{font-size:7px;color:#7d8997;margin:0}.tower-build-head>div:last-child{display:grid;grid-template-columns:auto auto;gap:2px 6px;align-items:baseline;text-align:right}.tower-build-head>div:last-child b{font:700 14px Georgia,serif;color:#d8bb76}.tower-build-head>div:last-child small{letter-spacing:0;color:#7d8997}.tower-build-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tower-build-columns>div{border:1px solid rgba(255,255,255,.055);border-radius:9px;padding:8px;background:#10151b}.tower-build-columns h5{font:700 10px Georgia,serif;color:#cdb274;margin:0 0 5px}.tower-build-row{display:flex;justify-content:space-between;gap:6px;align-items:center;padding:3px 0;border-bottom:1px solid rgba(255,255,255,.035)}.tower-build-row:last-child{border-bottom:0}.tower-build-row span{font-size:7px;color:#8c97a4}.tower-build-row span b{color:#e2e6eb;margin-left:3px}.tower-build-row div{display:flex;gap:2px}.tower-build-row button{width:22px;height:20px;border:1px solid #394453;border-radius:5px;background:#1a222b;color:#cfb471;cursor:pointer;font-size:11px;line-height:1}.tower-build-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:9px}.tower-build-actions button:disabled{opacity:.35;cursor:not-allowed}.tower-departed{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #493b34;border-radius:16px;background:radial-gradient(circle at 50% 20%,rgba(128,65,50,.14),transparent 45%),#12161c;padding:28px}.tower-departed small{font-size:7px;letter-spacing:.16em;color:#a57561}.tower-departed h2{font:700 23px Georgia,serif;margin:8px 0}.tower-departed p{font-size:9px;color:#8792a0;max-width:520px;margin:0 0 15px}.battle-equipment{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);z-index:10;display:flex;gap:2px;max-width:92%;padding:3px 4px;border:1px solid rgba(75,86,104,.55);border-radius:7px;background:rgba(9,12,16,.78);backdrop-filter:blur(4px)}.battle-equipment span{width:22px;height:22px;border:1px solid #3c4655;border-radius:4px;background:#171d25;display:grid;place-items:center;font-size:9px}.battle-equipment span img{width:20px!important;height:20px!important;max-width:20px!important;object-fit:contain!important;transform:none!important;filter:none!important}.battle-equipment small{font-size:6px;color:#687486;white-space:nowrap;padding:5px 3px}.fighter-right .battle-equipment{direction:rtl}.fighter-right .battle-equipment span img{transform:none!important}.turn-orb{white-space:normal}
@media(max-width:800px){.tower-build-columns{grid-template-columns:1fr}.tower-test-exit{width:100%;margin-left:0}.battle-equipment{max-width:120px;overflow:hidden}.battle-equipment span{width:18px;height:18px;min-width:18px}.battle-equipment span img{width:16px!important;height:16px!important;max-width:16px!important}}
.battle-equipment{width:min(170px,92%);flex-wrap:wrap;justify-content:center}

/* arena-139: two-step account + character questionnaire */
.auth-shell{min-height:650px}
.auth-stepper{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:0 0 18px}
.auth-stepper>span{display:flex;align-items:center;gap:7px;color:#697584;font-size:8px;letter-spacing:.06em;text-transform:uppercase}
.auth-stepper>span b{width:24px;height:24px;display:grid;place-items:center;border:1px solid #344052;border-radius:50%;font:700 10px Georgia,serif;color:#8290a0;background:#0b1016}
.auth-stepper>span em{font-style:normal}.auth-stepper>i{height:1px;background:#2e3847}
.auth-stepper>span.active{color:#d8bd79}.auth-stepper>span.active b{border-color:#967944;color:#e8cc82;background:rgba(151,121,67,.13)}
.auth-account-step,.register-account-extra,.register-profile-step{display:grid;gap:11px}
.auth-profile-grid{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:8px}
.auth-shell .auth-card input[type="email"],.auth-shell .auth-card input[type="date"],.auth-shell .auth-card textarea{width:100%;min-height:43px;border:1px solid #354052;border-radius:9px;background:#0b1016;color:#eef2f7;padding:12px;outline:0;font:inherit}
.auth-shell .auth-card textarea{min-height:82px;resize:vertical;line-height:1.45}
.auth-shell .auth-card input[type="email"]:focus,.auth-shell .auth-card input[type="date"]:focus,.auth-shell .auth-card textarea:focus{border-color:#9c7d42;box-shadow:0 0 0 3px rgba(156,125,66,.08)}
.auth-avatar-picker{border:0;padding:0;margin:0;display:grid;gap:7px}.auth-avatar-picker legend{font-size:8px;letter-spacing:.08em;color:#919cab;text-transform:uppercase}
.auth-avatar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.auth-avatar-grid label{position:relative;display:block;cursor:pointer}.auth-avatar-grid input{position:absolute;opacity:0;pointer-events:none}.auth-avatar-grid img{width:100%;aspect-ratio:1/1.18;object-fit:cover;display:block;border:1px solid #354052;border-radius:9px;background:#0b1016;filter:saturate(.78);opacity:.72;transition:.15s ease}
.auth-avatar-grid input:checked+img{border-color:#c3a258;box-shadow:0 0 0 2px rgba(195,162,88,.16);filter:none;opacity:1;transform:translateY(-1px)}
.auth-actions{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:4px}.auth-actions>.auth-submit{margin-top:0}.auth-actions>.secondary-btn.hidden+.auth-submit{grid-column:1/-1}
.register-profile-step .auth-consent{margin-top:1px}
@media(max-width:800px){.auth-shell{max-height:96vh;overflow:auto}.auth-profile-grid{grid-template-columns:1fr}.auth-avatar-grid{grid-template-columns:repeat(3,1fr)}}

/* arena-139: source item art + compact jewelry + no fake scroll icons */
.equipped-grid{display:block;padding:8px}
.gear-major-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.gear-jewelry-wrap{margin-top:7px;padding-top:7px;border-top:1px solid rgba(255,255,255,.06)}
.gear-jewelry-title{margin:0 0 5px 2px;font-size:6px;letter-spacing:.13em;text-transform:uppercase;color:#746f66}
.gear-jewelry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.equip-slot.major{min-height:52px;grid-template-columns:38px minmax(0,1fr) 18px;padding:5px}
.equip-slot.major img{width:38px;height:38px;background:transparent!important;image-rendering:auto}
.equip-slot.jewelry{min-height:34px;grid-template-columns:22px minmax(0,1fr) 15px;gap:4px;padding:3px 4px;border-radius:6px}
.equip-slot.jewelry img{width:22px;height:22px;background:transparent!important;border-radius:3px;image-rendering:auto}
.equip-slot.jewelry span small{font-size:4.9px}.equip-slot.jewelry span b{font-size:5.5px}
.equip-slot.jewelry button{width:15px;height:15px;font-size:8px}
.equip-slot.jewelry.empty{grid-template-columns:1fr;min-height:30px;padding:3px}
.equip-slot.jewelry.empty span{font-size:5.4px}.equip-slot.jewelry.empty small{font-size:4.8px}
.equipment-sets{margin-top:6px}
.inventory-live-item img,.shop-item-image img{background:transparent!important;border:0!important;object-fit:contain!important}
.inventory-live-item img{padding:2px}
.shop-item-image{background:radial-gradient(circle at 50% 45%,rgba(117,97,59,.07),rgba(10,14,19,.86) 72%)}
.basic-technique-icon{display:grid;place-items:center;flex:0 0 auto;border:1px solid #4b4130;border-radius:5px;background:radial-gradient(circle at 50% 35%,#393224,#15181d 72%);color:#dbc27c;font:700 16px/1 Georgia,serif;text-shadow:0 1px 3px #000}
.basic-technique-icon.loadout-icon{width:30px;height:30px}
.basic-technique-icon.library-icon{width:36px;height:30px}
.basic-technique-icon.battle-basic{width:30px;height:25px;font-size:13px}
.combat-loadout-slot img,.combat-library-card img,.battle-bottom .skill-slot.technique-slot img{object-fit:contain!important;background:#090c10!important}
@media(max-width:760px){
  .gear-jewelry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .equip-slot.jewelry{min-height:32px}
  .basic-technique-icon.loadout-icon{width:26px;height:26px;font-size:13px}
  .basic-technique-icon.library-icon{width:32px;height:28px;font-size:13px}
  .basic-technique-icon.battle-basic{width:24px;height:22px;font-size:11px}
}

/* arena-140: telegraph, clan marks, development undo, hostel sleep */
.telegraph-bar{position:relative;display:flex;align-items:center;gap:10px;min-height:38px;padding:5px 14px;border-bottom:1px solid rgba(214,177,91,.22);background:rgba(14,17,23,.97);z-index:25}.telegraph-toggle{display:flex;align-items:center;gap:7px;border:1px solid rgba(214,177,91,.28);background:#151a22;color:#e7d4a5;border-radius:7px;padding:6px 10px;cursor:pointer}.telegraph-toggle i{min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#a74437;color:#fff;font-style:normal;font-size:11px;display:inline-flex;align-items:center;justify-content:center}.telegraph-latest{min-width:0;display:flex;gap:8px;align-items:center;font-size:12px;color:#aeb5c1;white-space:nowrap;overflow:hidden}.telegraph-latest b{color:#e7d4a5;flex:0 0 auto}.telegraph-latest span{overflow:hidden;text-overflow:ellipsis}.telegraph-list{position:absolute;top:calc(100% + 4px);left:14px;width:min(560px,calc(100vw - 28px));max-height:360px;overflow:auto;background:#10141b;border:1px solid rgba(214,177,91,.3);box-shadow:0 16px 45px rgba(0,0,0,.55);border-radius:9px;padding:6px}.telegraph-list.hidden{display:none}.telegraph-item{width:100%;display:grid;text-align:left;gap:3px;padding:9px 10px;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:#d6d9df;cursor:pointer}.telegraph-item.unread{background:rgba(183,137,55,.08)}.telegraph-item b{color:#e5c87c}.telegraph-item span{font-size:12px;line-height:1.35}.telegraph-item small{color:#707986}.clan-mark,.clan-mini-mark{display:inline-flex;align-items:center;justify-content:center;color:#d6b463;margin-right:.35em;text-shadow:0 0 8px rgba(215,174,78,.22)}.clan-mark.large{width:34px;height:34px;border:1px solid rgba(214,177,91,.3);border-radius:8px;font-size:21px;margin-right:10px}.clan-mini-mark{font-size:12px}.dev-controls{display:inline-flex;gap:4px;align-items:center}.dev-controls .minus{color:#d8b9ad;border-color:rgba(190,103,88,.35)}.hostel-sleep{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0;padding:15px 18px;border:1px solid rgba(95,128,165,.25);border-radius:10px;background:linear-gradient(110deg,rgba(30,43,61,.72),rgba(20,23,31,.85))}.hostel-sleep h3{margin:3px 0 5px}.hostel-sleep p{margin:0;color:#9ba6b4}.wear-ok{color:#89b78b}.wear-no{color:#d4aa73}.auction-inv.equipped{opacity:.7}.tower-build-waiting{margin-bottom:14px}.clan-create select{min-height:38px}
@media(max-width:900px){.telegraph-latest{display:none}.hostel-sleep{align-items:flex-start;flex-direction:column}}

/* arena-142: explicit development commit + dorm sleep state */
.development-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(180,155,100,.18)}
.development-actions>div{margin-right:auto;display:flex;flex-direction:column;gap:3px}.development-actions small{opacity:.68;max-width:620px}
.hostel-sleep.sleeping{box-shadow:inset 0 0 0 1px rgba(122,157,196,.24);background:linear-gradient(90deg,rgba(40,57,78,.38),rgba(18,22,29,.5))}
@media(max-width:760px){.development-actions{flex-wrap:wrap}.development-actions>div{width:100%}}


/* arena-146 — assembled battle mode from the approved Arena mockup.
   Desktop geometry is deliberately mirrored: identical outer insets and
   identical player/enemy side widths. */
.battle-card-v146{
  min-height:0;
  border-color:#4b402b;
  border-radius:14px;
  background:#080d16;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 18px 56px rgba(0,0,0,.42),inset 0 0 0 1px rgba(215,181,105,.05);
}
.battle-card-v146 .battle-top-hud{
  position:relative;
  z-index:24;
  flex:0 0 88px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:10px 16px 9px;
  border-bottom:1px solid rgba(196,157,79,.35);
  background:
    radial-gradient(circle at 50% -80%,rgba(91,61,139,.20),transparent 54%),
    linear-gradient(180deg,#10182a 0,#0a111d 100%);
}
.battle-card-v146 .battle-top-hud:before,
.battle-card-v146 .battle-top-hud:after{
  content:"";
  position:absolute;
  top:11px;
  bottom:11px;
  width:1px;
  background:linear-gradient(180deg,transparent,#816a3d 28%,#c6a45e 50%,#816a3d 72%,transparent);
  opacity:.72;
}
.battle-card-v146 .battle-top-hud:before{left:calc(50% - 56px)}
.battle-card-v146 .battle-top-hud:after{right:calc(50% - 56px)}

.battle-card-v146 .fighter-hud{
  min-width:0;
  padding:8px 14px 7px;
  gap:4px;
  border:1px solid rgba(170,137,70,.42);
  border-radius:11px;
  background:linear-gradient(180deg,rgba(20,29,49,.94),rgba(9,15,27,.94));
  box-shadow:inset 0 0 18px rgba(25,63,101,.15),0 7px 20px rgba(0,0,0,.22);
}
.battle-card-v146 .fighter-hud-left{grid-column:1}
.battle-card-v146 .fighter-hud-right{grid-column:3}
.battle-card-v146 .hud-title{font-size:12px;color:#efe2bd}
.battle-card-v146 .hud-title a{color:#efe2bd;text-decoration:none}
.battle-card-v146 .hud-title span{font-size:9px;color:#a99772}
.battle-card-v146 .bar{
  height:10px;
  border-color:#51462f;
  background:#080d14;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.8);
}
.battle-card-v146 .bar.hp i{background:linear-gradient(90deg,#791e2d,#c5434b 58%,#e07661)}
.battle-card-v146 .bar.mana i{background:linear-gradient(90deg,#173b77,#2f70ba 58%,#6ca4d7)}
.battle-card-v146 .bar span{font-size:7px}
.battle-card-v146 .effect-strip{height:13px}
.battle-card-v146 .round-state{
  grid-column:2;
  grid-row:auto;
  width:62px;
  height:62px;
  border-color:#8f7440;
  background:
    radial-gradient(circle at 50% 40%,rgba(100,54,145,.30),transparent 43%),
    radial-gradient(circle,#222b3c 0,#0d1420 70%);
  box-shadow:inset 0 0 18px rgba(154,102,205,.16),0 0 0 2px rgba(173,137,65,.08);
}
.battle-card-v146 .round-state small{color:#b4a176}
.battle-card-v146 .round-state b{color:#e4c473}
.battle-card-v146 .battle-mode-badge{
  top:5px;
  padding:3px 7px;
  border-color:#6b5734;
  background:rgba(6,10,17,.86);
  font-size:6px;
}
.battle-card-v146 .battle-exit{
  top:11px;
  left:16px;
  border-color:#665537;
  background:rgba(9,14,23,.88);
  color:#b6aa8d;
}

.battle-card-v146 .battlefield{
  position:relative;
  flex:1 1 auto;
  min-height:470px;
  height:clamp(470px,36vw,520px);
  display:grid;
  grid-template-columns:minmax(330px,1fr) 300px minmax(330px,1fr);
  align-items:stretch;
  gap:0;
  padding:0 16px 14px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(5,10,19,.04),rgba(4,7,12,.20)),
    url("/assets/battle/arena-bg.png") center 53% / cover no-repeat;
}
.battle-card-v146 .battlefield:before{
  content:"";
  position:absolute;
  inset:0;
  height:auto;
  clip-path:none;
  background:
    linear-gradient(90deg,rgba(5,8,13,.36),transparent 22%,transparent 78%,rgba(5,8,13,.36)),
    linear-gradient(180deg,transparent 52%,rgba(3,6,10,.24) 100%);
  pointer-events:none;
}
.battle-card-v146 .battlefield:after{
  content:"";
  left:6%;
  right:6%;
  bottom:21px;
  height:1px;
  opacity:.32;
  background:radial-gradient(ellipse,#c39d55 0,rgba(195,157,85,.16) 48%,transparent 74%);
}
.battle-card-v146 .arena-glow{height:64%;top:16%;opacity:.10;filter:blur(28px)}
.battle-card-v146 .arena-glow-left{left:-12%;background:#315f9a}
.battle-card-v146 .arena-glow-right{right:-12%;background:#704099}

.battle-card-v146 .fighter{
  position:relative;
  z-index:5;
  width:100%;
  height:100%;
  min-width:0;
  align-self:stretch;
  justify-self:stretch;
  display:block;
  overflow:visible;
}
.battle-card-v146 .fighter>img{
  position:absolute;
  bottom:8px;
  height:auto;
  max-height:91%;
  width:auto;
  max-width:calc(100% - 130px);
  object-fit:contain;
  transform:none;
  transform-origin:50% 100%;
  filter:drop-shadow(0 15px 16px rgba(0,0,0,.52)) drop-shadow(0 0 7px rgba(42,75,121,.13));
}
.battle-card-v146 .fighter-left>img{right:2px}
.battle-card-v146 .fighter-right>img{left:2px;transform:scaleX(-1)}
.battle-card-v146 .fighter-shadow{
  bottom:10px;
  width:48%;
  height:16px;
  background:rgba(0,0,0,.48);
  filter:blur(7px);
}
.battle-card-v146 .fighter-left .fighter-shadow{right:5%;left:auto}
.battle-card-v146 .fighter-right .fighter-shadow{left:5%;right:auto}

/* Equipment: the exact 14 gameplay slots arranged as two neighboring columns.
   Left: helmet, bracelet, weapon, armor, belt.
   Right: earrings, necklace, three rings, gloves, shield, leggings, boots. */
.battle-card-v146 .battle-equipment{
  position:absolute;
  z-index:12;
  bottom:20px;
  width:122px;
  height:auto;
  max-width:none;
  padding:4px;
  display:block;
  border:1px solid #75613a;
  border-radius:7px;
  background:
    radial-gradient(circle at 50% 12%,rgba(78,52,122,.16),transparent 34%),
    linear-gradient(180deg,rgba(10,21,39,.97),rgba(5,12,24,.97));
  box-shadow:inset 0 0 18px rgba(37,65,104,.30),0 10px 24px rgba(0,0,0,.40);
  backdrop-filter:none;
  transform:none;
}
.battle-card-v146 .fighter-left .battle-equipment{left:0}
.battle-card-v146 .fighter-right .battle-equipment{right:0;left:auto;direction:ltr}
.battle-card-v146 .battle-gear-frame{
  display:grid;
  grid-template-columns:54px 54px;
  gap:4px;
  align-items:start;
}
.battle-card-v146 .battle-gear-col{display:grid;gap:4px}
.battle-card-v146 .battle-gear-major{grid-template-rows:54px 46px 58px 66px 34px}
.battle-card-v146 .battle-gear-secondary{grid-template-rows:34px 46px 34px 46px 58px 66px 42px}
.battle-card-v146 .battle-gear-cell{
  width:100%;
  height:100%;
  min-width:0;
  border:1px solid #7b653b;
  border-radius:4px;
  background:
    linear-gradient(145deg,rgba(27,47,71,.56),rgba(7,15,27,.88));
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:
    inset 1px 1px 0 rgba(218,184,112,.10),
    inset -1px -1px 0 rgba(0,0,0,.70);
}
.battle-card-v146 .battle-gear-cell.empty{border-color:#594b32}
.battle-card-v146 .battle-gear-cell.empty i{
  font-style:normal;
  font-family:Georgia,serif;
  font-size:20px;
  color:#26384a;
  text-shadow:1px 1px 0 rgba(168,143,90,.22),-1px -1px 0 rgba(0,0,0,.72);
  opacity:.78;
}
.battle-card-v146 .battle-gear-cell.filled{
  border-color:#a38547;
  box-shadow:inset 0 0 9px rgba(90,63,139,.14),0 0 0 1px rgba(201,167,94,.05);
}
.battle-card-v146 .battle-gear-cell img{
  width:94%!important;
  height:94%!important;
  max-width:94%!important;
  object-fit:contain!important;
  transform:none!important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))!important;
  background:transparent!important;
}
.battle-card-v146 .battle-ring-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  min-width:0;
}
.battle-card-v146 .battle-ring-row .battle-gear-cell.empty i{font-size:12px}

.battle-card-v146 .battle-center-stack{
  position:relative;
  z-index:15;
  grid-column:2;
  align-self:center;
  justify-self:center;
  width:270px;
  max-height:calc(100% - 12px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding-top:9px;
}
.battle-card-v146 .combat-console{
  position:relative;
  width:176px;
  grid-template-columns:44px 64px 44px;
  gap:7px;
  padding:9px;
  border:1px solid #8a7040;
  border-radius:20px;
  background:
    radial-gradient(circle at 50% 46%,rgba(83,47,132,.18),transparent 38%),
    linear-gradient(180deg,rgba(13,26,47,.96),rgba(5,13,26,.97));
  box-shadow:0 14px 30px rgba(0,0,0,.45),inset 0 0 17px rgba(41,76,119,.24);
}
.battle-card-v146 .zone-btn{
  border-color:#745f38;
  background:linear-gradient(180deg,#142841,#081424);
  border-radius:7px;
}
.battle-card-v146 .zone-btn:hover{border-color:#b09251}
.battle-card-v146 .zone-btn.selected{
  border-color:#d5b263;
  background:linear-gradient(180deg,#342d28,#191c20);
}
.battle-card-v146 .block-stack .zone-btn.selected{
  border-color:#658fc1;
  background:linear-gradient(180deg,#18324d,#0b1728);
}
.battle-card-v146 .micro-action{
  border-color:#5b4e38;
  background:#07111f;
  color:#b7a46f;
}
.battle-card-v146 .turn-btn{
  border-color:#a78342;
  background:
    radial-gradient(circle at 50% 34%,#67502c 0,#2b241b 52%,#0e1219 100%);
  color:#f1d383;
}

.battle-card-v146 .battle-bottom{
  position:relative;
  width:270px;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:7px;
  border:1px solid #80683c;
  border-radius:11px;
  background:
    radial-gradient(circle at 50% 0,rgba(77,50,122,.15),transparent 45%),
    linear-gradient(180deg,rgba(8,20,37,.97),rgba(4,11,22,.97));
  box-shadow:0 12px 26px rgba(0,0,0,.38),inset 0 0 16px rgba(38,67,103,.20);
}
.battle-card-v146 .tactics-panel{
  order:2;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:3px;
}
.battle-card-v146 .tactics-panel span{
  height:24px;
  border-color:#4c4538;
  border-radius:5px;
  background:#091522;
  flex-direction:row;
  gap:3px;
}
.battle-card-v146 .tactics-panel i{font-size:8px}
.battle-card-v146 .tactics-panel b{font-size:7px;margin:0}
.battle-card-v146 .skills-wrap{order:1;width:100%}
.battle-card-v146 .skills-head{
  height:23px;
  margin:0 0 5px;
  padding:0 2px;
}
.battle-card-v146 .skills-title{display:flex;align-items:baseline;gap:5px}
.battle-card-v146 .skills-title b{font:700 8px Georgia,serif;color:#d7b96e;letter-spacing:.10em}
.battle-card-v146 .skills-title small{font-size:5.8px;color:#7e89a0}
.battle-card-v146 .rage{display:flex;align-items:center;gap:4px}
.battle-card-v146 .rage>span{font-size:5.6px;color:#8f7d5a}
.battle-card-v146 .rage>div{width:46px;height:5px}
.battle-card-v146 .rage>b{font-size:5.8px}
.battle-card-v146 .battle-bottom .skill-grid{
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:repeat(5,44px);
  grid-auto-rows:44px;
  justify-content:center;
  gap:4px;
}
.battle-card-v146 .battle-bottom .skill-slot.technique-slot,
.battle-card-v146 .battle-bottom .empty-skill-slot{
  width:44px;
  height:44px;
  min-width:0;
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:1fr;
  place-items:center;
  padding:3px;
  border:1px solid #6d5936;
  border-radius:7px;
  background:linear-gradient(145deg,#0c1c31,#050c18);
  overflow:hidden;
}
.battle-card-v146 .battle-bottom .skill-slot.technique-slot img{
  width:37px!important;
  height:37px!important;
  max-width:37px!important;
  object-fit:contain!important;
  background:#050a11!important;
  border-radius:5px;
}
.battle-card-v146 .battle-bottom .empty-skill-mark{
  width:33px;
  height:33px;
  border:1px solid #3d4960;
  border-radius:5px;
  display:grid;
  place-items:center;
  font-size:16px;
  color:#34445b;
}
.battle-card-v146 .battle-bottom .skill-name,
.battle-card-v146 .battle-bottom .cost{display:none!important}
.battle-card-v146 .battle-bottom .skill-slot .slot-number{
  top:1px;
  left:1px;
  min-width:11px;
  height:10px;
  font-size:5px;
  border-radius:3px;
}
.battle-card-v146 .battle-bottom .skill-slot.selected{
  border-color:#e1bd67;
  box-shadow:0 0 0 1px rgba(225,189,103,.25),0 0 10px rgba(214,176,82,.24);
}
.battle-card-v146 .battle-bottom .skill-slot.locked{opacity:.45}

.battle-card-v146 .opponent-strip{
  position:relative;
  width:270px;
  min-height:32px;
  max-height:37px;
  display:flex;
  justify-content:center;
  gap:4px;
  padding:3px;
  border:1px solid #5e5035;
  border-radius:8px;
  background:rgba(5,12,22,.92);
  overflow-x:auto;
}
.battle-card-v146 .opponent-chip{
  height:28px;
  min-width:118px;
  grid-template-columns:22px 1fr;
  gap:5px;
  border-radius:6px;
  padding:2px 5px 2px 3px;
  background:#091523;
}
.battle-card-v146 .opponent-chip.ally{display:none}
.battle-card-v146 .opponent-chip img{width:22px;height:23px}
.battle-card-v146 .opponent-chip b{font-size:6.7px}
.battle-card-v146 .opponent-chip small{font-size:5.7px}

/* Keep the global chat visually aligned with the battle card: equal left/right insets. */
.view[data-view-panel="arena"]{width:100%;max-width:1540px;margin-inline:auto}
.global-chat{width:calc(100% - 32px);max-width:1540px;margin-inline:auto}

/* Desktop compression: preserve the mirrored geometry instead of letting one
   fighter drift closer to an edge. */
@media(max-width:1180px){
  .battle-card-v146 .battlefield{
    grid-template-columns:minmax(270px,1fr) 270px minmax(270px,1fr);
    padding-inline:12px;
  }
  .battle-card-v146 .battle-center-stack,
  .battle-card-v146 .battle-bottom,
  .battle-card-v146 .opponent-strip{width:256px}
  .battle-card-v146 .battle-bottom .skill-grid{grid-template-columns:repeat(5,44px);grid-auto-rows:44px}
  .battle-card-v146 .battle-bottom .skill-slot.technique-slot,
  .battle-card-v146 .battle-bottom .empty-skill-slot{width:44px;height:44px}
  .battle-card-v146 .battle-bottom .skill-slot.technique-slot img{width:37px!important;height:37px!important}
  .battle-card-v146 .battle-equipment{width:108px}
  .battle-card-v146 .battle-gear-frame{grid-template-columns:47px 47px}
  .battle-card-v146 .fighter>img{max-width:calc(100% - 112px)}
}
@media(max-width:880px){
  .battle-card-v146 .battle-top-hud{grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr);gap:7px;padding-inline:8px}
  .battle-card-v146 .battlefield{min-height:500px;grid-template-columns:minmax(205px,1fr) 230px minmax(205px,1fr);padding-inline:7px}
  .battle-card-v146 .battle-center-stack,
  .battle-card-v146 .battle-bottom,
  .battle-card-v146 .opponent-strip{width:220px}
  .battle-card-v146 .combat-console{transform:scale(.88);margin:-9px 0}
  .battle-card-v146 .battle-bottom .skill-grid{grid-template-columns:repeat(5,37px);grid-auto-rows:37px;gap:3px}
  .battle-card-v146 .battle-bottom .skill-slot.technique-slot,
  .battle-card-v146 .battle-bottom .empty-skill-slot{width:37px;height:37px}
  .battle-card-v146 .battle-bottom .skill-slot.technique-slot img{width:31px!important;height:31px!important}
  .battle-card-v146 .battle-equipment{width:88px;transform:scale(.88);transform-origin:bottom left}
  .battle-card-v146 .fighter-right .battle-equipment{transform-origin:bottom right}
  .battle-card-v146 .fighter>img{max-width:calc(100% - 78px)}
}
@media(max-width:680px){
  .battle-card-v146 .battlefield{
    min-height:570px;
    height:auto;
    grid-template-columns:minmax(110px,1fr) 200px minmax(110px,1fr);
  }
  .battle-card-v146 .battle-equipment{display:none}
  .battle-card-v146 .fighter>img{max-width:100%;max-height:58%;bottom:15px}
  .battle-card-v146 .fighter-left>img{right:0}
  .battle-card-v146 .fighter-right>img{left:0}
  .battle-card-v146 .battle-center-stack,
  .battle-card-v146 .battle-bottom,
  .battle-card-v146 .opponent-strip{width:194px}
  .battle-card-v146 .battle-bottom .skill-grid{grid-template-columns:repeat(5,32px);grid-auto-rows:32px;gap:3px}
  .battle-card-v146 .battle-bottom .skill-slot.technique-slot,
  .battle-card-v146 .battle-bottom .empty-skill-slot{width:32px;height:32px}
  .battle-card-v146 .battle-bottom .skill-slot.technique-slot img{width:27px!important;height:27px!important}
  .battle-card-v146 .tactics-panel span{height:20px}
}

/* arena-147: selectable modern character appearances in inventory */
.appearance-picker{margin:0 7px 7px;padding:7px;border:1px solid #303b49;border-radius:9px;background:linear-gradient(180deg,#151b22,#10151b)}
.appearance-picker-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}.appearance-picker-head span{font-size:6.5px;letter-spacing:.11em;color:#d2b772}.appearance-picker-head small{font-size:5.8px;color:#667382}
.appearance-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.appearance-choice{position:relative;height:64px;overflow:hidden;border:1px solid #313d4b;border-radius:7px;background:#0c1117;padding:0;cursor:pointer;transition:.14s}.appearance-choice:hover{border-color:#756544;transform:translateY(-1px)}.appearance-choice.active{border-color:#c3a258;box-shadow:0 0 0 1px rgba(195,162,88,.2),inset 0 0 14px rgba(195,162,88,.09)}.appearance-choice img{width:100%;height:100%;object-fit:contain;object-position:50% 100%;display:block;filter:saturate(.82);background:radial-gradient(circle at 50% 70%,#1e2732,#0b0f14 70%)}.appearance-choice.active img{filter:none}.appearance-choice i{position:absolute;left:2px;right:2px;bottom:2px;border-radius:4px;background:rgba(5,8,12,.78);color:#7d8997;font:600 5px Arial,sans-serif;font-style:normal;text-transform:uppercase;letter-spacing:.04em;padding:2px}.appearance-choice.active i{color:#e6c87d;background:rgba(50,40,22,.82)}
@media(max-width:720px){.appearance-grid{grid-template-columns:repeat(5,minmax(42px,1fr))}.appearance-choice{height:72px}}

/* arena-148 — battle focus and actual approved UI artwork.
   In combat the club chrome is intentionally removed; only combat HUD, arena,
   controls and chat remain. Left/right geometry uses identical insets. */
body.battle-focus{overflow-x:hidden;background:#050911}
body.battle-focus .topbar,
body.battle-focus .telegraph-bar{display:none!important}
body.battle-focus .view-stack{padding:0!important}
body.battle-focus .view[data-view-panel="arena"]{width:100%!important;max-width:none!important;margin:0!important}
body.battle-focus #battleSession{width:100%;margin:0}
body.battle-focus .battle-card-v146{
  width:100%;
  margin:0;
  border-left:0;
  border-right:0;
  border-radius:0;
  min-height:0;
}
body.battle-focus .global-chat{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-left:0;
  border-right:0;
  border-radius:0;
}

/* tighter real battle HUD: this is game data, not the removed site header */
body.battle-focus .battle-card-v146 .battle-top-hud{
  flex-basis:82px;
  padding:8px 14px 8px;
  gap:12px;
}
body.battle-focus .battle-card-v146 .battle-exit{left:auto;right:14px;top:6px;z-index:30}
body.battle-focus .battle-card-v146 .battle-mode-badge{left:50%;right:auto;transform:translateX(-50%);top:4px}

/* Full-width arena with mathematically symmetric side gutters. */
body.battle-focus .battle-card-v146 .battlefield{
  --battle-side:14px;
  min-height:560px;
  height:clamp(560px,calc(100vh - 82px),720px);
  grid-template-columns:minmax(350px,1fr) 292px minmax(350px,1fr);
  padding:0 var(--battle-side) 12px;
  background-position:center 55%;
}

/* Use the approved two-column equipment artwork as the actual panel shell.
   Gameplay item images are laid over the embossed empty silhouettes. */
body.battle-focus .battle-card-v146 .battle-equipment{
  bottom:18px;
  width:146px;
  height:292px;
  padding:7px 8px 8px;
  border:0;
  border-radius:0;
  background:url('/assets/battle/equipment-panel.png') center/100% 100% no-repeat;
  box-shadow:0 14px 28px rgba(0,0,0,.42);
  overflow:hidden;
}
body.battle-focus .battle-card-v146 .fighter-left .battle-equipment{left:0}
body.battle-focus .battle-card-v146 .fighter-right .battle-equipment{right:0;left:auto}
body.battle-focus .battle-card-v146 .battle-gear-frame{
  height:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:6px;
  align-items:stretch;
}
body.battle-focus .battle-card-v146 .battle-gear-col{height:100%;gap:0}
body.battle-focus .battle-card-v146 .battle-gear-major{
  grid-template-rows:1.18fr .88fr 1.15fr 1.48fr .74fr;
}
body.battle-focus .battle-card-v146 .battle-gear-secondary{
  grid-template-rows:.55fr .72fr .65fr 1fr 1.35fr 1.47fr .82fr;
}
body.battle-focus .battle-card-v146 .battle-gear-cell{
  border:0!important;
  border-radius:4px;
  background:transparent!important;
  box-shadow:none!important;
  margin:4px 3px;
  overflow:hidden;
}
body.battle-focus .battle-card-v146 .battle-gear-cell.empty i{display:none!important}
body.battle-focus .battle-card-v146 .battle-gear-cell.filled{
  border:1px solid rgba(205,167,85,.74)!important;
  background:rgba(4,10,18,.78)!important;
  box-shadow:inset 0 0 10px rgba(52,79,118,.28),0 0 7px rgba(0,0,0,.34)!important;
}
body.battle-focus .battle-card-v146 .battle-gear-cell img{
  width:92%!important;height:92%!important;max-width:92%!important;max-height:92%!important;
}
body.battle-focus .battle-card-v146 .battle-ring-row{gap:0;height:100%}
body.battle-focus .battle-card-v146 .battle-ring-row .battle-gear-cell{margin:4px 1px}

/* Characters occupy their side only; identical reserved width for equipment. */
body.battle-focus .battle-card-v146 .fighter>img{
  bottom:6px;
  max-height:96%;
  max-width:calc(100% - 148px);
}
body.battle-focus .battle-card-v146 .fighter-left>img{right:0}
body.battle-focus .battle-card-v146 .fighter-right>img{left:0}

/* Control panel: centered between the fighters, larger and visually separated
   from the skill dock so it reads as a proper combat console. */
body.battle-focus .battle-card-v146 .battle-center-stack{
  width:278px;
  align-self:stretch;
  justify-content:flex-start;
  padding-top:14px;
  gap:10px;
}
body.battle-focus .battle-card-v146 .combat-console{
  width:188px;
  grid-template-columns:46px 68px 46px;
  gap:7px;
  padding:10px;
  border:1px solid #aa8847;
  border-radius:18px;
  background:
    radial-gradient(circle at 50% 38%,rgba(98,55,153,.22),transparent 42%),
    linear-gradient(180deg,rgba(13,27,50,.98),rgba(4,11,23,.99));
  box-shadow:0 16px 34px rgba(0,0,0,.5),inset 0 0 0 1px rgba(229,191,103,.08),inset 0 0 22px rgba(32,69,112,.28);
}
body.battle-focus .battle-card-v146 .combat-console:before,
body.battle-focus .battle-card-v146 .combat-console:after{
  content:"";position:absolute;left:50%;width:28px;height:8px;transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,#c6a45d 25%,#6d4d9c 50%,#c6a45d 75%,transparent);
  opacity:.75;pointer-events:none;
}
body.battle-focus .battle-card-v146 .combat-console:before{top:-5px}
body.battle-focus .battle-card-v146 .combat-console:after{bottom:-5px}
body.battle-focus .battle-card-v146 .zone-stack{grid-template-rows:repeat(4,42px);gap:5px}
body.battle-focus .battle-card-v146 .zone-btn{width:46px;height:42px}
body.battle-focus .battle-card-v146 .console-core{grid-template-rows:30px 1fr 50px 30px}
body.battle-focus .battle-card-v146 .turn-btn{height:50px}

/* Skills stay under the combat console and do not float over the heroes. */
body.battle-focus .battle-card-v146 .battle-bottom{width:278px;padding:8px}
body.battle-focus .battle-card-v146 .opponent-strip{width:278px}

@media(max-width:1180px){
  body.battle-focus .battle-card-v146 .battlefield{grid-template-columns:minmax(280px,1fr) 260px minmax(280px,1fr);padding-inline:10px}
  body.battle-focus .battle-card-v146 .battle-equipment{width:122px;height:244px}
  body.battle-focus .battle-card-v146 .fighter>img{max-width:calc(100% - 122px)}
  body.battle-focus .battle-card-v146 .battle-center-stack,
  body.battle-focus .battle-card-v146 .battle-bottom,
  body.battle-focus .battle-card-v146 .opponent-strip{width:248px}
}
@media(max-width:880px){
  body.battle-focus .battle-card-v146 .battlefield{min-height:520px;grid-template-columns:minmax(205px,1fr) 218px minmax(205px,1fr);padding-inline:6px}
  body.battle-focus .battle-card-v146 .battle-equipment{width:92px;height:184px;transform:none}
  body.battle-focus .battle-card-v146 .fighter>img{max-width:calc(100% - 86px)}
  body.battle-focus .battle-card-v146 .battle-center-stack,
  body.battle-focus .battle-card-v146 .battle-bottom,
  body.battle-focus .battle-card-v146 .opponent-strip{width:210px}
  body.battle-focus .battle-card-v146 .combat-console{transform:scale(.88);margin:-8px 0}
}
@media(max-width:680px){
  body.battle-focus .battle-card-v146 .battlefield{height:auto;min-height:570px;grid-template-columns:minmax(105px,1fr) 194px minmax(105px,1fr)}
  body.battle-focus .battle-card-v146 .battle-equipment{display:none}
  body.battle-focus .battle-card-v146 .fighter>img{max-width:100%;max-height:57%}
}


/* arena-149 — source technique artwork, Bookshop cards and battle hover details */
.technique-book-grid{grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:10px}
.technique-book-card{min-height:0!important;padding:10px!important;gap:8px!important;border:1px solid rgba(190,151,76,.28)!important;background:linear-gradient(180deg,rgba(19,25,34,.96),rgba(10,14,20,.98))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}
.technique-book-card:hover{border-color:rgba(216,177,94,.54)!important}.technique-book-card.learned{opacity:.72}
.technique-book-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center}.technique-book-title{min-width:0}.technique-book-title small{font-size:7px;letter-spacing:.08em;color:#b89a61}.technique-book-title h3{margin:3px 0 0!important;font-size:12px;line-height:1.12;color:#ede5d6}
.technique-book-art{min-width:52px;display:flex;align-items:center;gap:3px;position:relative}.book-technique-preview{width:46px;height:46px;border:1px solid #675333;border-radius:8px;background:#080c11;display:grid;place-items:center;padding:2px;box-shadow:inset 0 0 8px rgba(0,0,0,.7);cursor:help}.book-technique-preview img{width:100%;height:100%;object-fit:contain;border-radius:5px}.book-technique-preview+ .book-technique-preview{width:30px;height:30px}.book-tech-more{font:700 7px Arial;color:#cbb079;border:1px solid #4f442f;border-radius:5px;padding:3px;background:#15130f}.book-tech-placeholder{width:46px;height:46px;border:1px dashed #4a5260;border-radius:8px;display:grid;place-items:center;color:#808a96}
.book-detail-row{border:1px solid rgba(255,255,255,.055);border-radius:7px;background:rgba(255,255,255,.022);padding:6px 7px}.book-detail-row>span{display:block;font:700 6.3px Arial;letter-spacing:.1em;color:#c2a369;margin-bottom:3px}.book-detail-row p{margin:0!important;font-size:7.5px!important;line-height:1.35!important;color:#b8c0cb!important;opacity:1!important}.technique-book-card .book-buy{border-top:1px solid rgba(255,255,255,.055);padding-top:7px}.technique-book-card .book-buy>div{display:flex;flex-direction:column;gap:1px}.technique-book-card .book-buy b{font-size:10px;color:#e1c57e}.technique-book-card .book-buy small{font-size:6.5px;color:#7f8995}
.technique-tooltip{position:fixed;z-index:100000;display:none;pointer-events:none;width:min(360px,calc(100vw - 24px));padding:10px;border:1px solid rgba(214,174,91,.65);border-radius:10px;background:linear-gradient(180deg,rgba(16,22,31,.985),rgba(7,10,15,.99));box-shadow:0 12px 36px rgba(0,0,0,.62),inset 0 0 0 1px rgba(255,255,255,.035);color:#d7dde5;text-align:left}.technique-tooltip.visible{display:block}.tt-head{border-bottom:1px solid rgba(214,174,91,.18);padding-bottom:7px;margin-bottom:7px}.tt-head small{display:block;font:700 7px Arial;letter-spacing:.08em;color:#8faed0;margin-bottom:2px}.tt-head strong{display:block;font:700 12px Georgia,serif;color:#ead39a}.tt-section{margin-top:7px}.tt-section>span,.tt-status>span{display:block;font:700 6.5px Arial;letter-spacing:.11em;color:#b9995e;margin-bottom:3px}.tt-section p{margin:0;font-size:8px;line-height:1.42;color:#bec7d2}.tt-status{margin-top:8px;border:1px solid rgba(204,118,83,.28);border-radius:7px;padding:6px;background:rgba(108,47,30,.12)}.tt-status b{font-size:7.5px;line-height:1.35;color:#dbad91;font-weight:600}
@media(max-width:760px){.technique-book-grid{grid-template-columns:1fr}.technique-tooltip{width:calc(100vw - 20px)}.book-detail-row p{font-size:7px!important}}

/* arena-150 — approved battle controls, 20-slot technique dock and wardrobe artwork */

/* Shared two-column wardrobe: exact 14 gameplay slots on top of the approved art. */
.wardrobe-art{
  position:relative;
  width:100%;
  aspect-ratio:846/1726;
  background:url('/assets/battle/wardrobe-panel.png') center/100% 100% no-repeat;
  isolation:isolate;
}
.wardrobe-slot{
  position:absolute;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  border:1px solid transparent;
  border-radius:5px;
  overflow:hidden;
  background:transparent;
  transition:filter .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease;
}
.wardrobe-slot.filled{
  background:radial-gradient(ellipse at 50% 50%,rgba(7,15,27,.88),rgba(4,10,18,.48) 68%,transparent 78%);
  box-shadow:inset 0 0 12px rgba(50,95,144,.14);
}
.wardrobe-slot img{
  position:relative;z-index:2;
  max-width:82%!important;max-height:82%!important;width:auto!important;height:auto!important;
  object-fit:contain!important;background:transparent!important;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.72));
}
.wardrobe-equipped-glow{position:absolute;inset:5%;border-radius:6px;box-shadow:inset 0 0 10px rgba(219,177,84,.18);pointer-events:none;z-index:1}
.wardrobe-interactive .wardrobe-slot{cursor:pointer}
.wardrobe-interactive .wardrobe-slot:hover{border-color:rgba(210,170,82,.45);background-color:rgba(22,41,63,.18);filter:brightness(1.12)}
.wardrobe-interactive .wardrobe-slot.drop-ready{border-color:#e3bd64;background:rgba(33,86,129,.30);box-shadow:0 0 16px rgba(73,155,218,.55),inset 0 0 14px rgba(216,177,91,.35);transform:scale(1.018)}
.wardrobe-remove{position:absolute!important;right:3px;top:3px;z-index:5;width:18px!important;height:18px!important;min-width:0!important;padding:0!important;border:1px solid rgba(210,170,82,.55)!important;border-radius:50%!important;background:rgba(5,10,17,.88)!important;color:#e6c979!important;font:700 11px/16px Arial!important;opacity:0;transition:opacity .15s;cursor:pointer}
.wardrobe-slot:hover .wardrobe-remove{opacity:1}

/* Slot geometry measured against wardrobe-panel.png (846 × 1726 after transparent trim). */
.wardrobe-slot[data-wardrobe-slot="helmet"]{left:4.0%;top:1.7%;width:40.1%;height:18.9%}
.wardrobe-slot[data-wardrobe-slot="bracelet"]{left:4.0%;top:20.7%;width:40.1%;height:14.9%}
.wardrobe-slot[data-wardrobe-slot="weapon"]{left:4.0%;top:35.7%;width:40.1%;height:21.1%}
.wardrobe-slot[data-wardrobe-slot="armor"]{left:4.0%;top:56.8%;width:40.1%;height:26.4%}
.wardrobe-slot[data-wardrobe-slot="belt"]{left:4.0%;top:83.2%;width:40.1%;height:14.9%}
.wardrobe-slot[data-wardrobe-slot="earrings"]{left:54.1%;top:1.7%;width:41.2%;height:7.2%}
.wardrobe-slot[data-wardrobe-slot="necklace"]{left:54.1%;top:8.9%;width:41.2%;height:8.2%}
.wardrobe-slot[data-wardrobe-slot="ring1"]{left:54.1%;top:17.1%;width:13.7%;height:6.6%}
.wardrobe-slot[data-wardrobe-slot="ring2"]{left:67.9%;top:17.1%;width:13.7%;height:6.6%}
.wardrobe-slot[data-wardrobe-slot="ring3"]{left:81.7%;top:17.1%;width:13.6%;height:6.6%}
.wardrobe-slot[data-wardrobe-slot="gloves"]{left:54.1%;top:23.7%;width:41.2%;height:13.9%}
.wardrobe-slot[data-wardrobe-slot="shield"]{left:54.1%;top:37.6%;width:41.2%;height:20.1%}
.wardrobe-slot[data-wardrobe-slot="leggings"]{left:54.1%;top:57.7%;width:41.2%;height:25.3%}
.wardrobe-slot[data-wardrobe-slot="boots"]{left:54.1%;top:83.0%;width:41.2%;height:15.1%}

/* Inventory paper doll: wardrobe is genuinely beside the character, not below it. */
.paper-doll{
  display:grid!important;
  grid-template-columns:minmax(190px,1fr) 190px!important;
  grid-template-areas:"avatar wardrobe" "appearance appearance"!important;
  column-gap:10px!important;row-gap:8px!important;
  align-items:start!important;
  min-height:0!important;height:auto!important;
  overflow:visible!important;
  padding:8px!important;
}
.paper-doll-stage{grid-area:avatar;min-height:390px!important;height:390px;align-self:start;padding:4px!important}
.paper-doll-stage>img{max-height:384px!important;max-width:100%!important}
.equipped-grid{grid-area:wardrobe;display:block;position:relative;width:190px;padding:0;margin:0;align-self:start}
.equipped-grid .equipment-sets{position:absolute;left:0;right:0;top:100%;margin-top:5px;z-index:4}
.appearance-picker{grid-area:appearance;margin:0!important}
.inventory-live-item[draggable="true"]{cursor:grab}
.inventory-live-item[draggable="true"]:active{cursor:grabbing}
.inventory-live-item.dragging{opacity:.36;transform:scale(.985)}

/* New combat-control artwork. The visible armor pieces in the art are the four body zones. */
body.battle-focus .battle-card-v146 .battlefield{
  grid-template-columns:minmax(330px,1fr) 354px minmax(330px,1fr);
}
body.battle-focus .battle-card-v146 .battle-center-stack{
  width:348px!important;
  gap:7px!important;
  padding-top:10px!important;
  justify-content:flex-start!important;
}
body.battle-focus .battle-card-v146 .combat-console{
  position:relative!important;
  display:block!important;
  width:342px!important;
  height:auto!important;
  aspect-ratio:1394/603;
  padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:url('/assets/battle/combat-panel.png') center/100% 100% no-repeat!important;
  box-shadow:0 13px 30px rgba(0,0,0,.42)!important;
  overflow:visible;
  transform:none!important;
}
body.battle-focus .battle-card-v146 .combat-console:before,
body.battle-focus .battle-card-v146 .combat-console:after{display:none!important}
body.battle-focus .battle-card-v146 .zone-stack{
  position:absolute!important;inset:0!important;display:block!important;pointer-events:none!important;
}
body.battle-focus .battle-card-v146 .zone-btn{
  position:absolute!important;
  width:15.0%!important;height:28.7%!important;
  margin:0!important;padding:0!important;
  border:1px solid transparent!important;border-radius:15px!important;
  background:transparent!important;
  box-shadow:none!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  transform:none!important;
  transition:background .16s ease,box-shadow .16s ease,filter .16s ease,transform .12s ease!important;
}
body.battle-focus .battle-card-v146 .zone-glyph{display:none!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:nth-child(1){left:12.2%;top:18.1%}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:nth-child(2){left:29.0%;top:18.1%}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:nth-child(3){left:12.2%;top:53.1%}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:nth-child(4){left:29.0%;top:53.1%}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:nth-child(1){left:59.0%;top:18.1%}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:nth-child(2){left:75.8%;top:18.1%}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:nth-child(3){left:59.0%;top:53.1%}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:nth-child(4){left:75.8%;top:53.1%}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:hover{background:rgba(52,148,230,.11)!important;box-shadow:inset 0 0 15px rgba(70,175,255,.30)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:hover{background:rgba(187,68,255,.10)!important;box-shadow:inset 0 0 15px rgba(207,73,255,.28)!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn.selected{
  background:radial-gradient(circle,rgba(90,192,255,.30),rgba(32,115,199,.11) 62%,transparent 76%)!important;
  border-color:rgba(115,205,255,.90)!important;
  box-shadow:0 0 17px rgba(54,161,255,.78),inset 0 0 15px rgba(106,211,255,.44)!important;
  animation:zonePulseBlue 1.15s ease-in-out infinite alternate;
}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn.selected{
  background:radial-gradient(circle,rgba(221,91,255,.28),rgba(138,31,213,.12) 62%,transparent 76%)!important;
  border-color:rgba(229,119,255,.92)!important;
  box-shadow:0 0 17px rgba(190,53,255,.80),inset 0 0 15px rgba(234,124,255,.42)!important;
  animation:zonePulsePurple 1.15s ease-in-out infinite alternate;
}
body.battle-focus .battle-card-v146 .zone-btn.just-picked{animation:zonePick .34s ease-out!important}
@keyframes zonePulseBlue{from{filter:brightness(1);transform:scale(1)}to{filter:brightness(1.18);transform:scale(1.025)}}
@keyframes zonePulsePurple{from{filter:brightness(1);transform:scale(1)}to{filter:brightness(1.18);transform:scale(1.025)}}
@keyframes zonePick{0%{transform:scale(.93)}55%{transform:scale(1.07)}100%{transform:scale(1)}}

/* Center controls sit on the jewel in the approved panel. */
body.battle-focus .battle-card-v146 .console-core{
  position:absolute!important;left:50%!important;top:50%!important;z-index:8;
  width:62px!important;height:132px!important;transform:translate(-50%,-50%)!important;
  display:grid!important;grid-template-rows:24px 18px 54px 24px!important;gap:4px!important;
  align-content:center!important;
}
body.battle-focus .battle-card-v146 .micro-action{
  height:24px!important;min-width:0!important;border:1px solid rgba(205,166,82,.55)!important;
  border-radius:12px!important;background:rgba(4,10,19,.78)!important;color:#d8bd77!important;
  box-shadow:0 2px 8px rgba(0,0,0,.35);font-size:11px!important;
}
body.battle-focus .battle-card-v146 .micro-action.auto{font-size:7px!important}
body.battle-focus .battle-card-v146 .micro-action.active{box-shadow:0 0 10px rgba(225,183,84,.55)!important;background:rgba(53,39,16,.82)!important}
body.battle-focus .battle-card-v146 .turn-orb{height:18px!important;font-size:5.6px!important;line-height:1.05!important;color:#d2c7ae!important;text-shadow:0 1px 3px #000!important}
body.battle-focus .battle-card-v146 .turn-btn{
  width:54px!important;height:54px!important;justify-self:center!important;
  border:1px solid #e0b95e!important;border-radius:50%!important;
  background:radial-gradient(circle at 50% 36%,rgba(70,48,88,.94),rgba(15,19,31,.96) 63%,rgba(5,9,16,.98))!important;
  color:#f3d78f!important;box-shadow:0 0 11px rgba(203,151,71,.46),inset 0 0 13px rgba(118,73,159,.34)!important;
  font-size:9px!important;
}
body.battle-focus .battle-card-v146 .turn-btn:not(:disabled):hover{filter:brightness(1.15);box-shadow:0 0 18px rgba(225,176,81,.72),inset 0 0 15px rgba(146,82,201,.42)!important}

/* 20-slot technique panel artwork. */
body.battle-focus .battle-card-v146 .battle-bottom{
  width:326px!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;gap:4px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
}
body.battle-focus .battle-card-v146 .skills-wrap{
  position:relative!important;order:1!important;width:326px!important;aspect-ratio:1026/810;
  flex:none!important;background:url('/assets/battle/skills-panel.png') center/100% 100% no-repeat!important;
  filter:drop-shadow(0 12px 20px rgba(0,0,0,.42));
}
body.battle-focus .battle-card-v146 .skills-head{display:none!important}
body.battle-focus .battle-card-v146 .battle-bottom .skill-grid{
  position:absolute!important;left:8.48%!important;top:11.98%!important;
  width:82.85%!important;height:80.25%!important;
  display:grid!important;grid-template-columns:repeat(5,1fr)!important;grid-template-rows:repeat(4,1fr)!important;
  grid-auto-rows:auto!important;gap:1.45% 1.4%!important;padding:0!important;margin:0!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.technique-slot,
body.battle-focus .battle-card-v146 .battle-bottom .empty-skill-slot{
  position:relative!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  padding:0!important;margin:0!important;border:1px solid transparent!important;border-radius:11px!important;
  background:transparent!important;box-shadow:none!important;overflow:hidden!important;
  display:grid!important;place-items:center!important;opacity:1!important;
  transition:filter .16s ease,background .16s ease,box-shadow .16s ease,transform .14s ease!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.technique-slot img{
  width:76%!important;height:76%!important;max-width:76%!important;max-height:76%!important;
  object-fit:contain!important;border-radius:10px!important;background:rgba(5,9,15,.42)!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.68));opacity:1;
  transition:filter .16s ease,opacity .16s ease,transform .16s ease!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.ready{
  background:radial-gradient(circle,rgba(55,130,192,.11),transparent 68%)!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.ready:hover{
  background:radial-gradient(circle,rgba(79,167,224,.21),transparent 70%)!important;
  box-shadow:inset 0 0 11px rgba(97,175,228,.28)!important;transform:scale(1.025)!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.selected{
  border-color:rgba(236,196,98,.92)!important;
  background:radial-gradient(circle,rgba(155,83,209,.28),rgba(51,113,183,.12) 62%,transparent 75%)!important;
  box-shadow:0 0 13px rgba(192,101,240,.56),inset 0 0 12px rgba(239,196,91,.36)!important;
  animation:skillSelectedPulse 1.2s ease-in-out infinite alternate;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.selected img{transform:scale(1.08);filter:brightness(1.16) drop-shadow(0 0 7px rgba(218,170,255,.48))!important}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.locked{
  background:rgba(1,4,8,.33)!important;cursor:not-allowed!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.locked img{
  filter:grayscale(1) brightness(.43)!important;opacity:.30!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.cooldown:after{
  content:attr(data-cd)!important;position:absolute!important;inset:14%!important;border-radius:10px!important;
  display:grid!important;place-items:center!important;background:rgba(4,7,12,.76)!important;
  color:#e8c675!important;font:800 16px Arial!important;text-shadow:0 1px 3px #000!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .empty-skill-mark{display:none!important}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot .slot-number{
  top:6px!important;left:6px!important;min-width:12px!important;height:11px!important;padding:0 2px!important;
  background:rgba(3,6,10,.76)!important;color:#b9a06b!important;font-size:5px!important;opacity:.82;
}
@keyframes skillSelectedPulse{from{filter:brightness(1)}to{filter:brightness(1.14)}}
body.battle-focus .battle-card-v146 .tactics-panel{
  order:2!important;width:304px!important;grid-template-columns:repeat(6,1fr)!important;gap:3px!important;
  padding:2px 4px!important;border:1px solid rgba(201,163,79,.30);border-radius:8px;background:rgba(4,10,18,.86);
}
body.battle-focus .battle-card-v146 .tactics-panel span{height:22px!important;background:transparent!important;border-color:rgba(75,89,108,.48)!important}
body.battle-focus .battle-card-v146 .opponent-strip{width:326px!important;min-height:30px!important;max-height:34px!important}

/* The approved wardrobe art replaces the temporary battle equipment grid. */
body.battle-focus .battle-card-v146 .battle-equipment{
  width:128px!important;height:auto!important;aspect-ratio:846/1726!important;
  padding:0!important;border:0!important;border-radius:0!important;
  background:none!important;box-shadow:0 12px 24px rgba(0,0,0,.36)!important;overflow:visible!important;
}
body.battle-focus .battle-card-v146 .battle-equipment>.wardrobe-art{width:100%;height:100%}
body.battle-focus .battle-card-v146 .battle-equipment .wardrobe-slot{border-radius:3px}
body.battle-focus .battle-card-v146 .battle-equipment .wardrobe-slot.filled{background:radial-gradient(circle,rgba(4,11,20,.88),rgba(3,8,15,.46) 70%,transparent 78%)}
body.battle-focus .battle-card-v146 .battle-equipment .wardrobe-slot img{max-width:84%!important;max-height:84%!important}
body.battle-focus .battle-card-v146 .fighter>img{max-width:calc(100% - 130px)!important}

@media(max-width:1180px){
  body.battle-focus .battle-card-v146 .battlefield{grid-template-columns:minmax(270px,1fr) 314px minmax(270px,1fr)!important}
  body.battle-focus .battle-card-v146 .battle-center-stack{width:308px!important}
  body.battle-focus .battle-card-v146 .combat-console{width:302px!important}
  body.battle-focus .battle-card-v146 .battle-bottom,body.battle-focus .battle-card-v146 .skills-wrap{width:294px!important}
  body.battle-focus .battle-card-v146 .opponent-strip{width:294px!important}
  body.battle-focus .battle-card-v146 .battle-equipment{width:108px!important}
  body.battle-focus .battle-card-v146 .fighter>img{max-width:calc(100% - 108px)!important}
  .paper-doll{grid-template-columns:minmax(180px,1fr) 170px!important}.equipped-grid{width:170px}
}
@media(max-width:880px){
  body.battle-focus .battle-card-v146 .battlefield{grid-template-columns:minmax(190px,1fr) 260px minmax(190px,1fr)!important}
  body.battle-focus .battle-card-v146 .battle-center-stack{width:254px!important}
  body.battle-focus .battle-card-v146 .combat-console{width:250px!important}
  body.battle-focus .battle-card-v146 .battle-bottom,body.battle-focus .battle-card-v146 .skills-wrap{width:244px!important}
  body.battle-focus .battle-card-v146 .opponent-strip{width:244px!important}
  body.battle-focus .battle-card-v146 .battle-equipment{width:82px!important}
  body.battle-focus .battle-card-v146 .fighter>img{max-width:calc(100% - 76px)!important}
}
@media(max-width:720px){
  .paper-doll{grid-template-columns:minmax(0,1fr) 145px!important;column-gap:5px!important;padding:5px!important}
  .equipped-grid{width:145px}.paper-doll-stage{height:315px!important;min-height:315px!important}.paper-doll-stage>img{max-height:310px!important}
}
@media(max-width:680px){
  body.battle-focus .battle-card-v146 .battlefield{grid-template-columns:minmax(92px,1fr) 196px minmax(92px,1fr)!important}
  body.battle-focus .battle-card-v146 .battle-center-stack{width:192px!important}
  body.battle-focus .battle-card-v146 .combat-console{width:190px!important}
  body.battle-focus .battle-card-v146 .battle-bottom,body.battle-focus .battle-card-v146 .skills-wrap{width:190px!important}
  body.battle-focus .battle-card-v146 .opponent-strip{width:190px!important}
  body.battle-focus .battle-card-v146 .battle-equipment{display:none!important}
  body.battle-focus .battle-card-v146 .fighter>img{max-width:100%!important}
  body.battle-focus .battle-card-v146 .console-core{width:42px!important;height:92px!important;grid-template-rows:17px 11px 40px 17px!important;gap:2px!important}
  body.battle-focus .battle-card-v146 .turn-btn{width:40px!important;height:40px!important;font-size:6px!important}
  body.battle-focus .battle-card-v146 .micro-action{height:17px!important;font-size:7px!important}.battle-card-v146 .micro-action.auto{font-size:5px!important}
}
.wardrobe-interactive .wardrobe-slot.focus-slot{border-color:#d9b45e;box-shadow:0 0 15px rgba(78,151,211,.42),inset 0 0 12px rgba(215,179,92,.26);background-color:rgba(31,74,108,.20)}


/* arena-151 — responsive battle viewport, visible log, readable wardrobes and clean zone selection */
body.battle-focus .battle-card-v146{min-height:0!important;height:auto!important;overflow:visible!important}
body.battle-focus .battle-card-v146 .battlefield{
  min-height:var(--battle-field-height,485px)!important;
  height:var(--battle-field-height,485px)!important;
  max-height:none!important;
  grid-template-columns:minmax(300px,1fr) 348px minmax(300px,1fr)!important;
  padding-inline:14px!important;
  transition:height .18s ease,min-height .18s ease;
}
.battle-size-control{position:absolute;z-index:45;right:14px;top:10px;height:27px;display:flex;align-items:center;gap:3px;padding:3px;border:1px solid rgba(211,174,91,.38);border-radius:8px;background:rgba(5,10,17,.82);backdrop-filter:blur(5px);box-shadow:0 4px 12px rgba(0,0,0,.28)}
.battle-size-control button{width:25px;height:21px;border:0;border-radius:5px;background:#162131;color:#d6bd80;cursor:pointer;font:700 14px Arial;padding:0}.battle-size-control button:hover:not(:disabled){background:#24364e}.battle-size-control button:disabled{opacity:.28;cursor:default}.battle-size-control span{min-width:63px;text-align:center;font:700 6px Arial;letter-spacing:.09em;color:#8895a7}.battle-size-control b{font-size:8px;color:#e0c579;margin-left:2px}

/* Heroes no longer dominate the stage. Their own PNG perspective stays intact. */
body.battle-focus .battle-card-v146 .fighter{height:min(calc(var(--battle-field-height,485px) * .82),410px)!important;width:min(31vw,300px)!important}
body.battle-focus .battle-card-v146 .fighter-left>img{transform:scale(1.04)!important;transform-origin:50% 100%!important;max-height:100%!important;max-width:calc(100% - 166px)!important;right:0!important}
body.battle-focus .battle-card-v146 .fighter-right>img{transform:scaleX(-1) scale(1.04)!important;transform-origin:50% 100%!important;max-height:100%!important;max-width:calc(100% - 166px)!important;left:0!important}

/* Wardrobes follow the Figma proportion instead of being thumbnail-size. */
body.battle-focus .battle-card-v146 .battle-equipment{width:166px!important;height:auto!important;aspect-ratio:846/1726!important;bottom:12px!important;box-shadow:0 12px 25px rgba(0,0,0,.30)!important}
body.battle-focus .battle-card-v146 .battle-equipment .wardrobe-slot img{max-width:89%!important;max-height:89%!important}

/* Selection is a colour change inside the painted button — no drawn outline, no pulsing frame. */
body.battle-focus .battle-card-v146 .zone-btn{border:0!important;box-shadow:none!important;animation:none!important;transition:background-color .12s ease,filter .12s ease!important}
body.battle-focus .battle-card-v146 .zone-btn.just-picked{animation:none!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:hover{background:rgba(48,151,235,.15)!important;box-shadow:none!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:hover{background:rgba(194,69,245,.14)!important;box-shadow:none!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn.selected{border:0!important;box-shadow:none!important;animation:none!important;background:rgba(38,153,235,.42)!important;filter:brightness(1.16) saturate(1.24)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn.selected{border:0!important;box-shadow:none!important;animation:none!important;background:rgba(177,52,230,.42)!important;filter:brightness(1.16) saturate(1.26)!important}

/* Chat/battle log is always rendered directly after the compact arena. */
body.battle-focus .global-chat{display:grid!important;visibility:visible!important;min-height:190px!important;height:210px!important;max-height:230px!important;margin:6px 0 0!important;border-top:1px solid rgba(201,164,82,.30)!important;background:#0d1219!important;position:relative!important;z-index:50!important}
body.battle-focus .global-chat .chat-feed{overflow-y:auto!important;scroll-behavior:auto!important}
body.battle-focus .global-chat .chat-tabs button[data-chat-tab="battle"]{color:#e0c47d}

/* Inventory first screen: avatar+wardrobe, backpack and stats are all visible without hunting below the page. */
.live-gear{grid-template-columns:minmax(410px,1.08fr) minmax(360px,.94fr) minmax(220px,.55fr)!important;grid-template-areas:"paper inventory stats" "development development development" "techniques techniques techniques"!important;align-items:start!important}
.live-gear>.paper-doll{grid-area:paper!important}
.live-gear>.inventory-card{grid-area:inventory!important;grid-column:auto!important;min-height:520px!important;max-height:640px!important;display:flex!important;flex-direction:column!important}
.live-gear>.inventory-card .live-inventory{max-height:none!important;min-height:330px!important;flex:1 1 auto!important}
.live-gear>.stat-card{grid-area:stats!important}
.live-gear>.development-card{grid-area:development!important;grid-column:auto!important}
.live-gear>.gear-techniques-card{grid-area:techniques!important;grid-column:auto!important}
.paper-doll{grid-template-columns:minmax(205px,1fr) 196px!important;min-height:520px!important}
.equipped-grid{width:196px}
.paper-doll-stage{height:410px!important;min-height:410px!important}.paper-doll-stage>img{max-height:400px!important}

.market-bookshop-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid rgba(205,166,82,.42);border-radius:14px;background:linear-gradient(100deg,rgba(49,38,19,.34),rgba(20,25,34,.92));padding:13px 15px;box-shadow:inset 0 0 24px rgba(183,134,54,.06)}
.market-bookshop-banner div{min-width:0}.market-bookshop-banner small{display:block;font-size:7px;letter-spacing:.12em;color:#c8a968}.market-bookshop-banner b{display:block;font:700 16px Georgia,serif;color:#ead9ad;margin:3px 0}.market-bookshop-banner p{margin:0;color:#929dab;font-size:9px}.city-exit.bookshop-featured{border-color:rgba(205,166,82,.50);background:linear-gradient(145deg,rgba(48,39,23,.94),rgba(20,23,28,.96))}.city-exit.bookshop-featured .city-icon{color:#e1c67e;background:rgba(207,166,89,.17)}

@media(max-width:1180px){
 body.battle-focus .battle-card-v146 .battlefield{grid-template-columns:minmax(245px,1fr) 304px minmax(245px,1fr)!important;padding-inline:9px!important}
 body.battle-focus .battle-card-v146 .battle-equipment{width:145px!important}
 body.battle-focus .battle-card-v146 .fighter-left>img,body.battle-focus .battle-card-v146 .fighter-right>img{max-width:calc(100% - 140px)!important}
 .live-gear{grid-template-columns:minmax(390px,1fr) minmax(340px,1fr)!important;grid-template-areas:"paper inventory" "stats stats" "development development" "techniques techniques"!important}
}
@media(max-width:880px){
 body.battle-focus .battle-card-v146 .battlefield{grid-template-columns:minmax(175px,1fr) 250px minmax(175px,1fr)!important;padding-inline:5px!important}
 body.battle-focus .battle-card-v146 .battle-equipment{width:112px!important}
 body.battle-focus .battle-card-v146 .fighter-left>img,body.battle-focus .battle-card-v146 .fighter-right>img{max-width:calc(100% - 104px)!important}
 .battle-size-control{right:7px;top:7px}
}
@media(max-width:720px){
 .live-gear{grid-template-columns:1fr!important;grid-template-areas:"paper" "inventory" "stats" "development" "techniques"!important}
 .paper-doll{grid-template-columns:minmax(0,1fr) 155px!important;min-height:430px!important}.equipped-grid{width:155px}.paper-doll-stage{height:330px!important;min-height:330px!important}.paper-doll-stage>img{max-height:325px!important}
 .market-bookshop-banner{align-items:flex-start;flex-direction:column}.market-bookshop-banner button{width:100%}
}

/* arena-152 */
.telegraph-bar.quiet{grid-template-columns:auto}
.telegraph-bar.quiet .telegraph-toggle{justify-self:start}

/* arena-153 — Figma 1366×768 reference geometry */
/* Node 3:2 reference: wardrobes 156×312, heroes 227×341,
   combat panel ≈291 wide, skills 258×194, opponent strip 501×34. */
body.battle-focus .battle-card-v146 .battlefield{
  height:var(--battle-field-height,346px)!important;
  min-height:var(--battle-field-height,346px)!important;
  max-height:var(--battle-field-height,346px)!important;
  grid-template-columns:minmax(0,1fr) var(--battle-center-col,488px) minmax(0,1fr)!important;
  padding:0!important;
  overflow:visible!important;
  align-items:stretch!important;
  background-position:center 53%!important;
}
body.battle-focus .battle-card-v146 .fighter{
  width:100%!important;height:100%!important;max-width:none!important;
  align-self:stretch!important;justify-self:stretch!important;
  overflow:visible!important;
}
body.battle-focus .battle-card-v146 .fighter>img{
  position:absolute!important;
  width:var(--battle-hero-w,227px)!important;
  height:var(--battle-hero-h,341px)!important;
  max-width:var(--battle-hero-w,227px)!important;
  max-height:var(--battle-hero-h,341px)!important;
  bottom:var(--battle-hero-bottom,5px)!important;
  object-fit:contain!important;object-position:50% 100%!important;
  transform:none!important;transform-origin:50% 100%!important;
}
body.battle-focus .battle-card-v146 .fighter-left>img{right:0!important;left:auto!important}
body.battle-focus .battle-card-v146 .fighter-right>img{left:0!important;right:auto!important;transform:scaleX(-1)!important}
body.battle-focus .battle-card-v146 .fighter-left .fighter-shadow{right:0!important;width:var(--battle-hero-w,227px)!important}
body.battle-focus .battle-card-v146 .fighter-right .fighter-shadow{left:0!important;width:var(--battle-hero-w,227px)!important}

body.battle-focus .battle-card-v146 .battle-equipment{
  width:var(--battle-wardrobe-w,156px)!important;
  height:var(--battle-wardrobe-h,312px)!important;
  aspect-ratio:auto!important;
  bottom:var(--battle-wardrobe-bottom,17px)!important;
  padding:0!important;margin:0!important;
  border:0!important;background:none!important;
  box-shadow:0 9px 20px rgba(0,0,0,.27)!important;
}
body.battle-focus .battle-card-v146 .fighter-left .battle-equipment{left:var(--battle-side-offset,30px)!important;right:auto!important}
body.battle-focus .battle-card-v146 .fighter-right .battle-equipment{right:var(--battle-side-offset,30px)!important;left:auto!important}
body.battle-focus .battle-card-v146 .battle-equipment>.wardrobe-art{width:100%!important;height:100%!important}
body.battle-focus .battle-card-v146 .battle-equipment .wardrobe-slot img{max-width:86%!important;max-height:86%!important}

/* The centre is positioned like the Figma mock instead of flowing vertically. */
body.battle-focus .battle-card-v146 .battle-center-stack{
  position:relative!important;
  width:var(--battle-center-col,488px)!important;height:100%!important;
  max-height:none!important;align-self:stretch!important;justify-self:center!important;
  display:block!important;padding:0!important;margin:0!important;transform:none!important;
}
body.battle-focus .battle-card-v146 .combat-console{
  position:absolute!important;
  left:50%!important;top:var(--battle-console-top,-38px)!important;
  width:var(--battle-console-w,291px)!important;height:var(--battle-console-h,126px)!important;
  aspect-ratio:auto!important;transform:translateX(-50%)!important;
  background:url('/assets/battle/combat-panel.png') center/100% 100% no-repeat!important;
  box-shadow:0 8px 18px rgba(0,0,0,.32)!important;
}
/* Only tint the inner face of the painted zone. Gold artwork is left untouched. */
body.battle-focus .battle-card-v146 .zone-btn{
  border:0!important;background:transparent!important;box-shadow:none!important;
  filter:none!important;animation:none!important;overflow:hidden!important;
  border-radius:18%!important;transition:none!important;
}
body.battle-focus .battle-card-v146 .zone-btn::after{
  content:"";position:absolute;inset:7%;border-radius:16%;pointer-events:none;
  background:transparent;box-shadow:none;opacity:0;transition:opacity .12s ease,background-color .12s ease;
}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:hover::after{opacity:1;background:rgba(44,139,219,.16)}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:hover::after{opacity:1;background:rgba(171,52,226,.15)}
body.battle-focus .battle-card-v146 .block-stack .zone-btn.selected{background:transparent!important;filter:none!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn.selected{background:transparent!important;filter:none!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn.selected::after{
  opacity:1;background:rgba(35,139,226,.48);box-shadow:inset 0 0 10px rgba(120,207,255,.32)
}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn.selected::after{
  opacity:1;background:rgba(170,47,225,.47);box-shadow:inset 0 0 10px rgba(237,139,255,.28)
}

/* HOD uses the central jewel itself instead of a second oversized circle. */
body.battle-focus .battle-card-v146 .console-core{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  transform:none!important;display:block!important;pointer-events:none!important;
}
body.battle-focus .battle-card-v146 .turn-btn{
  pointer-events:auto!important;position:absolute!important;left:50%!important;top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:15.2%!important;height:auto!important;aspect-ratio:1!important;
  min-width:0!important;padding:0!important;border:0!important;border-radius:50%!important;
  background:rgba(16,19,34,.16)!important;color:#f3d78f!important;
  box-shadow:none!important;text-shadow:0 1px 3px #000!important;
  font:800 calc(8px * var(--battle-ui-scale,1)) Georgia,serif!important;
  letter-spacing:.06em!important;
}
body.battle-focus .battle-card-v146 .turn-btn:not(:disabled):hover{background:rgba(129,82,169,.16)!important;box-shadow:inset 0 0 10px rgba(234,194,93,.18)!important;filter:brightness(1.12)!important}
body.battle-focus .battle-card-v146 .turn-btn:disabled{opacity:.46!important;filter:none!important}
body.battle-focus .battle-card-v146 .turn-orb{
  position:absolute!important;left:50%!important;top:6%!important;transform:translateX(-50%)!important;
  width:90px!important;height:14px!important;display:grid!important;place-items:center!important;
  font-size:calc(5px * var(--battle-ui-scale,1))!important;pointer-events:none!important;
  color:#c7bba3!important;
}
body.battle-focus .battle-card-v146 .micro-action{
  pointer-events:auto!important;position:absolute!important;bottom:-17px!important;
  width:46px!important;height:16px!important;min-width:0!important;padding:0!important;
  border:1px solid rgba(193,154,74,.42)!important;border-radius:8px!important;
  background:rgba(4,9,16,.90)!important;box-shadow:none!important;
  font-size:8px!important;line-height:14px!important;
}
body.battle-focus .battle-card-v146 #switchEnemy{left:50%!important;transform:translateX(-52px)!important}
body.battle-focus .battle-card-v146 #autoBattle{left:50%!important;transform:translateX(6px)!important;font-size:5.5px!important;letter-spacing:.08em!important}
body.battle-focus .battle-card-v146 .micro-action:disabled{opacity:.18!important}

body.battle-focus .battle-card-v146 .battle-bottom{
  position:absolute!important;left:50%!important;top:var(--battle-skills-top,108px)!important;
  transform:translateX(-50%)!important;
  width:var(--battle-skills-w,258px)!important;height:calc(var(--battle-skills-h,194px) + 44px)!important;
  padding:0!important;margin:0!important;display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
body.battle-focus .battle-card-v146 .skills-wrap{
  position:absolute!important;left:0!important;top:0!important;
  width:var(--battle-skills-w,258px)!important;height:var(--battle-skills-h,194px)!important;
  aspect-ratio:auto!important;background:url('/assets/battle/skills-panel.png') center/100% 100% no-repeat!important;
}
body.battle-focus .battle-card-v146 .tactics-panel{
  position:absolute!important;left:50%!important;top:calc(var(--battle-tactics-top,322px) - var(--battle-skills-top,108px))!important;
  transform:translateX(-50%)!important;order:0!important;
  width:var(--battle-skills-w,258px)!important;height:22px!important;
  grid-template-columns:repeat(6,1fr)!important;gap:2px!important;padding:1px 3px!important;
  border-radius:7px!important;background:rgba(4,9,16,.88)!important;
}
body.battle-focus .battle-card-v146 .tactics-panel span{height:18px!important;min-height:18px!important}
body.battle-focus .battle-card-v146 .opponent-strip{
  position:absolute!important;left:50%!important;top:var(--battle-opponent-top,288px)!important;
  transform:translateX(-50%)!important;
  width:var(--battle-opponent-w,501px)!important;height:var(--battle-opponent-h,34px)!important;
  min-height:var(--battle-opponent-h,34px)!important;max-height:var(--battle-opponent-h,34px)!important;
  margin:0!important;z-index:24!important;
}

/* Keep the 20 actual hit areas inside the Figma-sized painted dock. */
body.battle-focus .battle-card-v146 .battle-bottom .skill-grid{
  left:8.48%!important;top:11.98%!important;width:82.85%!important;height:80.25%!important;
}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.technique-slot,
body.battle-focus .battle-card-v146 .battle-bottom .empty-skill-slot{border-radius:8px!important}
body.battle-focus .battle-card-v146 .battle-bottom .skill-slot.technique-slot img{border-radius:7px!important}

/* The battle card itself ends after the reference-height stage; chat immediately follows it. */
body.battle-focus .battle-card-v146{height:auto!important;min-height:0!important;overflow:visible!important}
body.battle-focus .global-chat{margin-top:6px!important}

/* Outside battle these pages must always be renderable when their nav target is active. */
body:not(.battle-focus) #view-gear.active,
body:not(.battle-focus) #view-bookshop.active{display:grid!important;visibility:visible!important;min-height:360px}



/* arena-154 — rubber battle viewport, Figma geometry preserved as one scaled stage */
body.battle-focus{height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.battle-focus .app-shell{height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.battle-focus .view-stack{flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow:hidden!important;padding:0!important}
body.battle-focus #view-arena.active{display:block!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.battle-focus #battleSession{display:block!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.battle-focus .battle-card-v146{
  height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;position:relative!important;
}
body.battle-focus .battle-card-v146 .battle-top-hud{
  flex:0 0 clamp(58px,5.27vw,72px)!important;height:auto!important;min-height:0!important;
}
body.battle-focus .battle-card-v146 .battlefield{
  flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  width:100%!important;position:relative!important;display:block!important;overflow:hidden!important;padding:0!important;
  background-position:center 53%!important;background-size:cover!important;
}
/* Fighter wrappers occupy the responsive field. Their children use exact scaled Figma coordinates. */
body.battle-focus .battle-card-v146 .fighter{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;
  display:block!important;overflow:visible!important;pointer-events:none!important;
}
body.battle-focus .battle-card-v146 .fighter>img{
  position:absolute!important;top:var(--battle-hero-y,0px)!important;bottom:auto!important;
  width:var(--battle-hero-w,227px)!important;height:var(--battle-hero-h,341px)!important;
  max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:50% 100%!important;
  transform:none!important;transform-origin:50% 100%!important;pointer-events:none!important;
}
body.battle-focus .battle-card-v146 .fighter-left>img{left:var(--battle-hero-left-x,212px)!important;right:auto!important}
body.battle-focus .battle-card-v146 .fighter-right>img{left:var(--battle-hero-right-x,942px)!important;right:auto!important;transform:scaleX(-1)!important}
body.battle-focus .battle-card-v146 .battle-equipment{
  position:absolute!important;top:var(--battle-wardrobe-y,17px)!important;bottom:auto!important;
  width:var(--battle-wardrobe-w,156px)!important;height:var(--battle-wardrobe-h,312px)!important;
  max-width:none!important;aspect-ratio:auto!important;pointer-events:auto!important;
}
body.battle-focus .battle-card-v146 .fighter-left .battle-equipment{left:var(--battle-wardrobe-left-x,30px)!important;right:auto!important}
body.battle-focus .battle-card-v146 .fighter-right .battle-equipment{left:var(--battle-wardrobe-right-x,1181px)!important;right:auto!important}
body.battle-focus .battle-card-v146 .fighter-shadow{display:none!important}
body.battle-focus .battle-card-v146 .damage-float{pointer-events:none!important}

body.battle-focus .battle-card-v146 .battle-center-stack{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;
  max-height:none!important;margin:0!important;padding:0!important;transform:none!important;pointer-events:none!important;
}
body.battle-focus .battle-card-v146 .combat-console{
  position:absolute!important;left:var(--battle-console-x,539px)!important;top:var(--battle-console-y,-38px)!important;
  width:var(--battle-console-w,291px)!important;height:var(--battle-console-h,126px)!important;
  transform:none!important;pointer-events:auto!important;
}
body.battle-focus .battle-card-v146 .battle-bottom{
  position:absolute!important;left:var(--battle-skills-x,556px)!important;top:var(--battle-skills-y,108px)!important;
  width:var(--battle-skills-w,258px)!important;height:calc(var(--battle-skills-h,194px) + 44px * var(--battle-ui-scale,1))!important;
  transform:none!important;pointer-events:auto!important;
}
body.battle-focus .battle-card-v146 .skills-wrap{width:var(--battle-skills-w,258px)!important;height:var(--battle-skills-h,194px)!important}
body.battle-focus .battle-card-v146 .tactics-panel{
  top:calc(var(--battle-tactics-y,322px) - var(--battle-skills-y,108px))!important;
  width:var(--battle-skills-w,258px)!important;height:calc(22px * var(--battle-ui-scale,1))!important;
}
body.battle-focus .battle-card-v146 .opponent-strip{
  left:var(--battle-opponent-x,430px)!important;top:var(--battle-opponent-y,288px)!important;
  width:var(--battle-opponent-w,501px)!important;height:var(--battle-opponent-h,34px)!important;
  min-height:var(--battle-opponent-h,34px)!important;max-height:var(--battle-opponent-h,34px)!important;
  transform:none!important;pointer-events:auto!important;
}
/* No manual battlefield zoom control in responsive mode. */
body.battle-focus .battle-size-control{display:none!important}
/* Selected hit/block = color of the button face, never an extra outline floating over the artwork. */
body.battle-focus .battle-card-v146 .zone-btn::after{display:none!important}
body.battle-focus .battle-card-v146 .zone-btn{border:0!important;box-shadow:none!important;animation:none!important;filter:none!important;transition:background-color .12s ease,filter .12s ease!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:hover{background:rgba(45,139,214,.18)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:hover{background:rgba(166,55,218,.18)!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn.selected{background:rgba(38,151,226,.46)!important;filter:brightness(1.12) saturate(1.18)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn.selected{background:rgba(173,54,224,.46)!important;filter:brightness(1.12) saturate(1.18)!important}

/* Chat is docked to the bottom of the viewport and gives its remaining height back to battle. */
body.battle-focus .global-chat{
  position:relative!important;flex:0 0 var(--battle-chat-height,292px)!important;
  width:100%!important;height:var(--battle-chat-height,292px)!important;min-height:110px!important;max-height:52dvh!important;
  margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;
  display:grid!important;grid-template-rows:34px 38px minmax(0,1fr) 42px!important;overflow:visible!important;z-index:70!important;
}
body.battle-focus .global-chat .chat-feed{min-height:0!important;overflow-y:auto!important}
body.battle-focus .chat-resize-handle{
  display:block!important;position:absolute!important;left:0!important;right:0!important;top:-7px!important;height:13px!important;
  cursor:ns-resize!important;z-index:80!important;background:transparent!important;touch-action:none!important;
}
body.battle-focus .chat-resize-handle:before{content:"";position:absolute;left:0;right:0;top:6px;height:1px;background:rgba(202,166,87,.48)}
body.battle-focus .chat-resize-handle i{position:absolute;left:50%;top:3px;transform:translateX(-50%);width:52px;height:7px;border:1px solid rgba(205,170,92,.42);border-radius:999px;background:#111823;box-shadow:0 2px 7px rgba(0,0,0,.45)}
body.chat-resizing,body.chat-resizing *{cursor:ns-resize;user-select:none}


@media(max-width:760px){
  body.battle-focus .battle-card-v146 .battle-top-hud{flex-basis:58px!important}
  body.battle-focus .global-chat{min-height:96px!important;max-height:48dvh!important}
}


/* arena-155 — compact HUD, unclipped combat panel, exact-face selection and stable clan cave grid */
body.battle-focus .battle-card-v146 .battle-top-hud{
  flex:0 0 clamp(46px,7.5dvh,54px)!important;
  grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;
  gap:7px!important;padding:3px 10px 3px!important;overflow:visible!important;
}
body.battle-focus .battle-card-v146 .fighter-hud{
  height:44px!important;min-height:0!important;padding:3px 9px 2px!important;gap:2px!important;
  border-radius:8px!important;overflow:hidden!important;
}
body.battle-focus .battle-card-v146 .hud-title{font-size:9px!important;line-height:10px!important;min-height:10px!important}
body.battle-focus .battle-card-v146 .hud-title span{font-size:7px!important}
body.battle-focus .battle-card-v146 .bar{height:6px!important;min-height:6px!important}
body.battle-focus .battle-card-v146 .bar span{font-size:6px!important;line-height:6px!important}
body.battle-focus .battle-card-v146 .effect-strip{height:8px!important;min-height:8px!important;gap:2px!important}
body.battle-focus .battle-card-v146 .effect-chip{height:8px!important;min-width:14px!important;padding:0 2px!important;font-size:5px!important;border-radius:3px!important}
body.battle-focus .battle-card-v146 .effect-chip i{font-size:6px!important}.battle-card-v146 .effect-chip b{font-size:5px!important}
body.battle-focus .battle-card-v146 .round-state{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
body.battle-focus .battle-card-v146 .round-state small{font-size:5px!important;margin-bottom:-8px!important}
body.battle-focus .battle-card-v146 .round-state b{font-size:16px!important}
body.battle-focus .battle-card-v146 .battle-exit{top:3px!important;right:7px!important;padding:2px 6px!important;font-size:6px!important;min-width:0!important}

/* The hit target remains comfortable, but only the painted INNER face changes colour. */
body.battle-focus .battle-card-v146 .zone-btn,
body.battle-focus .battle-card-v146 .zone-btn.selected,
body.battle-focus .battle-card-v146 .zone-btn:hover{
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;filter:none!important;animation:none!important;
}
body.battle-focus .battle-card-v146 .zone-btn::after{
  content:""!important;display:block!important;position:absolute!important;inset:9% 8%!important;
  border-radius:10px!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important;
  transition:background-color .12s ease,filter .12s ease!important;
}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:hover::after{background:rgba(40,136,210,.10)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:hover::after{background:rgba(156,45,205,.10)!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn.selected::after{background:rgba(39,145,218,.28)!important;filter:brightness(1.14) saturate(1.12)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn.selected::after{background:rgba(166,50,211,.27)!important;filter:brightness(1.14) saturate(1.12)!important}
body.battle-focus .battle-card-v146 .zone-btn.just-picked{animation:none!important;transform:none!important}

/* No inherited generic <span> tile is allowed on top of an equipped item. */
body.battle-focus .battle-card-v146 .battle-equipment .wardrobe-equipped-glow{display:none!important;width:auto!important;height:auto!important;background:transparent!important;border:0!important;box-shadow:none!important}

/* Clan cave: 13 explicit columns + square cells. This cannot collapse to 169 horizontal stripes. */
.cave-map{display:grid!important;grid-auto-flow:row!important;grid-auto-rows:auto!important;aspect-ratio:auto!important;width:min(100%,620px)!important;max-width:620px!important;gap:3px!important}
.cave-cell{display:grid!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;min-width:0!important;min-height:0!important;border-radius:5px!important;overflow:hidden!important}
.cave-cell.wall{background:#171b20!important}.cave-cell.floor{background:linear-gradient(145deg,#28313a,#1b222a)!important;box-shadow:inset 0 0 0 1px rgba(218,184,106,.18)!important}
.cave-cell.entry{background:#304837!important}.cave-cell.treasure{background:#5b4b24!important}.cave-cell.unknown{background:#242830!important;color:#77808c!important}
.cave-cell.player{background:#66562b!important;box-shadow:inset 0 0 0 2px #e0bf6e!important}
.cave-map-wrap{overflow:auto!important;background:#0c1117!important;border-color:rgba(202,166,87,.22)!important}

/* Default chat is intentionally smaller; the user can still drag its separator upward. */
body.battle-focus .global-chat{flex-basis:var(--battle-chat-height,150px)!important;height:var(--battle-chat-height,150px)!important;min-height:96px!important;max-height:44dvh!important}
@media(max-width:760px){body.battle-focus .battle-card-v146 .battle-top-hud{flex-basis:46px!important}}


/* arena-156 — current Figma node 3:2, no invented header slab */
body.battle-focus .battle-card-v146{display:flex!important;flex-direction:column!important;position:relative!important;background:#060a10!important;border:0!important;border-radius:0!important}
body.battle-focus .battle-card-v146 .battle-top-hud{
  position:absolute!important;inset:0!important;height:0!important;min-height:0!important;flex:0 0 0!important;
  display:block!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;overflow:visible!important;z-index:60!important;pointer-events:none!important;
}
body.battle-focus .battle-mode-badge{display:none!important}
body.battle-focus .battle-card-v146 .battlefield{flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;background:url('/assets/battle/arena-bg.png') center/cover no-repeat!important}
body.battle-focus .battle-card-v146 .battlefield:before,body.battle-focus .battle-card-v146 .battlefield:after,body.battle-focus .battle-card-v146 .arena-glow{display:none!important}

/* clean level and round frames supplied by the user */
body.battle-focus .battle-level-frame{position:absolute!important;display:grid!important;place-items:center!important;pointer-events:none!important;z-index:62!important}
body.battle-focus .battle-level-frame img,body.battle-focus .round-state>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;pointer-events:none!important}
body.battle-focus .battle-level-frame b{position:relative!important;z-index:2!important;font:700 calc(26px * var(--battle-ui-scale,1)) Georgia,serif!important;color:#efe5bd!important;text-shadow:0 2px 4px #000!important}
body.battle-focus .battle-level-left{left:var(--battle-level-left-x)!important;top:var(--battle-level-left-y)!important;width:var(--battle-level-left-w)!important;height:var(--battle-level-left-h)!important}
body.battle-focus .battle-level-right{left:var(--battle-level-right-x)!important;top:var(--battle-level-right-y)!important;width:var(--battle-level-right-w)!important;height:var(--battle-level-right-h)!important}
body.battle-focus .round-state{position:absolute!important;left:var(--battle-round-x)!important;top:var(--battle-round-y)!important;width:var(--battle-round-w)!important;height:var(--battle-round-h)!important;min-width:0!important;min-height:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;display:grid!important;place-items:center!important;z-index:62!important}
body.battle-focus .round-state small{position:absolute!important;top:31%!important;z-index:2!important;margin:0!important;font-size:calc(6px * var(--battle-ui-scale,1))!important;letter-spacing:.09em!important;color:#d8bd7c!important}
body.battle-focus .round-state b{position:absolute!important;top:44%!important;z-index:2!important;font-size:calc(20px * var(--battle-ui-scale,1))!important;line-height:1!important;color:#ead598!important}

/* Names and ornate HP/MP frames float directly over the arena, leaving air around them. */
body.battle-focus .battle-card-v146 .fighter-hud{position:absolute!important;width:var(--battle-bars-w)!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important;display:flex!important;gap:var(--battle-bars-gap)!important;pointer-events:auto!important;z-index:62!important}
body.battle-focus .battle-card-v146 .fighter-hud-left{left:var(--battle-left-bars-x)!important;top:var(--battle-left-bars-y)!important;align-items:flex-start!important;text-align:left!important}
body.battle-focus .battle-card-v146 .fighter-hud-right{left:var(--battle-right-bars-x)!important;top:var(--battle-right-bars-y)!important;align-items:flex-end!important;text-align:right!important}
body.battle-focus .battle-card-v146 .hud-title{height:calc(39px * var(--battle-ui-scale,1))!important;min-height:0!important;width:100%!important;display:flex!important;align-items:flex-end!important;padding:0 3px calc(2px * var(--battle-ui-scale,1))!important;font-size:calc(11px * var(--battle-ui-scale,1))!important;line-height:1!important;white-space:nowrap!important;overflow:visible!important}
body.battle-focus .battle-card-v146 .fighter-hud-right .hud-title{justify-content:flex-end!important}
body.battle-focus .battle-card-v146 .hud-title a{color:#efe8d2!important;text-shadow:0 2px 4px rgba(0,0,0,.95)!important;font-weight:700!important;text-decoration:none!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.battle-focus .battle-card-v146 .bar{position:relative!important;width:var(--battle-bars-w)!important;height:var(--battle-bar-h)!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
body.battle-focus .battle-card-v146 .bar::after{content:""!important;position:absolute!important;inset:0!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;z-index:3!important;pointer-events:none!important}
body.battle-focus .battle-card-v146 .bar.hp::after{background-image:url('/assets/battle/hp-frame.png')!important}
body.battle-focus .battle-card-v146 .bar.mana::after{background-image:url('/assets/battle/mana-frame.png')!important}
body.battle-focus .battle-card-v146 .bar i{position:absolute!important;left:15.5%!important;top:34%!important;width:78%!important;height:31%!important;border-radius:999px!important;transform:scaleX(var(--meter-scale,1))!important;transform-origin:left center!important;transition:transform .28s ease!important;z-index:1!important;box-shadow:inset 0 0 4px rgba(255,255,255,.25)!important}
body.battle-focus .battle-card-v146 .bar.hp i{background:linear-gradient(90deg,#5e0509 0%,#9d1118 35%,#d93236 75%,#f18a71 100%)!important}
body.battle-focus .battle-card-v146 .bar.mana i{background:linear-gradient(90deg,#06152f 0%,#0f3f7e 38%,#1786c7 75%,#74d9ff 100%)!important}
body.battle-focus .battle-card-v146 .bar span{position:absolute!important;left:17%!important;right:5%!important;top:0!important;bottom:0!important;z-index:4!important;display:grid!important;place-items:center!important;font-size:calc(6.3px * var(--battle-ui-scale,1))!important;line-height:1!important;color:#fff!important;text-shadow:0 1px 2px #000!important}
body.battle-focus .battle-card-v146 .effect-strip{display:none!important}

/* Current Figma geometry */
body.battle-focus .battle-card-v146 .fighter{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none!important;z-index:5!important}
body.battle-focus .battle-card-v146 .fighter>img{position:absolute!important;top:var(--battle-hero-y)!important;width:var(--battle-hero-w)!important;height:var(--battle-hero-h)!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:50% 100%!important;filter:drop-shadow(0 calc(5px * var(--battle-ui-scale,1)) calc(7px * var(--battle-ui-scale,1)) rgba(0,0,0,.26))!important;z-index:4!important}
body.battle-focus .battle-card-v146 .fighter-left>img{left:var(--battle-hero-left-x)!important;right:auto!important;transform:none!important}
body.battle-focus .battle-card-v146 .fighter-right>img{left:var(--battle-hero-right-x)!important;right:auto!important;transform:scaleX(-1)!important}
body.battle-focus .battle-card-v146 .fighter-shadow{display:block!important;position:absolute!important;top:var(--battle-shadow-y)!important;width:var(--battle-shadow-w)!important;height:var(--battle-shadow-h)!important;border-radius:50%!important;background:radial-gradient(ellipse,rgba(3,5,9,.52) 0%,rgba(5,8,13,.34) 38%,rgba(4,7,12,.12) 68%,transparent 78%)!important;filter:blur(calc(4px * var(--battle-ui-scale,1)))!important;z-index:3!important;opacity:.9!important;pointer-events:none!important}
body.battle-focus .battle-card-v146 .fighter-left .fighter-shadow{left:var(--battle-shadow-left-x)!important;right:auto!important}
body.battle-focus .battle-card-v146 .fighter-right .fighter-shadow{left:var(--battle-shadow-right-x)!important;right:auto!important}
body.battle-focus .battle-card-v146 .battle-equipment{position:absolute!important;top:var(--battle-wardrobe-y)!important;width:var(--battle-wardrobe-w)!important;height:var(--battle-wardrobe-h)!important;bottom:auto!important;pointer-events:auto!important;z-index:8!important}
body.battle-focus .battle-card-v146 .fighter-left .battle-equipment{left:var(--battle-wardrobe-left-x)!important;right:auto!important}
body.battle-focus .battle-card-v146 .fighter-right .battle-equipment{left:var(--battle-wardrobe-right-x)!important;right:auto!important}

body.battle-focus .battle-card-v146 .battle-center-stack{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none!important;z-index:20!important}
body.battle-focus .battle-card-v146 .combat-console{left:var(--battle-console-x)!important;top:var(--battle-console-y)!important;width:var(--battle-console-w)!important;height:var(--battle-console-h)!important;transform:none!important;pointer-events:auto!important}
body.battle-focus .battle-card-v146 .battle-bottom{left:var(--battle-skills-x)!important;top:var(--battle-skills-y)!important;width:var(--battle-skills-w)!important;height:var(--battle-skills-h)!important;transform:none!important;pointer-events:auto!important}
body.battle-focus .battle-card-v146 .skills-wrap{left:0!important;top:0!important;width:100%!important;height:100%!important}
body.battle-focus .battle-card-v146 .battle-bottom .skill-grid{left:8.5%!important;top:11.9%!important;width:83%!important;height:80.2%!important}
body.battle-focus .battle-card-v146 .tactics-panel{display:none!important}
body.battle-focus .battle-card-v146 .opponent-strip{left:var(--battle-opponent-x)!important;top:var(--battle-opponent-y)!important;width:var(--battle-opponent-w)!important;height:var(--battle-opponent-h)!important;min-height:0!important;max-height:none!important;transform:none!important;pointer-events:auto!important}

/* Selection never grows outside a painted body-zone button: only its inner face changes colour. */
body.battle-focus .battle-card-v146 .zone-btn,body.battle-focus .battle-card-v146 .zone-btn:hover,body.battle-focus .battle-card-v146 .zone-btn.selected{background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;animation:none!important;transform:none!important}
body.battle-focus .battle-card-v146 .zone-btn::after{content:""!important;display:block!important;position:absolute!important;inset:12% 10%!important;border-radius:18%!important;background:transparent!important;box-shadow:none!important;filter:none!important;pointer-events:none!important;transition:background-color .12s ease!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn:hover::after{background:rgba(53,151,219,.11)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn:hover::after{background:rgba(164,57,211,.10)!important}
body.battle-focus .battle-card-v146 .block-stack .zone-btn.selected::after{background:rgba(39,150,222,.31)!important}
body.battle-focus .battle-card-v146 .attack-stack .zone-btn.selected::after{background:rgba(167,55,214,.30)!important}

/* Bottom-right Figma placeholder becomes the exact two-tab module already specified for the battle UI. */
body.battle-focus .battle-utility-dock{display:flex;position:fixed;right:0;bottom:0;width:calc(388 / 1366 * 100vw);height:var(--battle-chat-height,150px);min-height:96px;max-height:44dvh;z-index:72;flex-direction:column;background:linear-gradient(180deg,rgba(11,17,27,.98),rgba(6,11,18,.99));border:1px solid rgba(203,165,82,.50);border-right:0;border-bottom:0;border-radius:10px 0 0 0;box-shadow:0 -8px 24px rgba(0,0,0,.22);overflow:hidden}
body:not(.battle-focus):not(.battle-v2) .battle-utility-dock{display:none}
body.battle-focus .battle-utility-tabs{display:grid;grid-template-columns:1fr 1fr;height:34px;flex:0 0 34px;border-bottom:1px solid rgba(202,165,80,.32)}
body.battle-focus .battle-utility-tabs button{border:0;background:rgba(11,18,29,.88);color:#9da8b7;font:700 8px Georgia,serif;letter-spacing:.08em;cursor:pointer}
body.battle-focus .battle-utility-tabs button+button{border-left:1px solid rgba(202,165,80,.25)}
body.battle-focus .battle-utility-tabs button.active{color:#e8cc83;background:linear-gradient(180deg,rgba(45,35,20,.72),rgba(13,20,31,.92));box-shadow:inset 0 -2px 0 rgba(205,166,76,.65)}
body.battle-focus .battle-utility-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;padding:9px 10px 10px}
body.battle-focus .battle-utility-slot{position:relative;display:grid;place-items:center;min-width:0;min-height:0;border:1px solid rgba(190,153,78,.44);border-radius:6px;background:radial-gradient(circle at 50% 40%,rgba(29,42,60,.72),rgba(8,14,23,.94));overflow:hidden}
body.battle-focus .battle-utility-slot.empty{opacity:.42}
body.battle-focus .battle-utility-slot img{width:78%;height:78%;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))}
body.battle-focus .battle-utility-slot b{position:absolute;right:3px;bottom:2px;font-size:8px;color:#f1d28c;text-shadow:0 1px 2px #000}
body.battle-focus .battle-utility-dot{width:12px;height:12px;border-radius:50%;background:#8569b9;box-shadow:0 0 8px rgba(151,115,219,.35)}

/* Chat and the utility dock occupy the same bottom row as in Figma: 958 + 18 + 388 = 1364. */
body.battle-focus .global-chat{align-self:flex-start!important;width:calc(958 / 1366 * 100vw)!important;max-width:none!important;margin:0!important;border-radius:0 10px 0 0!important}
body.battle-focus .chat-resize-handle{right:calc(-408 / 1366 * 100vw)!important}

@media(max-width:760px){
  body.battle-focus .battle-utility-tabs{height:28px;flex-basis:28px}
  body.battle-focus .battle-utility-grid{gap:3px;padding:5px}
  body.battle-focus .battle-utility-tabs button{font-size:6px}
}

body.battle-focus .battle-utility-glyph{font-size:clamp(16px,2vw,30px);line-height:1;filter:drop-shadow(0 2px 3px rgba(0,0,0,.5))}


/* arena-157 — separate battle utility window.  It is its own framed module,
   not part of the chat, and keeps the exact two-tab structure requested. */
body.battle-focus .battle-utility-window{
  display:flex;
  position:fixed;
  right:8px;
  bottom:8px;
  width:max(270px,calc(388 / 1366 * 100vw - 16px));
  height:max(112px,calc(var(--battle-chat-height,150px) - 16px));
  min-height:112px;
  max-height:42dvh;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(214,174,86,.72);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(16,23,35,.985),rgba(6,11,19,.99));
  box-shadow:0 10px 32px rgba(0,0,0,.46),inset 0 0 0 1px rgba(76,107,150,.14);
  z-index:74;
}
body.battle-focus .battle-utility-window::before{
  content:"";position:absolute;inset:3px;pointer-events:none;border-radius:9px;
  border:1px solid rgba(92,118,157,.16);box-shadow:inset 0 0 22px rgba(32,61,102,.16)
}
body.battle-focus .battle-utility-window .battle-utility-tabs{
  position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;
  height:31px;flex:0 0 31px;border-bottom:1px solid rgba(209,169,78,.42);
  background:rgba(8,13,22,.92)
}
body.battle-focus .battle-utility-window .battle-utility-tabs button{
  position:relative;border:0;background:transparent;color:#8995a7;
  font:700 9px Georgia,serif;letter-spacing:.09em;cursor:pointer;transition:color .16s,background .16s
}
body.battle-focus .battle-utility-window .battle-utility-tabs button+button{border-left:1px solid rgba(207,167,78,.28)}
body.battle-focus .battle-utility-window .battle-utility-tabs button.active{
  color:#f1d48b;background:linear-gradient(180deg,rgba(63,47,22,.52),rgba(17,25,38,.18));box-shadow:none
}
body.battle-focus .battle-utility-window .battle-utility-tabs button.active::after{
  content:"";position:absolute;left:14%;right:14%;bottom:0;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,#d4ad57,transparent);box-shadow:0 0 7px rgba(212,173,87,.45)
}
body.battle-focus .battle-utility-window .battle-utility-grid{
  position:relative;z-index:1;flex:1 1 auto;min-height:0;overflow-y:auto;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(38px,1fr);
  gap:6px;padding:8px 9px 9px;align-content:start
}
body.battle-focus .battle-utility-window .battle-utility-slot{
  position:relative;min-width:0;min-height:0;display:grid;place-items:center;
  border:1px solid rgba(185,149,72,.48);border-radius:7px;
  background:radial-gradient(circle at 50% 38%,rgba(31,45,64,.74),rgba(7,13,22,.96) 72%);
  overflow:hidden;transition:opacity .15s,filter .15s,border-color .15s,box-shadow .15s,transform .15s
}
body.battle-focus .battle-utility-window .battle-utility-slot img{
  width:88%;height:88%;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.5))
}
body.battle-focus .battle-utility-window .battle-utility-slot.unavailable{
  opacity:.28;filter:saturate(.34) brightness(.72)
}
body.battle-focus .battle-utility-window .battle-utility-slot.available{
  opacity:1;border-color:rgba(222,181,87,.74);box-shadow:inset 0 0 12px rgba(84,123,173,.14)
}
body.battle-focus .battle-utility-window .battle-utility-slot.effect-active{
  border-color:rgba(159,103,223,.84);box-shadow:inset 0 0 14px rgba(115,69,172,.24),0 0 7px rgba(131,80,194,.18)
}
body.battle-focus .battle-utility-window .battle-utility-slot.available:hover{transform:translateY(-1px)}
body.battle-focus .battle-utility-window .battle-utility-badge{
  position:absolute;right:3px;bottom:2px;min-width:14px;height:13px;padding:0 3px;
  display:grid;place-items:center;border-radius:7px;background:rgba(5,9,15,.82);border:1px solid rgba(201,164,79,.42);
  font:700 7px Arial,sans-serif;color:#f0d28c;text-shadow:0 1px 2px #000
}
body.battle-focus .battle-utility-window .battle-utility-state{position:absolute;left:4px;top:4px;width:4px;height:4px;border-radius:50%;background:#596474;opacity:.4}
body.battle-focus .battle-utility-window .available .battle-utility-state{background:#d9b45d;opacity:.9;box-shadow:0 0 5px rgba(217,180,93,.5)}
body.battle-focus .battle-utility-window .effect-active .battle-utility-state{background:#a56ce2;box-shadow:0 0 6px rgba(165,108,226,.65)}

/* Keep a real gap between the chat and the independent utility window. */
body.battle-focus .global-chat{width:calc(958 / 1366 * 100vw)!important;max-width:calc(100vw - 298px)!important}

@media(max-width:900px){
  body.battle-focus .battle-utility-window{right:5px;bottom:5px;width:min(44vw,330px);height:max(104px,calc(var(--battle-chat-height,140px) - 10px))}
  body.battle-focus .global-chat{width:calc(56vw - 8px)!important;max-width:none!important}
  body.battle-focus .battle-utility-window .battle-utility-grid{gap:4px;padding:6px}
  body.battle-focus .battle-utility-window .battle-utility-tabs{height:28px;flex-basis:28px}
  body.battle-focus .battle-utility-window .battle-utility-tabs button{font-size:7px}
}

/* ── Первые шаги (arena-158) ─────────────────────────────────────────────────
   Чек-лист новичка на главной. Собран на тех же токенах, что и остальной
   интерфейс, в обычном потоке — без абсолютного позиционирования и !important,
   поэтому переносится на любую ширину сам.                                    */
.onboarding{
  margin:0 0 16px;padding:18px 20px;border:1px solid var(--line);border-radius:var(--radius);
  background:linear-gradient(150deg,rgba(214,180,107,.09),var(--panel) 42%);box-shadow:var(--shadow)
}
.onboarding-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.onboarding-head small{color:var(--gold);font-size:10px;letter-spacing:.14em}
.onboarding-head h2{margin:6px 0 0;font-family:Georgia,serif;font-size:22px;font-weight:600}
.onboarding-count{display:flex;align-items:baseline;gap:2px;color:var(--muted);font-size:13px}
.onboarding-count b{color:var(--gold);font-size:22px}
.onboarding-track{height:4px;margin:14px 0 4px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}
.onboarding-track i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--gold2),var(--gold));transition:width .35s ease}
.onboarding-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.onboarding-step{
  display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.05)
}
.onboarding-step:last-child{border-bottom:0}
.onboarding-mark{
  width:28px;height:28px;display:grid;place-items:center;border-radius:50%;
  border:1px solid var(--line);background:var(--bg2);color:var(--muted);font-size:12px;font-weight:700
}
.onboarding-step.next .onboarding-mark{border-color:var(--gold);color:var(--gold);background:rgba(214,180,107,.12)}
.onboarding-step.done .onboarding-mark{border-color:var(--green);color:var(--green);background:rgba(77,154,114,.14)}
.onboarding-copy b{display:block;font-size:14px}
.onboarding-copy p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.onboarding-step.done .onboarding-copy b{color:var(--muted);text-decoration:line-through}
.onboarding-step.done .onboarding-copy p{display:none}
.onboarding-cta{white-space:nowrap;padding:9px 16px;font-size:12px}

@media (max-width:640px){
  .onboarding{padding:16px}
  .onboarding-step{grid-template-columns:28px minmax(0,1fr);row-gap:10px}
  .onboarding-cta{grid-column:2;justify-self:start}
}

/* ── Обратная связь в бою (arena-159) ────────────────────────────────────────
   Раньше цифры урона были детьми .fighter, который в макете v146 растянут на
   всё поле (inset:0), поэтому left:50% ставил их в центр арены — под пульт боя
   (z-index 15 против 12). Привязываем их к реальным координатам бойцов, теми же
   переменными, которыми позиционируются сами фигуры.                          */
body.battle-focus .battle-card-v146 .damage-float{
  z-index:30!important;
  top:calc(var(--battle-hero-y) + var(--battle-hero-h) * .06)!important;
  font-size:calc(30px * var(--battle-ui-scale,1))!important;
  /* transform НЕ переопределяем: его анимирует @keyframes damageUp, и !important
     здесь заморозил бы всплытие цифры на месте. */
}
body.battle-focus .battle-card-v146 .fighter-left .damage-float{
  left:calc(var(--battle-hero-left-x) + var(--battle-hero-w) / 2)!important;
}
body.battle-focus .battle-card-v146 .fighter-right .damage-float{
  left:calc(var(--battle-hero-right-x) + var(--battle-hero-w) / 2)!important;
}
body.battle-focus .battle-card-v146 .impact-fx{
  z-index:28!important;
  width:calc(150px * var(--battle-ui-scale,1))!important;
  height:calc(150px * var(--battle-ui-scale,1))!important;
}

/* Крит крупнее и горячее обычного удара, лечение — зелёное. */
.damage-float.crit{color:#ffd98a;font-size:52px;text-shadow:0 0 16px rgba(255,146,74,.75),0 2px 8px #000}
body.battle-focus .battle-card-v146 .damage-float.crit{font-size:calc(42px * var(--battle-ui-scale,1))!important}
.damage-float.heal{color:#7fd8a4;text-shadow:0 0 14px rgba(77,154,114,.6),0 2px 7px #000}
body.battle-focus .battle-card-v146 .damage-float.blocked{font-size:calc(20px * var(--battle-ui-scale,1))!important}
.impact-fx.crit{background:radial-gradient(circle,rgba(255,247,220,.95) 0,rgba(255,138,60,.5) 20%,transparent 66%)}

/* Тряска арены: мягкая на тяжёлый удар, резкая на крит. */
.battlefield.shake-soft{animation:shakeSoft .26s ease}
.battlefield.shake-hard{animation:shakeHard .40s cubic-bezier(.36,.07,.19,.97)}
@keyframes shakeSoft{
  0%,100%{transform:translate(0,0)}
  30%{transform:translate(-3px,2px)}
  60%{transform:translate(3px,-1px)}
}
@keyframes shakeHard{
  0%,100%{transform:translate(0,0)}
  15%{transform:translate(-8px,3px)}
  32%{transform:translate(7px,-4px)}
  50%{transform:translate(-6px,-2px)}
  70%{transform:translate(4px,3px)}
  86%{transform:translate(-2px,-1px)}
}

/* Догоняющая полоса потерянного HP — под основной, стекает с задержкой. */
body.battle-focus .battle-card-v146 .bar.hp i.chip{
  z-index:0!important;
  background:linear-gradient(90deg,#f7e4c6,#f3b9a0)!important;
  opacity:.55!important;
  transition:transform .55s cubic-bezier(.22,.61,.36,1)!important;
}
.bar i.chip{position:absolute;left:0;top:0;height:100%;width:100%;border-radius:20px;
  background:#f0d3b4;opacity:.5;transform-origin:left center;
  transform:scaleX(var(--meter-scale,1));transition:transform .55s ease;z-index:0}

/* Кто-то предпочитает без анимаций — уважаем системную настройку. */
@media (prefers-reduced-motion:reduce){
  .battlefield.shake-soft,.battlefield.shake-hard{animation:none}
  .fighter.hit,.fighter.crit,.fighter.evade{animation:none}
  .bar i.chip{transition:none}
}

/* На узких экранах сцена боя свёрстана под макет 1366px и уезжает за вьюпорт
   вместе с координатами бойцов (это чинится переписыванием боевого экрана).
   Пока — привязываем цифры к половинам поля, чтобы они гарантированно
   оставались на экране. */
@media (max-width:900px){
  body.battle-focus .battle-card-v146 .fighter-left .damage-float{left:26%!important}
  body.battle-focus .battle-card-v146 .fighter-right .damage-float{left:74%!important}
  body.battle-focus .battle-card-v146 .damage-float{
    top:26%!important;
    font-size:26px!important;
  }
  body.battle-focus .battle-card-v146 .damage-float.crit{font-size:34px!important}
  body.battle-focus .battle-card-v146 .damage-float.blocked{font-size:18px!important}
}
