.siege-active .lh,.siege-active #presencePanel,.siege-active #eR,.siege-active #cPanel,.siege-active #dropPanel,.siege-active #questTracker,.siege-active #pvpTargetPanel.is-combat,.siege-active #pvpIncomingGrid,.siege-active .location-character-panel{display:none!important}
.siege-active #effectBar{z-index:20}
.siege-active #pvpTargetPanel.is-interaction{z-index:40;top:100px;left:50%;right:auto;transform:translateX(-50%);min-width:0;max-width:calc(100% - 24px)}
.siege-world{position:absolute;inset:0 0 34px;z-index:15;color:#eadfc5;font-family:Georgia,serif;pointer-events:none;isolation:isolate}
.siege-world[hidden],.siege-world [hidden]{display:none!important}
.siege-hud{position:absolute;inset:0 0 32px;z-index:6;pointer-events:none}
.siege-staging .staging-content{display:contents}
.siege-world button{pointer-events:auto;font:inherit;color:inherit;cursor:pointer;background:#171713ed;border:1px solid #716447;border-radius:5px;padding:6px 10px}
.siege-world button:focus-visible{outline:2px solid #ffe2a0;outline-offset:3px}
.siege-world button:hover:not(:disabled){border-color:#e8cc89}
.siege-arena{position:absolute;inset:0 0 32px;overflow:hidden;border:0;box-shadow:none;background:#171e1b;container-type:size;pointer-events:auto}
.siege-scene{position:absolute;inset:0;container-type:size}
.siege-terrain{position:absolute;inset:0;background-size:100% 100%;background-position:center;filter:brightness(.85) saturate(.9)}
.siege-arena:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 50px #070c0b8f;pointer-events:none;z-index:1}
.siege-world .battlefield,.siege-world .battle-corridor{position:absolute;inset:0;z-index:3;pointer-events:none}
.siege-world .battle-row{position:absolute;top:var(--row-y);left:var(--row-x,50%);width:var(--row-span);transform:translate(-50%,-50%);display:grid;grid-template-columns:repeat(var(--slots),minmax(0,1fr));gap:6px;height:7cqh}
.siege-world .grid-cell{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:100%;padding:0;border:0;background:none;box-shadow:none;transition:filter .12s}
.siege-world .position-tile{position:relative;width:clamp(36px,5cqw,64px);max-width:95%;height:38px;display:grid;place-items:center;background:radial-gradient(ellipse,#080e0ccc,transparent 74%);filter:drop-shadow(0 3px 2px #000);transition:filter .12s,transform .12s}
.siege-world .position-tile svg{width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round}
.siege-world .position-shadow{stroke:#11170e;stroke-width:7}
.siege-world .position-gold{stroke:#fff0b3;stroke-width:2.5;filter:drop-shadow(0 1px #ae7731)}
.siege-world .position-tip{fill:#ffe4a1;filter:drop-shadow(0 0 3px #f4bc64)}
.siege-world .position-lock{stroke:#aaa99b;stroke-width:2}
.siege-world .blocked .position-gold{stroke:#aaa99b;stroke-width:1.5;filter:none}
.siege-world .blocked .position-tile{opacity:.8}
.siege-world .grid-cell.free:hover .position-tile,.siege-world .grid-cell.selected .position-tile{filter:drop-shadow(0 2px 2px #000) drop-shadow(0 0 7px #ffe5a0);transform:translateY(-2px)}
.siege-world .siege-stone-approach{position:absolute;left:var(--exit-x);top:var(--exit-y);transform:translate(-50%,-50%);z-index:5;min-width:140px;padding:7px 12px;background:linear-gradient(125deg,#51432ce8,#1a211bed);border-color:#d3b47c;box-shadow:0 4px 16px #0009}
.siege-world .siege-stone-approach span{display:block;font:13px Georgia,serif;color:#ffe4a4}
.siege-world .siege-stone-approach small{display:block;font:8px/1.5 Arial,sans-serif;color:#d3c8af;margin-top:3px}
.siege-world .siege-stone-approach:disabled{cursor:default;filter:saturate(.5);opacity:.8}
.siege-world .actor-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;width:100%;max-width:148px;padding:5px 6px;background:linear-gradient(105deg,#141c18f2,#101713e8 85%,#182018b8);border:1px solid #baa77b80;border-radius:5px;box-shadow:0 3px 8px #000b,inset 0 1px #ebd2a01a;text-align:left;box-sizing:border-box}
.siege-world .actor-card.invisible{opacity:.62}
.siege-world .guild-crest{display:inline-flex;align-items:center;justify-content:center;width:clamp(20px,3.5cqh,30px);height:clamp(20px,3.5cqh,30px);flex-shrink:0;overflow:hidden;font:17px Arial,sans-serif}
.siege-world .guild-logo-image{width:100%;height:100%;object-fit:contain}
.siege-world .actor-copy{min-width:0}
.siege-world .actor-copy small,.siege-world .actor-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px #000}
.siege-world .actor-copy small{font:clamp(8px,1.45cqh,10px)/1.35 Arial,sans-serif;color:#cbbb91}
.siege-world .actor-copy strong{font:bold clamp(9px,1.7cqh,12px)/1.3 Arial,sans-serif;color:#fff1d8}
.siege-world .enemy .actor-card{border-color:#b7846d99}
.siege-world .allied .actor-card{border-color:#a8bd8e99}
.siege-world .is-self .actor-card{border-color:#ffe0a0;box-shadow:0 0 0 1px #46391c,0 2px 15px #f6d07961}
.siege-world .is-self .actor-card:before{content:'ВЫ';position:absolute;top:-13px;left:0;font:bold 8px Arial,sans-serif;letter-spacing:.12em;color:#ffe5a2;text-shadow:0 1px 4px #000}
.siege-world .targeted .actor-card{border-color:#ffad89;box-shadow:0 0 0 1px #b54e30,0 0 16px #e26a4469}
.siege-world .resources{grid-column:1/-1;display:grid;gap:2px;width:100%;margin-top:1px}
.siege-world .resource{position:relative;height:7px;background:#100e0b;overflow:hidden;border-radius:3px;container-type:inline-size}
.siege-world .resource:after{content:'';position:absolute;inset:0;background:url('/assets/ui/bars/resource-frame.webp?v=9fd1507372ae') center/100% 100%;pointer-events:none}
.siege-world .resource i{display:block;position:relative;height:100%;overflow:hidden}
.siege-world .resource i:before{content:'';position:absolute;inset:0 auto 0 0;width:100cqw;background:center/100% 100% no-repeat}
.siege-world .hp i:before{background-image:url('/assets/ui/bars/hp-fill.webp?v=9fd1507372ae')}
.siege-world .mp i:before{background-image:url('/assets/ui/bars/mp-fill.webp?v=9fd1507372ae')}
.siege-world .effect-reveal:before{content:'';position:absolute;inset:-5px 5%;border-block:1px solid #98d4ff70;background:linear-gradient(90deg,transparent,#58b7e955,transparent);pointer-events:none}
.siege-world .effect-reveal .grid-cell{filter:drop-shadow(0 0 5px #b4dcf7)}
.siege-world .siege-stone{position:absolute;left:50%;top:var(--stone-base);height:min(13%,var(--stone-base));width:clamp(70px,13cqw,150px);transform:translate(-50%,-100%);border:0;background:none;z-index:4;padding:0;isolation:isolate}
.siege-world[data-side=defender] .siege-stone{height:17%}
.siege-world .siege-stone:hover{background:none;filter:brightness(1.15)}
.siege-world .stone-art{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 9px 5px #0009)}
.siege-world .stone-aura{position:absolute;bottom:1%;left:12%;right:12%;height:26%;border-radius:50%;background:#65c6f727;box-shadow:0 0 25px #52b6e85e;border:1px solid #83b8ce70}
.siege-world[data-stone=outpost] .stone-aura{background:#d9a15d20;box-shadow:0 0 22px #d2a15b40;border-color:#dab46a70}
.siege-world .siege-objective{position:absolute;left:12px;top:12px;width:clamp(140px,19cqw,210px);z-index:6;padding:10px 12px;background:linear-gradient(110deg,#111a17f2,#101713c4);border:1px solid #a38c5e7a;border-radius:6px;box-shadow:0 4px 12px #0007;box-sizing:border-box}
.siege-world.captured .siege-objective{border-color:#c57962;box-shadow:0 0 14px #a6382b45}
.siege-world .stone-kind{display:block;font:8px/1.4 Arial,sans-serif;letter-spacing:.1em;color:#c8af79;margin-bottom:7px}
.siege-world .siege-owner{display:flex;align-items:center;gap:7px;min-width:0}
.siege-world .siege-owner strong{font:12px Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.siege-world .siege-owner .guild-crest{width:22px;height:22px}
.siege-world .stone-hp{height:6px;background:#080d0b;border:1px solid #7c684477;margin:7px 0 5px;border-radius:3px;overflow:hidden}
.siege-world .stone-hp i{display:block;height:100%;background:linear-gradient(90deg,#3d7a92,#a5dce1);transition:width .12s}
.siege-world[data-stone=outpost] .stone-hp i{background:linear-gradient(90deg,#9c7e48,#e4c787)}
.siege-world .stone-hold{display:block;font:9px/1.3 Arial,sans-serif;color:#c9bb9a}
.siege-world .siege-stone-alert,.siege-world .siege-recovery{margin-top:7px;padding-top:7px;border-top:1px solid #b58b5860;font:10px/1.4 Arial,sans-serif;color:#ffbc92}
.siege-world .siege-recovery{color:#c7dfb8}
.siege-world .siege-passages{position:absolute;inset:0;pointer-events:none;z-index:5}
.siege-world .passage-button{position:absolute;display:grid;grid-template-columns:16px auto;align-items:center;gap:0 6px;min-height:36px;padding:6px 11px;border:1px solid #b99a5f99;border-radius:5px;background:linear-gradient(135deg,#423823ed,#181e18f5);box-shadow:0 3px 10px #0009,inset 0 1px #e7d5a12e}
.siege-world .passage-button>span{grid-row:1/3;font:23px Georgia,serif;color:#e0be76}
.siege-world .passage-button>b{font:11px Georgia,serif;letter-spacing:.03em}
.siege-world .passage-button>small{font:8px Arial,sans-serif;color:#ceb47c}
.siege-world .passage-button[data-passage=central]{bottom:2px;left:50%;transform:translateX(-50%)}
.siege-world .passage-button[data-passage=west]{left:calc(clamp(160px,18cqw,240px) + 24px);top:40%}
.siege-world .passage-button[data-passage=east]{right:334px;top:40%}
.siege-world .passage-button.chosen{display:none}
.siege-world .passage-button.chosen{border-color:#e3c780;background:linear-gradient(135deg,#655333ed,#293224f5);box-shadow:0 3px 10px #0009,0 0 13px #e6c9772e}
.siege-world .siege-staging{position:absolute;left:12px;top:132px;width:clamp(160px,18cqw,240px);max-height:calc(100% - 210px);display:flex;flex-direction:column;padding:10px;z-index:6;box-sizing:border-box;border:1px solid #b7a27077;border-radius:6px;background:linear-gradient(120deg,#20271fef,#171b15ed);box-shadow:0 5px 20px #0006;pointer-events:auto}
.siege-world .siege-staging header{display:flex;justify-content:space-between;align-items:center;padding:2px 0 8px;border-bottom:1px solid #a18a5a55;font:11px Arial,sans-serif;color:#e6cf96}
.siege-world .staging-toggle{display:none}
.siege-world .staging-players{overflow:auto;display:grid;gap:6px;min-height:0;scrollbar-width:thin}
.siege-world .staging-players:has(button){padding-top:8px}
.siege-world .staging-players>button{padding:0;border:0;background:none}
.siege-world .staging-group{font:9px/1.5 Arial,sans-serif;color:#d1b47c;border-bottom:1px solid #a18a5a33;padding-top:6px}
.siege-world .siege-staging .actor-card{max-width:none;padding:6px}
.siege-world .siege-staging .is-self .actor-card:before{display:none}
.siege-world .siege-staging p{font:10px/1.5 Arial,sans-serif;color:#bdb69d;margin:9px 0 0}
.siege-world .stone-hold:empty{display:none}
.siege-world .siege-threat{position:absolute;right:334px;top:12px;max-width:24%;background:#331b15e0;border-left:2px solid #e49b7d;border-radius:4px;padding:8px 10px;z-index:6;text-shadow:0 1px 2px #000}
.siege-world .siege-threat strong{display:block;font:12px Georgia,serif;color:#ffd4b2}
.siege-world .siege-threat span{display:block;font:9px/1.4 Arial,sans-serif;color:#d6b59b;margin-top:4px}
.siege-world.under-attack .siege-arena:after{box-shadow:inset 0 0 40px #a13b2261,inset 0 0 5px #e5905c6e}
.siege-world .siege-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:9}
.siege-world .siege-footer{position:absolute;bottom:0;left:0;right:0;height:28px;display:flex;align-items:center;gap:12px;font:10px Arial,sans-serif;color:#d7cba9}
.siege-world .siege-footer button{margin-left:auto;font:10px Arial,sans-serif;padding:4px 12px}
.siege-world .siege-step{position:relative;min-width:150px;height:21px;background:#101711de;border:1px solid #947b4c66;border-radius:4px;overflow:hidden}
.siege-world .siege-step span{position:relative;z-index:1;display:block;padding:4px 8px;font-size:9px}
.siege-world .siege-step i{position:absolute;left:0;bottom:0;height:3px;background:#d9bd7e;transition:width .1s linear}
.siege-world .siege-message{position:absolute;bottom:34px;left:25%;right:25%;text-align:center;font:11px Arial,sans-serif;color:#ffe0a1;text-shadow:0 1px 4px #000,0 0 6px #000;margin:0;z-index:10}
body.siege-active .bg-s>.location-scene-picture{visibility:hidden}
body.interface-shell.interface-liquid.siege-active .bg-s{background-image:linear-gradient(#171d17,#0d130f);filter:none}
.siege-world .siege-stone.under-fire .stone-art{filter:brightness(1.22) drop-shadow(0 0 12px #eabb74a0)}
.siege-world .siege-stone.under-fire .stone-aura{animation:siege-stone-impact .7s ease-out infinite;border-color:#ffe3ac;background:#ffca7340}
@keyframes siege-stone-impact{from{transform:scale(.8);opacity:1}to{transform:scale(1.65);opacity:0}}
@media(max-width:1400px){.siege-world{top:0}.siege-world .actor-card{gap:3px;padding:3px}.siege-world .actor-copy small{font-size:8px}.siege-world .actor-copy strong{font-size:9px}.siege-world .siege-objective{padding:8px}.siege-world .passage-button{padding:5px 8px}.siege-world .passage-button>b{font-size:10px}}
@media(max-width:1000px){.siege-world{right:0}.siege-world .actor-card{gap:3px}.siege-world .siege-objective{width:145px}.siege-world .siege-threat{right:12px;max-width:30%}.siege-world .siege-staging{width:155px}.siege-world .passage-button[data-passage=east]{right:12px}}
@media(max-width:600px){.siege-world .actor-card{grid-template-columns:1fr;gap:1px;padding:2px;text-align:center}.siege-world .actor-card .guild-crest{width:16px;height:16px;margin:auto}.siege-world .actor-copy small{font-size:7px}.siege-world .actor-copy strong{font-size:8px}.siege-world .siege-staging .actor-card{grid-template-columns:auto minmax(0,1fr);text-align:left}.siege-world .siege-objective{width:125px;padding:6px}.siege-world .siege-owner strong{font-size:10px}.siege-world .passage-button>b{font-size:9px}.siege-world .passage-button{padding:4px 6px}.siege-world .siege-step{min-width:120px}.siege-world .siege-footer{gap:6px;font-size:9px}}
@media(max-width:600px){.siege-world .siege-staging{top:12px;left:6px;width:125px;max-height:35%;padding:6px}.siege-world .staging-toggle{display:block;padding:0 3px;border:0;background:none;font:16px Arial}.siege-world:not(.staging-expanded) .siege-staging :is(.staging-players,p){display:none}.siege-world:not(.staging-expanded) .siege-staging header{padding-bottom:0;border:0}.siege-world .siege-staging header{font-size:9px;gap:4px}.siege-world .siege-objective{left:auto;right:6px;width:110px}.siege-world .passage-button[data-passage=west]{left:6px}.siege-world .passage-button[data-passage=east]{right:6px}.siege-world .siege-threat{top:100px;right:6px;max-width:100px}}
@media(prefers-reduced-motion:reduce){.siege-world *{transition:none!important;animation:none!important}}
