.bag-search-row{display:flex;align-items:stretch;gap:8px;min-width:0;}.bag-search-row>.bag-search{flex:1;min-width:0;margin:0;}.bag-bulk-toggle{display:grid;place-items:center;flex:0 0 37px;width:37px;border:1px solid #c4ceb2;border-radius:8px;background:#faf9ef;color:#8a8067;}.bag-bulk-toggle svg,.item-lock-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}.bag-bulk-toggle[aria-pressed=true]{background:#f4e2dc;border-color:#c39486;color:#a66153;}.bulk-discard-heading{position:sticky;top:0;z-index:8;display:grid;gap:3px;padding:10px 12px;margin:9px 0;border:1px solid #d2b2a3;border-radius:9px;background:#fbf0e7;color:#865d50;animation:bulk-strip-in .22s ease-out;}.bulk-discard-heading strong{font-size:13px;}.bulk-discard-heading small{font-size:10px;color:#9a8a75;}.bulk-discard-actions{position:sticky;bottom:0;z-index:9;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px;margin-top:9px;border:1px solid #d5c7a8;border-radius:10px;background:#fff8e9;box-shadow:0 -4px 14px #43533b17;animation:bulk-strip-in .22s ease-out;}.bulk-discard-actions button{min-height:37px;border:1px solid #cabe99;border-radius:7px;background:#f3eedc;color:#6d765a;font:600 12px/1.2 Interface,sans-serif;}.bulk-discard-actions [data-bulk-confirm]:not(:disabled){background:#a96556;border-color:#a06052;color:#fff8ec;}.bulk-discard-actions button:disabled{background:#e3e4d8;border-color:#cdd0bf;color:#a3a897;}.bulk-discard-active .relic-card{cursor:pointer;}.bulk-discard-active .relic-card:after{position:absolute;inset:0;border:1px solid transparent;border-radius:13px;pointer-events:none;box-sizing:border-box;}.bulk-discard-active .relic-card.bulk-selected:after{content:'×';display:grid;place-items:center;background:#fff8f0bd;border-color:#c77969;color:#ad6255;font:400 34px/1 Interface,sans-serif;box-shadow:inset 0 0 0 4px #fff6f07a;z-index:20;}.bulk-discard-active .relic-card.bulk-selected .inventory-art img{filter:blur(1px);}.bulk-discard-active .bulk-blocked{opacity:.55;}.inventory-confirm{box-sizing:border-box;width:min(330px,calc(100vw - 34px));max-height:80vh;padding:15px;border:1px solid #c6ba96;outline:1px solid #e4d6b3;outline-offset:-5px;border-radius:13px;background:#fff9e9;color:#54705e;box-shadow:0 10px 35px #38452b32;animation:bulk-strip-in .22s ease-out;}.inventory-confirm::backdrop{background:#fffdf0bd;backdrop-filter:blur(3px);}.inventory-confirm header{display:flex;align-items:flex-start;gap:10px;}.inventory-confirm h2{font:650 16px/1.4 Interface,sans-serif;margin:3px 0;flex:1;}.inventory-confirm header button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #d4c29a;border-radius:6px;background:#fff9e9;color:#729180;font-size:20px;}.inventory-confirm p{font:12px/1.5 Interface,sans-serif;color:#95856a;}.inventory-confirm footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;}.inventory-confirm footer button{min-height:36px;border:1px solid #cfbd92;border-radius:7px;background:#f3ebd4;color:#87724f;font:600 12px/1.2 Interface,sans-serif;}.inventory-confirm .inventory-confirm-danger{background:#a96556;border-color:#a06052;color:#fff7e6;}.item-lock-toggle{display:grid!important;place-items:center;width:34px!important;height:34px!important;min-height:34px!important;padding:6px!important;flex:0 0 34px;}.item-lock-toggle[aria-pressed=true]{background:#e9eedc;color:#6b8056;border-color:#b6c397;}.item-lock-toggle.is-latching .lock-shackle{transform-origin:7px 10px;animation:lock-latch .24s ease-out;}.inventory-stock .inventory-lock{display:inline-flex;vertical-align:middle;margin-left:4px;}.inventory-lock svg{width:10px;height:10px;fill:none;stroke:#788568;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}.inventory-properties{display:flex;flex-wrap:nowrap!important;gap:4px;min-width:0;}.inventory-properties>.item-stat-chip{min-width:0;flex:0 1 auto;padding-left:5px;padding-right:5px;}.inventory-properties>.item-extra-count{display:grid;place-items:center;flex:0 0 23px;width:23px;height:24px;border:1px solid #cbd5b4;border-radius:6px;background:#f3f6e9;color:#738065;font:600 10px/1 Interface,sans-serif;}.item-is-broken .inventory-card,.relic-equipment.item-is-broken .equipment-slot,.inspection-gear.is-shared.item-is-broken{background:linear-gradient(#e7e9e1,#cbd0c5);}.item-is-broken .inventory-art img,.relic-equipment.item-is-broken .equipment-slot-art img,.inspection-gear.is-shared.item-is-broken img{filter:grayscale(.85);opacity:.62;}.broken-item-mark{position:absolute;inset:38px 10px 50px;display:grid;place-items:center;pointer-events:none;}.broken-item-mark svg{width:60%;height:80%;fill:none;stroke:#71806b;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px #fff8);}.broken-item-mark .broken-hammer{stroke:#51634e;stroke-width:2.2;}.item-is-broken .inventory-art{position:relative;}.item-back-story{overflow-y:auto;scrollbar-width:none;}.item-back-story::-webkit-scrollbar{display:none;}
@keyframes bulk-strip-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes lock-latch{0%{transform:rotate(-16deg)}100%{transform:rotate(0)}}
@media(prefers-reduced-motion:reduce){.bulk-discard-heading,.bulk-discard-actions,.inventory-confirm,.item-lock-toggle.is-latching .lock-shackle{animation:none;}}

.work-item-still{display:grid;place-items:center;width:100%;height:164px;margin:8px 0 12px;border:1px solid #d4c5a1;border-radius:12px;background:radial-gradient(ellipse,#fffbed,#efe8d6);animation:bulk-strip-in .26s ease-out;}.work-item-still img{width:116px;height:128px;object-fit:contain;}
.broken-item-mark{inset:45px 15px 65px;z-index:3;}.broken-item-mark img{width:66%;height:80%;object-fit:contain;filter:drop-shadow(0 1px 1px #fffa);}.item-dossier-status .item-drop-rarity{margin-left:auto;white-space:nowrap;padding:3px 7px;border:1px solid #d2c9aa;border-radius:5px;background:#f4f1df;color:#8d7b55;font-size:10px;line-height:1.2;}.item-dossier-surface .modal-header{display:flex;align-items:center;gap:8px;}.item-dossier-surface .modal-header h2{flex:1;min-width:0;}.item-dossier-surface .modal-header [data-close]{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:0;line-height:1;}.item-dossier-status{align-items:center;column-gap:8px;}.slot-choice{padding:2px 1px 5px;}.modal:has(.slot-choice){border-color:#c6c8a7;background:#fff9ec;}.modal:has(.slot-choice) .empty-state{padding:21px 17px;margin:15px 0 3px;border:1px solid #d5d8bb;border-radius:13px;background:#f0f3e4;color:#839274;}.modal:has(.slot-choice) .modal-copy{margin:6px 0 13px;color:#8c927a;}.item-full-body,.slot-choice,.ammo-stack-scroll{scrollbar-width:none;}.item-full-body::-webkit-scrollbar,.slot-choice::-webkit-scrollbar,.ammo-stack-scroll::-webkit-scrollbar{display:none;}.bulk-discard-active .relic-card.bulk-selected:before{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:35px;height:35px;border:1px solid #c77969;border-radius:7px;background:#fff8f0;z-index:21;pointer-events:none;}.bulk-discard-active .relic-card.bulk-selected:after{z-index:22;}.ammo-picker-sheet .modal-header{align-items:center;}.ammo-picker-sheet .modal-header h2{flex:1;min-width:0;}.ammo-picker-sheet .modal-header .icon-button{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;padding:0;line-height:1;}
.battle-action.sanctify-action{background:#e3eabf!important;border-color:#b4c38b!important;color:#5c7047!important;box-shadow:inset 0 1px #fff9,0 2px 0 #9cac7c!important;}.battle-action.sanctify-action small{color:#7c8c62!important;}.equipment-action-art{width:23px;height:23px;object-fit:contain;flex:none;}.battle-action.sanctify-action:disabled{opacity:.6;}
/* 0.18.33: one readable title line and two facts that fit the actual cell. */
#bag .relic-card .inventory-card h3.inventory-title,.slot-choice .relic-card .inventory-card h3.inventory-title{display:block;white-space:nowrap;overflow:hidden;overflow-wrap:normal;min-width:0;width:100%;min-height:1.4em!important;height:1.4em!important;line-height:1.4!important;margin:1px 0 7px;-webkit-line-clamp:unset;}
.relic-card .inventory-title>span,.relic-card .mini-back-title>span{display:inline-block;white-space:nowrap;max-width:none;vertical-align:top;transform:translateX(0);}
.relic-card.card-visible .inventory-title.has-overflow>span,.relic-card.card-visible .mini-back-title.has-overflow>span{animation:item-name-pan var(--title-time,7s) linear infinite alternate;}
@keyframes item-name-pan{0%,18%{transform:translateX(0)}82%,100%{transform:translateX(var(--title-pan,0px))}}
#bag .relic-card .inventory-properties,.slot-choice .relic-card .inventory-properties{display:flex;flex-direction:row;flex-wrap:nowrap!important;align-items:center;gap:3px;min-width:0;width:100%;min-height:24px;}
#bag .relic-card .inventory-properties>.item-stat-chip,.slot-choice .relic-card .inventory-properties>.item-stat-chip{container-type:inline-size;display:flex;flex:var(--fact-weight,6) 1 0;min-width:0;min-height:23px;box-sizing:border-box;padding:3px 2px;gap:2px;align-items:center;justify-content:center;overflow:hidden;}
#bag .inventory-properties>.item-stat-chip>img,#bag .inventory-properties>.item-stat-chip>.icon,.slot-choice .inventory-properties>.item-stat-chip>img,.slot-choice .inventory-properties>.item-stat-chip>.icon{display:grid;place-items:center;flex:0 0 11px;width:11px;height:12px;font-size:11px;line-height:1;}
#bag .inventory-properties>.item-stat-chip>b,.slot-choice .inventory-properties>.item-stat-chip>b{font-size:clamp(8px,calc((100cqi - 13px) / var(--fact-chars,3) / .65),calc(10px * var(--valgard-text-scale,.9)));font-weight:650;line-height:1.1;white-space:nowrap;}
#bag .relic-card .inventory-properties>.item-extra-count,.slot-choice .relic-card .inventory-properties>.item-extra-count{flex:0 0 18px;display:grid;place-items:center;width:18px;min-width:18px;height:23px;box-sizing:border-box;padding:0;border-radius:5px;font-size:calc(9px * var(--valgard-text-scale,.9));line-height:1;}
.relic-card .item-back-story{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;}
.relic-card .item-back-story .item-lore{display:block!important;white-space:normal!important;width:100%;max-width:100%;height:auto;max-height:none;min-height:0;overflow:visible;overflow-wrap:anywhere;word-break:normal;text-align:center;margin:auto 0!important;flex-shrink:0;-webkit-line-clamp:unset;}
.relic-card .item-back-story::-webkit-scrollbar{display:none;}
#world:not(.in-dungeon) .destination #destination-title{white-space:normal;overflow-wrap:normal;word-break:normal;max-width:100%;overflow:visible;text-overflow:clip;display:block;font-size:min(calc(20px * var(--valgard-text-scale,.9)),20px);line-height:1.13;margin:0 0 4px;}
#world:not(.in-dungeon) .destination #destination-description{font-size:min(calc(10px * var(--valgard-text-scale,.9)),11px);line-height:1.25;margin:0;}
#valgard-effect-note .effect-preview-profile{grid-template-columns:40px minmax(0,1fr);align-items:stretch;gap:8px;}
#valgard-effect-note .effect-preview-portrait{display:block;width:40px;min-height:62px;height:100%;box-sizing:border-box;padding:2px;border:1px solid #bfcbb0;border-radius:8px;background:#fbfaed;box-shadow:inset 0 0 0 1px #fffdf6;overflow:hidden;}
#valgard-effect-note .effect-preview-portrait>img{display:block;width:100%;height:100%;min-height:56px;object-fit:cover;object-position:center 30%;border-radius:5px;}
#valgard-effect-note .effect-preview-preparations{display:flex;flex-wrap:wrap;overflow:visible;min-width:0;gap:5px;margin-top:2px;}
#valgard-effect-note .effect-preview-preparations>span{flex:none;max-width:100%;box-sizing:border-box;min-height:22px;gap:4px;padding:3px 5px;}
#valgard-effect-note .effect-preview-preparations em{flex:none;min-width:12px;line-height:1.2;text-align:center;}
@media(prefers-reduced-motion:reduce){.relic-card .inventory-title>span,.relic-card .mini-back-title>span{animation:none!important;}}
.reduced-motion .relic-card .inventory-title>span,.reduced-motion .relic-card .mini-back-title>span{animation:none!important;}
@media(prefers-reduced-motion:reduce){
 :is(#bag,.slot-choice) .relic-card .inventory-card h3.inventory-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:anywhere;height:2.4em!important;min-height:2.4em!important;line-height:1.2!important;margin-bottom:3px}
 :is(#bag,.slot-choice) .relic-card .inventory-card h3.inventory-title>span{display:inline;white-space:inherit}
}
.reduced-motion :is(#bag,.slot-choice) .relic-card .inventory-card h3.inventory-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:anywhere;height:2.4em!important;min-height:2.4em!important;line-height:1.2!important;margin-bottom:3px}
.reduced-motion :is(#bag,.slot-choice) .relic-card .inventory-card h3.inventory-title>span{display:inline;white-space:inherit}


.item-dossier .ammo-properties{display:block;width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #d3d8bb;border-radius:8px;background:linear-gradient(135deg,#f6f6e9,#faf9ef);color:#55735f;}
.item-dossier .ammo-properties>dl{display:grid;gap:7px;margin:0;}
.item-dossier .ammo-properties>dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:13px;min-width:0;}
.item-dossier .ammo-properties dt{min-width:0;margin:0;font:500 11px/1.35 Interface,sans-serif;overflow-wrap:normal;}
.item-dossier .ammo-properties dd{flex:none;margin:0;font:650 12px/1.2 Interface,sans-serif;color:#4c7158;white-space:nowrap;font-variant-numeric:tabular-nums;}

#bag .relic-card .inventory-properties>.item-stat-chip,#bag .relic-card .inventory-properties>.item-extra-count,.slot-choice .relic-card .inventory-properties>.item-stat-chip,.slot-choice .relic-card .inventory-properties>.item-extra-count{height:25px!important;min-height:25px!important;align-self:center;}

/* 03.11.2026: search and bulk-delete share one height; the bulk-delete button is a calm red */
#bag .bag-search-row{margin-top:9px;align-items:center}
#bag .bag-search-row>.bag-search{margin:0;height:36px;box-sizing:border-box}
#bag .bag-bulk-toggle{height:36px;flex-basis:40px;width:40px;box-sizing:border-box;border:1px solid #a9483d;background:linear-gradient(180deg,#c9665a,#a8483e);color:#fff8f2;box-shadow:inset 0 1px 0 #ffffff38,0 2px 5px #8a3a3226;transition:transform .12s ease,filter .15s ease}
#bag .bag-bulk-toggle:active{transform:scale(.95)}
#bag .bag-bulk-toggle[aria-pressed=true]{background:linear-gradient(180deg,#a8483e,#8c362e);border-color:#7b2f28;color:#fff;box-shadow:inset 0 2px 4px #00000030}

/* 03.11.2026 item window header: «Предмет» in sentence case, three equal buttons in one row, a larger chat-link mark */
#modal-root .relic-front .modal-header{align-items:center;gap:6px}
#modal-root .relic-front .modal-header h2{text-transform:none!important;letter-spacing:0!important;font:650 18px/1.2 Interface,sans-serif!important;color:#35574a!important;margin-right:auto}
#modal-root .relic-front .modal-header .icon-button{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;box-sizing:border-box}
#modal-root .item-chat-link-toggle img{width:24px!important;height:24px!important;opacity:.85}
/* one or two stat chips stay compact and centred instead of stretching across the card */
#modal-root .v13-property-grid{display:flex!important;flex-wrap:wrap;justify-content:flex-start;gap:8px}
#modal-root .v13-property-grid>.item-stat-chip{flex:0 1 auto;min-width:84px;max-width:calc(33.333% - 6px);justify-content:center}
/* bag card top line: small type label, level and lock on one baseline */
#bag .inventory-topline{display:flex;align-items:center;justify-content:space-between;gap:6px;height:18px}
#bag .inventory-rarity{font:600 9.5px/1 Interface,sans-serif;letter-spacing:.02em;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bag .inventory-stock{display:inline-flex;align-items:center;gap:3px;height:18px;padding:0 6px;font:650 10px/1 Interface,sans-serif;border-radius:9px;box-sizing:border-box}
#bag .inventory-stock svg,#bag .inventory-stock img,#bag .inventory-stock .icon{width:10px;height:10px;flex:none}
/* bag header: the title with a small occupancy pill, coins on the right, both centred */
#bag .bag-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#bag .bag-panel-head h1{margin:0;font-size:28px;line-height:1.1}
#bag .bag-panel-head small{display:inline-block;margin-top:5px;padding:2px 8px;border-radius:999px;background:#efe9d4;color:#7b765d;font:600 11px/1.3 Interface,sans-serif}
#bag .bag-panel-head .coins{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;box-sizing:border-box}
/* The item permit uses the same risk/reward rows as the active dungeon permit. */
#modal-root .pass-feature{padding:9px 11px;border:1px solid #d7d3bc;border-radius:9px;background:#f8f7ed;font:400 11.5px/1.4 Interface,sans-serif;color:#65735c}
#modal-root .pass-feature>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:7px;border-bottom:1px solid #e0dac5}
#modal-root .pass-feature .rune-feature-title{min-width:0;font:600 12px/1.35 Interface,sans-serif;color:#526d5d}
#modal-root .pass-feature .rune-slot-label{padding:2px 5px;font:400 10px/1.2 Interface,sans-serif;background:#f0f1e4;border-color:#d7ddc4;color:#7a846b}
#modal-root .pass-feature .pass-copy{margin-top:7px}
#modal-root .pass-feature .pass-copy+.pass-copy{padding-top:7px;border-top:1px solid #e0dac5}
#modal-root .pass-feature .pass-copy-label{display:block;margin-bottom:4px;font:400 10px/1.3 Interface,sans-serif;color:#8a826d}
#modal-root .pass-feature .guard-pass-conditions,#modal-root .pass-feature .guard-pass-risks,#modal-root .pass-feature .guard-pass-rewards{display:grid;gap:3px}
#modal-root .pass-feature .guard-pass-risks{color:#9a7358}
#modal-root .pass-feature .guard-pass-rewards{margin-top:5px;padding-top:5px;border-top:1px solid #e0dac5;color:#648056}
#modal-root .pass-feature .guard-pass-stat{display:flex;align-items:baseline;gap:5px;min-width:0}
#modal-root .pass-feature .guard-pass-stat>span{min-width:0}
#modal-root .pass-feature .guard-pass-stat>b{flex:none;font:inherit;white-space:nowrap}

/* 03.11.2026 v2 (owner): mini cards — one value sits in the middle without stretching; full card — values from the left */
#bag .relic-card .inventory-properties{justify-content:center!important}
#bag .relic-card .inventory-properties>.item-stat-chip:only-child{flex:0 0 60%!important}
/* header buttons: one size, one plain style, one line */
#modal-root .relic-front .modal-header .icon-button{margin:0!important;border:1px solid #ddd3b4!important;background:#fffdf4!important;box-shadow:none!important;vertical-align:middle}
#modal-root .relic-front .modal-header .icon-button svg,#modal-root .relic-front .modal-header .icon-button img{width:20px!important;height:20px!important}
#modal-root .relic-front .modal-header .icon-button.item-chat-link-toggle>img{width:24px!important;height:24px!important}
#modal-root .relic-front .modal-header .item-drop-rarity.is-in-header{margin-right:auto;padding:3px 9px;border:1px solid #e1d7b6;border-radius:999px;background:#fffdf4;font:600 11px/1.2 Interface,sans-serif;color:#7b6a3c}
#modal-root .relic-front .modal-header.has-odds h2{margin-right:0!important}
/* weight: a small white block */
#modal-root .item-weight-block{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 11px;border:1px solid #e6dec4;border-radius:10px;background:#fffefa;font:500 11px/1.3 Interface,sans-serif;color:#857d62}
#modal-root .item-weight-block b{font-weight:650;color:#5d5740}
/* possible random properties: text on the left, how often on the right */
#modal-root .item-roll-odds{display:grid;gap:4px;margin:6px 0 0;padding:0;list-style:none}
#modal-root .item-roll-odds li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px;line-height:1.35}
#modal-root .item-roll-odds li em{flex:none;font-style:normal;font-size:10.5px;color:#958c6c}/* 03.11.2026 item back: sentence-case header, a small portrait with the name and kind, the description in its own soft block */
#modal-root .relic-back .modal-header h2{text-transform:none!important;letter-spacing:0!important;font:650 18px/1.2 Interface,sans-serif!important;color:#35574a!important}
#modal-root .relic-back .modal-header .icon-button{width:36px;height:36px;border:1px solid #ddd3b4!important;background:#fffdf4!important;border-radius:10px}
#modal-root .item-back-title{display:flex;align-items:center;gap:11px;margin:4px 0 10px;min-width:0}
#modal-root .item-back-title img{flex:none;width:46px;height:46px;padding:4px;object-fit:contain;border:1px solid #e3dbc0;border-radius:10px;background:#fffefa;box-sizing:border-box}
#modal-root .item-back-title span{display:grid;gap:2px;min-width:0}
#modal-root .item-back-title strong{font:700 15px/1.25 Interface,sans-serif;color:#2f4a3f;overflow:hidden;text-overflow:ellipsis}
#modal-root .item-back-title small{font:500 11px/1.3 Interface,sans-serif;color:#8a8266}
#modal-root .item-back-lore{padding:9px 11px;border:1px solid #e6dec4;border-radius:10px;background:#fffefa}
#modal-root .item-back-lore>span{display:block;margin-bottom:4px;font:600 10.5px/1.2 Interface,sans-serif;color:#958c6c}
#modal-root .item-back-lore .item-lore{margin:0;font-size:13px;line-height:1.45;color:#4d5a50}

/* 03.11.2026 v3: header buttons with even gaps; weight as a small chip inside the art frame */
#modal-root .relic-front .modal-header{gap:8px!important}
#modal-root .relic-front .modal-header>button.icon-button[data-close]{margin-left:0!important}
#modal-root .item-weight-block{display:none!important}
#modal-root .item-dossier-art{position:relative}
#modal-root .item-art-weight{position:absolute;right:5px;bottom:5px;padding:1px 6px;border:1px solid #e3d9b8;border-radius:7px;background:#fffdf6;font:600 10px/1.4 Interface,sans-serif;color:#7a6f50;cursor:pointer}

/* 04.11.2026 bag filters: an even grid of chips, names never squeezed */
#bag .bag-filter-fold .filter-tabs{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;padding:8px;margin:0;border:1px solid #e1dcc4;border-radius:12px;background:#f7f4e6}
#bag .bag-filter-fold .filter-tabs[hidden]{display:none!important}
#bag .bag-filter-fold .filter-tabs>button{min-width:0;min-height:32px;padding:5px 8px;border:1px solid #ddd6bb;border-radius:9px;background:#fffdf5;box-shadow:none;font:600 12px/1.2 Interface,sans-serif;color:#5d6b58;white-space:normal;text-align:center;overflow-wrap:anywhere}
#bag .bag-filter-fold .filter-tabs>button.active{border-color:#8fae86;background:#e9f1df;color:#2f5a3e}



/* 04.11.2026 bag filters v2: small picture tiles with short names, three per row */
#bag .bag-filter-fold .filter-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:6px!important}
#bag .bag-filter-fold .filter-tabs>button{display:grid!important;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:6px;min-height:40px!important;padding:5px 7px!important;text-align:left!important;white-space:nowrap!important}
#bag .bag-filter-fold .bag-filter-art{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f1ecd9}
#bag .bag-filter-fold .bag-filter-art img{width:24px;height:24px;object-fit:contain}
#bag .bag-filter-fold .bag-filter-art .icon{font-size:15px;color:#6c7d61}
#bag .bag-filter-fold .bag-filter-name{min-width:0;overflow:hidden;text-overflow:ellipsis;font:600 11.5px/1.2 Interface,sans-serif}
#bag .bag-filter-fold .filter-tabs>button.active .bag-filter-art{background:#dbe8cf}
/* mass cleanup: a picked card gets a red frame and a soft blurred white-claret veil under the cross */
.bulk-discard-active .relic-card.bulk-selected{outline:2px solid #c0564a;outline-offset:-2px;border-radius:14px}
.bulk-discard-active .relic-card.bulk-selected:after{background:linear-gradient(180deg,#fff3f0b8,#f3d6d0c4)!important;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border:0!important;border-radius:inherit;color:#b0443a!important;font:300 44px/1 Interface,sans-serif!important;box-shadow:inset 0 0 0 1px #e9b8ae!important}
#bag .bag-filter-fold .filter-tabs>button{grid-template-columns:1fr!important;grid-template-rows:30px auto;justify-items:center;gap:3px!important;min-height:58px!important;padding:6px 4px!important;text-align:center!important}
#bag .bag-filter-fold .bag-filter-name{font-size:11px!important;max-width:100%}
.bulk-discard-active .relic-card.bulk-selected{position:relative;outline:0!important;border-color:#c0564a!important;box-shadow:0 0 0 2px #c0564a,0 4px 12px #a03c3022!important}
.bulk-discard-active .relic-card.bulk-selected:after{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;margin:0!important;transform:none!important;border-radius:14px!important}
.bulk-discard-active .relic-card.bulk-selected:before{content:none!important;display:none!important}

/* 04.11.2026 settings v3: framed group cards with an ornamental heading, medallion icons, hairline dividers, hidden scrollbar */
#settings,.v13-settings,.v13-settings .modal-body{scrollbar-width:none}
#settings::-webkit-scrollbar,.v13-settings::-webkit-scrollbar,.v13-settings .modal-body::-webkit-scrollbar{display:none;width:0;height:0}
.vs-panel{display:grid;gap:16px;margin:4px 0 10px}
.vs-hero{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:13px;padding:13px 14px;border:1px solid #d6cdac;border-radius:18px;background:linear-gradient(160deg,#fffdf6 0%,#f5efdb 100%);box-shadow:inset 0 0 0 3px #fffdf6,inset 0 0 0 4px #ece3c6,0 3px 10px #4a3f1a14}
.vs-hero img{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid #fffdf6;box-shadow:0 0 0 1px #d6cdac;background:#efe9d4}
.vs-hero div{display:grid;gap:2px;min-width:0}
.vs-hero small{font:500 10.5px/1.3 Interface,sans-serif;color:#9a9174}
.vs-hero strong{font:700 18px/1.2 Interface,sans-serif;color:#2f4a3f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vs-hero span{font:500 12px/1.3 Interface,sans-serif;color:#6f7a64;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vs-hero-switch{min-height:34px;padding:0 14px;border:1px solid #cdd5b6;border-radius:999px;background:#fffdf4;font:650 12px/1 Interface,sans-serif;color:#41695c;cursor:pointer;box-shadow:0 1px 2px #4a3f1a12}
.vs-hero-switch:disabled{opacity:.5}
.vs-group{position:relative;display:grid;padding:4px 0 6px;border:1px solid #ddd5b8;border-radius:18px;background:#fffdf8;box-shadow:inset 0 0 0 3px #fffefb,inset 0 0 0 4px #f1ead4,0 2px 8px #4a3f1a0d;overflow:hidden}
.vs-group>h3{display:flex;align-items:center;gap:10px;margin:8px 16px 2px;font:650 10px/1.2 Interface,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#a0966f}
.vs-group>h3::before,.vs-group>h3::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#e2d8b7)}
.vs-group>h3::after{background:linear-gradient(90deg,#e2d8b7,transparent)}
.vs-group>h3>span{flex:none}
.vs-list{display:grid}
.vs-panel .vs-item{position:relative;display:grid!important;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:8px;width:100%;min-height:58px;margin:0!important;padding:11px 16px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left;font:inherit;color:inherit;box-sizing:border-box}
.vs-panel .vs-item+.vs-item::before{content:'';position:absolute;left:64px;right:16px;top:0;height:1px;background:#ece4cc}
.vs-panel button.vs-item{cursor:pointer}.vs-panel button.vs-item:active{background:#f6f1e0!important}.vs-panel button.vs-item:disabled{opacity:.5;cursor:default}
.vs-panel .vs-ic,.vs-panel .vs-item>.text-scale-glyph,.vs-panel .vs-item>.dungeon-settings-symbol{display:grid!important;place-items:center;width:36px!important;height:36px!important;margin:0!important;border-radius:50%!important;border:1px solid #e2dbc2;background:radial-gradient(circle at 50% 35%,#fbf8ec,#efe9d3)!important;color:#4f7660;font:700 12px/1 Interface,sans-serif;box-sizing:border-box}
.vs-panel .vs-ic .icon,.vs-panel .vs-ic svg{width:18px;height:18px;font-size:17px}
.vs-panel .vs-item>.dungeon-settings-symbol img{width:24px!important;height:24px!important;object-fit:contain}
.vs-panel .vs-copy,.vs-panel .vs-item>div:not(.text-scale-input){display:grid;gap:2px;min-width:0}
.vs-panel .vs-item strong{display:block;font:650 14px/1.25 Interface,sans-serif!important;color:#2f4a3f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vs-panel .vs-item small{display:block;font:500 11px/1.35 Interface,sans-serif!important;color:#8d8668}
.vs-panel .vs-item .toggle{margin:0!important;align-self:center}
.vs-panel .vs-go{display:grid;place-items:center;width:24px;color:#a5ae96}
.vs-panel .vs-item.is-danger .vs-ic{background:#fbecea!important;border-color:#efcdc7;color:#a2493e}.vs-panel .vs-item.is-danger strong{color:#a2493e}
.vs-panel .vs-item.text-scale-row{grid-template-columns:36px minmax(0,1fr)!important}
.vs-panel .text-scale-row>.text-scale-input{grid-column:2/-1;display:grid!important;grid-template-columns:28px minmax(0,1fr) 28px auto;align-items:center;gap:8px;margin:0!important;width:auto!important}
.vs-panel .text-scale-input>button{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:8px!important}
.vs-panel .text-scale-input>output{min-width:44px;padding:3px 8px;border:1px solid #e3dbc0;border-radius:999px;background:#fbf8ec;text-align:center;font:650 11px/1.3 Interface,sans-serif;color:#5d6b58}
.vs-panel .text-scale-input>input{width:100%;min-width:0;margin:0}
.vs-footer{margin:2px 0 0;text-align:center;font:500 10.5px/1.5 Interface,sans-serif;color:#a29b80}.vs-panel .vs-ic>.icon,.vs-panel .vs-ic>span.icon{font-size:19px!important;line-height:1!important;width:20px!important;height:20px!important;display:grid;place-items:center}.vs-panel .vs-item>.text-scale-glyph{font-size:13px!important}
/* 04.11.2026 bag tools: no gap above the search row while the filters are folded; chevron instead of a text arrow */
#bag .bag-filter-fold{display:contents}
#bag .bag-filter-fold .filter-tabs{margin:0 0 2px!important}
#bag .bag-filter-toggle .chevron{display:inline-block;width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .22s ease;opacity:.75}
#bag .bag-filter-toggle[aria-expanded="true"] .chevron{transform:translateY(1px) rotate(225deg)}
#bag .bag-filter-fold .filter-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:1fr}
#bag .bag-filter-fold .filter-tabs>button{grid-template-rows:32px minmax(0,1fr);min-height:70px!important;padding:5px 3px!important;white-space:normal!important}
#bag .bag-filter-fold .bag-filter-art{width:32px;height:32px}
#bag .bag-filter-fold .bag-filter-art img{display:block;width:30px;height:30px}
#bag .bag-filter-fold .bag-filter-name{display:block;width:100%;min-height:2.4em;max-width:100%;font-size:10.5px!important;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
@media(max-width:350px){#bag .bag-filter-fold .filter-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}#bag .bag-filter-fold .bag-filter-name{font-size:9.5px!important;letter-spacing:-.01em}}
/* settings v3.1: smaller switches, a tidy text-size block, icons on one axis */
.vs-panel .vs-item .toggle{width:40px!important;height:23px!important;min-width:40px!important;min-height:23px!important;padding:0!important;border:0!important;border-radius:999px!important}
.vs-panel .vs-item .toggle:after{width:17px!important;height:17px!important;top:3px!important;left:3px!important}
.vs-panel .vs-item .toggle[aria-checked="true"]:after{transform:translateX(17px)!important}
.vs-panel .vs-item{align-items:center}
.vs-panel .vs-ic,.vs-panel .vs-item>.text-scale-glyph,.vs-panel .vs-item>.dungeon-settings-symbol{align-self:center}
.vs-panel .vs-item.text-scale-row>.text-scale-glyph{align-self:start;margin-top:1px!important}
.vs-panel .vs-hero{grid-template-columns:52px minmax(0,1fr) auto}
.vs-panel .vs-hero img{width:52px;height:52px}
.vs-panel .text-scale-row>.text-scale-input{grid-template-columns:auto minmax(0,1fr) auto auto!important;gap:10px!important;padding:7px 10px;border:1px solid #ebe3cb;border-radius:12px;background:#fbf8ee}
.vs-panel .text-scale-input>button{width:auto!important;height:auto!important;min-height:0!important;padding:0 2px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#6b7d64;font:700 11px/1 Interface,sans-serif!important}
.vs-panel .text-scale-input>button:last-of-type{font-size:17px!important}
.vs-panel .text-scale-input>output{min-width:40px;padding:3px 7px;font-size:11px}

/* 04.11.2026 (owner): quieter journal — no left icons, smaller type, numbers kept on one line */
#app .v15-log-turn .log-entry,#modal-root .v15-log-turn .log-entry{grid-template-columns:minmax(0,1fr);gap:0;padding:5px 9px;min-height:0}
#app .v15-log-turn .log-entry>.log-symbol,#modal-root .v15-log-turn .log-entry>.log-symbol{display:none}
#app .v15-log-turn .log-entry p,#modal-root .v15-log-turn .log-entry p{font-size:10.5px;line-height:1.45;margin:0}
#app .log-entry .journal-balance,#modal-root .log-entry .journal-balance{white-space:nowrap}

/* 04.11.2026: creature type in the middle of the monster card back */
.opponent-back-type{display:block;width:max-content;max-width:90%;margin:2px auto 4px;padding:1px 9px;border:1px solid #d9cfae;border-radius:999px;background:#fbf6e6;color:#7a6a45;font-size:9.5px;font-weight:700;letter-spacing:.02em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 04.11.2026: boost squares beside the effects row — same size rules as the effect blocks (22px / 18px) */

#modal-root .item-stat-chip[data-stat-note]{cursor:pointer}

/* 04.11.2026 (owner): preparation squares — picture of the skill, turns/uses on the right */
.card-field #battle-root #combat-profile .hunter-preparations button.preparation-square,.card-field .hunter-preparations button.preparation-square{display:inline-flex;align-items:center;gap:3px;height:24px;min-height:24px;min-width:24px;padding:0 4px 0 2px;border:1px solid #d8c98f;border-radius:6px;background:linear-gradient(#fffaf0,#f3e9c9);box-shadow:0 1px 0 #fff inset;cursor:pointer}
.hunter-preparations button.preparation-square img{width:19px;height:19px;object-fit:contain;flex:none}
.hunter-preparations button.preparation-square b{font:700 10.5px/1 Interface,sans-serif;color:#6c5a2c}
.hunter-preparations button.preparation-square:active{transform:scale(.94)}

/* 04.11.2026: the journal row has no icon column anywhere (battle panel included) */
body .v15-log-turn article.log-entry{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding-left:9px!important;padding-right:9px!important}
body .v15-log-turn article.log-entry>.log-symbol{display:none!important}
body .v15-log-turn article.log-entry>p{font-size:10.5px;line-height:1.45;grid-column:1/-1}
/* the heart in «(♥ 14/107)» sits on the text's middle, numbers share the line's size */
body .log-entry .journal-balance-glyph{font-size:.92em!important;vertical-align:-.02em!important;transform:none!important;margin:0 .14em 0 .06em!important}
body .log-entry .journal-balance img{vertical-align:-.08em!important}

/* 04.11.2026 (owner): the square is the skill's own rounded picture, turns on the right */
.hunter-preparations button.preparation-square{padding:0 5px 0 1px!important;gap:4px!important;border-radius:8px!important;height:26px!important;min-height:26px!important}
.hunter-preparations button.preparation-square img{width:22px;height:22px;border-radius:5px;object-fit:contain;box-shadow:none;border:0;background:none}
/* 05.11.2026: один квадрат — рамка только у кнопки; без цифры кнопка квадратная */
.hunter-preparations button.preparation-square.no-num{padding:0 1px!important;width:26px;justify-content:center}

/* 04.11.2026 (owner): bottom profile — the name uses the free width; a single bar sits in the middle of the free height */
#battle-root .spell-panel-battle .combat-player-name>span,#battle-root .combat-player-name>span{max-width:72%;flex:0 1 auto;min-width:0}
#battle-root .combat-player-copy.single-vital{display:flex;flex-direction:column;justify-content:center}
#battle-root .combat-player-copy.single-vital .combat-vitals .progress{height:7px}
#battle-root .combat-player-copy.single-vital .combat-player-name{margin-bottom:8px}
/* journal: text close to the left edge */
body .battle-log-content{padding-left:5px!important;padding-right:5px!important}
body .v15-log-turn article.log-entry{padding-left:6px!important;padding-right:6px!important}
/* «(♥ 1/107)»: same font, size, weight and colour as the journal text */
html body .log-entry .journal-balance,html body .log-entry .journal-balance b,html body #app .log-entry .journal-balance b,html body #modal-root .log-entry .journal-balance b{font-weight:inherit!important;color:inherit!important;font-size:inherit!important;font-family:inherit!important}
html body #app .log-entry .journal-balance-glyph,html body #modal-root .log-entry .journal-balance-glyph,html body .log-entry .journal-balance-glyph{font-size:1em!important;vertical-align:-.1em!important;transform:none!important;margin:0 .12em 0 .05em!important}

/* 04.11.2026 (owner): victory/defeat window appears and leaves softly; the place fades in under it */
@keyframes vgResultIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@keyframes vgResultOut{from{opacity:1;transform:none}to{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes vgShadeIn{from{opacity:0}to{opacity:1}}
@keyframes vgPlaceIn{from{opacity:0}to{opacity:1}}


.modal-shade.result-closing{animation:none;transition:opacity .34s ease;opacity:0}
.modal-shade.result-closing .combat-result{animation:vgResultOut .34s ease both}
#battle-root.battle-leaving{transition:opacity .34s ease;opacity:0}



/* 04.11.2026 (owner): the cross of a picked card sits in a small white rounded square over the soft veil */
.bulk-discard-active .relic-card.bulk-selected:before{content:''!important;display:block!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;transform:none!important;border:0!important;border-radius:14px!important;background:linear-gradient(180deg,#fff3f0a8,#f3d6d0b8)!important;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:21!important;pointer-events:none}
.bulk-discard-active .relic-card.bulk-selected:after{position:absolute!important;inset:auto!important;left:50%!important;top:50%!important;width:40px!important;height:40px!important;margin:-20px 0 0 -20px!important;transform:none!important;display:grid!important;place-items:center!important;box-sizing:border-box;border:1.5px solid #d58b7f!important;border-radius:10px!important;background:#fff!important;-webkit-backdrop-filter:none;backdrop-filter:none;color:#b0443a!important;font-size:30px!important;line-height:1!important;box-shadow:0 3px 10px #9a3a2e26!important;z-index:22!important;pointer-events:none}

/* 04.11.2026: the result window keeps its own entrance (card-field-polish); on «Продолжить» the window and the battle
   cross-fade to the place that is already drawn underneath — nothing else on the screen blinks */
#modal-root .modal-shade.result-closing{animation:none!important;transition:opacity .34s ease;opacity:0}
#modal-root .modal-shade.result-closing>.modal.combat-result{animation:vgResultOut .34s ease both!important}
/* the picked card's square: solid bright white, the cross in the frame's red */
.bulk-discard-active .relic-card.bulk-selected:after{background:#ffffff!important;border-color:#c0564a!important;color:#c0564a!important;font-weight:400!important;opacity:1!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 2px 8px #9a3a2e33,inset 0 0 0 1px #fff!important}
/* 04.11.2026: monster habits on the hero — squares with the monster's face, a held banner, sealed skills */
#app.hero-held #battle-root .battle-console [data-fight],#app.hero-held #battle-root .battle-console [data-skills],#app.hero-held #battle-root .battle-console [data-potion]{pointer-events:none;opacity:.45;filter:grayscale(.5);transition:opacity .25s ease}
.habit-held-banner{margin:0 0 6px;padding:6px 10px;border:1px solid #d9a497;border-radius:10px;background:linear-gradient(#fff4f0,#f6dfd8);color:#94392f;font:700 11.5px/1.3 Interface,sans-serif;text-align:center;animation:vgHeldIn .3s ease both}
@keyframes vgHeldIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
#battle-root [data-fight].skill-sealed{position:relative;pointer-events:none}

/* 04.11.2026 (owner): hero identity — name and level on one line (long nicks are cut neatly), class under it, a calmer XP bar */
.hero-character .v13-identity{display:block}
.hero-character .v13-identity-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'title tools' 'meta tools' 'xpl xpl' 'xp xp';column-gap:12px;row-gap:2px;align-items:center}
.hero-character .v13-identity-title{grid-area:title;display:flex;align-items:center;gap:8px;min-width:0}
.hero-character .v13-identity-title h2{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(18px,5.4vw,24px);line-height:1.15}
.hero-character .v13-identity-level{flex:none;padding:2px 8px;border:1px solid #c9d7b6;border-radius:999px;background:#eef4e2;color:#4c6a4d;font-size:11px;line-height:1.3;white-space:nowrap}
.hero-character .v13-identity-meta{grid-area:meta;min-width:0;color:#7b806d;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-character .v13-identity-tools{grid-area:tools;align-self:center}
.hero-character .v13-xp-label{grid-area:xpl;display:flex;justify-content:space-between;align-items:baseline;margin-top:12px;font-size:11px;color:#8a8a76}
.hero-character .v13-xp-label span{font-weight:700;color:#5d6656;font-variant-numeric:normal}
.hero-character .v13-xp-label span i{font-style:normal;color:#b0b19c;margin:0 2px}
.hero-character .progress.v13-xp{grid-area:xp;height:8px;margin-top:4px;border-radius:999px;background:#e9e8da;box-shadow:inset 0 1px 2px #5a5a3a22;overflow:hidden}
.hero-character .progress.v13-xp>span{display:block;height:100%;min-width:6px;border-radius:inherit;background:linear-gradient(90deg,#c9a24f,#e8c86a);box-shadow:inset 0 1px 0 #fff6,0 0 6px #e3bd5c66;transition:width .6s cubic-bezier(.2,.8,.2,1)}

/* 04.11.2026: negative effects (monster curses on a hero, rune ailments and marks on a monster) wear a red frame */
.combat-effect-icon.effect-negative{border-color:#c0564a!important;box-shadow:inset 0 0 0 1px #f4c9c1,0 0 0 1px #c0564a33!important;background:linear-gradient(#fff6f3,#f7e1db)!important}
.combat-effect-icon.effect-negative .effect-duration{color:#a5473c}

/* 04.11.2026: soul storage keeps its look; the creature type sits under the picture, not over the stats */
.soul-library .soul-inspect-type{display:block;width:max-content;max-width:90%;margin:8px auto 2px;padding:2px 10px;border:1px solid #d9cfae;border-radius:999px;background:#fbf6e6;color:#7a6a45;font-size:11px;font-weight:700;position:static}

/* effects next to the name take the free width */
#battle-root .combat-player-name>.hero-effects{flex:1 1 auto;min-width:0;justify-content:flex-start}

/* 04.11.2026 (owner): soul storage keeps its original look — only thin outlines and even spacing */
.necro-crypt-open{border:1px solid #d9d2b5!important;border-radius:16px!important;box-shadow:0 1px 0 #fff inset!important}
.soul-library .soul-inspect-art{border:1px solid #e3dcc2;border-radius:16px}
.soul-library .soul-library-row{border:1px solid #e3dcc2!important}
.soul-library .hint{margin:10px 2px!important}

/* 04.11.2026 (owner): summoned creatures look to the right, toward the enemies */
[data-soul-kind] .card-portrait img,#combat-profile[data-entity^="summon:"]>img{transform:scaleX(-1)}

/* 04.11.2026: requirement chips open a short note */
.item-requirement[data-req-note]{cursor:pointer}
/* the card's rim is not shown while an item card turns over */
.item-dossier-surface.is-turning>.relic-turn>.card-rim,.relic-card.is-turning>.relic-turn>.card-rim{visibility:hidden!important}
.item-dossier-surface.is-turning .relic-face,.relic-card.is-turning .relic-face{box-shadow:none!important;outline:0!important}
/* heroes of the account: same look, smoother — the panel rises in, rows follow one by one, it sinks out on close */
@keyframes vgPickerIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
@keyframes vgPickerOut{from{opacity:1;transform:none}to{opacity:0;transform:translateY(14px) scale(.98)}}
@keyframes vgRowIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#modal-root .modal.character-modal{animation:vgPickerIn .38s cubic-bezier(.2,.8,.2,1) both}
#modal-root .modal-shade.closing>.modal.character-modal{animation:vgPickerOut .23s ease both}
.character-modal .character-roster-row{animation:vgRowIn .34s cubic-bezier(.2,.8,.2,1) both;transition:transform .15s ease,box-shadow .2s ease,border-color .2s ease}
.character-modal .character-roster-row:nth-child(2){animation-delay:.05s}.character-modal .character-roster-row:nth-child(3){animation-delay:.1s}.character-modal .character-roster-row:nth-child(4){animation-delay:.15s}
.character-modal .character-roster-row:not(:disabled):hover{box-shadow:0 4px 12px #4b5a3a1f}
.character-modal .character-roster-row:not(:disabled):active{transform:scale(.985)}
.character-modal .character-roster-row img{border-radius:12px;box-shadow:0 0 0 1px #e3dcc2}
.character-modal .character-roster-row small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.character-modal .character-roster-row.selected b{padding:2px 8px;border:1px solid #b9d0a6;border-radius:999px;background:#eef5e4;font-size:11px}
@media (prefers-reduced-motion:reduce){#modal-root .modal.character-modal,.character-modal .character-roster-row{animation:none}}

/* 04.11.2026 (owner): soul cards — smoother, more refined frames (fonts and colours untouched) */
@keyframes vgSoulIn{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.soul-library .soul-library-row{border-radius:20px!important;border:1px solid #e0d8bb!important;background:linear-gradient(180deg,#fffef9 0%,#f8f3e3 100%)!important;box-shadow:inset 0 0 0 3px #fffdf5,inset 0 0 0 4px #efe7cc,0 3px 10px #6b5a2a14!important;animation:vgSoulIn .36s cubic-bezier(.2,.8,.2,1) both;transition:transform .18s ease,box-shadow .25s ease!important}
.soul-library-entry:nth-child(2) .soul-library-row{animation-delay:.04s}.soul-library-entry:nth-child(3) .soul-library-row{animation-delay:.08s}.soul-library-entry:nth-child(n+4) .soul-library-row{animation-delay:.12s}
.soul-library .soul-library-row:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 3px #fffdf5,inset 0 0 0 4px #e8dfc0,0 6px 16px #6b5a2a22!important}
.soul-library .soul-library-row:active{transform:scale(.97)}
.soul-library .soul-library-portrait{border-radius:14px!important;border:1px solid #ebe3c8!important;background:radial-gradient(circle at 50% 62%,#fffaf0 0%,#f2ead2 100%)!important;box-shadow:inset 0 2px 6px #8f7a3a14}
.soul-library .soul-library-copy i{height:4px!important;border-radius:999px!important}
.soul-library .soul-inspect-art{border-radius:20px!important;border:1px solid #e0d8bb!important;box-shadow:inset 0 0 0 4px #fffdf5,inset 0 0 0 5px #efe7cc,inset 0 2px 10px #8f7a3a12!important;animation:vgSoulIn .36s cubic-bezier(.2,.8,.2,1) both}
.soul-library .necro-facts>span{border-radius:16px!important;transition:transform .15s ease}
.soul-library .soul-inspect-note{border-radius:16px!important;box-shadow:inset 0 0 0 3px #fffdf5}
@media (prefers-reduced-motion:reduce){.soul-library .soul-library-row,.soul-library .soul-inspect-art{animation:none}}

/* 04.11.2026 (owner): the item picture opened over the whole card */
#modal-root .item-dossier-art img{cursor:zoom-in}
.item-art-view{position:fixed;left:50%;top:50%;width:min(360px,92vw);height:min(540px,80vh);box-sizing:border-box;z-index:9600;border-radius:24px;translate:-50% -50%;display:grid;grid-template-rows:1fr auto;place-items:center;padding:44px 18px 22px;border-radius:inherit;background:radial-gradient(circle at 50% 45%,#fffdf6 0%,#f5edd6 70%,#ece2c4 100%);box-shadow:inset 0 0 0 1px #e3d9b8;opacity:0;transform:scale(.96);transition:opacity .28s ease,transform .32s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.item-art-view.is-open{opacity:1;transform:none;pointer-events:auto}
.item-art-view img{max-width:88%;max-height:100%;object-fit:contain;filter:drop-shadow(0 10px 18px #3a2c1033);transform:translateY(6px);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.item-art-view.is-open img{transform:none}
.item-art-view strong{margin-top:10px;font:700 18px Georgia,'Noto Serif',serif;color:#33594b;text-align:center}
.item-art-close{position:absolute;top:12px;right:12px;width:36px;height:36px;display:grid;place-items:center;border:1px solid #d9cfae;border-radius:12px;background:#fffdf6;color:#4c6a5a;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 1px 0 #fff inset}
.item-art-close:active{transform:scale(.94)}

.item-art-backdrop{position:fixed;inset:0;z-index:9599;background:#1d2a2400;transition:background .28s ease}.item-art-backdrop.is-open{background:#1d2a2452}
.item-art-view{box-shadow:inset 0 0 0 1px #e3d9b8,0 20px 50px #1d2a2440!important}

/* the picture window: rounded corners and an inner frame like the item card */
.item-art-view{border-radius:24px!important;overflow:hidden;border:1px solid #d9cfae;box-shadow:inset 0 0 0 6px #fffdf6,inset 0 0 0 7px #e6dcbc,0 20px 50px #1d2a2440!important}

/* 04.11.2026 (owner): the soul receipt over a fallen monster — one tidy pill: soul icon, then «+N» per necromancer in his colour (fits four) */
.card-field #battle-root .card-event-back.has-soul-credit>.card-soul-credits{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;position:absolute!important;inset:6px 0 auto 0!important;margin:0 auto!important;width:max-content!important;max-width:calc(100% - 12px)!important;height:20px!important;min-height:20px!important;padding:0 6px 0 4px!important;box-sizing:border-box!important;border:1px solid #cdd2bf!important;border-radius:999px!important;background:linear-gradient(#fbfcf6,#eef1e4)!important;box-shadow:0 1px 3px #3a4a2a1f,inset 0 1px 0 #fff!important;transform:none!important;grid-template-columns:none!important}
.card-field #battle-root .card-soul-credits>.soul-receipt-contour{display:none!important}
.card-field #battle-root .card-soul-credits>.soul-receipt-icon{width:13px!important;height:13px!important;flex:none;object-fit:contain}
.card-field #battle-root .card-soul-credits>.card-soul-credit{display:inline-flex!important;align-items:center!important;gap:3px!important;width:auto!important;min-width:0!important;height:16px!important;padding:0 2px!important;border:0!important;background:none!important;box-shadow:none!important;position:static!important}
.card-field #battle-root .card-soul-credits>.card-soul-credit::before{content:''!important;display:block!important;position:static!important;width:6px!important;height:6px!important;border-radius:50%!important;background:var(--soul-owner,#659583)!important;opacity:1!important;box-shadow:0 0 0 1px #ffffffaa}
.card-field #battle-root .card-soul-credits>.card-soul-credit>.soul-owner-mark{display:none!important}
.card-field #battle-root .card-soul-credits>.card-soul-credit b{font:700 10.5px/1 Interface,sans-serif!important;color:#3f5a35!important}

/* soul receipt: no dot — the number itself carries the necromancer's colour */
.card-field #battle-root .card-soul-credits>.card-soul-credit::before{content:''!important;display:block!important;position:static!important;flex:none!important;width:6px!important;height:6px!important;margin:0!important;border-radius:50%!important;background:var(--soul-owner,#659583)!important;opacity:1!important;align-self:center!important;transform:translateY(.5px)}
.card-field #battle-root .card-soul-credits>.card-soul-credit{gap:4px!important;align-items:center!important;line-height:1!important}
.card-field #battle-root .card-soul-credits>.card-soul-credit b{color:#3f5a35!important;line-height:1!important;display:block}
/* 04.11.2026 (owner): effects appearing or ending must not make the bottom panel jump */
#battle-root .combat-player-name{min-height:24px;align-items:center}
#battle-root .combat-player-name>.hero-effects{min-height:22px;height:22px;display:flex;align-items:center}
#battle-root .battle-console{position:relative}
#battle-root .habit-held-banner{position:absolute;left:10px;right:10px;top:-34px;z-index:6;margin:0;box-shadow:0 4px 12px #6b2a2026;pointer-events:none}

/* 04.11.2026: the picture window takes the item card's own place and size */
.item-art-view{translate:none}
/* bottom panel: the effects strip has one fixed width for heroes and monsters, independent of the name */
#battle-root .combat-player-name>span:first-child{flex:1 1 auto!important;min-width:0!important;max-width:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#battle-root .combat-player-name>.hero-effects{flex:0 0 132px!important;width:132px!important;height:26px!important;min-height:26px!important;padding:2px 2px!important;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;justify-content:flex-start!important;gap:3px}
#battle-root .combat-player-name>.hero-effects::-webkit-scrollbar{display:none}
#battle-root .combat-player-name>.hero-effects>*{flex:none}
#battle-root .combat-player-name>small{flex:none}

/* 04.11.2026 (owner): wound — one clean cut from the very lower-left to the very upper-right corner, a glint along the blade,
   the cut opens, droplets burst out to both sides and fall, a few drips run down */
.card-wound-slice.v2{inset:0!important;width:100%!important;height:100%!important;overflow:visible}
.card-wound-slice.v2 path{stroke-dasharray:100;stroke-dashoffset:100}
.card-wound-slice.v2 .wound-cut-shadow{stroke:#c45a66!important;stroke-width:6!important;opacity:.18!important;animation:wound2-draw .22s cubic-bezier(.7,0,.3,1) both!important}
.card-wound-slice.v2 .wound-cut-line{stroke:#7f2333!important;stroke-width:1.8!important;opacity:.95!important;animation:wound2-draw .22s cubic-bezier(.7,0,.3,1) both!important}
.card-wound-slice.v2 .wound-cut-open{stroke:#b23a4c;stroke-width:1;opacity:0;stroke-dashoffset:0;animation:wound2-open .5s ease-out .2s both}
.card-wound-slice.v2 .wound-cut-glint{stroke:#fff6f0;stroke-width:1.4;stroke-dasharray:12 100;stroke-dashoffset:12;opacity:.95;animation:wound2-glint .3s linear .02s both}
@keyframes wound2-draw{to{stroke-dashoffset:0}}
@keyframes wound2-open{0%{opacity:0;stroke-width:1}40%{opacity:.55;stroke-width:4.2}100%{opacity:.32;stroke-width:3}}
@keyframes wound2-glint{0%{stroke-dashoffset:12;opacity:0}15%{opacity:.95}100%{stroke-dashoffset:-100;opacity:0}}
.card-wound-drops.v2{display:block!important;position:absolute;inset:0;pointer-events:none;z-index:1;overflow:visible}
.card-wound-drops.v2>i{position:absolute;width:var(--size);height:calc(var(--size)*1.25);margin:calc(var(--size)/-2) 0 0 calc(var(--size)/-2);border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:radial-gradient(circle at 35% 30%,#d8707b,#8a2536 70%);opacity:0;animation:wound2-spray .78s cubic-bezier(.15,.75,.35,1) calc(.16s + var(--delay)) both}
@keyframes wound2-spray{0%{opacity:0;transform:translate(0,0) scale(.3)}14%{opacity:.95;transform:translate(calc(var(--dx)*.35),calc(var(--dy)*.35)) scale(1)}60%{opacity:.85;transform:translate(var(--dx),var(--dy)) scale(.95)}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy) + var(--fall))) scale(.7)}}
.card-wound-drops.v2>b{position:absolute;width:2px;height:0;margin-left:-1px;border-radius:0 0 2px 2px;background:linear-gradient(#8a2536,#b8414f);opacity:0;animation:wound2-drip .9s ease-in var(--delay) both}
@keyframes wound2-drip{0%{opacity:0;height:0}20%{opacity:.85}80%{opacity:.75;height:var(--len)}100%{opacity:0;height:var(--len);transform:translateY(4px)}}
@media(prefers-reduced-motion:reduce){.card-wound-slice.v2 path{animation:none!important;stroke-dashoffset:0}.card-wound-drops.v2{display:none!important}}

/* 04.11.2026 fix: the cut reaches the very top corner — the line is revealed by a mask, not by dash length
   (dash + non-scaling stroke ends early in Chromium) */
.card-wound-slice.v2 .wound-cut-shadow,.card-wound-slice.v2 .wound-cut-line,.card-wound-slice.v2 .wound-cut-open{stroke-dasharray:none!important;stroke-dashoffset:0!important}
.card-wound-slice.v2 .wound-cut-shadow,.card-wound-slice.v2 .wound-cut-line{animation:wound2-reveal .22s cubic-bezier(.7,0,.3,1) both!important}
.card-wound-slice.v2 .wound-cut-open{animation:wound2-open .5s ease-out .2s both!important}
.card-wound-slice.v2 .wound-cut-glint{vector-effect:none!important;stroke-width:.9!important}
@keyframes wound2-reveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}

/* 04.11.2026 (owner): switching between a card with effects and one without must not move the bottom panel —
   the empty effects strip keeps its place and height, it is only invisible */
.card-field #battle-root #combat-profile #hero-effects:has(>.no-effects:only-child){display:flex!important;visibility:hidden!important}
.card-field #battle-root #combat-profile #hero-effects{height:26px!important;min-height:26px!important;max-height:26px!important;box-sizing:border-box;align-items:center}
.card-field #battle-root #combat-profile .combat-player-name{height:26px;min-height:26px;flex-wrap:nowrap}
.card-field #battle-root #combat-profile .combat-vitals{min-height:44px}

/* 04.11.2026 (owner): softer wound spray — a few fine droplets fly out in a short arc and melt away; no drip streaks */
.card-wound-drops.v2>b{display:none!important}
.card-wound-drops.v2>i{background:radial-gradient(circle at 40% 35%,#c9616c,#8a2536 75%)!important;animation:wound3-spray .5s cubic-bezier(.2,.8,.3,1) calc(.18s + var(--delay)) both!important}
@keyframes wound3-spray{0%{opacity:0;transform:translate(0,0) scale(.5)}20%{opacity:.85;transform:translate(calc(var(--dx)*.45),calc(var(--dy)*.45)) scale(1)}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy) + var(--fall)*.35)) scale(.6)}}
.card-wound-slice.v2 .wound-cut-open{animation:wound3-open .55s ease-out .18s both!important}
@keyframes wound3-open{0%{opacity:0;stroke-width:1}35%{opacity:.4;stroke-width:3.2}100%{opacity:.18;stroke-width:2.4}}

/* wound drops run down quickly: a small drop slides off the cut with a short trail that melts */
.card-wound-drops.v2>b{display:block!important;position:absolute;width:3.4px!important;height:4.6px!important;margin:-2px 0 0 -1.7px!important;border-radius:50% 50% 50% 50%/35% 35% 65% 65%!important;background:radial-gradient(circle at 40% 35%,#cf6b76,#8a2536 75%)!important;opacity:0;animation:wound3-drip .6s cubic-bezier(.45,0,.75,.6) var(--delay) both!important}
.card-wound-drops.v2>b::before{content:'';position:absolute;left:50%;bottom:60%;width:1.4px;margin-left:-.7px;height:0;border-radius:1px;background:linear-gradient(#8a253600,#8a2536aa);animation:wound3-trail .6s cubic-bezier(.45,0,.75,.6) var(--delay) both}
@keyframes wound3-drip{0%{opacity:0;transform:translateY(0) scale(.4)}15%{opacity:.95;transform:translateY(1px) scale(1)}80%{opacity:.9;transform:translateY(var(--len)) scale(1)}100%{opacity:0;transform:translateY(calc(var(--len) + 3px)) scale(.85)}}
@keyframes wound3-trail{0%{height:0;opacity:0}20%{opacity:.8}80%{height:var(--len);opacity:.55}100%{height:var(--len);opacity:0}}

/* 05.11.2026: «Атака» при готовой подготовке (Игра клинков и др.). Фон кнопки задан с !important, анимация его не перекрывает — перелив идёт отдельным слоем под текстом. */
#battle-actions .battle-action[data-fight="strike"].blades-ready{position:relative;isolation:isolate;overflow:hidden;animation:attack-ember-glow 2.6s ease-in-out infinite!important}
#battle-actions .battle-action[data-fight="strike"].blades-ready::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse at 70% 25%,#c9595066,transparent 70%),linear-gradient(180deg,#a8433c,#86302b);box-shadow:inset 0 0 0 1px #7d2c27,inset 0 1px 0 #ffffff2e;opacity:0;animation:attack-ember-layer 2.6s ease-in-out infinite}
@keyframes attack-ember-layer{0%,100%{opacity:.08}50%{opacity:.92}}
@keyframes attack-ember-glow{0%,100%{filter:drop-shadow(0 0 0 #c2483d00)}50%{filter:drop-shadow(0 0 5px #c2483d88)}}
@media(prefers-reduced-motion:reduce){#battle-actions .battle-action[data-fight="strike"].blades-ready{animation:none!important}#battle-actions .battle-action[data-fight="strike"].blades-ready::before{animation:none;opacity:.85}}

/* Остальные подготовки атаки не переливают кнопку: перелив только у готовой Игры клинков. */
#battle-actions .battle-action[data-fight="strike"].attack-prepared:not(.blades-ready){animation:none!important}

/* 05.11.2026: свойства стрел одинаково и в досье, и на обороте карточки в окне «Предмет» */
section.ammo-properties{display:block;width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #d3d8bb;border-radius:8px;background:linear-gradient(135deg,#f6f6e9,#faf9ef);color:#55735f;}
section.ammo-properties>dl{display:grid;gap:7px;margin:0;padding:0;}
section.ammo-properties>dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:13px;min-width:0;}
section.ammo-properties dt{min-width:0;margin:0;padding:0;font:500 12px/1.35 Interface,sans-serif;color:inherit;overflow-wrap:normal;}
section.ammo-properties dd{flex:none;margin:0;padding:0;font:650 12.5px/1.2 Interface,sans-serif;color:#4c7158;white-space:nowrap;font-variant-numeric:tabular-nums;}

/* 05.11.2026: карточка противника — одна рамка точно по краю. Внешняя рамка карточки убрана, лицевая сторона (её рамка и отделка босса) повторяет скругление карточки, чтобы углы сходились. */
.world-opponents>.opponent-card.monster-collectible{border:0!important;border-radius:9px}
.world-opponents>.opponent-card.monster-collectible>.relic-turn>.relic-face,.world-opponents>.opponent-card.monster-collectible>.opponent-active>.relic-face{border-radius:9px!important}
/* 05.11.2026: контур босса повторяет скругление карточки (лицо 9px, контур по центру рамки — 8px), углы прилегают к краю; рамка лица у босса того же цвета */
.world-opponents>.monster-collectible .relic-face>.item-contour{border-radius:9px}
.world-opponents>.monster-collectible .item-contour .contour-outer{x:1px;y:1px;rx:8px;ry:8px}
.world-opponents>.monster-collectible .item-contour .contour-inner{x:5px;y:5px;rx:4.5px;ry:4.5px}
.world-opponents>.monster-collectible.is-boss>.relic-turn>.relic-face{border-color:var(--edge-a,#b93424)!important}

/* 05.11.2026: дороги сцены локации — колея и светлые штрихи; путь к выбранному месту светится и бежит к нему; медальон героя идёт по дороге */
.location-scene-roads .scene-road path{fill:none;stroke-linecap:round;stroke-linejoin:round;filter:none}
.location-scene-roads .road-bed{stroke:#2c2316;stroke-width:10;opacity:.42;stroke-dasharray:none}
.location-scene-roads .road-dash{stroke:#f6ecd0;stroke-width:3.6;stroke-dasharray:10 9;opacity:.9;transition:opacity .25s ease,stroke .25s ease,stroke-width .25s ease}
.location-scene.has-route .scene-road:not(.is-route) .road-dash{opacity:.42}
.location-scene.has-route .scene-road:not(.is-route) .road-bed{opacity:.24}
.location-scene-roads .scene-road.is-route .road-bed{stroke:#e9c978;stroke-width:13;opacity:.34}
.location-scene-roads .scene-road.is-route .road-dash{stroke:#fff8e2;stroke-width:4.6;opacity:1}
.location-scene-roads .scene-road.flow-fwd .road-dash{animation:scene-road-flow 1.5s linear infinite}
.location-scene-roads .scene-road.flow-back .road-dash{animation:scene-road-flow 1.5s linear infinite reverse}
.location-scene-roads .scene-road.is-walked .road-dash{stroke-dasharray:none;opacity:.95}
@keyframes scene-road-flow{to{stroke-dashoffset:-38}}
.location-scene.is-drawing .road-bed{stroke-dasharray:1;stroke-dashoffset:1;animation:scene-road-draw .55s cubic-bezier(.3,.7,.3,1) forwards;animation-delay:calc(var(--i,0)*90ms)}
.location-scene.is-drawing .road-dash{opacity:0;animation:scene-road-dash-in .3s ease-out forwards;animation-delay:calc(var(--i,0)*90ms + .4s)}
@keyframes scene-road-draw{to{stroke-dashoffset:0}}
@keyframes scene-road-dash-in{to{opacity:.9}}
.scene-traveler{position:absolute;z-index:5;width:30px;height:30px;transform:translate(-50%,-50%);box-sizing:border-box;border:2px solid #fff6dc;border-radius:50%;overflow:hidden;background:#2f4a3f;box-shadow:0 2px 6px #0009,0 0 0 3px #e9c97855;pointer-events:none}
.scene-traveler>img{width:100%;height:100%;object-fit:cover;display:block}
.location-scene.is-walking .world-map-current-dot{opacity:0}
.location-scene.is-walking .location-scene-mark,.location-scene.is-walking .location-scene-exit{pointer-events:none}
.scene-arrive-ring{position:absolute;left:50%;top:50%;z-index:-1;width:100%;aspect-ratio:1;box-sizing:border-box;border:2px solid #fff3c8;border-radius:50%;transform:translate(-50%,-50%) scale(.7);pointer-events:none;animation:scene-arrive .9s ease-out forwards}
@keyframes scene-arrive{from{opacity:.95;transform:translate(-50%,-50%) scale(.7)}to{opacity:0;transform:translate(-50%,-50%) scale(1.9)}}
.location-scene-exit{transition:transform .18s ease}.location-scene-exit:active{transform:translate(-50%,-50%) scale(.92)}
/* «Вы здесь» на карте региона после выхода через компас */
#map-labels .world-map-pin .map-here-ring{position:absolute;left:50%;top:50%;width:100%;aspect-ratio:1;box-sizing:border-box;border:2px solid #fff3c8;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;animation:map-here-pulse 1.3s ease-out 2}
@keyframes map-here-pulse{from{opacity:.95;transform:translate(-50%,-50%) scale(.8)}to{opacity:0;transform:translate(-50%,-50%) scale(2.1)}}
#map-labels .world-map-pin .map-here-flag{position:absolute;left:50%;bottom:calc(100% + 8px);z-index:8;display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 9px 5px;border:1px solid #d9c896;border-radius:8px;background:#fffaf0f2;box-shadow:0 2px 8px #0005;white-space:nowrap;pointer-events:none;transform:translateX(-50%);animation:map-here-in .32s cubic-bezier(.2,.8,.2,1) both}
#map-labels .world-map-pin .map-here-flag::after{content:"";position:absolute;left:50%;top:100%;width:8px;height:8px;margin:-4px 0 0 -4px;background:#fffaf0;border-right:1px solid #d9c896;border-bottom:1px solid #d9c896;transform:rotate(45deg)}
#map-labels .world-map-pin .map-here-flag b{font:700 11px/1.2 Interface,sans-serif;color:#3f6a52}
#map-labels .world-map-pin .map-here-flag small{font:500 9.5px/1.2 Interface,sans-serif;color:#7a7158}
#map-labels .world-map-pin .map-here-flag.is-leaving{animation:map-here-out .3s ease-in forwards}
@keyframes map-here-in{from{opacity:0;transform:translate(-50%,6px) scale(.9)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes map-here-out{to{opacity:0;transform:translate(-50%,4px)}}
.perf-lite .location-scene-roads .scene-road .road-dash,.perf-lite .location-scene.is-drawing .road-bed,.perf-lite .location-scene.is-drawing .road-dash{animation:none!important;stroke-dashoffset:0;opacity:.9}
@media(prefers-reduced-motion:reduce){.location-scene-roads .scene-road .road-dash,.location-scene.is-drawing .road-bed,.location-scene.is-drawing .road-dash,.map-here-ring{animation:none!important;stroke-dashoffset:0}}

/* 05.11.2026: подпись «Вы здесь» — под значком, если сверху нет места; хвостик всегда указывает на значок */
#map-labels .world-map-pin .map-here-flag::after{left:var(--arrow-x,50%)}
#map-labels .world-map-pin .map-here-flag.below{bottom:auto;top:calc(100% + 8px)}
#map-labels .world-map-pin .map-here-flag.below::after{top:auto;bottom:100%;margin:0 0 -4px -4px;transform:rotate(225deg)}
/* медальон героя в пути по карте региона: покачивание шага и мягкий ореол; старая точка SVG скрыта */
#map-roads .world-road-traveler{opacity:0}
.map-route-token{position:absolute;z-index:7;width:32px;height:32px;transform:translate(-50%,-50%);pointer-events:none;transition:left .12s linear,top .12s linear}
.map-route-token-halo{position:absolute;inset:-7px;border-radius:50%;background:radial-gradient(circle,#ffe9a866 0,#ffe9a826 45%,transparent 70%);animation:map-token-halo 1.6s ease-in-out infinite}
.map-route-token-face{position:absolute;inset:0;box-sizing:border-box;border:2px solid #fff6dc;border-radius:50%;overflow:hidden;background:#2f4a3f;box-shadow:0 3px 7px #0009,0 0 0 3px #3f7868cc;animation:map-token-step .62s ease-in-out infinite}
.map-route-token-face>img{width:100%;height:100%;object-fit:cover;display:block}
.map-route-token::after{content:"";position:absolute;left:50%;top:100%;width:20px;height:6px;margin:1px 0 0 -10px;border-radius:50%;background:#0000004d;filter:blur(1px);animation:map-token-shadow .62s ease-in-out infinite}
@keyframes map-token-step{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}}
@keyframes map-token-shadow{0%,100%{transform:scaleX(1);opacity:.55}50%{transform:scaleX(.8);opacity:.35}}
@keyframes map-token-halo{0%,100%{transform:scale(.9);opacity:.7}50%{transform:scale(1.12);opacity:1}}
.perf-lite .map-route-token-halo,.perf-lite .map-route-token-face,.perf-lite .map-route-token::after{animation:none!important}
@media(prefers-reduced-motion:reduce){.map-route-token-halo,.map-route-token-face,.map-route-token::after{animation:none!important}}

/* 05.11.2026: точка в пути (карта региона и сцена локации) — светлое ядро с бирюзовой каймой и мягкий расходящийся ореол; движется каждый кадр, без покачивания */
.route-walker{position:absolute;z-index:7;width:16px;height:16px;transform:translate(-50%,-50%);pointer-events:none;transition:none!important}
.scene-traveler.route-walker{width:16px;height:16px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
.route-walker-core{position:absolute;inset:0;box-sizing:border-box;border-radius:50%;border:2.5px solid #3f7868;background:radial-gradient(circle at 40% 35%,#ffffff,#fff3c9 55%,#f0d58a);box-shadow:0 0 0 2px #fffbeacc,0 0 10px 2px #ffe7a6aa,0 2px 4px #0007}
.route-walker-halo{position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;border:2px solid #fff3c8;opacity:0;animation:route-walker-ring 1.4s ease-out infinite}
@keyframes route-walker-ring{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(2.8)}}
.perf-lite .route-walker-halo{animation:none!important;opacity:.5;transform:scale(1.6)}
@media(prefers-reduced-motion:reduce){.route-walker-halo{animation:none!important;opacity:.5;transform:scale(1.6)}}
.location-scene.is-journey .world-map-current-dot{opacity:0}

/* 05.11.2026: объёмная эмблема Вальгрейма — оборот вокруг вертикали с толщиной и бликом по металлу после оборота */
.logo-3d{position:relative;display:inline-block;flex:none;width:var(--logo-size,120px);height:var(--logo-size,120px);perspective:calc(var(--logo-size,120px)*4.5);pointer-events:none}
.logo-3d-spin{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(7deg) rotateY(0deg)}
.logo-3d-spin>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;margin:0;padding:0;border:0;transform:translateZ(calc(var(--z)*var(--logo-size,120px)/100));backface-visibility:visible;-webkit-user-drag:none}
.logo-3d-spin>.logo-3d-edge{filter:brightness(.38) sepia(.35) saturate(.9)}
.logo-3d-spin>.logo-3d-face.is-back{transform:translateZ(calc(var(--z)*var(--logo-size,120px)/100)) rotateY(180deg)}
.logo-3d-sheen{position:absolute;inset:0;-webkit-mask:url(art/logo-valgreim-512.png) center/contain no-repeat;mask:url(art/logo-valgreim-512.png) center/contain no-repeat;background:linear-gradient(105deg,transparent 38%,#fff3cc 50%,transparent 62%) 140% 0/260% 100% no-repeat;opacity:0;mix-blend-mode:screen}
.logo-3d.is-spinning .logo-3d-spin,.motion-3d .logo-3d .logo-3d-spin{animation:logo-3d-turn 5.6s cubic-bezier(.55,.05,.3,1) infinite}
.logo-3d.is-spinning .logo-3d-sheen,.motion-3d .logo-3d .logo-3d-sheen{animation:logo-3d-sheen 5.6s ease-in-out infinite}
@keyframes logo-3d-turn{0%{transform:rotateX(7deg) rotateY(0deg)}58%{transform:rotateX(7deg) rotateY(360deg)}100%{transform:rotateX(7deg) rotateY(360deg)}}
@keyframes logo-3d-sheen{0%,60%{opacity:0;background-position:140% 0}66%{opacity:.75}86%{opacity:.75;background-position:-40% 0}92%,100%{opacity:0;background-position:-40% 0}}
.reduced-motion .logo-3d .logo-3d-spin,.reduced-motion .logo-3d .logo-3d-sheen,.perf-lite .logo-3d .logo-3d-sheen{animation:none!important}
@media(prefers-reduced-motion:reduce){.logo-3d .logo-3d-spin,.logo-3d .logo-3d-sheen{animation:none!important}}
/* экран загрузки: вместо видео со старой эмблемой */
#loading .loading-emblem>video,#loading .loading-emblem>.loading-fallback,#loading .loading-emblem>.loading-static{display:none!important}
#loading .loading-emblem>.logo-3d{position:absolute;inset:10px;--logo-size:150px;width:150px;height:150px}
/* экран входа и создания персонажа */
.auth-brand>.logo-3d{--logo-size:58px;margin-right:2px}

/* 05.11.2026 (2): эмблема покачивается ±25° и никогда не встаёт ребром; плотный бронзовый торец, тень и блик идут вместе с ней */
.logo-3d{perspective:calc(var(--logo-size,120px)*3.2)}
.logo-3d-spin{transform:rotateX(6deg) rotateY(-14deg)}
.logo-3d-spin>.logo-3d-edge{filter:brightness(var(--shade,.55)) sepia(.55) saturate(1.3) hue-rotate(-6deg) contrast(1.05)}
.logo-3d-spin>.logo-3d-sheen{position:absolute;inset:0;transform:translateZ(calc(3.05*var(--logo-size,120px)/100))}
.logo-3d-shadow{position:absolute;left:18%;right:18%;bottom:-4%;height:9%;border-radius:50%;background:radial-gradient(ellipse at center,#0000005e 0,#00000026 45%,transparent 72%);filter:blur(2px);transform:scaleX(.9)}
.logo-3d.is-spinning .logo-3d-spin,.motion-3d .logo-3d .logo-3d-spin{animation:logo-3d-sway 6.4s ease-in-out infinite}
.logo-3d.is-spinning .logo-3d-shadow,.motion-3d .logo-3d .logo-3d-shadow{animation:logo-3d-shadow 6.4s ease-in-out infinite}
.logo-3d.is-spinning .logo-3d-sheen,.motion-3d .logo-3d .logo-3d-sheen{animation:logo-3d-sheen2 6.4s ease-in-out infinite}
@keyframes logo-3d-sway{0%,100%{transform:translateY(0) rotateX(6deg) rotateY(-25deg)}25%{transform:translateY(-3%) rotateX(3deg) rotateY(0deg)}50%{transform:translateY(0) rotateX(6deg) rotateY(25deg)}75%{transform:translateY(-3%) rotateX(3deg) rotateY(0deg)}}
@keyframes logo-3d-shadow{0%,50%,100%{transform:scaleX(.9);opacity:1}25%,75%{transform:scaleX(.78);opacity:.7}}
@keyframes logo-3d-sheen2{0%,12%{opacity:0;background-position:140% 0}22%{opacity:.7}36%{opacity:.7;background-position:-40% 0}44%,62%{opacity:0;background-position:-40% 0}72%{opacity:.55}86%{opacity:.55;background-position:140% 0}94%,100%{opacity:0;background-position:140% 0}}
.reduced-motion .logo-3d .logo-3d-shadow,.perf-lite .logo-3d .logo-3d-sheen{animation:none!important}
@media(prefers-reduced-motion:reduce){.logo-3d .logo-3d-shadow{animation:none!important}}
.logo-3d-slot{display:none}

/* 05.11.2026 (3): полный оборот — плотный торец (24 слоя, толщина 8%), лицом задерживается, ребро проходит быстро; тень сужается на ребре */
.logo-3d-spin>.logo-3d-sheen{transform:translateZ(calc(4.05*var(--logo-size,120px)/100))}
.logo-3d.is-spinning .logo-3d-spin,.motion-3d .logo-3d .logo-3d-spin{animation:logo-3d-full 6s linear infinite}
.logo-3d.is-spinning .logo-3d-shadow,.motion-3d .logo-3d .logo-3d-shadow{animation:logo-3d-full-shadow 6s linear infinite}
.logo-3d.is-spinning .logo-3d-sheen,.motion-3d .logo-3d .logo-3d-sheen{animation:logo-3d-full-sheen 6s ease-in-out infinite}
@keyframes logo-3d-full{
 0%{transform:rotateX(6deg) rotateY(-18deg);animation-timing-function:cubic-bezier(.45,0,.55,1)}
 30%{transform:rotateX(6deg) rotateY(18deg);animation-timing-function:cubic-bezier(.5,0,.5,1)}
 50%{transform:rotateX(6deg) rotateY(180deg);animation-timing-function:cubic-bezier(.5,0,.5,1)}
 70%{transform:rotateX(6deg) rotateY(342deg);animation-timing-function:cubic-bezier(.45,0,.55,1)}
 100%{transform:rotateX(6deg) rotateY(342deg)}}
@keyframes logo-3d-full-shadow{0%,30%,70%,100%{transform:scaleX(.9);opacity:1}40%,60%{transform:scaleX(.55);opacity:.75}50%{transform:scaleX(.8);opacity:.9}}
@keyframes logo-3d-full-sheen{0%,4%{opacity:0;background-position:140% 0}12%{opacity:.7}26%{opacity:.7;background-position:-40% 0}32%,72%{opacity:0;background-position:-40% 0}80%{opacity:.6}94%{opacity:.6;background-position:140% 0}100%{opacity:0;background-position:140% 0}}

/* 05.11.2026 (4): эмблема — настоящая 3D-модель на WebGL (logo-3d.js); прежняя стопка слоёв не используется */
.logo-3d>canvas.logo-3d-gl{position:absolute;inset:0;width:100%;height:100%;display:block}
.logo-3d>.logo-3d-flat{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.logo-3d.has-gl>.logo-3d-flat{display:none}
.logo-3d>.logo-3d-shadow{animation:none!important;transition:transform .05s linear;bottom:-3%}
#loading .logo-3d>canvas.logo-3d-gl{position:absolute;inset:0;width:100%;height:100%;opacity:1;transition:none;filter:drop-shadow(0 6px 6px #173f3b22)}
/* 05.11.2026: эмблему рисует отдельный поток, поэтому тень следует за вращением CSS-анимацией и не зависит от загрузки скриптов */
.logo-3d.gl-offthread>.logo-3d-shadow{animation:logo-3d-gl-shadow 2.6s linear var(--logo-shadow-delay,0ms) infinite!important;transition:none}
@keyframes logo-3d-gl-shadow{0%,100%{transform:scaleX(.96)}12.5%,87.5%{transform:scaleX(.922)}25%,75%{transform:scaleX(.814)}37.5%,62.5%{transform:scaleX(.651)}50%{transform:scaleX(.46)}}
.perf-lite #loading .logo-3d>canvas.logo-3d-gl{filter:none}

/* 05.11.2026: дороги на полной карте региона — как внутри локаций: тёмная колея и светлые штрихи пунктиром */
#world:not(.in-dungeon) #map-roads .world-road-bed{stroke:#2c2316;stroke-width:13;opacity:.36}
#world:not(.in-dungeon) #map-roads .world-road-dots{stroke:#f6ecd0;stroke-width:5.5;stroke-dasharray:12 11;stroke-linecap:round;opacity:.92}

/* 05.11.2026: точка в пути двигается через transform (без округления до пикселя) */
.route-walker{left:0;top:0;transform:translate3d(var(--x,0px),var(--y,0px),0) translate(-50%,-50%);will-change:transform}
#map-stage>.map-route-token{z-index:7}

/* 05.11.2026: скупщик под любые экраны — кнопки всегда видны, список забирает остаток высоты; на кнопке действие в строку и сумма под ним */
.world-panel-body.has-buyer{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.world-panel-body.has-buyer>.buyer-panel,.world-panel-body.has-buyer .buyer-panel{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;height:100%}
.buyer-panel>.buyer-head,.buyer-panel>.buyer-tabs,.buyer-panel>.buyer-foot{flex:none}
.buyer-panel>.buyer-list{flex:1 1 0;min-height:0!important;max-height:none;overflow-y:auto;overscroll-behavior-y:contain}
#world:not(.guardian-expanded) .buyer-list{min-height:0!important}
.buyer-foot{position:static!important;background:none!important;margin-top:auto}
.buyer-foot button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:44px!important;padding:5px 8px!important;line-height:1.15!important}
.buyer-btn-label{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:650}
.buyer-btn-sum{font:600 11px/1.1 Interface,sans-serif;opacity:.88;white-space:nowrap}
.buyer-foot .buyer-sell:disabled .buyer-btn-sum{opacity:.75}
/* узкие телефоны */
@media(max-width:380px){.buyer-head{grid-template-columns:30px minmax(0,1fr) auto!important;gap:7px!important}.buyer-head img{width:30px!important;height:30px!important}.buyer-head strong{font-size:13px}.buyer-purse{padding:4px 8px;font-size:11.5px}
 .buyer-tabs button{font-size:10.5px;padding:5px 2px!important}.buyer-pick{grid-template-columns:30px minmax(0,1fr) auto 18px!important;gap:7px!important;padding:5px 7px!important}.buyer-pick img{width:30px!important;height:30px!important}
 .buyer-name strong{font-size:12.5px!important}.buyer-name small{font-size:10px!important}.buyer-foot button{font-size:12px!important}}
/* низкие экраны: плотнее шапка и вкладки, кнопки ниже */
@media(max-height:720px){#world:not(.guardian-expanded) .buyer-panel{gap:6px}#world:not(.guardian-expanded) .buyer-tabs{padding:2px}#world:not(.guardian-expanded) .buyer-tabs button{padding:4px 2px!important}#world:not(.guardian-expanded) .buyer-foot{gap:6px}#world:not(.guardian-expanded) .buyer-foot button{min-height:40px!important;padding:3px 6px!important}}
/* большие экраны и развёрнутый вид: шире строки, список во всю высоту */
@media(min-width:700px){#world.guardian-expanded .buyer-panel{max-width:720px}.buyer-pick{padding:8px 11px}}

/* 05.11.2026 (2): скупщик чище — фильтры-таблетки, список одной карточкой с разделителями, кнопки в одну строку без лишних отступов */
.buyer-panel{gap:8px!important}
.buyer-tabs{display:flex!important;gap:6px!important;padding:0!important;background:none!important;border-radius:0!important;overflow-x:auto;scrollbar-width:none}
.buyer-tabs::-webkit-scrollbar{display:none}
.buyer-tabs button{flex:none;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 11px!important;border:1px solid #ddd3b4!important;border-radius:999px!important;background:#fffdf6!important;color:#6f6a50!important;font:600 11.5px/1 Interface,sans-serif!important;box-shadow:none!important;transition:background .15s ease,color .15s ease,border-color .15s ease}
.buyer-tabs button small{display:inline-grid;place-items:center;min-width:18px;height:17px;padding:0 5px;border-radius:999px;background:#f1ead3;color:#8d8261!important;font:700 10px/1 Interface,sans-serif!important}
.buyer-tabs button.active{background:#3f7865!important;border-color:#2f6050!important;color:#fffaf0!important}
.buyer-tabs button.active small{background:#ffffff2e;color:#fffaf0!important}
.buyer-list{gap:0!important;padding:0!important;border:1px solid #e3dabd;border-radius:12px;background:#fffdf6}
.buyer-row{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.buyer-row+.buyer-row{border-top:1px solid #efe7cf!important}
.buyer-row.is-picked{background:#eef5e6!important}
.buyer-row:first-child{border-radius:11px 11px 0 0!important}.buyer-row:last-child{border-radius:0 0 11px 11px!important}
.buyer-pick{grid-template-columns:34px minmax(0,1fr) auto 18px!important;gap:9px!important;padding:7px 10px!important}
.buyer-pick img{width:34px!important;height:34px!important;padding:2px;box-sizing:border-box;border-radius:8px;background:#f5efdc}
.buyer-name strong{font-size:13px!important;font-weight:650;color:#35574a}.buyer-name small{font-size:10.5px!important}
.buyer-price{font-size:12.5px}
.buyer-qty{margin:0 10px 8px!important}
.buyer-foot{gap:8px!important;padding-top:0!important}
.buyer-foot button{flex-direction:row!important;gap:6px!important;min-height:38px!important;height:38px;padding:0 10px!important;border-radius:11px!important;font:650 12.5px/1 Interface,sans-serif!important}
.buyer-btn-sum{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:999px;background:#ffffff26;font:700 11.5px/1 Interface,sans-serif;opacity:1}
.buyer-foot .buyer-all .buyer-btn-sum{background:#e9dcb6;color:#7a6129}
.buyer-foot .buyer-all.is-confirm .buyer-btn-sum{background:#ffffff33;color:#fff8f2}
@media(max-height:720px){#world:not(.guardian-expanded) .buyer-foot button{min-height:36px!important;height:36px;padding:0 8px!important}}

/* 05.11.2026 (3): скупщик не шире экрана; фильтры — три равные таблетки; в развёрнутом виде на телефоне во всю ширину, список до кнопок */
.buyer-panel,.buyer-panel>*{min-width:0;max-width:100%;box-sizing:border-box}
.buyer-panel{width:100%}
.buyer-head{grid-template-columns:34px minmax(0,1fr) auto!important;gap:9px!important}
.buyer-head img{width:34px!important;height:34px!important;border-radius:9px!important}
.buyer-head strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buyer-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.buyer-tabs button{min-width:0;justify-content:center;padding:0 6px!important;gap:4px!important}
.buyer-tabs button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buyer-tabs button small{flex:none}
.buyer-foot{grid-template-columns:minmax(0,1fr) auto!important}
.buyer-foot .buyer-all{padding:0 12px!important}
.buyer-foot .buyer-btn-label{overflow:visible}
.buyer-foot .buyer-sell .buyer-btn-label{overflow:hidden}
@media(max-width:699px){#world.guardian-expanded .buyer-panel{max-width:none!important;margin:0!important}}
#world.guardian-expanded .buyer-list{flex:1 1 0!important;min-height:0!important}
#world.guardian-expanded .buyer-foot{margin-top:0;padding-bottom:2px!important}

/* 05.11.2026 (4): скупщик забирает свободные поля панели слева, справа и снизу */
.world-panel-body.has-buyer{margin:0 -8px -10px;padding:0}
#world.guardian-expanded .world-panel-body.has-buyer{margin:0 -8px -10px}
.buyer-list{border-radius:12px}

/* 05.11.2026: надпись VALGREIM — полоски одной картинки; по слову пробегает мягкая волна, затем пауза */
.brand-word{display:flex;width:var(--word-w,220px);aspect-ratio:588/98;line-height:0;filter:drop-shadow(0 2px 2px #3a2a1033)}
.brand-word>i{flex:1 1 0;min-width:0;margin-right:-.4px;background:url(art/brand/valgreim-wordmark.png) no-repeat;background-size:calc(var(--strips,28)*100%) 100%;will-change:transform}
.brand-word>i:last-child{margin-right:0}
.brand-word.is-waving>i{animation:brand-wave 3.4s cubic-bezier(.45,0,.4,1) infinite;animation-delay:calc(var(--i)*36ms)}
@keyframes brand-wave{0%{transform:translateY(0)}9%{transform:translateY(-10%)}18%{transform:translateY(2%)}25%,100%{transform:translateY(0)}}
.reduced-motion .brand-word>i,.perf-lite .brand-word>i{animation:none!important}
@media(prefers-reduced-motion:reduce){.brand-word>i{animation:none!important}}
#loading .loading-name{display:flex;justify-content:center;margin:2px 0 6px;font-size:0;line-height:0;letter-spacing:0}
#loading .loading-name>.brand-word{--word-w:min(240px,70vw)}
.auth-brand strong>.brand-word{--word-w:138px;margin-bottom:2px}
.auth-brand strong{font-size:0;line-height:0;letter-spacing:0}

/* 05.11.2026 (2): надпись VALGREIM — объёмная 3D-модель; холст выше слова, чтобы поднятые волной буквы не срезались */
.brand-word{position:relative;display:block;width:var(--word-w,220px);aspect-ratio:1164/194;filter:none}
.brand-word>.brand-word-flat{display:block;width:100%;height:100%;object-fit:contain}
.brand-word.has-gl>.brand-word-flat{visibility:hidden}
.brand-word>canvas.logo-3d-gl,#loading .brand-word>canvas.logo-3d-gl{position:absolute;left:-4%;top:-45%;width:108%;height:190%;opacity:1;filter:drop-shadow(0 3px 3px #2c1f0e33);transition:none;pointer-events:none}

/* 05.11.2026: скупщик — мягкая подсветка выбора и «щелчок» галочки только у только что выбранной строки */
.buyer-row{transition:background-color .22s ease}
.buyer-row.just-picked .buyer-check{animation:buyer-check-pop .36s cubic-bezier(.3,1.6,.5,1)}
@keyframes buyer-check-pop{0%{transform:scale(.6)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
.buyer-btn-sum{transition:background-color .2s ease}
@media(prefers-reduced-motion:reduce){.buyer-row.just-picked .buyer-check{animation:none}}
.brand-word>canvas.logo-3d-gl,#loading .brand-word>canvas.logo-3d-gl{filter:none}
.brand-word>canvas.logo-3d-gl,#loading .brand-word>canvas.logo-3d-gl{filter:none}

/* 05.11.2026: админка — одна карточка на вещь; уровень выбирается таблетками в предпросмотре */
.admin-level-chips{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 4px}
.admin-level-chips>button{min-width:30px;height:24px;padding:0 7px;border:1px solid #d8cfae;border-radius:999px;background:#fffdf5;color:#6d6650;font:600 11px/1 Interface,sans-serif;cursor:pointer}
.admin-level-chips>button.selected{background:#3f7865;border-color:#2f6050;color:#fffaf0}
/* 05.11.2026: шапка рюкзака: вес с полоской и кошель в стиле игры; панели очистки появляются плавно, нижняя стоит ниже */
.bag-panel-head small:has(.bag-weight-meter){display:block;margin-top:6px;padding:0;background:none}
.bag-weight-meter{display:inline-grid;gap:4px;min-width:112px;padding:5px 10px 6px;border:1px solid #d8cda9;border-radius:9px;background:linear-gradient(180deg,#fdf8e8,#f3ecd5);box-shadow:inset 0 0 0 1px #fffdf4}
.bag-weight-meter .bag-weight{font:600 12px/1.15 Interface,sans-serif;color:#4f6a58;font-variant-numeric:tabular-nums}
.bag-weight-meter .bag-weight>i{font-style:normal;font-weight:400;color:#8f8668}
.bag-weight-bar{display:block;height:3px;border-radius:2px;background:#e4dcc2;overflow:hidden}
.bag-weight-bar>em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#769782,#b7c18a);transition:width .3s ease}
.bag-weight-meter.is-over{border-color:#dcb6a8;background:linear-gradient(180deg,#fdf3ec,#f6e4da)}
.bag-weight-meter.is-over .bag-weight,.bag-weight-meter.is-over .bag-weight>i{color:#a3412f}
.bag-weight-meter.is-over .bag-weight-bar>em{background:linear-gradient(90deg,#c9665a,#a8483e)}
.bag-panel-head .coins{height:38px;padding:0 13px 0 9px;gap:6px;border:1px solid #d6c690;border-radius:10px;background:linear-gradient(180deg,#fdf6dd,#f1e4b9);box-shadow:inset 0 0 0 1px #fffbea,0 1px 3px #6d5a2318;color:#5e4d1f;font:700 14px/1 Interface,sans-serif;font-variant-numeric:tabular-nums}
.bag-panel-head .coins .icon{color:#b08a35;font-size:20px}
.bulk-discard-heading,.bulk-discard-actions{animation:none}
.bulk-discard-actions{bottom:-16px;transition:none}
.bulk-discard-heading.is-leaving,.bulk-discard-actions.is-leaving{pointer-events:none}
/* 05.11.2026 настройки: значки в скруглённых квадратах, размер текста компактнее */
.vs-panel .vs-ic,.vs-panel .vs-item>.text-scale-glyph,.vs-panel .vs-item>.dungeon-settings-symbol{border-radius:10px!important;background:linear-gradient(180deg,#fbf8ec,#efe9d3)!important;box-shadow:inset 0 0 0 1px #fffdf4}
.vs-panel .vs-hero img{border-radius:12px!important}
.vs-panel .vs-item.text-scale-row{row-gap:5px;padding-top:9px!important;padding-bottom:9px!important;min-height:0}
.vs-panel .vs-item.text-scale-row>.text-scale-glyph{align-self:center;grid-row:1/span 2;margin:0!important}
.vs-panel .vs-item.text-scale-row>div:not(.text-scale-input) small{display:none}
.vs-panel .text-scale-row>.text-scale-input{grid-column:2/-1;grid-template-columns:auto minmax(0,1fr) auto auto!important;gap:7px!important;padding:0!important;border:0!important;background:none!important}
.vs-panel .text-scale-input>button{color:#7c8a70}
.vs-panel .text-scale-input>button:first-of-type{font-size:10px!important}
.vs-panel .text-scale-input>button:last-of-type{font-size:14px!important}
.vs-panel .text-scale-input>output{min-width:36px;padding:0;border:0;background:none;text-align:right;font:600 11px/1.2 Interface,sans-serif;color:#5d6b58}
/* 05.11.2026: шапка рюкзака одной строкой: название, вес и монеты в одинаковых блоках */
.bag-panel-head{align-items:stretch;gap:7px;margin-bottom:12px}
.bag-panel-head>div{display:contents}
.bag-panel-head h1{display:flex;align-items:center;flex:none;height:38px;margin:0;padding:0 11px;box-sizing:border-box;border:1px solid #d8cda9;border-radius:10px;background:linear-gradient(180deg,#fdf8e8,#f3ecd5);box-shadow:inset 0 0 0 1px #fffdf4;font-size:18px;line-height:1}
.bag-panel-head small:has(.bag-weight-meter){display:flex;flex:1 1 0;min-width:0;margin:0;padding:0}
.bag-weight-meter{display:grid;align-content:center;flex:1;min-width:0;height:38px;box-sizing:border-box;padding:0 9px;border-radius:10px}
.bag-weight-meter .bag-weight{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bag-panel-head .coins{flex:none;align-self:stretch;height:38px;margin:0;padding:0 10px 0 8px;font-size:13px}
@media(max-width:350px){.bag-panel-head{gap:5px}.bag-panel-head h1{padding:0 8px;font-size:16px}.bag-weight-meter{padding:0 6px}.bag-weight-meter .bag-weight{font-size:11px}.bag-panel-head .coins{padding:0 7px 0 5px;font-size:12px}}
.bag-panel-head{align-items:center}
.bag-panel-head small:has(.bag-weight-meter){background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
.bag-panel-head .coins{align-self:center!important;margin:0!important;padding-top:0!important;padding-bottom:0!important}
/* 05.11.2026: редкость выпадения в карточке — заметный блок своего цвета */
#modal-root .relic-front .modal-header .item-drop-rarity.is-in-header,.item-dossier-status .item-drop-rarity{display:inline-flex;align-items:center;padding:4px 10px;border-radius:8px;box-shadow:inset 0 0 0 1px #ffffff80;font:600 11px/1.2 Interface,sans-serif}
#modal-root .relic-front .modal-header .item-drop-rarity[data-odds="Часто"],.item-drop-rarity[data-odds="Часто"]{border:1px solid #b9cfa4;background:linear-gradient(180deg,#f1f6e2,#dfeac8);color:#4f6f3b}
#modal-root .relic-front .modal-header .item-drop-rarity[data-odds="Иногда"],.item-drop-rarity[data-odds="Иногда"]{border:1px solid #a9c7cf;background:linear-gradient(180deg,#eaf4f4,#d4e6e7);color:#376a73}
#modal-root .relic-front .modal-header .item-drop-rarity[data-odds="Редко"],.item-drop-rarity[data-odds="Редко"]{border:1px solid #c5b3d6;background:linear-gradient(180deg,#f3edf7,#e4d8ec);color:#654d86}
#modal-root .relic-front .modal-header .item-drop-rarity[data-odds="Очень редко"],.item-drop-rarity[data-odds="Очень редко"]{border:1px solid #d8b566;background:linear-gradient(180deg,#fdf3d2,#f3dc9c);color:#7d5a14}
/* шапка рюкзака: название меньше, все три блока одной высоты и на одной линии; полосы прокрутки экранов не видно */
#bag .bag-panel-head{align-items:center;gap:6px}
#bag .bag-panel-head h1{height:34px;padding:0 9px;font-size:15px!important;line-height:1!important}
#bag .bag-panel-head small:has(.bag-weight-meter){flex:1 1 auto}
#bag .bag-weight-meter{height:34px;padding:0 8px}
#bag .bag-weight-meter .bag-weight{font-size:11.5px!important}
#bag .bag-panel-head .coins{height:34px;font-size:12.5px!important}
.sheet-screen{scrollbar-width:none}
.sheet-screen::-webkit-scrollbar{display:none;width:0;height:0}
#bag .bag-panel-head small:has(.bag-weight-meter){display:flex!important;align-items:center;height:34px;margin:0!important;line-height:0}
#bag .bag-panel-head h1,#bag .bag-weight-meter,#bag .bag-panel-head .coins{box-sizing:border-box;height:34px!important;border:1px solid #d8cda9;border-radius:10px!important;background:linear-gradient(180deg,#fdf8e8,#f3ecd5);box-shadow:inset 0 0 0 1px #fffdf4}
#bag .bag-weight-meter.is-over{border-color:#dcb6a8;background:linear-gradient(180deg,#fdf3ec,#f6e4da)}
#bag .bag-panel-head .coins{color:#4f6a58}
#bag .bag-weight-meter .bag-weight,#bag .bag-weight-meter .bag-weight>i{font:600 11.5px/1.15 Interface,sans-serif!important;font-style:normal!important;color:#4f6a58}
#bag .bag-weight-meter.is-over .bag-weight,#bag .bag-weight-meter.is-over .bag-weight>i{color:#a3412f}
/* 05.11.2026: единый блок монет, значки настроек, версия, карточки рюкзака, выбор героя */
#app .coins{display:inline-flex;align-items:center;gap:5px;flex:none;align-self:center;height:34px;margin:0;padding:0 10px 0 7px;box-sizing:border-box;border:1px solid #d8cda9;border-radius:10px;background:linear-gradient(180deg,#fdf8e8,#f3ecd5);box-shadow:inset 0 0 0 1px #fffdf4;color:#4f6a58;font:700 12.5px/1 Interface,sans-serif;font-variant-numeric:tabular-nums}
.coin-art{display:block;flex:none;width:19px;height:19px}
#bag .bag-tools .bag-search-row{margin-top:0!important}
.vs-panel .vs-ic>img,.vs-panel .vs-item>.text-scale-glyph>img{display:block;width:24px;height:24px;object-fit:contain;margin:auto}
.vs-panel .vs-item{min-height:50px;padding-top:8px!important;padding-bottom:8px!important}
.vs-panel .vs-copy,.vs-panel .vs-item>div:not(.text-scale-input){align-self:center}
.vs-panel .text-scale-row>.text-scale-input{grid-template-columns:minmax(0,1fr) 38px!important;gap:9px!important;align-items:center}
.vs-panel .vs-item.text-scale-row>div:not(.text-scale-input){grid-column:2/-1}
#settings .vs-panel{margin-top:2px}
.vs-footer{display:flex;justify-content:center;margin:6px 0 2px}
.vs-footer>span{padding:5px 12px;border:1px solid #d8cda9;border-radius:9px;background:linear-gradient(180deg,#fdf8e8,#f3ecd5);box-shadow:inset 0 0 0 1px #fffdf4;font:600 11px/1.2 Interface,sans-serif;letter-spacing:.04em;color:#7d7757}
#bag .inventory-topline .inventory-stock{height:16px;padding:0 5px;border-radius:5px;font:600 9px/1 Interface,sans-serif}
.inventory-title .enhancement-label{display:inline-flex;align-items:center;height:15px;margin-left:5px;padding:0 4px;box-sizing:border-box;border:1px solid #d9c07f;border-radius:4px;background:linear-gradient(180deg,#fdf3d2,#f3dc9c);color:#7d5a14;font:700 9.5px/1 Interface,sans-serif;vertical-align:2px}
/* the rune's frame sits on the faces, so it turns with the card */
.relic-card.item-rune,.item-dossier-surface.item-rune{border-color:transparent!important;box-shadow:none!important}
.item-rune .relic-face{border:2px solid #b8923f!important;box-shadow:inset 0 0 0 1px #f3e2ac!important;box-sizing:border-box}
.chat-dock-arrow{display:none!important}
.character-modal .character-roster{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.character-modal .character-roster-row{position:relative;display:flex!important;flex-direction:column;align-items:center;gap:6px;width:100%;min-width:0;min-height:0;margin:0;padding:8px 5px 9px;box-sizing:border-box;border:1px solid #d8cda9;border-radius:11px;background:linear-gradient(180deg,#fffcf0,#f5eed8);box-shadow:inset 0 0 0 1px #fffdf4;text-align:center}
.character-modal .character-roster-row>img{display:block;width:100%;max-width:76px;height:auto;aspect-ratio:1;object-fit:cover;object-position:center top;border-radius:9px;border:1px solid #e0d6b8}
.character-modal .character-roster-row>span{display:block;width:100%;min-width:0}
.character-modal .character-roster-row strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:700 12px/1.25 Interface,sans-serif;color:#2f5a50}
.character-modal .character-roster-row small{display:block;margin-top:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:400 9.5px/1.25 Interface,sans-serif;color:#8a8268}
.character-modal .character-roster-row.selected{border:2px solid #5f8f77;background:linear-gradient(180deg,#f3f8ea,#e4eed7)}
.character-modal .character-roster-row>b{position:absolute;top:4px;right:4px;padding:2px 4px;border-radius:4px;background:#447d6b;color:#fffaf0;font:600 8.5px/1 Interface,sans-serif}
.character-modal .character-roster-row.empty{justify-content:center;min-height:130px;border-style:dashed;background:none;box-shadow:none}
.character-modal .character-new-symbol{display:block;font:400 26px/1 Interface,sans-serif;color:#b9ae8e}
#app .coins .icon{color:#ad8836;font-size:19px;width:auto;height:auto;background:none}

@media(prefers-reduced-motion:no-preference){
 .logo-css-motion .motion-3d .logo-3d-flat,.logo-css-motion .logo-3d.is-spinning .logo-3d-flat{animation:vg-light-emblem 5.2s linear infinite}
 .logo-css-motion .brand-word.is-waving .brand-word-flat{animation:vg-light-word 3.4s ease-in-out infinite}
 @keyframes vg-light-emblem{from{transform:perspective(480px) rotateY(0)}to{transform:perspective(480px) rotateY(360deg)}}
 @keyframes vg-light-word{0%,65%,100%{transform:translateY(0)}25%{transform:translateY(-2px)}}
}
