/* 06.11.2026 (owner): phoenix sheet above the chat, tidy turn bar, item skill blocks */
.mage-element-layer{position:fixed;inset:0;display:block;padding:0;background:#152a2826}
.mage-element-picker{position:absolute;left:0;bottom:0;width:100%;box-sizing:border-box;padding:6px 16px 14px;border:1px solid #cdbf9c;border-bottom:0;border-radius:14px 14px 0 0;background:linear-gradient(180deg,#fbf5e6,#f4ecd8);box-shadow:0 -6px 22px #1e353b26;transition:transform .17s ease;animation:mage-sheet-up .2s cubic-bezier(.2,.8,.2,1);touch-action:none}
.mage-element-grip{display:grid;place-items:center;height:14px;margin-bottom:4px}.mage-element-grip>i{width:34px;height:3px;border-radius:3px;background:#c4b797}
.mage-element-picker header{justify-content:center;margin-bottom:10px}.mage-element-picker header strong{font-size:14px;color:#355b55}
.mage-element-picker [data-element]{padding:10px 5px;background:#fbf6e8;border-color:#d8cdb0;box-shadow:none}.mage-element-picker [data-element]:focus{outline:none}
.mage-element-picker [data-element]:hover,.mage-element-picker [data-element]:focus-visible{background:#f2ecd9;border-color:#a99c78;transform:none}
@keyframes mage-sheet-up{from{transform:translateY(100%)}to{transform:translateY(0)}}
.card-field #battle-root .battle-status{display:flex;align-items:center;gap:6px;min-height:32px;height:auto}
.card-field #battle-root .battle-status .party-clock{flex:1;min-width:0;height:32px;min-height:32px;box-sizing:border-box;padding:4px 8px 3px;border-radius:6px}
.card-field #battle-root .battle-status .turn-badge{border-radius:4px}
.card-field #battle-root .battle-status .clock-track,.card-field #battle-root .battle-status .clock-track i{border-radius:2px}
.card-field #battle-root .battle-retreat-open,.card-field #battle-root .combat-admin-open{flex:none;width:32px;height:32px;min-width:32px;margin:0;padding:0;display:grid;place-items:center;border:1px solid #d7c9a4;border-radius:6px;background:#faf5e5;color:#8a7152}
.card-field #battle-root .battle-retreat-open img{width:20px;height:20px;display:block}
.card-field #battle-root .combat-admin-open .icon{font-size:16px}
.item-skill-chip{display:inline;padding:0 5px;margin:0 1px;border:1px solid #b9c7ac;border-radius:5px;background:#eef2e2;color:#2f5a50;font:inherit;font-weight:700;line-height:1.5;cursor:pointer}
.card-field #battle-root .battle-top{border-radius:8px}
/* блоки навыков в тексте не должны касаться соседних строк */
.item-unique-feature p{line-height:1.6}
.item-skill-chip{display:inline-flex;align-items:center;padding:0 3px;margin:1px 1px;border-radius:3px;line-height:1.2;white-space:nowrap;vertical-align:baseline;font-weight:600}
button.effect-term-link{padding:0 3px;margin:1px 1px;border-radius:3px;line-height:1.2}
button.effect-term-link{margin:2px 1px}
/* яма: без редкости и её цветов */
.world-pit-card{border-left-width:1px;border-color:#cbbfa7}
/* уведомления: обычный шрифт игры */
#app #toast.top-notice.top-notice .notice-text{font:400 14px/18px Interface,sans-serif;letter-spacing:0}
#app #toast.top-notice.top-notice .notice-meta{font-family:Interface,sans-serif}
/* смена имени в стиле игры */
#modal-root .hero-rename-modal{width:min(340px,calc(100% - 28px));padding:16px;border:1px solid #cfc3a1;border-radius:10px;background:linear-gradient(#fdf9ec,#f4edd8);box-shadow:0 10px 26px #3a35232e}
#modal-root .hero-rename-modal .modal-header{margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #e2d8bd}
#modal-root .hero-rename-modal .modal-header h2{font:700 16px/20px Interface,sans-serif;color:#3c6658}
#modal-root .hero-rename-modal .modal-header button{width:28px;height:28px;min-height:28px;border:1px solid #d8ccb0;border-radius:6px;background:#fbf6e6;color:#7c8a70}
.rename-hero{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:8px 10px;border:1px solid #dfd5b9;border-radius:8px;background:#f8f2df}
.rename-hero>img{width:38px;height:38px;flex:none;object-fit:contain}
.rename-hero>div{display:grid;gap:1px;min-width:0}
.rename-hero small{font:400 10px/13px Interface,sans-serif;color:#8d8469}
.rename-hero strong{font:700 14px/18px Interface,sans-serif;color:#3c6658;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal-root .hero-rename-modal .rename-field{gap:6px;margin:0 0 10px;font:700 11px/14px Interface,sans-serif;color:#6e7f64}
.rename-field>span{display:flex;justify-content:space-between;align-items:baseline}
.rename-field>span>i{font:400 10px/14px Interface,sans-serif;color:#9b9078}
#modal-root .hero-rename-modal .rename-input{min-height:40px;padding:8px 11px;border:1px solid #cfc3a1;border-radius:7px;background:#fffdf6;color:#34544a;font:700 14px/20px Interface,sans-serif}
#modal-root .hero-rename-modal .rename-input:focus{outline:0;border-color:#7f9a7e;box-shadow:0 0 0 2px #7f9a7e2e}
.rename-price{display:flex;align-items:center;gap:6px;margin:0 0 12px;padding:7px 10px;border:1px solid #dfd5b9;border-radius:7px;background:#f6f0dc;font:400 11px/15px Interface,sans-serif;color:#5d6a55}
.rename-price>img{width:18px;height:18px;flex:none}
.rename-price>span{flex:1;min-width:0}
.rename-price b{font-weight:700;color:#3c6658}
.rename-price>small{flex:none;font:400 10px/14px Interface,sans-serif;color:#8d8469}
.rename-price.is-poor>small{color:#a4503f}
#modal-root .hero-rename-modal .rename-save{width:100%;min-height:40px;border-radius:7px;font:700 13px/18px Interface,sans-serif}
#modal-root .hero-rename-modal .rename-save:disabled{opacity:.5}
.rename-free{margin:0 0 12px;text-align:center;font:400 12px/16px Interface,sans-serif;color:#5d7a63}
/* чат: крестик в одном ряду с вкладками */
#modal-root .chat-modal .online-chat-tabs.has-close{display:flex;padding-right:0;align-items:stretch}
#modal-root .chat-modal .online-chat-tabs.has-close>button{flex:1 1 0;min-width:0}
#modal-root .chat-modal .online-chat-tabs.has-close>.chat-sheet-close{display:flex;align-items:center;justify-content:center;flex:none;width:34px}
#modal-root .chat-modal .chat-sheet-close>button.icon-button{width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;max-height:26px;border:0!important;background:none!important;box-shadow:none!important;color:#94957f}
#modal-root .chat-modal .chat-sheet-close>button.icon-button>.icon{width:15px;height:15px;font-size:15px;line-height:15px}
.rename-price.rename-free{justify-content:center;text-align:center}
.rename-price.rename-free>span{flex:none}
/* путь: без подписи и бегущего значка */
#app #toast.top-notice.notice-journey .notice-progress:after{display:none}
/* карточка вещи из бестиария поверх книги */
#app.knowledge-open #modal-root{z-index:60}
/* прибавка посоха за заточку: обычная строка, а не особенность */
.item-forge-note{margin:6px 0 0;font-size:13px;opacity:.82}
/* чат: системные сообщения мягким коричнево-жёлтым */
.chat-line.chat-system .chat-nick,.chat-line.chat-system .chat-colon,#shore-messages .chat-line.chat-system .chat-nick{color:#8c7445!important}
.chat-line.chat-system .chat-text{color:#927c52!important}
/* журнал: особые события своей строкой, новое горит в самом числе */
.journal-joined{display:block;margin-top:2px;padding-left:8px;border-left:2px solid #d8cfae}
.journal-joined::first-letter{text-transform:uppercase}
.battle-log-toggle small.journal-has-new{color:#fff!important;background:#b5432f!important;font-weight:700;box-shadow:0 0 6px #d9543f99}
.journal-important-count{display:none!important}
/* карточка без эффектов по центру; строка эффектов плавно сворачивается, карточка не дёргается */
.card-field #battle-root .battle-unit .card-effects{transition:height .28s ease,min-height .28s ease,padding .28s ease,margin .28s ease,opacity .2s ease,border-color .2s ease}
.card-field #battle-root .battle-unit>.card-face,.card-field #battle-root .battle-unit.fx-empty>.card-face{grid-template-rows:minmax(0,1fr) auto!important;align-content:stretch!important}
.card-field #battle-root .battle-unit>.card-face>.card-main,.card-field #battle-root .battle-unit.fx-empty>.card-face>.card-main{align-self:center!important}
.card-field #battle-root .battle-unit.fx-empty .card-effects,.card-field #battle-root .battle-unit .card-effects:empty{display:flex!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border-color:transparent!important;opacity:0}
/* отряда больше нет: кнопка и приглашения скрыты, вкладка подземелья только у группы */
/* 08.11.2026: the party is back, its button and invitations are visible again */
[data-online-channel][hidden]{display:none!important}
/* Хродгар */
.quest-lines{display:grid;gap:6px;width:100%}
.quest-line{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:8px;width:100%;padding:6px 8px;border:1px solid #e0d6bb;border-radius:10px;background:#fbf7e9;text-align:left;color:#4d4a38;font:inherit}
.quest-line img{width:38px;height:38px;object-fit:contain}
.quest-line-copy{display:grid;min-width:0}.quest-line-copy strong{font-size:13px;color:#35574a}.quest-line-copy small{font-size:11px;color:#8c8468}
.quest-line b{font-size:13px;color:#8c7445;white-space:nowrap}.quest-line.is-ready b{color:#3d8346}.quest-line.is-ready{border-color:#b9cfa6}
.quest-reward{display:grid;grid-template-columns:38px 1fr;gap:8px;align-items:center;width:100%;padding:6px 8px;border:1px dashed #d8c9a0;border-radius:10px;background:#fdf9ee}
.quest-reward img{width:38px;height:38px;object-fit:contain}.quest-reward span{display:grid;min-width:0}.quest-reward small{font-size:10px;color:#9b8d68}.quest-reward strong{font-size:13px;color:#35574a}.quest-reward em{font-style:normal;font-size:11px;color:#7d7656}
.quest-active{margin:4px 0 0;font-size:12px;color:#7d6a3f;text-align:center}
.quest-tonics{display:grid;gap:5px;width:100%}
.tonic-chip{margin:0 0 6px;padding:4px 10px;border:1px solid #d8c9a0;border-radius:999px;background:#fbf4dd;font-size:12px;color:#7d6a3f;text-align:center}
/* чат на весь экран */
.chat-modal .shore-messages{max-height:none!important}
.chat-modal #shore-messages{scrollbar-width:none;scrollbar-gutter:auto}
.chat-modal #shore-messages::-webkit-scrollbar{display:none;width:0;height:0}
.world-panel-body:has([data-quest-giver]),.world-panel-body:has([data-hunter-board]){overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;touch-action:pan-y}
.world-panel-body:has([data-quest-giver])::-webkit-scrollbar,.world-panel-body:has([data-hunter-board])::-webkit-scrollbar{display:none;width:0;height:0}
[data-quest-giver] .mentor-message p,[data-hunter-board] .mentor-message p{color:#3b463b!important}

/* 07.11.2026: у каждого свой разговор. Обложку ставит Codex через --talk-cover на панели. */
.world-panel-body:has([data-quest-giver]){--talk-cover:none;background-image:var(--talk-cover);background-size:cover;background-position:center}
.world-panel-body:has([data-hunter-board]){--talk-cover:none;background-image:var(--talk-cover);background-size:cover;background-position:center}
.quest-conversation[data-speaker=hrodgar] .mentor-message:not(.is-self){background:linear-gradient(180deg,#f6e6c4,#efd9ad)!important;border:1px solid #b98f4e!important;box-shadow:inset 0 0 0 3px #fbf1da,inset 0 0 0 4px #cfae74,0 2px 6px #5a3d1426!important;border-radius:10px 14px 14px 4px!important}
.quest-conversation[data-speaker=hrodgar] .mentor-message:not(.is-self) small{color:#8a5f22!important}
.quest-conversation[data-speaker=hrodgar] .mentor-message:not(.is-self) p{color:#43321a!important}
.quest-conversation[data-speaker=stigr] .mentor-message:not(.is-self){background:linear-gradient(180deg,#edf1e3,#e1e8d7)!important;border:1px solid #a6b49a!important;box-shadow:inset 0 0 0 2px #f5f7ed,0 2px 6px #4f62451a!important;border-radius:4px 14px 14px 14px!important}
.quest-conversation[data-speaker=stigr] .mentor-message:not(.is-self) small{color:#52715e!important}
.quest-conversation[data-speaker=stigr] .mentor-message:not(.is-self) p{color:#465c4b!important}
.quest-conversation .mentor-message.is-self{background:#fbf6ea!important;border:1px solid #d8cba9!important;box-shadow:none!important}
.quest-conversation .mentor-message.is-self p{color:#4d4a3d!important}
/* Calm, distinct voices in chat. */
.chat-line.chat-system.chat-hunter .chat-nick,.chat-line.chat-system.chat-hunter .chat-colon,#shore-messages .chat-line.chat-system.chat-hunter .chat-nick,.chat-line.chat-system.chat-hunter .chat-text{color:#52715e!important;text-shadow:none}
.chat-line.chat-system.chat-herbalist .chat-nick,.chat-line.chat-system.chat-herbalist .chat-colon,#shore-messages .chat-line.chat-system.chat-herbalist .chat-nick,.chat-line.chat-system.chat-herbalist .chat-text{color:#4a7488!important;text-shadow:none}
.chat-line.chat-hunter .chat-text,.chat-line.chat-herbalist .chat-text{font-weight:400}
#chat-dock.chat-dock-hunter .chat-dock-copy>strong,#chat-dock.chat-dock-hunter .chat-dock-copy>span{color:#52715e;text-shadow:none}
#chat-dock.chat-dock-herbalist .chat-dock-copy>strong,#chat-dock.chat-dock-herbalist .chat-dock-copy>span{color:#4a7488;text-shadow:none}
#map-labels .world-map-pin .map-here-flag .map-here-back{color:#3f6a52;font-weight:600}
#map-labels .world-map-pin.has-here-flag{z-index:60!important}
/* магический урон фиолетовым */
.journal-amount-static.journal-magic,.journal-record strong.journal-magic{color:#7a3fc4!important}
.combat-popup.is-magic:not(.critical)>b,.paired-hit.is-magic:not(.is-critical)>b{color:#7a3fc4!important}
.card-field #battle-root .card-impact-content.is-magic:not(.critical)>b,.card-field #battle-root .paired-hit.is-magic:not(.is-critical) b,.combat-popup.is-magic:not(.critical) .paired-hit:not(.is-critical) b{color:#7a3fc4!important}
.inspection-glyph{font-size:16px;line-height:1}.inspection-glyph[data-glyph=heart]{color:#cf6a59}.inspection-glyph[data-glyph=sword]{color:#6b7a70}.inspection-glyph[data-glyph=magic]{color:#7a3fc4}
.opponent-stat-glyph[data-glyph=magic],.opponent-token-magic{color:#7a3fc4}
#admin-bot-friends{display:flex;flex-wrap:wrap;gap:6px}#admin-bot-friends .is-selected{border-color:#3f6a52;color:#2f5a42;font-weight:700}
/* 07.11.2026: кнопки боя без подписи, содержимое по центру */
#battle-root .battle-buttons .battle-action{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;text-align:center}
#battle-root .battle-buttons .battle-action>span{flex:0 0 auto!important;width:auto!important;display:block;text-align:center}
#battle-root .battle-buttons .battle-action .skill-swipe-hint{display:none!important}
/* узкие места не растут вместе с крупным шрифтом: calc не масштабируется text-scale.js */
.card-field #battle-root .card-title{font-size:calc(12.5px)!important}
.card-field #battle-root .card-bar b{font-size:calc(11.5px)!important}
.card-field #battle-root .card-bar-icon .icon{font-size:calc(11px)!important}
#battle-root .combat-player-name>span{font-size:calc(15px)!important}
#battle-root .combat-player-name>small{font-size:calc(9.5px)!important}
.world-choice-caption-text{font-size:calc(10px)!important;white-space:nowrap}
.location-choice>strong{font-size:calc(15px)!important}
.inventory-title,.inventory-title *{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* 07.11.2026: окна документов, модерации и плашки */
.vg-sheet-shade{position:fixed;inset:0;z-index:9000;display:flex;align-items:flex-end;justify-content:center;background:#1c241f80;padding:0}
.vg-sheet{width:min(560px,100%);max-height:88dvh;display:flex;flex-direction:column;background:#fbf6ea;border:1px solid #d9caa5;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 28px #0003;overflow:hidden}
.vg-sheet.is-wide{width:min(760px,100%)}.vg-sheet header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 10px;border-bottom:1px solid #e6dcc1}
.vg-sheet h2{margin:0;font:700 calc(17px)/1.25 Interface,sans-serif;color:#2f5a4d}.vg-close{width:34px;height:34px;border:1px solid #d9caa5;border-radius:10px;background:#fffaf0;color:#2f5a4d;font-size:20px;line-height:1}
.vg-sheet-body{padding:12px 16px 18px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;display:flex;flex-direction:column;gap:10px}.vg-sheet-body::-webkit-scrollbar{display:none}
.vg-note{margin:0;font-size:13px;line-height:1.45;color:#6e6650}.vg-updated{margin:0;font-size:12px;color:#8a8268}.vg-empty{margin:14px 0;text-align:center;font-size:13px;color:#8a8268}
.vg-doc article{padding:10px 0;border-bottom:1px solid #ece3cc}.vg-doc h3,.vg-sub{margin:0 0 4px;font:700 14px/1.3 Interface,sans-serif;color:#2f5a4d}.vg-doc p{margin:0;font-size:13.5px;line-height:1.5;color:#3f4a3e}
.vg-search,.vg-input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d9caa5;border-radius:12px;background:#fffdf6;color:#2f3a31;font:14px/1.4 Interface,sans-serif;resize:vertical}
.vg-primary,.vg-secondary{min-height:44px;border-radius:12px;font:700 14px Interface,sans-serif;padding:0 16px}.vg-primary{border:0;background:#2f5f53;color:#fff}.vg-secondary{border:1px solid #d9caa5;background:#fffaf0;color:#2f5a4d}.vg-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vg-error{margin:0;font-size:13px;color:#a1432f}.vg-quote{margin:0;padding:10px 12px;border-left:3px solid #d9caa5;background:#f6efdc;font-size:13px;color:#3f4a3e}
.vg-rows{display:flex;flex-direction:column;gap:8px}.vg-row{padding:10px 12px;border:1px solid #e3d8bb;border-radius:12px;background:#fffdf6}.vg-row strong{font-size:13.5px;color:#2f5a4d}.vg-row p{margin:4px 0;font-size:13px;line-height:1.4;color:#3f4a3e;overflow-wrap:anywhere}.vg-row small{font-size:11.5px;color:#8a8268}.vg-row.is-off{opacity:.6}
.vg-chips{display:flex;flex-wrap:wrap;gap:6px}.vg-chips button,.vg-actions button{min-height:36px;padding:0 12px;border:1px solid #d9caa5;border-radius:10px;background:#fffaf0;color:#2f5a4d;font:600 13px Interface,sans-serif}.vg-chips button.is-on{background:#2f5f53;border-color:#2f5f53;color:#fff}
.vg-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;flex:none}.vg-tabs::-webkit-scrollbar{display:none}.vg-tabs button{flex:none;min-height:36px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:none;color:#6e6650;font:700 13px Interface,sans-serif}.vg-tabs button.is-on{color:#2f5a4d;border-bottom-color:#2f5f53}.vg-tab-body{display:flex;flex-direction:column;gap:10px;min-height:200px}
.vg-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.vg-filters .vg-search{flex:1 1 180px}.vg-filters select,.vg-actions select{min-height:36px;border:1px solid #d9caa5;border-radius:10px;background:#fffaf0;color:#2f5a4d;font:13px Interface,sans-serif;padding:0 8px}.vg-filters label{font-size:13px;color:#3f4a3e;display:flex;gap:5px;align-items:center}
.vg-player{display:flex;flex-direction:column;gap:8px}.vg-actions{display:flex;flex-wrap:wrap;gap:6px}.vg-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.vg-tags em{font:600 11px Interface,sans-serif;font-style:normal;padding:1px 7px;border-radius:7px;background:#e6efe6;color:#2f5a4d}.vg-tags em.bad{background:#f6e2db;color:#a1432f}
.vg-plate{position:fixed;left:12px;right:12px;top:calc(10px + env(safe-area-inset-top));z-index:9500;margin:auto;max-width:520px;padding:11px 14px;border:1px solid #bcd0b9;border-radius:13px;background:#f1f6ec;color:#2f5a4d;font:600 13.5px/1.35 Interface,sans-serif;box-shadow:0 6px 18px #0003;animation:vg-plate-in .24s ease-out}.vg-plate.is-bad{border-color:#e3b7a9;background:#fbeee9;color:#a1432f}.vg-plate.is-leaving{opacity:0;transform:translateY(-6px);transition:.3s}@keyframes vg-plate-in{from{opacity:0;transform:translateY(-8px)}}
.vg-chat-note{margin:0 0 6px;padding:7px 10px;border-radius:10px;background:#f6efdc;color:#7b6431;font:600 12.5px/1.35 Interface,sans-serif}.vg-chat-note.is-mute{background:#fbeee9;color:#a1432f}
.chat-role{display:inline-block;margin-left:4px;padding:0 5px;border-radius:6px;font:700 10px/1.5 Interface,sans-serif;vertical-align:1px;background:#e6efe6;color:#2f5a4d}.chat-role-admin{background:#f3e2bd;color:#7b5413}.chat-role-senior{background:#e4e0f4;color:#4f3f9a}
#shore-messages .chat-line{position:relative;touch-action:pan-y;transition:transform .18s ease-out}#shore-messages .chat-line.is-swiping{transition:none}#shore-messages .chat-line[data-swipe=mention]::before{content:"@";position:absolute;left:-44px;top:0;width:30px;height:24px;display:grid;place-items:center;border-radius:8px;background:#e6efe6;color:#2f5a4d;font:700 14px Interface,sans-serif}#shore-messages .chat-line[data-swipe=delete]::after{content:"Удалить";position:absolute;right:-74px;top:0;padding:2px 8px;border-radius:8px;background:#fbeee9;color:#a1432f;font:700 11px/20px Interface,sans-serif}#shore-messages{overflow-x:hidden}
.vg-jail{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:24px;text-align:center;background:linear-gradient(#26302bdd,#1a211ee8);color:#efe9d6}.vg-jail h2{margin:0;font:700 22px Interface,sans-serif}.vg-jail p{margin:0;font-size:14px;line-height:1.5}.vg-jail-why{color:#f3cbb9}.vg-jail strong{font-size:16px}.vg-jail small{font-size:12.5px;opacity:.85}
.vg-beta{display:inline-block;padding:1px 8px;border-radius:8px;background:#f3e2bd;color:#7b5413;font:700 11px/1.6 Interface,sans-serif}.vg-beta-line{margin:8px 0 0;text-align:center;font-size:12px;color:#8a8268}.vg-go{margin-left:auto;color:#8a8268;font-size:18px}.auth-link{padding:0;border:0;background:none;color:#2f5a4d;font:inherit;text-decoration:underline}.auth-hint{display:block;margin:-2px 0 6px;font-size:12px;color:#8a8268}
.auth-footnote{display:block!important;text-align:center;line-height:1.45}.auth-footnote .auth-link,#auth-root .auth-footnote button.auth-link{display:inline!important;width:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#2f5a4d!important;font:inherit!important;text-decoration:underline}.auth-hint{margin:4px 0 10px!important;line-height:1.3}.vs-panel .vg-beta{margin-right:4px}
/* админ-панель: компактная шапка, вкладки всегда видны */
.admin-console-title{padding:10px 12px!important}.admin-console-title .eyebrow,.admin-console-title p{display:none!important}.admin-console-title h2{font-size:calc(15px)!important;margin:0 0 4px!important}
.admin-console .admin-tabs{position:sticky;top:0;z-index:6;display:flex!important;flex-wrap:nowrap!important;gap:6px;overflow-x:auto;scrollbar-width:none;padding:6px 0;background:#fbf4e6}.admin-console .admin-tabs::-webkit-scrollbar{display:none}.admin-console .admin-tabs button{flex:0 0 auto!important;min-width:auto!important;padding:0 12px!important;white-space:nowrap}
#admin-players{max-height:38dvh;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}#admin-players::-webkit-scrollbar{display:none}
.admin-console input,.admin-console select,.admin-console textarea{min-width:0;max-width:100%;box-sizing:border-box}
/* 07.11.2026: вход и регистрация заново: рисунок на весь экран, логотип и лёгкая панель снизу */
.account-screen{min-height:100dvh;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:center!important;gap:0!important;padding:0!important;box-sizing:border-box}
.account-screen .auth-brand{position:absolute;top:max(5dvh,calc(env(safe-area-inset-top) + 18px));left:0;right:0;display:flex;justify-content:center;margin:0!important}
.account-screen .account-card{width:min(440px,100%)!important;margin:0!important;padding:18px 20px 12px!important;border:0!important;border-radius:26px 26px 0 0!important;background:#fdf8ecf2!important;box-shadow:0 -10px 36px #2a26183d!important;backdrop-filter:blur(6px);box-sizing:border-box}
.account-screen .vl-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:0;margin:0 0 14px!important;padding:0!important;background:none!important;border:0!important;border-bottom:1px solid #e3d8bb!important;border-radius:0!important;box-shadow:none!important}
.account-screen .vl-tabs button{min-height:40px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#8a8268!important;font:700 calc(15px)/1 Interface,sans-serif!important;margin-bottom:-1px}
.account-screen .vl-tabs button.active{color:#2f5a4d!important;border-bottom-color:#2f5f53!important}
.vl-form{display:flex!important;flex-direction:column;gap:9px}
.vl-field{position:relative;display:block!important;margin:0!important}
.vl-field input{width:100%!important;height:52px!important;box-sizing:border-box;padding:20px 14px 6px!important;margin:0!important;border:1px solid #dfd2b2!important;border-radius:14px!important;background:#fffdf7!important;box-shadow:none!important;color:#2f3a31!important;font:600 calc(15px)/1.2 Interface,sans-serif!important}
.vl-field input:focus{outline:0;border-color:#2f5f53!important;box-shadow:0 0 0 3px #2f5f5322!important}
.vl-field>span{position:absolute;left:14px;top:16px;color:#8a8268;font:500 calc(14px)/1.2 Interface,sans-serif;pointer-events:none;transition:.14s ease-out}
.vl-field input:focus+.vl-eye~span,.vl-field input:focus~span{top:7px;font-size:calc(11px)}
.vl-field:focus-within>span,.vl-field:has(input:not(:placeholder-shown))>span{top:7px;font-size:calc(11px);color:#2f5a4d}
.vl-eye{position:absolute!important;right:6px;top:8px;height:36px;width:auto!important;min-height:0!important;padding:0 10px!important;border:0!important;background:none!important;box-shadow:none!important;color:#5f7f6e!important;font:600 calc(12px)/1 Interface,sans-serif!important}
.vl-go{height:50px!important;min-height:50px!important;margin:4px 0 0!important;border-radius:14px!important;font:700 calc(16px)/1 Interface,sans-serif!important}
.vl-foot{margin:10px 0 2px!important;font-size:calc(11.5px)!important;color:#8a8268!important}
.account-screen .account-error{margin:0!important;padding:8px 12px;border-radius:10px;background:#fbeee9;color:#a1432f;font:600 calc(13px)/1.35 Interface,sans-serif}
.account-screen .account-version{position:absolute;top:max(10px,env(safe-area-inset-top));right:12px;margin:0!important;color:#fffdf2;text-shadow:0 1px 3px #0007;font-size:calc(11px)}
.auth-wait{padding:6px 0 14px;text-align:center}.auth-wait h1{font-size:calc(21px)!important;margin:0 0 6px!important}.auth-wait p{font-size:calc(13.5px)!important;line-height:1.45;margin:0 0 12px!important}.auth-wait button{width:100%;min-height:46px;margin-top:8px}
@media(min-height:760px){.account-screen{justify-content:flex-end!important}}
@media(min-width:700px){.account-screen{justify-content:center!important}.account-screen .account-card{border-radius:24px!important}}
/* меню ника: три пункта, остальное прокруткой */
#chat-person-menu{max-height:calc(38px*3 + 58px);overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}#chat-person-menu::-webkit-scrollbar{display:none}#chat-person-menu>button{min-height:38px}
/* значок роли: аккуратный блок слева от имени */
.chat-role{display:inline-flex;align-items:center;height:16px;margin:0 4px 0 0;padding:0 6px;border-radius:5px;font:700 calc(9.5px)/1 Interface,sans-serif;letter-spacing:.2px;vertical-align:1px;background:#e4efe6;color:#2f5a4d;box-shadow:inset 0 0 0 1px #bfd3c2}.chat-role-admin{background:linear-gradient(180deg,#f8e6b8,#eed18b);color:#6c4a10;box-shadow:inset 0 0 0 1px #d6b567}.chat-role-senior{background:#e7e2f6;color:#4f3f9a;box-shadow:inset 0 0 0 1px #c9c0ea}
/* мини-панель правил */
.vg-mini{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:7px 10px;border:1px solid #e3d8bb;border-radius:12px;background:#fbf6e8;font:500 calc(12.5px)/1.3 Interface,sans-serif;color:#5d5a48}.vg-mini span{flex:1;min-width:0}.vg-mini button{flex:none;height:28px;padding:0 10px;border:1px solid #d9caa5;border-radius:8px;background:#fffaf0;color:#2f5a4d;font:600 calc(12px)/1 Interface,sans-serif}.vg-mini .vg-mini-ok{background:#2f5f53;border-color:#2f5f53;color:#fff}
/* 07.11.2026: магазин компактнее, в стиле игры */
.city-modal .modal-header h2{font-size:calc(18px)!important;line-height:1.2!important}
.city-modal .city-wallet{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px!important;border:1px solid #e3d8bb;border-radius:12px;background:#fbf4e3}
.city-modal .city-wallet>button{min-height:32px!important;padding:0 10px!important;font-size:calc(11.5px)!important;width:auto!important}
.city-modal .city-tabs{min-height:0!important;margin:0!important;padding:0!important;background:none!important;border:0!important;border-bottom:1px solid #e3d8bb!important;border-radius:0!important;display:flex!important}
.city-modal .city-tabs button{flex:1;min-height:38px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#8a8268!important;font:700 calc(13px)/1 Interface,sans-serif!important;margin-bottom:-1px}
.city-modal .city-tabs button.active,.city-modal .city-tabs button[aria-selected=true],.city-modal .city-tabs button.is-active{color:#2f5a4d!important;border-bottom-color:#2f5f53!important}
.city-modal .city-scroll{scrollbar-width:none;overscroll-behavior:contain}.city-modal .city-scroll::-webkit-scrollbar{display:none}
.city-privilege-list:has(.is-skin){display:grid!important;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
.city-offer.is-skin{display:flex!important;flex-direction:column;align-items:center;gap:6px;padding:10px!important;min-height:0!important;text-align:center}
.city-offer.is-skin>img{height:118px!important;width:100%!important;object-fit:contain;margin:0!important}
.city-offer.is-skin>div{display:flex;flex-direction:column;gap:5px;width:100%;flex:1}
.city-offer.is-skin strong{font-size:calc(13.5px)!important;line-height:1.2!important}.city-offer.is-skin p{margin:0!important;font-size:calc(10.5px)!important;line-height:1.3!important;flex:1}
.city-offer.is-skin .city-offer-price{justify-content:center;gap:5px;margin:0!important}.city-offer.is-skin .city-offer-price b{font-size:calc(14px)!important}.city-offer.is-skin .city-offer-price small{font-size:calc(10.5px)!important}
.city-offer.is-skin button.primary{min-height:36px!important;width:100%!important;font-size:calc(12px)!important}
.city-offer:not(.is-skin){padding:12px!important}.city-offer button.primary{min-height:42px!important}
.city-product{display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;gap:4px 12px!important;padding:10px 12px!important;align-items:center}
.city-product-art{width:62px!important;height:62px!important;grid-row:span 1}.city-product-art img{width:100%;height:100%;object-fit:contain}
.city-product-copy small{font-size:calc(10.5px)!important}.city-product-copy strong{font-size:calc(14.5px)!important}.city-product-facts{margin-top:2px!important}
.city-product>p{grid-column:1/-1;margin:2px 0 0!important;font-size:calc(12px)!important;line-height:1.35!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.city-product>footer{grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin-top:4px!important;padding-top:6px!important}.city-product>footer button.primary{min-height:36px!important;padding:0 18px!important;width:auto!important;font-size:calc(13px)!important}
/* плавное появление */
@media(prefers-reduced-motion:no-preference){
@keyframes vg-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes vg-fade{from{opacity:0}to{opacity:1}}
.vg-sheet-shade{animation:vg-fade .18s ease-out}.vg-sheet{animation:vg-rise .24s cubic-bezier(.2,.7,.2,1)}
#chat-person-menu{animation:vg-rise .16s ease-out}.vg-mini,.vg-chat-note{animation:vg-rise .2s ease-out}
.account-screen .account-card{animation:vg-rise .34s cubic-bezier(.2,.7,.2,1)}.account-screen .auth-brand{animation:vg-fade .5s ease-out}
.city-offer,.city-product,.vg-row{animation:vg-rise .22s ease-out backwards}.city-scroll>:nth-child(2){animation-delay:.03s}.city-scroll>:nth-child(3){animation-delay:.06s}.city-scroll>:nth-child(4){animation-delay:.09s}
.vl-field{animation:vg-rise .22s ease-out backwards}.vl-field:nth-child(2){animation-delay:.03s}.vl-field:nth-child(3){animation-delay:.06s}}
/* 07.11.2026: панели магазина открываются снизу на весь экран, как чат */
#modal-root .modal.city-modal{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:max(8px,env(safe-area-inset-top))!important;width:min(620px,100%)!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;gap:10px;padding:18px 14px 12px!important;border-radius:22px 22px 0 0!important;border-bottom:0!important;transform:none!important;box-sizing:border-box;background:linear-gradient(180deg,#fdf8ec,#f7efdc)!important;overflow:hidden!important}
#modal-root .modal.city-modal::before{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:3px;background:#d6c8a4}
#modal-root .modal.city-modal .city-expand{display:none!important}
#modal-root .modal.city-modal .modal-header{flex:none;margin:0!important;padding:0!important;min-height:36px}
#modal-root .modal.city-modal .modal-header h2{font-size:calc(19px)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modal-root .modal.city-modal .city-scroll,#modal-root .modal.city-modal .city-products{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;padding:2px 2px 12px!important}
@media(prefers-reduced-motion:no-preference){@keyframes vg-sheet-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}#modal-root .modal.city-modal{animation:vg-sheet-up .28s cubic-bezier(.2,.7,.2,1)!important}}
.city-shop-balance{flex:none;display:flex;align-items:center;justify-content:space-between;padding:8px 12px!important;border:1px solid #e3d8bb;border-radius:12px;background:#fbf4e3}
.city-shop-closed{flex:none;margin:0!important;font-size:calc(11.5px)!important}
/* блоки лавки */
.city-product{border:1px solid #e3d8bb!important;border-radius:16px!important;background:#fffdf6!important;box-shadow:0 1px 3px #6b5a2a14!important;margin-bottom:8px}
.city-product-art{border:1px solid #eadfc4!important;border-radius:14px!important;background:radial-gradient(circle at 50% 40%,#fff,#f5ecd6)!important;padding:4px!important;box-sizing:border-box}
/* облики: большая витрина со свайпом */
.city-privilege-list:has(.is-skin){display:flex!important;grid-template-columns:none!important;flex-direction:row!important;gap:12px;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;padding:4px 9% 10px!important;align-items:stretch}
.city-offer.is-skin{flex:0 0 82%;scroll-snap-align:center;position:relative;padding:14px!important;border:1px solid #dcc98f!important;border-radius:22px!important;background:radial-gradient(120% 70% at 50% 28%,#fffdf3 0,#f6eacb 62%,#ecdcb1 100%)!important;box-shadow:0 8px 22px #6b5a2a26,inset 0 0 0 3px #fff9e8!important}
.city-offer.is-skin>img{flex:1 1 auto;height:auto!important;min-height:0;max-height:52dvh;filter:drop-shadow(0 10px 12px #3a2c1044)}
.city-offer.is-skin>div{flex:none!important;gap:6px}.city-offer.is-skin strong{font-size:calc(19px)!important;color:#2f5a4d}.city-offer.is-skin p{font-size:calc(12px)!important;flex:none}
.city-offer.is-skin .city-offer-price b{font-size:calc(18px)!important}.city-offer.is-skin button.primary{min-height:46px!important;font-size:calc(14px)!important;border-radius:14px!important}
/* покровительство и память */
.city-offer:not(.is-skin){display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;gap:12px!important;border:1px solid #e3d8bb!important;border-radius:18px!important;background:#fffdf6!important;box-shadow:0 2px 6px #6b5a2a14!important;margin-bottom:10px}
.city-offer:not(.is-skin)>img{width:84px!important;height:84px!important;object-fit:contain}
.city-benefits{margin:6px 0!important;padding:0!important;list-style:none!important;display:flex;flex-direction:column;gap:3px;font-size:calc(12.5px)!important}.city-benefits li{padding-left:15px;position:relative}.city-benefits li::before{content:"";position:absolute;left:0;top:.48em;width:7px;height:7px;transform:rotate(45deg);background:#7f9c6e;border-radius:1px}
/* окно обновления */
#update-root{position:fixed;inset:0;z-index:9800;display:flex;align-items:flex-end;justify-content:center;background:#1c241fa6}#update-root[hidden]{display:none}.update-card{width:min(520px,100%);max-height:90dvh;overflow-y:auto;box-sizing:border-box;padding:20px 20px 18px!important;border-radius:22px 22px 0 0!important;background:#fdf8ec!important;display:flex;flex-direction:column;gap:8px;text-align:center}.update-card img{width:68px;height:68px;margin:0 auto;object-fit:contain}.update-card h2{margin:0;font:700 calc(20px)/1.2 Interface,sans-serif;color:#2f5a4d}.update-card p{margin:0;font-size:calc(13.5px);line-height:1.4;color:#5d5a48}.update-card ul{margin:4px 0;padding:0 0 0 18px;text-align:left;font-size:calc(13px);line-height:1.4;color:#3f4a3e}.update-card button{min-height:48px;border-radius:14px}
/* 07.11.2026: обмен: панель снизу на весь экран, две равные половины, кнопки внизу */
#modal-root .modal.trade-exchange-sheet{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:max(8px,env(safe-area-inset-top))!important;width:min(620px,100%)!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;gap:8px;padding:18px 14px 12px!important;border-radius:22px 22px 0 0!important;border-bottom:0!important;transform:none!important;box-sizing:border-box;background:linear-gradient(180deg,#fdf8ec,#f7efdc)!important;overflow:hidden!important}
#modal-root .modal.trade-exchange-sheet::before{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:3px;background:#d6c8a4}
#modal-root .modal.trade-exchange-sheet .modal-header{flex:none;margin:0!important;padding:0!important;min-height:36px}
#modal-root .modal.trade-exchange-sheet .modal-header h2{font-size:calc(19px)!important}
.trade-exchange-sheet .xc-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column;overflow-y:auto;scrollbar-width:none;padding:0!important}.trade-exchange-sheet .xc-body::-webkit-scrollbar{display:none}
.trade-exchange-sheet .xc{flex:1 1 auto;display:flex!important;flex-direction:column;gap:10px;min-height:0}
.trade-exchange-sheet .xc-side{flex:1 1 0;min-height:190px;display:flex!important;flex-direction:column;gap:8px;padding:12px!important;border:1px solid #e3d8bb!important;border-radius:18px!important;background:#fffdf6!important;box-shadow:0 1px 3px #6b5a2a14!important}
.trade-exchange-sheet .xc-fan,.trade-exchange-sheet .xc-empty{flex:1 1 auto;min-height:92px!important;border-radius:14px!important}
.trade-exchange-sheet .xc-empty{display:flex;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 50% 60%,#fbf3dd,#f3e9cd)!important;color:#a39878!important;font-size:calc(13px)!important}
.trade-exchange-sheet .xc-status{flex:none;margin:0!important;font-size:calc(11.5px)!important;line-height:1.35!important;text-align:center;color:#8a8268}
.trade-exchange-sheet .xc-foot{flex:none;display:grid!important;grid-template-columns:1fr 1.4fr;gap:8px;margin:0!important;padding:0!important}
.trade-exchange-sheet .xc-foot button{min-height:48px!important;width:100%!important;border-radius:14px!important;font:700 calc(14px)/1.1 Interface,sans-serif!important;padding:0 8px!important;white-space:nowrap}
@media(prefers-reduced-motion:no-preference){#modal-root .modal.trade-exchange-sheet{animation:vg-sheet-up .28s cubic-bezier(.2,.7,.2,1)!important}}
/* 07.11.2026: меню ника без стрелки при прокрутке */
#chat-person-menu::before,#chat-person-menu::after{display:none!important}
/* свайп сообщения: линия ровно до @ */
#shore-messages .chat-line[data-swipe=mention]::before{left:-36px!important;top:50%!important;width:28px!important;height:24px!important;margin-top:-12px;border-radius:8px;box-shadow:inset 0 0 0 1px #bfd3c2}
#shore-messages .chat-line[data-swipe=delete]::after{right:-72px!important;top:50%!important;margin-top:-11px}
/* панель администратора: снизу на весь экран */
#modal-root .modal:has(.admin-console){position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:max(8px,env(safe-area-inset-top))!important;width:min(720px,100%)!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;gap:8px;padding:18px 14px 10px!important;border-radius:22px 22px 0 0!important;border-bottom:0!important;transform:none!important;box-sizing:border-box;background:linear-gradient(180deg,#fdf8ec,#f7efdc)!important;overflow:hidden!important}
#modal-root .modal:has(.admin-console)::before{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:3px;background:#d6c8a4}
#modal-root .modal:has(.admin-console)>.modal-header{flex:none;margin:0!important;padding:0!important;min-height:36px}#modal-root .modal:has(.admin-console)>.modal-header h2{font-size:calc(19px)!important}
.admin-console{flex:1 1 auto;min-height:0;display:flex!important;flex-direction:column;gap:8px;width:100%!important}
.admin-console-title{flex:none;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}.admin-console-title #admin-overview{display:flex;gap:6px}.admin-console-title #admin-overview>*{flex:1;padding:6px 8px;border:1px solid #e3d8bb;border-radius:12px;background:#fbf4e3;text-align:center;font-size:calc(11px)}
.admin-console .admin-tabs{flex:none;position:static;padding:0!important;gap:0!important;background:none!important;border-bottom:1px solid #e3d8bb}.admin-console .admin-tabs button{min-height:38px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#8a8268!important;font:700 calc(13px)/1 Interface,sans-serif!important;margin-bottom:-1px;padding:0 13px!important}.admin-console .admin-tabs button[aria-pressed=true]{color:#2f5a4d!important;border-bottom-color:#2f5f53!important}
.admin-console-panel{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding-bottom:12px}.admin-console-panel::-webkit-scrollbar{display:none}.admin-console-panel[hidden]{display:none!important}
#admin-players{max-height:none!important}[data-admin-panel=heroes] .admin-section{border:0!important;background:none!important;box-shadow:none!important;padding:0!important}[data-admin-panel=heroes] .admin-section-head{display:none!important}
.vg-back{display:none;width:auto;min-height:34px;margin:0 0 8px;padding:0 12px;border:1px solid #d9caa5;border-radius:10px;background:#fffaf0;color:#2f5a4d;font:700 calc(13px) Interface,sans-serif}
[data-admin-panel=heroes]:not(.has-selection) #shore-admin-player{display:none!important}[data-admin-panel=heroes].has-selection .admin-search,[data-admin-panel=heroes].has-selection .admin-section{display:none!important}[data-admin-panel=heroes].has-selection .vg-back{display:inline-block}
.admin-player{min-height:52px!important;border-radius:14px!important}
.vg-sheet.is-wide{height:calc(100dvh - 8px);max-height:none}.vg-sheet.is-wide .vg-sheet-body{flex:1;min-height:0}
/* обмен: без пустот */
.trade-exchange-sheet .xc-side{flex:1 1 auto;min-height:0;padding:10px!important}.trade-exchange-sheet .xc-body>*{margin:0!important}.trade-exchange-sheet .xc-quick{margin:0!important}
/* 07.11.2026: шапка локации: квадрат с мягкими углами и название слева */
#world .destination-heading{margin:0 0 8px!important}
#world .destination-top{display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important}
#world .destination-thumb{width:58px!important;height:58px!important;flex:none!important;border-radius:14px!important;object-fit:cover;border:1px solid #d9caa5!important;box-shadow:0 1px 4px #6b5a2a26!important}
#world .destination-copy{text-align:left!important;display:block!important;min-width:0}#world .destination-copy h2{font-size:calc(19px)!important;line-height:1.15!important;margin:0 0 2px!important;text-align:left!important}#world .destination-copy p{font-size:calc(11.5px)!important;text-align:left!important;margin:0!important}
#world .location-here .destination-divider{margin:8px 0!important}
/* блоки площади и кузни */
.city-service-grid{padding:0!important;gap:10px!important;align-items:stretch}.city-service-tile{justify-content:flex-start;padding:10px!important;gap:6px!important;border-radius:16px!important;background:#fffdf6!important;box-shadow:0 1px 3px #6b5a2a14!important}.city-service-tile>img{height:88px!important;width:100%!important;border-radius:12px!important}.city-service-tile>strong{font-size:calc(14.5px)!important;text-align:center}.city-service-tile>small{font-size:calc(11px)!important;text-align:center;line-height:1.25}
/* закалка, мастерская, сундук */
.city-choose-item{flex:none;display:flex!important;align-items:center;justify-content:space-between;min-height:44px;padding:0 14px!important;border:1px solid #d9caa5!important;border-radius:14px!important;background:#fffdf6!important;color:#2f5a4d!important;font:700 calc(14px) Interface,sans-serif!important}
.city-modal .city-forge-selected>img{width:92px!important;height:92px!important}.city-modal .city-forge-selected{gap:4px!important}.city-modal .city-forge-chance{display:flex;align-items:baseline;justify-content:center;gap:6px;margin:0!important}.city-forge-ladder{display:grid!important;grid-template-columns:repeat(10,1fr);gap:4px}.city-forge-ladder i{height:24px;display:grid;place-items:center;border-radius:6px;background:#f1e8d0;color:#8a8268;font:700 calc(11px) Interface,sans-serif;font-style:normal}.city-forge-ladder i.done{background:#2f5f53;color:#fff}
.city-modal>button.primary,.city-modal>button.secondary{flex:none;min-height:46px!important;width:100%!important;border-radius:14px!important;margin:0!important}.city-modal .city-costs{flex:none;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0!important}.city-modal .city-hint,.city-modal .city-risk,.city-modal .city-error{flex:none;margin:0!important;text-align:center;font-size:calc(12px)!important;line-height:1.35}
.city-equipment-row,.city-storage-row{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px!important;margin-bottom:8px;border:1px solid #e3d8bb!important;border-radius:14px!important;background:#fffdf6!important}.city-equipment-row>img,.city-storage-row>button:first-child img{width:52px!important;height:52px!important;object-fit:contain}.city-storage-row>button:first-child{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.city-equipment-row strong,.city-storage-row strong{display:block;font-size:calc(13.5px)!important;line-height:1.2}.city-equipment-row small,.city-storage-row small{font-size:calc(11px)!important}.city-equipment-row progress{display:block;width:100%;height:6px;margin-top:5px;border:0;border-radius:4px;overflow:hidden;accent-color:#3f7a66}.city-equipment-row>footer{grid-column:auto;display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin:0!important;padding:0!important;border:0!important}.city-equipment-row footer button,.city-storage-row>button:last-child{min-height:36px!important;width:auto!important;padding:0 14px!important;font-size:calc(12.5px)!important;border-radius:11px!important}.city-storage-row input[type=number]{width:52px;height:36px;border:1px solid #d9caa5;border-radius:10px;text-align:center}
.city-vault-meter{flex:none;display:flex;align-items:center;gap:10px;padding:8px 12px!important;margin:0!important;border:1px solid #e3d8bb;border-radius:14px;background:#fbf4e3}.city-vault-meter>img{width:40px!important;height:40px!important;object-fit:contain}.city-vault-meter strong{display:block;font-size:calc(14px)}.city-vault-meter span{font-size:calc(11.5px);color:#8a8268}
.city-item-picker button{display:flex!important;align-items:center;gap:10px;width:100%;min-height:62px;margin-bottom:8px;padding:6px 12px!important;border:1px solid #e3d8bb!important;border-radius:14px!important;background:#fffdf6!important;text-align:left}.city-item-picker img{width:48px;height:48px;object-fit:contain}
.city-work-scene{perspective:560px;perspective-origin:50% 30%;position:relative;flex:none;height:300px;margin:auto 0 0!important;display:grid;place-items:center;overflow:visible!important}.city-work-item{position:relative;z-index:1;width:150px!important;height:150px!important;object-fit:contain;filter:drop-shadow(0 12px 8px #3a2c1040);left:auto!important;top:auto!important}.city-hammer{z-index:2;width:220px!important;height:220px!important;left:calc(50% - 72px)!important;top:-34px!important;transform-origin:78% 14%;filter:drop-shadow(0 18px 14px #2a1e0a55)}.city-work-status{margin:0 0 auto!important}
.city-result-item{flex:none;margin:auto auto 8px!important}.city-result-title{flex:none;margin:0!important;text-align:center}
#world:not(.in-dungeon) .destination .destination-thumb,#world .destination .destination-top .destination-thumb{border-radius:14px!important}
/* 07.11.2026: городские привилегии */
.city-modal .city-wallet{gap:10px!important;min-height:52px;box-sizing:border-box}.city-modal .city-wallet small,.city-modal .city-wallet span{font-size:calc(11.5px)!important}.city-modal .city-wallet strong,.city-modal .city-wallet b{font-size:calc(18px)!important;color:#2f5a4d}.city-modal .city-wallet>div:last-child:not(:first-child){display:none}.city-modal .city-wallet>button{flex:none;border-radius:10px!important}
.city-privilege-list:has(.is-skin){touch-action:pan-x pan-y;cursor:grab}
.city-offer.is-skin{transform-origin:50% 60%;overflow:hidden}.city-offer.is-skin::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 42%,#fffdf2b0 50%,transparent 58%);transform:translateX(-120%);pointer-events:none}
@media(prefers-reduced-motion:no-preference){@keyframes vg-skin-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes vg-skin-shine{0%,70%{transform:translateX(-120%)}100%{transform:translateX(120%)}}.city-offer.is-skin>img{animation:vg-skin-float 4.5s ease-in-out infinite}.city-offer.is-skin::after{animation:vg-skin-shine 6s ease-in-out infinite}}
.city-offer:not(.is-skin){align-items:start}.city-offer:not(.is-skin)>div{display:flex;flex-direction:column;gap:6px;min-width:0}.city-offer:not(.is-skin) strong{font-size:calc(16px)!important;line-height:1.2;color:#2f5a4d}.city-offer:not(.is-skin) p{margin:0!important;font-size:calc(12px)!important;line-height:1.35}.city-offer .city-offer-price{display:flex;align-items:baseline;gap:6px;margin:2px 0 0!important}.city-offer .city-offer-price b{font-size:calc(16px)!important;color:#2f5a4d}.city-offer .city-offer-price small{display:none}.city-offer:not(.is-skin) button.primary{min-height:40px!important;width:100%!important;border-radius:12px!important;font-size:calc(13px)!important}
.city-offer:has(.city-benefits){grid-template-columns:64px minmax(0,1fr)!important}.city-offer:has(.city-benefits)>img{width:64px!important;height:64px!important}.city-offer-items{display:flex;flex-wrap:wrap;gap:6px}.city-offer-items button{display:flex;align-items:center;gap:4px;min-height:34px;padding:0 8px;border:1px solid #e3d8bb;border-radius:9px;background:#fbf4e3;font-size:calc(11px)}.city-offer-items img{width:22px;height:22px;object-fit:contain}
.city-product>footer .city-price{display:inline-flex;align-items:center;gap:5px;font:700 calc(15px)/1 Interface,sans-serif;color:#7b6431}.city-product>footer .city-price img{width:22px;height:22px;object-fit:contain}.city-shop-balance .city-price{display:inline-flex;align-items:center;gap:5px;font:700 calc(15px)/1 Interface,sans-serif}.city-shop-balance .city-price img{width:22px;height:22px}
.city-product-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.city-product-facts .item-stat-chip{padding:1px 6px!important;font-size:calc(12px)!important}.city-product-facts .item-stat-chip img{width:16px!important;height:16px!important}
#world .destination .destination-thumb{clip-path:none!important;-webkit-mask:none!important;mask:none!important;border-radius:14px!important;overflow:hidden}
.city-modal>button.primary{margin-top:auto!important;font:700 calc(15px)/1 Interface,sans-serif!important;min-height:50px!important}.city-modal .city-empty{margin:auto 0!important;text-align:center}
#world .destination .destination-thumb{transform:scale(1.3);clip-path:inset(11.5% round 11px)!important;border:0!important;box-shadow:none!important;margin:0 4px}
.vg-poll{display:flex;flex-direction:column;gap:6px;margin:6px 0}.vg-poll button,.vg-poll-vote{min-height:38px;width:100%;margin-top:4px;border:1px solid #d9caa5;border-radius:10px;background:#fffaf0;color:#2f5a4d;font:600 calc(13px) Interface,sans-serif;text-align:left;padding:0 12px}.vg-poll-bar{position:relative;display:flex;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:9px;background:#f4ecd8;overflow:hidden;font-size:calc(12.5px);color:#3f4a3e}.vg-poll-bar i{position:absolute;inset:0 auto 0 0;background:#cfe0c8}.vg-poll-bar span,.vg-poll-bar b{position:relative}.vg-book-polls{display:block;width:100%;min-height:36px;margin:6px 0;border:1px solid #d9caa5;border-radius:10px;background:#fffaf0;color:#2f5a4d;font:700 calc(13px) Interface,sans-serif}
/* 07.11.2026: лавка и привилегии, вторая правка */
.location-choice img,.world-choice .choice-art,.world-choice img{border-radius:14px!important}.location-choice>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:calc(14px)!important}.world-choice-caption-text{overflow:hidden;text-overflow:ellipsis}
.city-service-grid{min-height:100%;grid-auto-rows:1fr;box-sizing:border-box;padding:2px 0!important}.city-service-tile{height:100%;box-sizing:border-box}.city-service-tile>img{flex:1 1 auto;height:auto!important;min-height:120px;object-fit:cover;border-radius:12px!important}
.city-modal .city-wallet{display:flex!important;justify-content:space-between!important;padding:8px 12px!important;min-height:0!important}.vg-seals{display:flex;flex-direction:column;gap:1px;min-width:0}.vg-seals small{font-size:calc(11.5px)!important;color:#8a8268;white-space:nowrap}.vg-seals b{font:700 calc(18px)/1.1 Interface,sans-serif;color:#2f5a4d}.city-modal .city-wallet>button{min-height:34px!important;padding:0 14px!important;font-size:calc(12.5px)!important}
.city-scroll.city-privilege-list:not(:has(.is-skin)){display:block!important}
.city-offer:not(.is-skin){display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;min-height:0!important;height:auto!important}.city-offer:not(.is-skin)>img{width:72px!important;height:72px!important;margin:0!important;align-self:start}
.city-offer:not(.is-skin)>div{display:grid!important;grid-template-columns:1fr auto;gap:5px 8px;align-items:center}.city-offer:not(.is-skin)>div>*{grid-column:1/-1;margin:0!important}.city-offer:not(.is-skin) .city-offer-price{grid-column:1!important}.city-offer:not(.is-skin)>div>button.primary{grid-column:2!important;width:auto!important;min-width:112px;min-height:38px!important;padding:0 12px!important;font-size:calc(12.5px)!important}
.city-offer-items:has(button:only-child){display:none!important}
.city-shop-closed{padding-top:4px;text-align:center;color:#a39878}
.city-offer.is-skin,.city-offer.is-skin *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.city-offer.is-skin>img{pointer-events:none;-webkit-user-drag:none}
/* подсказка в цвет игры */
.effect-note,#effect-note,.effect-note-root{background:#fdf8ec!important;border:1px solid #d9caa5!important;color:#3f4a3e!important;box-shadow:0 6px 18px #2a261833!important;background-image:none!important}
/* лавка: карточка в одну понятную сетку */
.city-products{display:flex!important;flex-direction:column;gap:10px}
.city-product{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-areas:"art copy" "text text" "foot foot"!important;gap:6px 12px!important;align-items:center!important;margin:0!important;padding:12px!important;height:auto!important;min-height:0!important}
.city-product-art{grid-area:art!important;width:64px!important;height:64px!important}.city-product-copy{grid-area:copy!important}.city-product>p{grid-area:text!important;grid-column:auto!important;grid-row:auto!important;margin:0!important}
.city-product>footer{grid-area:foot!important;grid-column:auto!important;grid-row:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px;margin:2px 0 0!important;padding:8px 0 0!important;border:0!important;border-top:1px solid #efe6cf!important;height:auto!important}
.city-product>footer button.primary{flex:0 0 auto!important;width:112px!important;min-width:0!important;height:38px!important;min-height:38px!important;max-height:38px!important;padding:0!important;border-radius:11px!important;font:700 calc(13.5px)/1 Interface,sans-serif!important}
.city-product>footer .city-price{flex:none;line-height:1}
#valgard-effect-note{background:#fdf8ec!important;background-image:none!important;border:1px solid #d9caa5!important;color:#3f4a3e!important;box-shadow:0 6px 18px #2a261833!important}#valgard-effect-note h3,#valgard-effect-note p,#valgard-effect-note strong{color:#3f4a3e!important}
.city-products>.city-product{flex:0 0 auto!important;overflow:visible!important}
.city-product>.city-product-art{grid-column:1!important;grid-row:1!important}.city-product>.city-product-copy{grid-column:2!important;grid-row:1!important;border:0!important;padding:0!important;margin:0!important}
.city-product>p{grid-column:1/-1!important;grid-row:2!important;width:auto!important}.city-product>footer{grid-column:1/-1!important;grid-row:3!important;width:auto!important}
.city-modal .vg-seals{gap:2px}.city-modal .city-wallet{align-items:center!important}

/* Text can be selected and copied; a deliberate quick horizontal touch still swipes a message. */
#shore-messages,#shore-messages .chat-line{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#shore-messages .chat-line.is-swiping{-webkit-user-select:none;user-select:none}
#shore-messages input,#shore-messages textarea{-webkit-user-select:text;user-select:text}
#shore-messages .chat-line{transition:transform .2s cubic-bezier(.2,.8,.2,1);will-change:auto}
#shore-messages .chat-line.is-swiping{transition:none;will-change:transform}
#shore-messages .chat-line[data-swipe=mention]::before{left:-38px!important;top:50%!important;width:30px!important;height:24px!important;margin-top:-12px!important;border-radius:8px;background:#e6efe6;color:#2f5a4d;box-shadow:inset 0 0 0 1px #bfd3c2;transition:background .14s ease,color .14s ease}
#shore-messages .chat-line.is-swipe-ready[data-swipe=mention]::before{background:#2f5f53;color:#fff}
#shore-messages .chat-line[data-swipe=delete]::after{content:"Удалить"!important;box-sizing:border-box;right:-84px!important;top:50%!important;width:76px!important;height:24px!important;margin-top:-12px!important;padding:0!important;display:grid;place-items:center;border-radius:8px;background:#fbeee9;color:#a1432f;box-shadow:inset 0 0 0 1px #e8c9bd;font:700 calc(11.5px)/1 Interface,sans-serif!important;white-space:nowrap;transition:background .14s ease,color .14s ease}
#shore-messages .chat-line.is-swipe-ready[data-swipe=delete]::after{background:#a1432f;color:#fff}
#chat-dock .player-identity-badge{cursor:pointer;pointer-events:auto}
/* окна: плавное закрытие, сворачиваемые разделы, подсветка поиска */
.vg-sheet-shade.is-closing{animation:vg-fade-out .2s ease-in forwards}.vg-sheet-shade.is-closing .vg-sheet{animation:vg-drop .2s ease-in forwards}
@keyframes vg-fade-out{to{opacity:0}}@keyframes vg-drop{to{transform:translateY(40px);opacity:.4}}
.vg-doc{display:flex;flex-direction:column;gap:6px}
.vg-fold{border:1px solid #e3d8bb;border-radius:12px;background:#fffdf6;overflow:hidden}
.vg-doc .vg-fold-head{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:0;background:none;color:#2f5a4d;font:700 13.5px/1.3 Interface,sans-serif;text-align:left}
.vg-fold-head i,.vg-caret{flex:none;width:7px;height:7px;border-right:1.8px solid #8a8268;border-bottom:1.8px solid #8a8268;transform:translateY(-2px) rotate(45deg);transition:transform .22s ease}
.vg-fold.is-open .vg-fold-head i,.vg-player.is-open .vg-caret{transform:translateY(1px) rotate(225deg)}
.vg-fold-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .24s cubic-bezier(.2,.7,.2,1)}
.vg-fold-body>div{min-height:0;overflow:hidden}
.vg-fold.is-open .vg-fold-body,.vg-player.is-open .vg-fold-body{grid-template-rows:1fr}
.vg-doc .vg-fold-body p{margin:0;padding:0 12px 11px;font-size:13px;line-height:1.45;color:#3f4a3e}
.vg-hit{padding:0 3px;border-radius:4px;background:#f3e2ad;color:inherit;box-shadow:inset 0 0 0 1px #dcc27c;animation:vg-hit-in .22s ease-out}
@keyframes vg-hit-in{from{background:#fff7dc}}
.vg-mini{overflow:hidden}
/* панели модератора и администратора */
.vg-tabs,.admin-console .admin-tabs{position:relative;scroll-behavior:smooth}
.vg-tabs{border-bottom:1px solid #e3d8bb}
.vg-tabs button{border-bottom:0!important;transition:color .16s ease}
.vg-tab-ind{position:absolute;left:0;bottom:0;display:block;height:3px;width:0;border-radius:3px 3px 0 0;background:#2f5f53;transition:transform .24s cubic-bezier(.2,.8,.2,1),width .24s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.admin-console .admin-tabs button[aria-pressed=true]{border-bottom-color:transparent!important}
.vg-sheet.is-wide .vg-sheet-body{gap:8px;padding:8px 12px 14px}
.vg-filters{flex-wrap:nowrap;gap:6px}.vg-filters .vg-search{flex:1 1 0;min-width:0;min-height:36px}.vg-filters select{flex:0 1 112px;min-width:0;max-width:112px;text-overflow:ellipsis}
.vg-toggle{flex:none;cursor:pointer}.vg-toggle input{position:absolute;opacity:0;width:0;height:0}.vg-toggle span{display:grid;place-items:center;height:36px;padding:0 10px;border:1px solid #d9caa5;border-radius:10px;background:#fffaf0;color:#2f5a4d;font:600 12.5px Interface,sans-serif;white-space:nowrap;transition:background .16s ease,color .16s ease}.vg-toggle input:checked+span{background:#2f5f53;border-color:#2f5f53;color:#fff}
[data-host]>.vg-rows,.vg-rows[data-list]{gap:5px}
.vg-player{display:block;padding:0;border:1px solid #e3d8bb;border-radius:12px;background:#fffdf6;overflow:hidden;animation:none}
.vg-player-head{width:100%;min-height:44px;display:flex;align-items:center;gap:9px;padding:6px 11px;border:0;background:none;text-align:left;color:inherit}
.vg-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#cfc8b2}.vg-dot.is-on{background:#4d9a70}
.vg-player-copy{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:1px}
.vg-player-copy strong{font:700 13.5px/1.25 Interface,sans-serif;color:#2f5a4d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg-player-copy small{font:400 11.5px/1.25 Interface,sans-serif;color:#8a8268;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg-player .vg-tags{flex:none;margin:0;flex-wrap:nowrap}.vg-tags em.fight{background:#f6ebd0;color:#8c6a2a}
.vg-battle-line{margin:0;padding:0 11px 6px;font-size:12px;color:#6e6650}
.vg-player .vg-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:2px 11px 10px}
.vg-player .vg-actions button,.vg-player .vg-actions select{width:100%;min-height:34px;padding:0 8px;font:600 12.5px Interface,sans-serif;border-radius:9px}
.vg-player .vg-actions button.is-main{grid-column:1/-1;background:#2f5f53;border-color:#2f5f53;color:#fff}
.vg-player .vg-actions button.is-bad{color:#a1432f;border-color:#e8c9bd;background:#fbf1ec}
.vg-log{padding:7px 11px;animation:none}.vg-log p{margin:2px 0}.vg-log-battle{border-left:3px solid #2f5f53}.vg-log-ban,.vg-log-jail{border-left:3px solid #a1432f}
.vg-end-battle{display:block;margin-top:6px;min-height:32px;padding:0 14px;border:1px solid #2f5f53;border-radius:9px;background:#2f5f53;color:#fff;font:600 12.5px Interface,sans-serif}
/* выбор вещи для ячейки: панель снизу */
#modal-root .modal.slot-sheet{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:min(560px,100%)!important;max-width:none!important;height:auto!important;max-height:82dvh!important;margin:0 auto!important;padding:18px 14px 0!important;border-width:1px 1px 0!important;border-radius:18px 18px 0 0!important;display:flex!important;flex-direction:column;overflow:hidden!important;transform:none;animation:vg-rise .24s cubic-bezier(.2,.7,.2,1) both}
#modal-root .modal.slot-sheet::before{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:3px;background:#d6c8a4}
#modal-root .modal.slot-sheet>.modal-header{flex:none;margin:0!important;padding:0!important;min-height:36px}
#modal-root .modal.slot-sheet>.modal-header h2{font-size:calc(19px)!important;line-height:1.2!important;margin:0!important}
#modal-root .modal.slot-sheet>.modal-copy{flex:none;margin:0 0 9px!important;font-size:12.5px;line-height:1.3;color:#8c927a}
#modal-root .modal.slot-sheet>.slot-choice{flex:1 1 auto;min-height:0;overflow-y:auto;margin:0!important;padding:2px 1px 16px!important;overscroll-behavior:contain}
#modal-root .modal.slot-sheet>.empty-state{margin:0 0 16px!important}
/* полоса прокрутки нигде не видна, крестики одинаковые */
#modal-root .modal,#modal-root .modal *,.vg-sheet,.vg-sheet *{scrollbar-width:none}
#modal-root .modal::-webkit-scrollbar,#modal-root .modal *::-webkit-scrollbar,.vg-sheet *::-webkit-scrollbar{display:none}
#modal-root .modal>.modal-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px}
#modal-root .modal>.modal-header>h2{flex:1 1 auto;min-width:0}
#modal-root .modal>.modal-header>button.icon-button[data-close],.vg-close{flex:none;box-sizing:border-box;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center;border:1px solid #d9caa5!important;border-radius:10px!important;background:#fffaf0!important;box-shadow:none!important;color:#5d6b58!important;font:400 calc(18px)/1 Interface,sans-serif}
#modal-root .modal>.modal-header>button.icon-button[data-close]>.icon{width:15px;height:15px;font-size:15px;line-height:15px}
#modal-root .chat-modal .chat-sheet-close>button.icon-button{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px;display:grid!important;place-items:center;padding:0!important;border:1px solid #d9caa5!important;border-radius:9px!important;background:#fffaf0!important;color:#5d6b58}
/* фильтры рюкзака поверх карточек: открываются без пересчёта списка */
#bag .bag-tools{position:relative}
#bag .bag-filter-fold .filter-tabs{position:absolute!important;left:0;right:0;top:100%;z-index:30;margin:6px 0 0!important;background:#fffaf0!important;box-shadow:0 10px 24px #2a261838;will-change:transform,opacity;contain:layout paint}

/* обмен: высота окна не прыгает, карточки крупнее, готовность светится */
.trade-exchange-sheet .xc{display:flex;flex-direction:column;gap:8px;min-height:100%}
.trade-exchange-sheet .xc-side{flex:none!important;min-height:0!important;gap:6px!important;padding:10px 12px!important}
.trade-exchange-sheet .xc-side header{min-height:22px}
.trade-exchange-sheet .xc-side h4{font:700 14.5px/1.2 Interface,sans-serif!important;color:#2f5a4d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-exchange-sheet .xc-ok{flex:none;font:600 12px/1 Interface,sans-serif!important}
.trade-exchange-sheet .xc-side.is-mine .xc-fan,.trade-exchange-sheet .xc-side.is-theirs .xc-fan{height:128px!important;margin:0!important;overflow:visible}
.trade-exchange-sheet .xc-fan .lot-fan-card{width:72px!important;height:100px!important;top:50%!important;animation:none!important;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * min(58px,20vw))) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 4deg))!important;transition:transform .2s ease-out}
.trade-exchange-sheet .xc-fan .lot-star{display:none}
.trade-exchange-sheet .xc-empty{display:grid;place-items:center;height:100%;margin:0;font-size:12.5px;color:#8a8268;text-align:center}
.trade-exchange-sheet .xc-side.is-ok{border-color:#5f9a78!important;animation:xc-ready 2.6s ease-in-out infinite}
@keyframes xc-ready{0%,100%{box-shadow:0 0 0 1px #5f9a7855,0 0 6px #5f9a7833}50%{box-shadow:0 0 0 1.5px #5f9a78,0 0 16px #5f9a7880}}
.trade-exchange-sheet .xc-status{flex:none;min-height:2.7em;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.3}
.trade-exchange-sheet .xc-foot{flex:none;margin-top:auto;position:sticky;bottom:0;z-index:6;padding:6px 0 2px;background:#fbf6ea}
.xc-card-x{right:-7px!important;top:-7px!important;width:22px!important;height:22px!important;display:grid!important;place-items:center}.xc-card-x i{margin:0!important}
/* привилегии */
.city-offer{animation:none!important}
.city-privilege-list{animation:vg-fade .18s ease-out}
.city-offer.is-skin::after{content:none!important;animation:none!important}
.city-privilege-list:has(.is-skin),.city-privilege-list:has(.is-mem){display:flex!important;flex-direction:row!important;grid-template-columns:none!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:none!important;touch-action:pan-x pan-y;overscroll-behavior-x:contain;align-items:stretch}
.city-offer.is-skin,.city-offer.is-mem{scroll-snap-align:none!important;flex:0 0 78%!important}
.city-offer.is-mem{display:flex!important;flex-direction:column!important;gap:8px!important;padding:12px!important;text-align:center;-webkit-user-select:none;user-select:none}
.city-mem-art{display:grid;place-items:center;width:100%;min-height:120px;padding:6px;border:1px solid #e3d8bb;border-radius:14px;background:radial-gradient(120% 90% at 50% 25%,#fffdf3,#f3e8c8)}
.city-mem-art img{width:96px!important;height:96px!important;object-fit:contain;pointer-events:none}
.city-offer.is-mem>div{display:flex!important;flex-direction:column;gap:6px;flex:1 1 auto;min-width:0}
.city-offer.is-mem p{flex:1 1 auto}
.city-offer .city-offer-foot{grid-column:1/-1!important;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 0!important;padding-top:8px;border-top:1px solid #efe6cf;width:100%}
.city-offer .city-offer-foot .city-offer-price{grid-column:auto!important;display:flex;align-items:baseline;flex-wrap:nowrap;gap:4px;margin:0!important;padding:0!important;min-width:0}
.city-offer .city-offer-foot .city-offer-price b{font:700 calc(18px)/1 Interface,sans-serif!important;color:#2f5a4d}
.city-offer .city-offer-foot .city-offer-price small{display:inline!important;font:500 calc(11.5px)/1 Interface,sans-serif!important;color:#8a8268}
.city-offer .city-offer-foot .city-offer-price s{font:400 calc(11px)/1 Interface,sans-serif!important;color:#ad9c7c}
.city-offer .city-offer-foot button.primary{flex:0 0 auto!important;grid-column:auto!important;width:96px!important;min-width:0!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border-radius:11px!important;font:700 calc(13px)/1 Interface,sans-serif!important}
.city-offer.is-skin .city-offer-price{justify-content:flex-start!important}
/* мелочи окна */
.vg-check{display:flex;align-items:center;gap:8px;font-size:13px;color:#3f4a3e}
.valgard-effect-note:not(.hero-note)::after{background:#fdf8ec!important;border-color:#d9caa5!important}
.account-screen,.account-card{scrollbar-width:none}.account-screen::-webkit-scrollbar,.account-card::-webkit-scrollbar{display:none}
.account-screen{scrollbar-gutter:auto}

.city-scroll.city-privilege-list:has(.is-mem){display:flex!important}
.city-modal .city-wallet{flex:none!important}
.city-privilege-list:has(.is-mem)>.city-offer.is-mem,.city-privilege-list:has(.is-skin)>.city-offer.is-skin{margin:0!important}

/* низкие и узкие экраны: рисунки сжимаются вместе с панелью, текст не наезжает */
.location-preview{container-type:size;overflow:hidden;gap:2px!important}
#location-preview .location-eye{flex:none!important;width:auto!important;aspect-ratio:92/76;height:clamp(28px,calc(100cqh - 30px),76px)!important;min-height:0!important;max-height:none!important}
.location-preview>strong{flex:none;line-height:1.2!important}
.location-preview>small{flex:none}
@container (max-height:118px){.location-preview>small{display:none}}
@container (min-height:119px){#location-preview .location-eye{height:clamp(28px,calc(100cqh - 50px),76px)!important}}
.location-scene{top:0!important}
@media (max-height:620px){
 #world{--card:calc(90px + 24dvh)!important}
 #destination.destination.location-here{grid-template-rows:10px 44px 4px minmax(0,1fr)!important;gap:4px!important;padding:7px 12px 8px!important}
 .destination-top{align-items:center;min-height:0}
 #destination .destination-thumb{width:44px!important;height:44px!important;flex:none;margin:0!important;top:auto!important}
 #destination #destination-title{font-size:calc(16.5px)!important;line-height:1.15!important;margin:0!important}
 #destination #destination-description{font-size:calc(11px)!important;line-height:1.25!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:2px 0 0!important}
 #destination .destination-heading .eyebrow{font-size:calc(9px)!important;line-height:10px!important}
 #destination .destination-divider{display:none!important}
 #destination .location-choice{min-height:0!important;padding:4px 5px!important;gap:2px!important}
 #destination .location-choices{gap:8px!important}
 .world-map-medallion{transform:translateY(-9px) scale(.84)!important}
 #destination.destination:not(.location-here){padding:7px 12px 8px!important;gap:4px!important}
}
@media (max-height:520px){
 #destination.destination.location-here{grid-template-rows:0 42px 0 minmax(0,1fr)!important}
 #destination .destination-heading{display:none!important}
 #destination .destination-thumb{width:40px!important;height:40px!important}
 #destination #destination-description{-webkit-line-clamp:1}
 .world-map-medallion{transform:translateY(-9px) scale(.74)!important}
}
@media (max-width:340px){
 #destination #destination-title{font-size:calc(15.5px)!important}
 .bottom-nav button small,.bottom-nav button span{letter-spacing:-.01em}
}

@media (max-height:620px){
 #destination.location-here>.destination-heading{grid-row:1}#destination.location-here>.destination-top{grid-row:2}#destination.location-here>#secondary-actions{grid-row:4;min-height:0;height:100%;margin:0!important;padding:0!important}
 #destination #destination-thumb{width:44px!important;height:44px!important;min-width:44px;left:auto!important;top:auto!important;margin:0!important;position:static!important}
 #destination .destination-top{display:flex!important;gap:9px;padding:0!important}
 #destination .destination-copy{padding:0!important;margin:0!important;min-width:0}
 #destination #location-board{height:100%!important;min-height:0}
 #destination .location-board-page{top:0!important;inset:0!important}
}
@media (max-height:520px){#destination #destination-thumb{width:40px!important;height:40px!important;min-width:40px}}

/* рисунок метки на карте всегда внутри своего круга */
.world-map-medallion{overflow:hidden!important;border-radius:50%!important;display:grid!important;place-items:center;box-sizing:border-box}
.world-map-medallion>img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;object-position:center;border-radius:50%;clip-path:circle(50%);transform:none!important;margin:0!important}

.city-privilege-list:has(.is-mem){align-items:flex-start!important}
.city-offer.is-mem{height:auto!important;align-self:flex-start}
.city-offer.is-mem .city-mem-art{min-height:210px}.city-offer.is-mem .city-mem-art img{width:150px!important;height:150px!important}
.city-offer.is-mem strong{font-size:calc(18px)!important}.city-offer.is-mem p{font-size:calc(13px)!important;line-height:1.4!important;min-height:2.8em}
@media (max-height:620px){.city-offer.is-mem .city-mem-art{min-height:110px}.city-offer.is-mem .city-mem-art img{width:88px!important;height:88px!important}
 #destination #destination-thumb{transform:none!important;object-fit:cover;border-radius:50%;box-sizing:border-box}}

.trade-exchange-sheet .xc{flex:1 0 auto!important;min-height:0!important}
.trade-exchange-sheet .xc-side{flex:1 0 auto!important}
.trade-exchange-sheet .xc-side .xc-fan{flex:1 1 auto;min-height:128px;height:auto!important}
.trade-exchange-sheet .xc-foot{background:none;position:static;padding:2px 0 8px}

.xc-card-x{right:auto!important;left:-7px!important}
#modal-root .modal-shade:has(.character-modal){display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important}
#modal-root .modal.character-modal{position:relative!important;inset:auto!important;width:min(440px,100%)!important;max-width:none!important;height:auto!important;max-height:calc(100dvh - 32px)!important;margin:0!important;overflow-y:auto!important;border-radius:18px!important;padding:14px!important;box-shadow:0 14px 40px #1c241f55}

/* уведомления: вместо квадрата тонкая линия, за которую тянут */
#app #toast.top-notice>button.notice-dismiss{top:auto!important;bottom:0!important;left:50%!important;transform:translateX(-50%)!important;width:64px!important;min-width:0!important;height:12px!important;min-height:12px!important;max-height:12px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;outline:0;overflow:visible;touch-action:none}
#app #toast.top-notice>button.notice-dismiss::before,#app #toast.top-notice>button.notice-dismiss::after{content:none!important}
#app #toast.top-notice>button.notice-dismiss>.notice-handle{display:block!important;width:32px!important;height:3px!important;border:0!important;border-radius:3px!important;background:#cdbf9a!important;box-shadow:none!important}
/* рисунок места на низких экранах целиком внутри панели */
@media (max-height:620px){
 #world #destination #destination-thumb{width:44px!important;height:44px!important;flex:0 0 44px!important;min-width:44px;margin:0!important;transform:none!important;clip-path:circle(50%)!important;border-radius:50%!important;border:0!important;box-shadow:none!important;object-fit:cover!important}
 #world #destination .destination-top{height:44px!important;min-height:44px;overflow:hidden;align-items:center!important}
}
@media (max-height:520px){
 #world #destination #destination-thumb{width:38px!important;height:38px!important;flex:0 0 38px!important;min-width:38px}
 #world #destination .destination-top{height:40px!important;min-height:40px}
}

/* карточка в обмене выглядит как в рюкзаке */
.mini-real{position:absolute;left:0;top:0;display:block;width:150px;height:208px;transform-origin:0 0;pointer-events:none}
.mini-real .relic-card{width:150px!important;height:208px!important;min-height:0!important;margin:0!important}
.lot-fan-card:has(.mini-real){overflow:visible}
.trade-exchange-sheet .xc-fan .lot-fan-card:has(.mini-real){width:92px!important;height:128px!important}
.trade-exchange-sheet .xc-side .xc-fan{min-height:140px}

/* линия вместо квадрата и в уведомлениях с кнопками */
#app #toast#toast.top-notice.notice-invitation>button.notice-dismiss.notice-dismiss{position:absolute!important;top:auto!important;bottom:0!important;left:50%!important;transform:translateX(-50%)!important;width:64px!important;min-width:0!important;height:12px!important;min-height:12px!important;max-height:12px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
/* карточка в обмене: вид из рюкзака, уменьшенный целиком */
.mini-real.slot-choice{margin:0!important;padding:0!important;width:172px;height:212px;overflow:visible;display:block}
.mini-real .relic-card{width:172px!important;height:212px!important}
.trade-exchange-sheet .xc-fan .lot-fan-card:has(.mini-real){width:92px!important;height:114px!important}
.lot-fan-card:has(.mini-real){background:none!important;box-shadow:none!important;border:0!important}
.xc-sheet-grid.is-bag.slot-choice{margin:0!important}
.xc-pick-card .relic-card{height:100%}

.mini-real .relic-card{border-radius:14px;box-shadow:0 4px 10px #3a2c1038;overflow:hidden}
.mini-real .relic-turn,.mini-real .relic-face{width:100%!important;height:100%!important}

.trade-exchange-sheet .xc-side .xc-fan{min-height:156px}
.trade-exchange-sheet .xc-fan .lot-fan-card:has(.mini-real){width:112px!important;height:138px!important;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * min(118px,calc((100vw - 170px) / max(var(--n) - 1,1))))) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 3deg))!important}

/* 08.11.2026: подсказка обучения постоянного размера и кольцо вокруг нужной кнопки */
#vg-coach{position:fixed;left:50%;z-index:9800;box-sizing:border-box;width:min(calc(100vw - 16px),420px);height:calc(148px);margin-left:calc(min(calc(100vw - 16px),420px) / -2);padding:9px 13px 10px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:3px;border:1px solid #d9caa5;border-radius:14px;background:#fdf8ec;box-shadow:0 6px 20px #2a261840;color:#3f4a3e;font-family:Interface,sans-serif;contain:layout paint;transition:opacity .14s ease}
#vg-coach.is-bottom{top:auto;bottom:var(--coach-bottom,96px)}
#vg-coach.is-top{bottom:auto;top:calc(8px + env(safe-area-inset-top))}
#vg-coach header{display:flex;align-items:baseline;flex-direction:row-reverse;justify-content:space-between;gap:8px;min-width:0}
#vg-coach small{flex:none;font:500 calc(10.5px)/1.2 Interface,sans-serif;color:#8a8268}
#vg-coach strong{min-width:0;font:700 calc(14.5px)/1.25 Interface,sans-serif;color:#2f5a4d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#vg-coach p{margin:0;min-height:0;overflow-y:auto;scrollbar-width:none;font:400 calc(13px)/1.36 Interface,sans-serif;color:#3f4a3e}
#vg-coach p::-webkit-scrollbar{display:none}
#vg-coach footer{display:flex;justify-content:flex-end;height:calc(32px)}
#vg-coach footer button{visibility:hidden;min-width:calc(112px);height:calc(32px);min-height:0;margin:0;padding:0 14px;border:1px solid #2f5f53;border-radius:10px;background:#2f5f53;color:#fff;box-shadow:none;font:700 calc(13px)/1 Interface,sans-serif}
#vg-coach.has-action footer button{visibility:visible}
#vg-coach footer button:disabled{opacity:.6}
#vg-coach.is-battle{top:calc(50px + env(safe-area-inset-top));bottom:auto;height:calc(62px);padding:6px 12px;grid-template-rows:auto minmax(0,1fr);box-shadow:0 3px 12px #2a261830}
#vg-coach.is-battle footer{display:none}
#vg-coach.is-battle strong{font-size:calc(12.5px)}
#vg-coach.is-battle p{font-size:calc(13px);font-weight:600;line-height:1.25}
#vg-coach-ring{position:fixed;left:0;top:0;z-index:9790;display:block;box-sizing:border-box;border:2.5px solid #d99a2b;border-radius:12px;box-shadow:0 0 10px #d99a2b80;pointer-events:none;opacity:0;will-change:transform,opacity;transition:transform .16s ease-out,opacity .14s ease}
#vg-coach-ring.is-on{opacity:1;animation:vg-coach-pulse 1.5s ease-in-out infinite}
@keyframes vg-coach-pulse{0%,100%{opacity:1}50%{opacity:.55}}
@media (max-height:560px){#vg-coach{height:calc(126px);padding:6px 11px 7px}#vg-coach p{font-size:calc(12px);line-height:1.3}#vg-coach footer,#vg-coach footer button{height:calc(28px)}}

/* все кнопки закрытия: один размер, один вид, по центру строки заголовка */
#modal-root .modal>.modal-header{position:relative;align-items:center!important;min-height:36px}
#modal-root .modal>.modal-header>h2{margin:0!important;line-height:1.2!important;display:block}
#modal-root .modal>.modal-header>button.icon-button[data-close],.vg-close,.friends-panel .friends-close,#nearby-battles>header button[data-nearby-close]{position:static;flex:none;box-sizing:border-box;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center;align-self:center;transform:none!important;border:1px solid #d9caa5!important;border-radius:10px!important;background:#fffaf0!important;box-shadow:none!important;color:#5d6b58!important;font:400 calc(18px)/1 Interface,sans-serif;text-align:center}
#nearby-battles>header button[data-nearby-close]{position:absolute;right:0;top:0}
#modal-root .modal>.modal-header>button.icon-button[data-close]>.icon,#modal-root .modal>.modal-header>button.icon-button[data-close] svg,#modal-root .modal>.modal-header>button.icon-button[data-close] img{display:block;width:15px;height:15px;margin:0;line-height:15px;font-size:15px}
#modal-root .modal.city-modal>.modal-header{padding-right:0!important;display:flex!important}
/* лавка Лары: цена, числа и кнопка на одной линии */
.city-price{display:inline-flex!important;align-items:center!important;gap:5px;line-height:1!important;vertical-align:middle}
.city-price img{display:block!important;flex:none;width:calc(22px)!important;height:calc(22px)!important;margin:0!important;object-fit:contain}
.city-product>footer{align-items:center!important}
.city-product>footer .city-price{height:36px;font:700 calc(16px)/1 Interface,sans-serif}
.city-product-copy{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
.city-product-copy small,.city-product-copy strong{margin:0!important;line-height:1.2!important}
.city-product-facts{display:flex!important;align-items:center;gap:6px;margin:1px 0 0!important;min-height:22px}
.city-product-facts .item-stat-chip{display:inline-flex!important;align-items:center!important;gap:5px;height:22px;min-height:0!important;padding:0!important;line-height:1!important;background:none!important;border:0!important}
.city-product-facts .item-stat-chip img{display:block;width:calc(16px)!important;height:calc(16px)!important;margin:0!important;object-fit:contain}
.city-product-facts .item-stat-chip b{display:block;line-height:1!important}
.city-shop-balance{display:flex!important;align-items:center!important;justify-content:space-between}
/* итог заточки и гнезда */
.city-result-shade{position:fixed;inset:0;z-index:9700;display:flex;align-items:center;justify-content:center;padding:20px;background:#1c241f59;animation:vg-fade .16s ease-out}
.city-result-block{box-sizing:border-box;width:min(300px,100%);padding:16px 18px;display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #d9caa5;border-radius:18px;background:#fdf8ec;box-shadow:0 12px 34px #1c241f55;text-align:center;animation:city-result-in .2s cubic-bezier(.2,.8,.2,1)}
@keyframes city-result-in{from{opacity:0;transform:translateY(8px) scale(.97)}}
.city-result-block img{width:84px;height:84px;object-fit:contain}
.city-result-block strong{font:700 calc(18px)/1.2 Interface,sans-serif;color:#2f5a4d}
.city-result-block.is-bad strong{color:#a1432f}.city-result-block.is-bad img{filter:grayscale(.75) brightness(.92)}
.city-result-block.is-ok{border-color:#a9c4a6}
.city-result-block p{margin:0;font-size:13px;line-height:1.35;color:#5c6657}
.city-result-block button{width:100%;min-height:38px;margin-top:4px;border-radius:11px}
.city-result-shade.is-leaving{opacity:0;transition:opacity .16s ease-in}

/* подсказка: заметнее, высота по тексту, затемнение вокруг цели, кольцо не скачет */
#vg-coach{height:auto;max-height:calc(190px);grid-template-rows:auto auto auto;padding:10px 14px 11px;border:1.5px solid #c9a24c;border-radius:15px;box-shadow:0 8px 26px #1c241f66;gap:4px}
#vg-coach strong{font-size:calc(15.5px)}
#vg-coach p{font-size:calc(13.5px)}
#vg-coach footer{display:none}
#vg-coach.has-action footer{display:flex;margin-top:3px}
#vg-coach footer button:disabled{opacity:1}
#vg-coach.is-battle{height:calc(62px);max-height:none;grid-template-rows:auto minmax(0,1fr);padding:6px 12px;gap:2px}
#vg-coach.is-battle footer{display:none}
#vg-coach-ring{transition:opacity .14s ease;border:3px solid #e0a02f;box-shadow:0 0 14px #e0a02fa6}
#vg-coach-dim{position:fixed;inset:0;z-index:9785;pointer-events:none}
#vg-coach-dim.is-off{display:none}
#vg-coach-dim>i{position:absolute;display:block;background:#1c241f66}
@media (max-height:560px){#vg-coach{height:auto;max-height:calc(150px);padding:7px 11px 8px}#vg-coach p{font-size:calc(12.5px)}}
#vg-coach.is-battle{height:calc(68px)}

#vg-coach-ring{transition:opacity .18s ease-out}
#vg-coach-ring:not(.is-on){animation:none;opacity:0}
.city-result-block img[src*="portrait"]{border-radius:14px;object-fit:cover}

/* портрет противника в нижней панели целиком, без обрезанной головы */
.card-field #battle-root #combat-profile>img.enemy-portrait{object-fit:contain!important;object-position:center!important;background:#fff9e9;border:1px solid #d8caaa;border-radius:9px;padding:1px;box-sizing:border-box}
/* скрытая финальная ступень мастерства */
.mastery-node.is-sealed{cursor:default;opacity:1}
.mastery-node.is-sealed .mastery-seal{display:grid;place-items:center}
.mastery-question{display:grid;place-items:center;width:100%;height:100%;font:700 calc(26px)/1 Interface,sans-serif;font-style:normal;color:#a58f5c}
.mastery-node.is-sealed strong{color:#9a8f73}

/* жесты на телефоне: заголовок панели тянется, горизонтальный свайп вкладок не уходит в прокрутку */
#modal-root .modal.city-modal>.modal-header,#modal-root .modal.trade-exchange-sheet>.modal-header,#modal-root .modal.slot-sheet>.modal-header,#modal-root .modal:has(.admin-console)>.modal-header,.vg-sheet>header,.city-wardrobe-modal>.modal-header{touch-action:none}
.vg-sheet-body,.admin-console-panel,.city-scroll,.city-products,.city-storage-list,.city-work-list,.city-item-picker,.xc-body,.slot-choice{touch-action:pan-y}
#hero [data-fold-panel],#hero .attribute-description{contain:layout paint}

/* список монстров листается пальцем поверх карточек */
.world-opponents .opponent-card,.world-opponents .opponent-card.relic-card,.world-opponents .opponent-card *{touch-action:pan-x pan-y!important}
/* горизонтальный свайп вкладок привилегий и лавки */
#modal-root .modal.city-modal{touch-action:pan-y}

/* крестик рисуется двумя линиями точно по центру кнопки */
#modal-root .modal>.modal-header>button.icon-button[data-close],#modal-root .chat-modal .chat-sheet-close>button.icon-button,.vg-close,.friends-panel .friends-close,#nearby-battles>header button[data-nearby-close],.xc-waiting .vg-close{position:relative;font-size:0!important;color:transparent!important;overflow:hidden}
#modal-root .modal>.modal-header>button.icon-button[data-close]>*,#modal-root .chat-modal .chat-sheet-close>button.icon-button>*{display:none!important}
#modal-root .modal>.modal-header>button.icon-button[data-close]::before,#modal-root .modal>.modal-header>button.icon-button[data-close]::after,#modal-root .chat-modal .chat-sheet-close>button.icon-button::before,#modal-root .chat-modal .chat-sheet-close>button.icon-button::after,.vg-close::before,.vg-close::after,.friends-panel .friends-close::before,.friends-panel .friends-close::after,#nearby-battles>header button[data-nearby-close]::before,#nearby-battles>header button[data-nearby-close]::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:1.8px;margin:-.9px 0 0 -7px;border-radius:1px;background:#5d6b58;transform:rotate(45deg)}
#modal-root .modal>.modal-header>button.icon-button[data-close]::after,#modal-root .chat-modal .chat-sheet-close>button.icon-button::after,.vg-close::after,.friends-panel .friends-close::after,#nearby-battles>header button[data-nearby-close]::after{transform:rotate(-45deg)}
#modal-root .chat-modal .chat-sheet-close{display:flex;align-items:center;justify-content:center}

/* поле имени появляется мягко при переходе на регистрацию */
.vl-form .vl-field:has(#shore-name){animation:vg-fade .2s ease-out}
.vl-tabs button{transition:color .16s ease,border-color .16s ease}

/* карточка входа постоянной высоты: подпись снизу, кнопка и поля сверху */
#auth-root .account-card:has(#shore-auth){display:flex;flex-direction:column}
#auth-root .account-card>.vl-foot{margin-top:auto}

/* панели города: крестик в строке заголовка, а не поверх следующего блока */
#modal-root .modal.city-modal>.modal-header{display:flex!important;align-items:center;padding:0!important}
#modal-root .modal.city-modal>.modal-header>[data-close]{position:static!important;top:auto!important;right:auto!important;margin:0 0 0 auto!important}
/* витрина обликов и памяти: родная прокрутка пальцем */
#modal-root .modal.city-modal .city-privilege-list:has(.is-mem),#modal-root .modal.city-modal .city-privilege-list:has(.is-skin){touch-action:pan-x pan-y!important;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scrollbar-width:none}
#modal-root .modal.city-modal .city-privilege-list::-webkit-scrollbar{display:none}
#modal-root .modal.city-modal .city-offer.is-mem,#modal-root .modal.city-modal .city-offer.is-skin{scroll-snap-align:center;scroll-snap-stop:always}
#modal-root .modal.city-modal .city-privilege-list.is-dragging{scroll-snap-type:none}

/* 08.11.2026: крестик панелей города рисуется линиями внутри самой кнопки */
#modal-root .modal.city-modal>.modal-header>[data-close]{position:relative!important}
/* мастерская: строки не сжимаются, кнопка гнёзд в своей строке */
#modal-root .modal.city-modal .city-work-list>*,#modal-root .modal.city-modal .city-products>*,#modal-root .modal.city-modal .city-storage-list>*{flex-shrink:0!important}
#modal-root .modal.city-modal .city-equipment-row>footer{grid-column:1/-1!important;border-top:1px solid #e3dac3;padding-top:8px;margin-top:2px}
#modal-root .modal.city-modal .city-equipment-row>footer>button{width:100%}

/* подсказка ников над полем ввода */
.vg-mention-list{position:absolute;left:0;right:0;bottom:100%;margin-bottom:6px;display:flex;flex-direction:column;max-height:216px;overflow-y:auto;background:#fffdf6;border:1px solid #d9caa5;border-radius:12px;box-shadow:0 -6px 18px #2d3f3426;padding:4px;z-index:5;scrollbar-width:none;animation:vg-rise .14s ease-out}
.vg-mention-list button{display:block;width:100%;text-align:left;border:0;background:none;border-radius:8px;padding:9px 10px;font:500 calc(14px)/1.2 Interface,sans-serif;color:#3f5d52;min-height:38px}
.vg-mention-list button b{color:#2f6b55}
.vg-mention-list button.is-active,.vg-mention-list button:hover{background:#eef1e3}
#shore-chat-form{position:relative}
/* карточка лота: крестик рисуется линиями ровно по центру */
.trade-detail-close{font-size:0!important;position:relative!important;width:32px!important;height:32px!important;min-width:32px!important;display:grid!important;place-items:center;padding:0!important;border:1px solid #d9caa5!important;border-radius:9px!important;background:#fffdf6!important}
.trade-detail-close::before,.trade-detail-close::after{content:'';position:absolute;left:50%;top:50%;width:14px;height:2px;margin:-1px 0 0 -7px;border-radius:2px;background:#6f7f6b;transform:rotate(45deg)}
.trade-detail-close::after{transform:rotate(-45deg)}

/* 08.11.2026: выбор количества */
.vg-qty{display:inline-flex;align-items:center;gap:2px;border:1px solid #d8cdb2;border-radius:10px;background:#fffdf6;padding:2px;flex:none}
.vg-qty button{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;border:0!important;border-radius:8px!important;background:#eef1e3!important;color:#3f5d52!important;font:700 calc(17px)/1 Interface,sans-serif!important;padding:0!important;box-shadow:none!important}
.vg-qty b{min-width:28px;text-align:center;font:700 calc(15px)/1 Interface,sans-serif;color:#2f4c42}
.city-product>footer{gap:8px}
.city-product>footer>button.primary{min-width:88px!important}
/* «Бои рядом»: крестик в углу шапки */
#nearby-battles>header>button[data-nearby-close]{position:absolute!important;right:2px!important;top:50%!important;left:auto!important;margin:-16px 0 0!important}
#nearby-battles>header{padding:0 40px}

/* 08.11.2026: выбор пола при регистрации */
.vl-gender{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:2px 0 4px}
.vl-gender>span{grid-column:1/-1;font:500 calc(12px)/1.2 Interface,sans-serif;color:#8a8268}
.vl-gender>button{min-height:42px;border:1px solid #d8cdb2;border-radius:12px;background:#fffdf6;color:#5d6d5f;font:700 calc(14px)/1 Interface,sans-serif;transition:background .16s,border-color .16s,color .16s}
.vl-gender>button[aria-pressed="true"]{background:#2f5f50;border-color:#2f5f50;color:#fff}
/* разовые окна: пол и возврат */
.vg-once-shade{z-index:14000!important}
.vg-once .vg-once-lead{margin:0 0 12px;color:#6b725f;font-size:calc(13.5px);line-height:1.45}
.vg-gender-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.vg-gender-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 8px 12px;border:1.5px solid #ddd2b6;border-radius:16px;background:#fffdf6;transition:border-color .16s,box-shadow .16s,transform .16s}
.vg-gender-card img{width:100%;aspect-ratio:1;object-fit:cover;object-position:top;border-radius:12px;background:#f1ecdc}
.vg-gender-card b{font:700 calc(15px)/1 Interface,sans-serif;color:#3f5d52}
.vg-gender-card[aria-pressed="true"]{border-color:#2f6b55;box-shadow:0 0 0 3px #2f6b5522;transform:translateY(-2px)}
.vg-refund-list{display:flex;flex-direction:column;gap:6px;max-height:42vh;overflow:auto;scrollbar-width:none}
.vg-refund-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;padding:6px 10px;border:1px solid #e3dac3;border-radius:12px;background:#fffdf6}
.vg-refund-row img{width:36px;height:36px;object-fit:contain}
.vg-refund-row b{color:#7a5a17}
.vg-refund-total{margin:12px 0;padding:10px 12px;border-radius:12px;background:#f3efe0;text-align:center;font-size:calc(14px);color:#5d5a45}
.vg-refund-total b{font-size:calc(18px);color:#7a5a17}

/* 08.11.2026: карточка навыка по удержанию в бою */
.vg-skill-peek{position:fixed;z-index:15000;box-sizing:border-box;padding:9px 11px 10px;border:1px solid #cdb88b;border-radius:11px;background:#fffcf3;box-shadow:0 4px 14px #213c332e;color:#36574a;animation:vg-peek .12s ease-out}
@keyframes vg-peek{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.vg-skill-peek header{display:flex;align-items:center;gap:8px}
.vg-skill-peek header img{width:32px;height:32px;flex:none;border-radius:7px;border:1px solid #d7c8a3;object-fit:cover}
.vg-skill-peek strong{display:block;font:650 14px/1.12 Interface,sans-serif;color:#305447}
.vg-skill-peek small{display:block;margin-top:2px;font:500 10px/1.2 Interface,sans-serif;color:#766f59}
.vg-skill-peek-facts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px;margin-top:6px;font:600 11px/1.3 Interface,sans-serif;color:#536955}
.vg-skill-peek-facts span+span::before{content:"·";margin-right:7px;color:#aa9878}
.vg-skill-peek p{margin:6px 0 0;padding-top:6px;border-top:1px solid #e5ddc8;font:400 12px/1.32 Interface,sans-serif;color:#475e52}
@media(prefers-reduced-motion:reduce){.vg-skill-peek{animation:none}}

/* настой: значок действующего баффа */
.vg-tonic-pill{position:absolute;z-index:40;top:calc(env(safe-area-inset-top,0px) + 62px);right:12px;display:flex;align-items:center;gap:5px;height:28px;padding:0 9px 0 4px;border:1px solid #d9caa5;border-radius:999px;background:#fffdf6ee;box-shadow:0 3px 10px #2d3f3420;font:500 calc(11.5px)/1 Interface,sans-serif;color:#4f5f55}
.vg-tonic-pill img{width:22px;height:22px;object-fit:contain}
.vg-tonic-pill b{color:#2f6b55}
.vg-tonic-pill[hidden]{display:none}

/* пропуск обучения */
#vg-coach .vg-coach-skip{display:block;margin:8px 0 0 auto;padding:4px 2px;border:0;background:none;box-shadow:none;color:#8a8268;font:500 calc(12px)/1.2 Interface,sans-serif;text-decoration:underline;text-underline-offset:3px;min-height:28px}
#vg-coach .vg-coach-skip.is-armed{color:#a0522d;font-weight:700}

/* подсказка ников поверх всего, над полем ввода */
.vg-mention-list{position:fixed!important;left:auto;right:auto;margin:0!important;z-index:16000!important}

/* лавка: цена, количество и «Купить» на одной линии */
#modal-root .modal.city-modal .city-product>footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
#modal-root .modal.city-modal .city-product>footer>button.primary{margin:0!important;align-self:center!important;transform:none!important;min-height:42px!important}
#modal-root .modal.city-modal .city-product>footer>span:first-child{flex:none;display:flex;align-items:center}

/* 08.11.2026: широкий экран (планшет, полноэкранное окно) — карточки противников и их добыча не мельчат */
@media (min-width:700px){
 .world-opponents{height:auto!important;min-height:300px!important}
 .world-opponents .opponent-art{min-height:96px}
 .world-opponents .opponent-art img{max-height:110px}
 .world-opponents .opponent-loot img{width:30px!important;height:30px!important}
 .world-opponents .opponent-loot>*{min-width:36px;min-height:36px}
 .world-opponents .opponent-name{font-size:calc(15px)!important}
 .world-opponents .opponent-stats{font-size:calc(13px)!important}
}

/* окно пола помещается на любом экране */
.vg-once .vg-sheet-body{max-height:calc(100dvh - 90px);overflow-y:auto;scrollbar-width:none}
.vg-gender-card img{max-height:min(34vh,260px);width:auto;max-width:100%}

/* лот и обмен: полная карточка вещи по нажатию */
.trade-detail .vw-card.is-full{animation:vg-rise .18s ease-out}
.trade-detail .vw-card:not(.is-full).is-active{cursor:zoom-in}

/* 08.11.2026: личный сундук как рюкзак — карточки в две колонки и полоски заполнения */
.vg-vault-meter{display:grid!important;grid-template-columns:52px 1fr;align-items:center;gap:12px;padding:12px 14px!important}
.vg-vault-meter img{width:52px;height:52px;object-fit:contain}
.vg-vault-meter>div{display:flex;flex-direction:column;gap:4px}
.vg-vault-line{display:flex;justify-content:space-between;align-items:baseline;font:500 calc(12px)/1.2 Interface,sans-serif;color:#6b725f}
.vg-vault-line strong{font-size:calc(12.5px);color:#3f5d52}.vg-vault-line b{color:#2f4c42}
.vg-vault-bar{display:block;height:6px;border-radius:999px;background:#e4e0cc;overflow:hidden;margin-bottom:4px}
.vg-vault-bar b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6d9a7e,#3f7a62);transition:width .3s ease}
#modal-root .modal.city-modal .vg-vault-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;align-content:start}
.vg-vault-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:6px;border:1px solid #e3dac3;border-radius:16px;background:#fffdf6;animation:vg-rise .2s ease-out backwards}
.vg-vault-face{cursor:pointer;min-width:0}
.vg-vault-face>*{pointer-events:none}
.vg-vault-card>footer{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.vg-vault-card>footer>small{text-align:center;color:#8a8268;font-size:calc(11px)}
.vg-vault-card>footer>.vg-qty{align-self:center}
.vg-vault-card>footer>button.primary{min-height:36px!important;width:100%;font-size:calc(13px)!important;margin:0!important}

/* 08.11.2026: «Мои задания» */
.vg-quests-open{display:grid;grid-template-columns:40px 1fr auto 16px;align-items:center;gap:10px;width:calc(100% - 24px);margin:12px 12px 4px;padding:12px 14px;border:1px solid #d9caa5;border-radius:16px;background:linear-gradient(135deg,#fffdf6,#f4eedb);box-shadow:0 4px 14px #2d3f3414;text-align:left;color:#3f5d52}
.vg-quests-open .vg-quests-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#2f5f50;color:#f6e7b8;font-size:18px}
.vg-quests-open strong{display:block;font:700 calc(15px)/1.2 Interface,sans-serif}
.vg-quests-open small{display:block;margin-top:2px;font:500 calc(11.5px)/1.2 Interface,sans-serif;color:#8a8268}
.vg-quests-count{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#b5562f;color:#fff;font:700 calc(12px)/24px Interface,sans-serif;text-align:center}
.vg-quest-chev{width:9px;height:9px;border-right:2px solid #8a8268;border-bottom:2px solid #8a8268;transform:rotate(45deg);transition:transform .2s ease;margin-top:-4px}
.vg-quest-chev.is-right{transform:rotate(-45deg);margin-top:0}
.vg-sheet.vg-quests{max-height:calc(100% - env(safe-area-inset-top,0px) - 8px)}
.vg-quests>header,.vg-quests .vg-quest{flex:none}
.vg-quests .vg-sheet-body{display:flex;flex-direction:column;min-height:0;gap:10px;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
.vg-quest{border:1px solid #e3dac3;border-radius:16px;background:#fffdf6;overflow:hidden}
.vg-quest>summary{display:grid;grid-template-columns:28px 1fr 16px;align-items:center;gap:10px;padding:12px 14px;list-style:none;cursor:pointer}
.vg-quest>summary::-webkit-details-marker{display:none}
.vg-quest[open]>summary .vg-quest-chev{transform:rotate(-135deg);margin-top:4px}
.vg-quest-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid #cfc3a2;color:#fff;font:700 14px/1 Interface,sans-serif}
.vg-quest.is-done .vg-quest-mark{background:#3f7a62;border-color:#3f7a62}
.vg-quest-head strong{display:block;font:700 calc(14.5px)/1.2 Interface,sans-serif;color:#2f4c42}
.vg-quest-head small{display:block;margin-top:2px;font:500 calc(11.5px)/1.25 Interface,sans-serif;color:#8a8268}
.vg-quest-lines{display:flex;flex-direction:column;gap:8px;padding:0 14px 14px}
.vg-quest-line{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;padding:8px;border-radius:12px;background:#f7f3e6}
.vg-quest-line img{width:40px;height:40px;object-fit:contain;border-radius:10px;background:#fff}
.vg-quest-line span{display:flex;justify-content:space-between;gap:8px;font:500 calc(13px)/1.2 Interface,sans-serif}
.vg-quest-line em{font-style:normal;font-weight:700;color:#2f6b55}
.vg-quest-line small{display:block;margin-top:4px;font-size:calc(11px);color:#8a8268}
.vg-quest-bar{display:block;height:6px;margin-top:6px;border-radius:999px;background:#e4e0cc;overflow:hidden}
.vg-quest-bar b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6d9a7e,#3f7a62)}
.vg-quests-empty{padding:20px 12px;text-align:center;color:#6b725f}.vg-quests-empty strong{display:block;margin-bottom:6px;color:#3f5d52;font-size:calc(15px)}.vg-quests-empty p{margin:0;font-size:calc(12.5px);line-height:1.45}

/* «Мои задания» по ширине карточек настроек */
#settings>.vg-quests-open{width:100%!important;margin:0 0 12px!important;box-sizing:border-box}


/* Hold notes stay open until an explicit close or the next outside press. */
.vg-skill-peek{pointer-events:auto;max-height:calc(100dvh - 24px);overflow:auto;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y}
.vg-skill-peek::-webkit-scrollbar{display:none}
.vg-skill-peek-heading{flex:1;min-width:0}
.vg-skill-peek-close{display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:28px;margin:0;padding:0;border:1px solid #dccba5;border-radius:8px;background:#fffcf2;color:#547567;font:20px/1 Interface,sans-serif}

.vg-quests-open .vg-quests-ico{background:#f6f0df;border:1px solid #e1d4b4}
.vg-quests-ico>img{display:block;width:34px;height:34px;object-fit:contain}
.v13-item-actions>.vg-qty{justify-content:center;box-sizing:border-box;min-width:0}
.v13-item-actions.has-quantity>.item-discard-button{grid-column:1/-1;width:100%;box-sizing:border-box}
#app #modal-root>.modal-shade.item-modal-overlay{align-items:center!important;justify-content:center!important;padding:17px!important;pointer-events:auto!important;background:#123c3b79!important}

/* 08.11.2026 (owner): abandon a started mastery trial — quiet button inside the parchment card */
#knowledge-root .mastery-quest .mastery-quest-abandon{display:block;width:100%;margin:10px 0 0;padding:8px 12px;border:1px solid #a88a5580;border-radius:8px;background:#f6ead0cc;color:#8a4b34;font:600 calc(12.5px)/1.3 Interface,sans-serif;text-align:center;cursor:pointer;transition:background .15s ease}
#knowledge-root .mastery-quest .mastery-quest-abandon:hover{background:#f1dfbd}
#knowledge-root .mastery-quest .mastery-quest-abandon.is-confirm{background:#b5563a;border-color:#b5563a;color:#fff}
#knowledge-root .mastery-quest .mastery-quest-abandon:disabled{opacity:.6}

.forge-attributes{margin:5px 0;padding:7px 10px 5px;border:1px solid #d7c9a8;border-radius:10px;background:#faf6ea;color:#35574b}
.forge-attributes header,.forge-attributes>div,.forge-attributes>div>span:first-child{display:flex;align-items:center;gap:6px}
.forge-attributes header{justify-content:space-between;margin-bottom:4px;font-size:13px}.forge-attributes header small{color:#706951;font-size:11px}
.forge-attributes>div{justify-content:space-between;min-height:38px;border-top:1px solid #e9dfc8;font-size:13px}.forge-attributes img{width:17px;height:17px;object-fit:contain}
.forge-attributes .forge-step{display:inline-grid;grid-template-columns:27px 26px 27px;align-items:center;justify-items:center;padding:2px;gap:1px;background:linear-gradient(#fffefa,#f6f1dd);border:1px solid #d9ceae;border-radius:18px;box-shadow:inset 0 1px 3px #6a5f3a16}
.forge-attributes .forge-step.single{grid-template-columns:32px}
.city-modal .forge-attributes button.forge-step-button{display:grid;place-items:center;min-width:0;width:27px;height:27px;min-height:0;max-width:27px;padding:0;margin:0;border:1px solid #d3caa6;border-radius:50%;background:linear-gradient(#fbf6e3,#ece5c9);color:#466357;box-shadow:inset 0 1px #fff9;font:600 17px/1 Georgia,serif;touch-action:manipulation}
.city-modal .forge-attributes button.forge-step-button:disabled{opacity:.48}.forge-step-button:active{transform:scale(.94)}.forge-step b{font-size:13px;text-align:center;font-variant-numeric:tabular-nums}

.vg-quests .vg-quest-head{min-width:0;flex:1}.vg-quests .vg-quest-head strong{font-size:13px;line-height:1.28}
.vg-quests .vg-quest-line{grid-template-columns:32px minmax(0,1fr);gap:8px}.vg-quests .vg-quest-line img{width:32px;height:32px;border-radius:7px}
.vg-quests .vg-quest-line span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px}
.vg-quests .vg-quest-line span b{font:500 12px/1.35 Interface,sans-serif}.vg-quests .vg-quest-line em,.vg-quest-total em{font:600 11px/1.3 Interface,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;color:#446851}
.vg-quest-total{display:flex;align-items:center;gap:7px;margin-top:5px}.vg-quest-total progress{flex:1;width:0;height:5px;border:0;appearance:none;border-radius:4px;overflow:hidden;background:#e3e1cf;color:#608966}
.vg-quest-total progress::-webkit-progress-bar{background:#e3e1cf}.vg-quest-total progress::-webkit-progress-value{background:#608966;border-radius:4px}.vg-quest-total progress::-moz-progress-bar{background:#608966;border-radius:4px}
.vg-quests .vg-quest-bar{height:4px}
