/* 10.11.2026 (owner): settings as small framed tiles in columns; «Удобство управления»; side of the place panel buttons; swipe on «Атака» */

/* settings tiles: three in a row, icon above the name */
.vs-panel .vs-group{padding:4px 10px 12px}
.vs-panel .vs-group>h3{margin:8px 6px 8px}
.vs-panel .vs-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.vs-panel .vs-list>.vs-item:not(.text-scale-row){grid-template-columns:1fr!important;grid-template-rows:auto auto;justify-items:center;align-content:center;row-gap:6px!important;min-height:86px;padding:10px 4px 8px!important;border:1px solid #e4d9b8!important;border-radius:14px!important;background:linear-gradient(180deg,#fffdf6,#f7f0dc)!important;box-shadow:inset 0 0 0 2px #fffefa,0 1px 3px rgba(80,60,20,.08)!important;text-align:center}
.vs-panel .vs-list>.vs-item+.vs-item::before{display:none}
.vs-panel .vs-list>.vs-item:not(.text-scale-row) .vs-ic{width:38px!important;height:38px!important}
.vs-panel .vs-list>.vs-item:not(.text-scale-row) .vs-ic img{width:30px;height:30px;object-fit:contain}
.vs-panel .vs-list>.vs-item:not(.text-scale-row) strong{white-space:normal!important;font-size:11.5px!important;line-height:1.2!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.vs-panel .vs-list>.vs-item:not(.text-scale-row) .vs-copy{justify-items:center}
.vs-panel .vs-list>.vs-item:not(.text-scale-row)>:is(.vs-go,.vg-go){display:none!important}
.vs-panel .vs-list>.vs-item.is-static{grid-template-rows:auto auto auto}
.vs-panel .vs-list>.vs-item.is-static .toggle{transform:scale(.85)}
.vs-panel .vs-list>button.vs-item:active{transform:scale(.97);background:linear-gradient(180deg,#f6efd9,#efe4c4)!important}
.vs-panel .vs-list>.vs-item.is-danger{border-color:#efcdc7!important;background:linear-gradient(180deg,#fffaf8,#fbecea)!important}
.vs-panel .vs-list>.vs-item.text-scale-row{grid-column:1/-1;border:1px solid #e4d9b8!important;border-radius:14px!important;background:#fffdf6!important}
/* community links: VK and VK Donut stand out a little */
.vs-panel .vs-list>[data-vg-link="vk"],.vs-panel .vs-list>[data-vg-link="donut"]{border-color:#bfd0e6!important;background:linear-gradient(180deg,#f8fbff,#e9f0fa)!important}
.vs-panel .vs-list>[data-vg-link="vk"] strong,.vs-panel .vs-list>[data-vg-link="donut"] strong{color:#2c5282!important}

/* Preview uses the same relief and phase colours as the live attack button. */
.vg-turn-preview{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 10px}
.vg-turn-face,.battle-buttons #battle-phase-note:not([hidden]){
 --turn-top:#77957a;--turn-base:#466a50;--turn-edge:#344f3c;
 border:1px solid var(--turn-edge);border-radius:10px;
 color:#fffdf0;background:linear-gradient(var(--turn-top),var(--turn-base) 80%);
 box-shadow:inset 0 1px 0 #ffffff65,inset 0 -2px 0 #0002,0 2px 3px #41321b24;
 font:700 13px/1.15 Interface,sans-serif;text-align:center;text-shadow:0 1px 1px #26392a70
}
.vg-turn-face{flex:1;min-width:0;display:grid;place-items:center;min-height:38px;padding:3px}
.vg-turn-face.is-enemy,.battle-buttons[data-turn-phase=enemy] #battle-phase-note:not([hidden]){
 --turn-top:#a06c57;--turn-base:#804c40;--turn-edge:#643c32}
/* the side of the place panel buttons */
body.vg-head-left .location-inline-panel>.world-panel-heading{flex-direction:row!important}
body.vg-head-left .location-inline-panel>.world-panel-heading>h3{text-align:left!important}
body.vg-head-right .location-inline-panel>.world-panel-heading{flex-direction:row-reverse!important}
body.vg-head-right .location-inline-panel>.world-panel-heading>h3{text-align:right!important}
/* the back arrow always points to its own edge */
body.vg-head-left .location-inline-panel[data-world-side="1"] .world-panel-back>*{transform:scaleX(-1)}
body.vg-head-right .location-inline-panel:not([data-world-side="1"]) .world-panel-back>*{transform:scaleX(-1)}

/* the framed «Удобство управления» sheet */
.vg-comfort-shade{position:fixed;inset:0;z-index:9300;display:grid;place-items:end center;background:rgba(30,26,14,.38);opacity:0;transition:opacity .22s ease}
.vg-comfort-shade.is-open{opacity:1}
.vg-comfort{width:min(480px,100%);max-height:88%;overflow-y:auto;scrollbar-width:none;box-sizing:border-box;padding:12px 14px calc(env(safe-area-inset-bottom,0px) + 14px);border:1px solid #d9c690;border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(180deg,#fffaf0,#f4e9cc);box-shadow:inset 0 0 0 3px rgba(255,255,255,.55),0 -8px 28px rgba(40,30,10,.32);transform:translateY(100%);transition:transform .3s cubic-bezier(.2,.9,.3,1)}
.vg-comfort::-webkit-scrollbar{display:none}
.vg-comfort-shade.is-open .vg-comfort{transform:none}
.vg-comfort-head{display:grid;grid-template-columns:40px 1fr 34px;align-items:center;gap:10px;padding:2px 0 10px;border-bottom:1px solid #e3d5ab}
.vg-comfort-badge{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid #e2d6b2;background:linear-gradient(180deg,#fffdf4,#efe5c8);box-shadow:inset 0 0 0 2px #fffef8}
.vg-comfort-badge img{width:30px;height:30px;object-fit:contain}
.vg-comfort-head strong{font:700 17px/1.2 Interface,sans-serif;color:#2f4a36}
.vg-comfort-x{width:34px;height:34px;padding:0;border-radius:50%;border:1px solid #d8c9a0;background:#fffaf0;color:#8a7650;font-size:19px;line-height:1}
.vg-comfort-group{margin-top:12px;padding:10px 10px 12px;border:1px solid #e3d6b0;border-radius:16px;background:#fffdf7;box-shadow:inset 0 0 0 3px #fffefb,inset 0 0 0 4px #f1ead4}
.vg-comfort-group h4{display:flex;align-items:center;gap:10px;margin:2px 4px 10px;font:650 10px/1.2 Interface,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#a0966f}
.vg-comfort-group h4::before,.vg-comfort-group h4::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#e2d8b7)}
.vg-comfort-group h4::after{background:linear-gradient(90deg,#e2d8b7,transparent)}
.vg-comfort-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.vg-comfort-row.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.vg-comfort-opt{display:grid;gap:2px;min-height:48px;padding:7px 4px;border:1px solid #ddd0a9;border-radius:12px;background:linear-gradient(180deg,#fffdf6,#f6efdc);text-align:center;transition:background .2s ease,border-color .2s ease,transform .12s ease}
.vg-comfort-opt:active{transform:scale(.97)}
.vg-comfort-opt strong{font:700 12.5px/1.2 Interface,sans-serif;color:#3d4a35}.vg-comfort-opt small{font-size:10px;color:#8d8668}
.vg-comfort-opt[aria-pressed="true"]{border-color:#4f7a5a;background:linear-gradient(180deg,#5c8a66,#3b6247);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 2px 6px rgba(40,70,50,.25)}
.vg-comfort-opt[aria-pressed="true"] :is(strong,small){color:#f4fff2}
/* the preview: a real-looking place panel heading */
.vg-comfort-preview{margin-top:10px}
.vg-pv-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.vg-pv-panel{padding:8px 8px 9px;border:1px solid #e0d4b0;border-radius:14px 14px 10px 10px;background:linear-gradient(180deg,#fffcf3,#f8f1de);box-shadow:0 2px 6px rgba(80,60,20,.1);animation:vg-pv-in .28s ease both}
@keyframes vg-pv-in{from{opacity:0;transform:translateY(4px)}}
.vg-pv-head{display:flex;align-items:center;gap:7px;padding-bottom:7px;border-bottom:1px solid #e6dcc0}
.vg-pv-panel[data-side="right"] .vg-pv-head{flex-direction:row-reverse}
.vg-pv-panel[data-side="right"] .vg-pv-back svg{transform:scaleX(-1)}
.vg-pv-head b{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:800 15px/1.2 Interface,sans-serif;color:#2f4a3f}
.vg-pv-panel[data-side="right"] .vg-pv-head b{text-align:right}
.vg-pv-pair .vg-pv-head b{font-size:11.5px}
.vg-pv-back{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;border:1px solid #9cbcae;background:#fffaf0;color:#2f6a5a}
.vg-pv-back svg{width:16px;height:16px}
.vg-pv-tools{display:flex;gap:5px;flex:none}
.vg-pv-panel[data-side="right"] .vg-pv-tools{flex-direction:row-reverse}
.vg-pv-btn{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;border:1px solid #ddd2b2;background:#fffdf6}
.vg-pv-btn img{width:17px;height:17px;object-fit:contain;opacity:.8}
.vg-pv-pair :is(.vg-pv-back,.vg-pv-btn){width:22px;height:22px;border-radius:7px}.vg-pv-pair .vg-pv-btn img{width:13px;height:13px}.vg-pv-pair .vg-pv-back svg{width:13px;height:13px}
.vg-pv-line{display:flex;align-items:center;gap:6px;margin-top:7px}
.vg-pv-panel[data-side="right"] .vg-pv-line{flex-direction:row-reverse}
.vg-pv-line img{width:22px;height:22px;border-radius:50%;object-fit:cover;border:1px solid #d9cda8}
.vg-pv-line span{height:6px;border-radius:3px;background:#eadfc2;flex:1}.vg-pv-line span+span{flex:.6;opacity:.7}
.vg-pv-note{display:block;margin-top:6px;text-align:center;font-size:10.5px;color:#8d8668}
/* swipe on «Атака»: the drum in the real battle button */
body.vg-attack-swipe #battle-actions .battle-action[data-fight]{touch-action:none}
#battle-actions .battle-action[data-fight].is-swiping{position:relative;overflow:hidden!important;transition:none!important}
#battle-actions .battle-action[data-fight] .vg-swipe-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:inherit;will-change:transform,opacity}
#battle-actions .battle-action[data-fight] .vg-swipe-face.is-current{position:relative;inset:auto;width:100%;height:100%}
#battle-actions .battle-action[data-fight] .vg-swipe-face.is-wait{color:#4c5148;background:linear-gradient(180deg,#e9eae4,#d6d8d0);border-radius:inherit}
#battle-actions .battle-action[data-fight] .vg-swipe-face.is-strike{color:#fff;background:linear-gradient(180deg,#3f6e4c,#2c5238);border-radius:inherit}
#battle-actions .battle-action[data-fight].is-settling .vg-swipe-face{transition:transform .2s cubic-bezier(.2,.9,.3,1),opacity .2s ease}
/* 10.11.2026, round 2: one-line short names and a smooth switch */
.vs-panel .vs-list>.vs-item:not(.text-scale-row) strong{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%;font-size:12px!important}
.vs-panel .vs-list>.vs-item:not(.text-scale-row){min-height:80px}
.vs-panel .vs-item .toggle{transition:background-color .22s ease,box-shadow .22s ease!important}
.vs-panel .vs-item .toggle:after{transition:transform .24s cubic-bezier(.3,1.3,.5,1)!important}
/* 10.11.2026, round 3: the sheet on almost the whole screen; previews never cut; the drum works like a calendar flip */
.vg-comfort{height:calc(100% - env(safe-area-inset-top,0px) - 22px);max-height:none;display:flex;flex-direction:column}
.vg-comfort-group{flex:none}
.vg-pv-pair{grid-template-columns:minmax(0,1fr)!important;gap:8px}
.vg-pv-pair .vg-pv-head b{font-size:14px}
.vg-pv-pair :is(.vg-pv-back,.vg-pv-btn){width:26px;height:26px;border-radius:8px}.vg-pv-pair .vg-pv-btn img{width:15px;height:15px}.vg-pv-pair .vg-pv-back svg{width:15px;height:15px}
.vg-pv-panel{min-width:0;box-sizing:border-box}
.vg-comfort-swipe{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:8px;margin-bottom:12px}
.vg-pv-drum{position:relative;width:min(240px,100%);height:52px;overflow:hidden;border-radius:14px;border:1px solid #2c5238;box-shadow:0 3px 10px rgba(30,60,40,.28),inset 0 0 0 1px rgba(255,255,255,.15)}
.vg-pv-drum::before,.vg-pv-drum::after{content:'';position:absolute;left:0;right:0;height:10px;z-index:2;pointer-events:none}
.vg-pv-drum::before{top:0;background:linear-gradient(180deg,rgba(0,0,0,.22),transparent)}.vg-pv-drum::after{bottom:0;background:linear-gradient(0deg,rgba(0,0,0,.22),transparent)}
.vg-pv-strip{position:absolute;left:0;right:0;top:-52px;display:grid;grid-auto-rows:52px;animation:vg-flip 5.4s cubic-bezier(.6,0,.3,1) infinite}
.vg-pv-face{display:grid;place-items:center;font:800 15px/1 Interface,sans-serif;letter-spacing:.02em}
.vg-pv-face.is-wait{color:#4c5148;background:linear-gradient(180deg,#eceee7,#d5d8cf)}
.vg-pv-face.is-main{color:#f4fff2;background:linear-gradient(180deg,#46785a,#2c5238)}
.vg-pv-face.is-near{color:#fff3ee;background:linear-gradient(180deg,#5d8a54,#2f5a35);box-shadow:inset 0 0 0 2px rgba(230,110,90,.55)}
@keyframes vg-flip{0%,14%{transform:translateY(0)}24%,40%{transform:translateY(52px)}50%,64%{transform:translateY(0)}74%,90%{transform:translateY(-52px)}100%{transform:translateY(0)}}
.vg-pv-hand{position:absolute;right:14px;top:50%;width:14px;height:14px;margin-top:-7px;z-index:3;border-radius:50%;background:rgba(255,255,255,.85);box-shadow:0 0 0 4px rgba(255,255,255,.25);animation:vg-flip-hand 5.4s cubic-bezier(.6,0,.3,1) infinite}
@keyframes vg-flip-hand{0%,8%{transform:translateY(0);opacity:0}12%{opacity:1}24%{transform:translateY(14px);opacity:1}30%,44%{opacity:0;transform:translateY(0)}58%{opacity:1}74%{transform:translateY(-14px);opacity:1}80%,100%{opacity:0}}
.vg-pv-drum.is-off{filter:grayscale(.8);opacity:.5}.vg-pv-drum.is-off :is(.vg-pv-strip,.vg-pv-hand){animation:none}.vg-pv-drum.is-off .vg-pv-hand{display:none}
.vg-pv-legend{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.vg-pv-legend span{padding:3px 9px;border-radius:999px;border:1px solid #e3d7b6;background:#fffdf6;font:600 11px/1.3 Interface,sans-serif;color:#5f6f58}
/* the real button: the two faces glued edge to edge, like the preview */
#battle-actions .battle-action[data-fight] .vg-swipe-face{box-shadow:none}
#battle-actions .battle-action[data-fight].is-settling .vg-swipe-face{transition:transform .22s cubic-bezier(.3,.9,.3,1)}
/* 10.11.2026: the compensation note */
.vg-comp-shade{position:fixed;inset:0;z-index:9400;display:grid;place-items:center;padding:20px;background:rgba(30,26,14,.45);opacity:0;transition:opacity .24s ease}
.vg-comp-shade.is-open{opacity:1}
.vg-comp{width:min(360px,100%);display:grid;justify-items:center;gap:8px;padding:18px 18px 16px;text-align:center;border:1px solid #d9c690;border-radius:22px;background:radial-gradient(120% 60% at 50% 0%,#f5f8ea,#fffaf0 45%,#f4e9cc);box-shadow:inset 0 0 0 3px rgba(255,255,255,.6),inset 0 0 0 4px #ecdfb9,0 12px 34px rgba(40,30,10,.35);transform:scale(.94);transition:transform .28s cubic-bezier(.2,1.2,.4,1)}
.vg-comp-shade.is-open .vg-comp{transform:none}
.vg-comp-kicker{display:flex;align-items:center;gap:10px;width:100%;font:650 10px/1.2 Interface,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#a0966f}
.vg-comp-kicker::before,.vg-comp-kicker::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#e2d8b7)}
.vg-comp h3{margin:0;font:800 18px/1.25 Interface,sans-serif;color:#2f4a36}
.vg-comp-gift{position:relative;width:96px;height:96px;display:grid;place-items:center}
.vg-comp-glow{position:absolute;inset:6%;border-radius:50%;background:radial-gradient(circle,rgba(255,236,170,.75),rgba(255,236,170,0) 70%);animation:offering-launch-pulse 2.6s ease-in-out infinite}
.vg-comp-gift img{position:relative;width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.3))}
.vg-comp-name{font:700 14px/1.2 Interface,sans-serif;color:#5b4a22}
.vg-comp p{margin:0;font-size:12px;line-height:1.45;color:#5f6553}
.vg-comp .vg-comp-where{font-style:italic;color:#8d8668}
.vg-comp button{width:100%;margin-top:6px;min-height:44px;border-radius:14px}
/* 10.11.2026: shop — pay for печати or money, VK Донат for Покровительство, the top-up sheet and the framed «скоро» note */
.city-pay{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.city-pay button{min-height:38px;padding:6px 8px;border-radius:12px;font:700 12px/1.2 Interface,sans-serif;transition:transform .12s ease}
.city-pay button:active{transform:scale(.97)}
.city-pay .city-pay-seals{border:1px solid #4f7a5a;background:linear-gradient(180deg,#5c8a66,#3b6247);color:#f4fff2;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.city-pay .city-pay-rub{border:1px solid #d8c9a0;background:linear-gradient(180deg,#fffdf6,#f3e8cb);color:#5b4a22}
.city-pay .city-pay-donut{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #2f63b3;background:linear-gradient(180deg,#4a86e8,#2a62c4);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 8px rgba(40,90,180,.3)}
.city-pay .city-pay-donut img{width:20px;height:20px;object-fit:contain}
.city-topup-open{border:1px solid #c9a94f!important;background:linear-gradient(180deg,#fff6d8,#f1dc9c)!important;color:#5b4a22!important;font-weight:700}
.vg-shop-shade{position:fixed;inset:0;z-index:9400;display:grid;background:rgba(30,26,14,.42);opacity:0;transition:opacity .22s ease}
.vg-shop-shade.is-open{opacity:1}
.vg-shop-shade.is-note{place-items:center;padding:20px}
.vg-shop-shade.is-topup{place-items:end center}
.vg-shop-note{position:relative;width:min(340px,100%);display:grid;justify-items:center;gap:8px;padding:22px 18px 16px;text-align:center;border:1px solid #d9c690;border-radius:22px;background:radial-gradient(120% 60% at 50% 0%,#fff8e4,#fffaf0 50%,#f4e9cc);box-shadow:inset 0 0 0 3px rgba(255,255,255,.6),inset 0 0 0 4px #ecdfb9,0 12px 34px rgba(40,30,10,.35);transform:scale(.94);transition:transform .26s cubic-bezier(.2,1.2,.4,1)}
.vg-shop-shade.is-open .vg-shop-note{transform:none}
.vg-shop-seal{width:56px;height:56px;border-radius:50%;background:url(art/ui/community-20261107/patron.png) center/70% no-repeat,radial-gradient(circle,#fff3cf,#ecd28a);box-shadow:0 0 0 4px #fffaf0,0 0 0 5px #e2cd8f,0 4px 10px rgba(80,60,20,.25)}
.vg-shop-kicker{display:flex;align-items:center;gap:10px;width:100%;font:650 10px/1.2 Interface,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#a0966f}
.vg-shop-kicker::before,.vg-shop-kicker::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#e2d8b7)}
.vg-shop-note h3{margin:0;font:800 17px/1.25 Interface,sans-serif;color:#2f4a36}
.vg-shop-note p{margin:0;font-size:12.5px;line-height:1.45;color:#5f6553}
.vg-shop-note button{width:100%;min-height:42px;margin-top:6px;border-radius:14px}
.vg-shop-topup{width:min(480px,100%);box-sizing:border-box;padding:6px 14px calc(env(safe-area-inset-bottom,0px) + 16px);border:1px solid #d9c690;border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(180deg,#fffaf0,#f4e9cc);box-shadow:inset 0 0 0 3px rgba(255,255,255,.55),0 -8px 28px rgba(40,30,10,.32);transform:translateY(100%);transition:transform .3s cubic-bezier(.2,.9,.3,1)}
.vg-shop-shade.is-open .vg-shop-topup{transform:none}
.vg-shop-grip{display:block;width:42px;height:5px;margin:2px auto 6px;border-radius:3px;background:#cdbb8b}
.vg-shop-topup header{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid #e3d5ab}
.vg-shop-topup header strong{font:800 17px/1.2 Interface,sans-serif;color:#2f4a36}
.vg-shop-x{width:34px;height:34px;padding:0;border-radius:50%;border:1px solid #d8c9a0;background:#fffaf0;color:#8a7650;font-size:19px;line-height:1}
.vg-shop-rate{margin:10px 0;text-align:center;font:600 12px/1.3 Interface,sans-serif;color:#8a7650}
.vg-shop-packs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.vg-shop-pack{display:grid;justify-items:center;gap:3px;padding:12px 6px 10px;border:1px solid #e0d2a8;border-radius:16px;background:radial-gradient(circle at 50% 20%,#fffdf6,#f3e8cb);box-shadow:inset 0 0 0 2px #fffef8,0 2px 5px rgba(80,60,20,.1);transition:transform .12s ease}
.vg-shop-pack:active{transform:scale(.97)}
.vg-shop-pack:last-child{grid-column:1/-1}
.vg-shop-pack-ico{width:34px;height:34px;border-radius:50%;background:url(art/ui/community-20261107/patron.png) center/72% no-repeat,radial-gradient(circle,#fff3cf,#ecd28a);box-shadow:0 0 0 2px #fffaf0,0 0 0 3px #e2cd8f}
.vg-shop-pack b{font:800 20px/1 Interface,sans-serif;color:#3b3220}
.vg-shop-pack small{font-size:11px;color:#8a7a52}.vg-shop-pack em{display:block;font-style:normal;font-weight:700;color:#3b6247}
.vg-shop-pack i{margin-top:4px;padding:4px 14px;border-radius:999px;background:linear-gradient(180deg,#5c8a66,#3b6247);color:#f4fff2;font:700 12px/1.2 Interface,sans-serif;font-style:normal}
.vg-shop-foot{margin:10px 0 0;text-align:center;font-size:11px;color:#8d8668}
/* Purchase confirmation, payment status and delivery use the store's existing sheet. */
.vg-purchase-sheet{max-height:calc(100dvh - 18px);display:flex;flex-direction:column;overflow:hidden}
.vg-purchase-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 2px 2px;scrollbar-width:thin}
.vg-purchase-hero{display:grid;justify-items:center;gap:10px;padding:18px 6px 10px;text-align:center}
.vg-purchase-hero>img{width:78px;height:86px;object-fit:contain;filter:drop-shadow(0 4px 5px #6a542329)}
.vg-purchase-hero.is-skin>img{width:140px;height:170px}
.vg-purchase-hero h3{margin:0;color:#344d39;font:800 19px/1.25 Interface,sans-serif;overflow-wrap:anywhere}
.vg-purchase-detail,.vg-purchase-recipient{margin:10px 4px;color:#6c674f;font:500 12px/1.55 Interface,sans-serif;text-align:center;overflow-wrap:anywhere}
.vg-purchase-recipient{padding:10px 4px;border-top:1px solid #e2d5b0}
.vg-purchase-gift{display:grid;justify-items:center;gap:5px;margin:4px 0 16px;color:#63754d}
.vg-purchase-gift b{font:800 30px/1 Interface,sans-serif;color:#344d39}
.vg-purchase-gift span{font-size:12px}
.vg-purchase-items{display:grid;gap:6px;margin:8px 2px 12px}
.vg-purchase-items>span{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 10px;border:1px solid #e1d3ad;border-radius:12px;background:#fffdf48a;text-align:left}
.vg-purchase-items img{width:34px;height:34px;object-fit:contain;flex:none}
.vg-purchase-items b{flex:1;font:650 12px/1.3 Interface,sans-serif;color:#554d35;overflow-wrap:anywhere}
.vg-purchase-items small{font-weight:700;color:#3b6247;flex:none}
.vg-purchase-total{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 2px;padding:14px 12px;border:1px solid #dbc89a;border-radius:14px;background:linear-gradient(#fffdf4,#eee1bd);box-shadow:inset 0 0 0 2px #fffaf2;color:#75633f}
.vg-purchase-total>span{font-size:12px}.vg-purchase-total strong{font:800 20px/1.25 Interface,sans-serif;color:#344d39;text-align:right;overflow-wrap:anywhere}
.vg-purchase-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:8px;margin:14px 2px 4px}
.vg-purchase-actions button,.vg-purchase-open,.vg-purchase-check{min-width:0;min-height:46px;white-space:normal;border-radius:14px;font-size:13px;line-height:1.25;padding:10px}
.vg-purchase-open,.vg-purchase-check{display:block;width:calc(100% - 4px);margin:10px 2px}
.vg-purchase-legal{margin:12px 6px 0;color:#8a8062;text-align:center;font:500 10px/1.5 Interface,sans-serif}
.vg-purchase-legal a{color:#42684a;text-decoration:underline}
.vg-purchase-hint,.vg-payment-test{padding:9px 12px;border:1px solid #e1cb91;border-radius:12px;background:#fff2cd;color:#806333;font:600 11px/1.45 Interface,sans-serif;text-align:center}
.vg-payment-test{margin:10px 2px 0;flex:none}
.vg-purchase-history{display:block;margin:12px auto 0;padding:6px 10px;border:0;background:none;color:#567050;font:650 12px/1.3 Interface,sans-serif;text-decoration:underline}
.vg-purchase-result{max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box}
.vg-purchase-result .vg-purchase-items{width:100%;box-sizing:border-box}
.vg-purchase-result.is-success .vg-shop-seal{box-shadow:0 0 0 4px #fffaf0,0 0 0 5px #95b087,0 4px 12px #4a783b29}
.vg-purchase-orders{display:grid;gap:8px;margin:14px 0}
.vg-purchase-orders>button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid #e0d2a8;border-radius:14px;background:#fffaf1;text-align:left;color:#344d39}
.vg-purchase-orders img{width:42px;height:48px;object-fit:contain;flex:none}.vg-purchase-orders>button>span{flex:1;min-width:0}
.vg-purchase-orders b{display:block;font:700 12px/1.3 Interface,sans-serif;overflow-wrap:anywhere}.vg-purchase-orders small{display:block;margin-top:4px;font:500 10px/1.35 Interface,sans-serif;color:#82775a}
.vg-purchase-orders strong{font:750 12px/1.3 Interface,sans-serif;white-space:nowrap}
.vg-purchase-money{display:inline-block;white-space:nowrap}
.vg-purchase-benefits{margin:12px 4px;padding-left:22px;color:#5b654b;font:550 12px/1.6 Interface,sans-serif;text-align:left}
.vg-support-gift-info,.vg-weekly-stock{margin:12px 2px;padding:10px 12px;border:1px solid #c4cba5;border-radius:12px;background:#edf2e1;color:#476044;font:550 11px/1.5 Interface,sans-serif;text-align:center}
.vg-weekly-stock b,.vg-weekly-stock small{display:block}.vg-weekly-stock small{margin-top:3px;font-size:10px;color:#6e785e}
.vg-weekly-stock button{border:0;background:none;padding:0;color:#466347;text-decoration:underline;font:inherit}
.vg-support-gift-entry{display:block;box-sizing:border-box;width:calc(100% - 4px);margin:12px 2px;padding:12px;border:1px solid #b8c49b;border-radius:14px;background:linear-gradient(#f4f7e7,#e0e9ca);color:#3c5b3b;font:700 12px/1.4 Interface,sans-serif}
.vg-support-choices{display:grid;gap:10px;margin:18px 2px}
.vg-support-choice{display:flex;align-items:center;gap:12px;min-width:0;min-height:76px;padding:12px;border:1px solid #d6c79f;border-radius:16px;background:linear-gradient(#fffdf5,#f2e8cc);color:#4c543b;text-align:left;box-shadow:inset 0 0 0 2px #fff9e8}
.vg-support-choice img{width:48px;height:48px;object-fit:contain;flex:none}.vg-support-choice>span{flex:1;min-width:0}.vg-support-choice b{display:block;font:750 13px/1.35 Interface,sans-serif;overflow-wrap:anywhere}.vg-support-choice small{display:block;margin-top:5px;color:#8b7956;font:550 11px/1.3 Interface,sans-serif}
.vg-support-choice i{width:18px;height:18px;border:1px solid #b4b897;border-radius:50%;background:#fff9e6;flex:none;box-shadow:inset 0 0 0 4px #fff9e6}
.vg-support-choice[aria-pressed=true]{border-color:#71915d;background:linear-gradient(#f4f8e9,#e4edce);box-shadow:inset 0 0 0 2px #f9ffef,0 0 0 1px #71915d}.vg-support-choice[aria-pressed=true] i{background:#547848;border-color:#547848}
/* Uniform store cards: the amount, stock and actions belong to the same card. */
#modal-root .city-modal .city-privilege-list{align-items:stretch!important}
#modal-root .city-modal .city-offer{align-self:stretch!important;box-sizing:border-box}
#modal-root .city-modal .city-offer .city-offer-foot{justify-content:center!important;margin-top:auto!important}
#modal-root .city-modal .city-offer .city-offer-price{position:relative;justify-content:center!important;width:100%;text-align:center}
#modal-root .city-modal .city-offer .city-offer-price s{position:absolute;right:0;bottom:1px}
#modal-root .city-modal .city-offer .vg-weekly-stock,.vg-purchase-sheet .vg-weekly-stock{padding:8px 2px;margin:6px 0;border:0;border-top:1px solid #e8dfc5;border-bottom:1px solid #e8dfc5;border-radius:0;background:none;box-shadow:none;color:#657452}
.vg-weekly-stock>span{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vg-weekly-stock>span>small{font:600 11px/1.4 Interface,sans-serif;color:#6e785e;text-align:left}
.vg-weekly-stock>span>b{font:800 18px/1.2 Interface,sans-serif;color:#365c49;white-space:nowrap}
.vg-weekly-stock i{font-style:normal;font-size:12px;font-weight:550;color:#879276}
.vg-weekly-stock>small{font:500 10px/1.4 Interface,sans-serif;color:#8b8165;text-align:left}
/* Keep wheel/touch scrolling while hiding native bars throughout the game UI. */
html,body,body *{scrollbar-width:none!important;-ms-overflow-style:none}
::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
@media(prefers-reduced-motion:reduce){.vg-shop-shade,.vg-shop-topup,.vg-shop-note{transition:none}}
/* 10.11.2026: a grey skill in the enemies' turn — the tap reaches its row and opens the card */
#battle-root .combat-skill-row .combat-skill-cast:disabled{pointer-events:none}
#battle-root .combat-skill-row{cursor:pointer}

/* 10.11.2026: the four documents as tabs of one «Правила» sheet */
.vg-doc-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 10px;padding:3px;border:1px solid #e3d6b0;border-radius:12px;background:#f6efdc}
.vg-doc-tabs button{min-height:32px;padding:4px 2px;border:0;border-radius:9px;background:transparent;font:650 11.5px/1.1 Interface,sans-serif;color:#7a6d48;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background .2s ease,color .2s ease}
.vg-doc-tabs button[aria-pressed="true"]{background:linear-gradient(180deg,#5c8a66,#3b6247);color:#f4fff2;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}

/* 10.11.2026, round 4: the drum is made of two real copies of the button — «Атака» and «Ждать» look exactly as the button itself */
#battle-actions .vg-drum{position:absolute;z-index:4;overflow:hidden;pointer-events:none;contain:paint}
#battle-actions .vg-drum>.battle-action{position:absolute!important;inset:0!important;margin:0!important;width:100%!important;height:100%!important;max-width:none!important;transition:none!important;animation:none!important;will-change:transform}
#battle-actions .vg-drum.is-settling>.battle-action{transition:transform .21s cubic-bezier(.3,.9,.3,1)!important}
#battle-actions .battle-action.is-drum-hidden{visibility:hidden}
.vg-comfort-shade.is-closing{opacity:0;pointer-events:none}
.vg-comfort-shade.is-closing .vg-comfort{transform:translateY(100%)}
.vg-comp-box{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #d9e6cf;border-radius:12px;background:#f4faef;text-align:left}
.vg-comp-box b{display:block;margin-bottom:2px;font:700 12px/1.2 Interface,sans-serif;color:#2f4a36}
.vg-comp-box p{margin:0;font-size:11.5px;line-height:1.4;color:#4f5a48}
.vg-comp-box.is-other{border-color:#e6dcc0;background:#fffdf6}.vg-comp-box.is-other p{color:#7a7560}
.vg-comp .vg-comp-gift{width:76px;height:76px}.vg-comp .vg-comp-gift img{width:58px;height:58px}
.vg-comp{max-height:calc(100% - 20px);overflow-y:auto;scrollbar-width:none}

.vg-comp-gifts{display:flex;justify-content:center;gap:10px;width:100%}
.vg-comp-gift-card{flex:1;max-width:150px;display:grid;justify-items:center;gap:2px;padding:6px 4px 8px;border:1px solid #ead9a6;border-radius:14px;background:radial-gradient(circle at 50% 30%,#fffdf3,#f6ebcb)}
.vg-comp-gift-card small{font-size:10px;line-height:1.2;color:#8d8668;text-align:center}

/* 10.11.2026: the chat or friends panel returns softly after an item card opened from a player's card */
#modal-root .vg-soft-return{animation:vg-soft-return .32s cubic-bezier(.2,.9,.3,1) both}
@keyframes vg-soft-return{from{opacity:0;transform:translateY(14px)}}
#modal-root .item-dossier-modal{animation:vg-soft-return .26s cubic-bezier(.2,.9,.3,1) both}

#battle-actions .vg-drum.is-leaving{opacity:0;transition:opacity .16s ease}

/* 10.11.2026: an enemy has only the HP bar — the panel keeps the same height for every target (no jump when switching), the bar sits in the middle instead of leaving an empty row below */
.card-field #battle-root .spell-panel-battle #combat-profile.enemy-profile .combat-vitals{justify-content:center}

/* 10.11.2026: the enemy portrait fills its frame evenly (it was fitted whole and looked cut at the edge with empty space below) */
.card-field #battle-root #combat-profile>img.enemy-portrait{object-fit:cover!important;object-position:50% 38%!important;padding:0!important;border:1px solid #d8caaa;border-radius:9px;background:#fff9e9;box-shadow:inset 0 0 0 2px #fffdf4}

/* 10.11.2026: a player's profile — location tag under the name, health and resource bars on their own row, a larger figure */
.battle-inspection header .inspection-place-tag{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:3px 10px 3px 7px;border:1px solid #d6c99d;border-radius:999px;background:linear-gradient(180deg,#fffaf0,#f1e7c8);box-shadow:inset 0 1px 0 #fff;font:650 11.5px/1.2 Interface,sans-serif;color:#4f5f45;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.battle-inspection header .inspection-place-tag svg{flex:none;width:14px;height:14px;color:#6f8f5c}
.battle-inspection header>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.inspection-vitals{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.inspection-vitals.is-single{grid-template-columns:1fr}
.inspection-vital{display:grid;gap:5px;padding:7px 9px 8px;border:1px solid #d5ddbf;border-radius:9px;background:#f5f8ec}
.inspection-vital>span{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.inspection-vital b{font:700 11px/1.2 Interface,sans-serif;color:#4f5f45}
.inspection-vital em{font:700 11.5px/1.2 Interface,sans-serif;font-style:normal;color:#2f3d2a;white-space:nowrap}
.inspection-vital>i{display:block;height:7px;border-radius:4px;background:#e3e6d6;overflow:hidden;box-shadow:inset 0 1px 1px rgba(0,0,0,.08)}
.inspection-vital>i>s{display:block;height:100%;border-radius:inherit;text-decoration:none;background:linear-gradient(90deg,#c9584a,#de7a62)}
.inspection-vital.is-mana>i>s{background:linear-gradient(90deg,#3f74c4,#6aa0e8)}
.inspection-vital.is-might>i>s{background:linear-gradient(90deg,#c08a2c,#e2b350)}
.battle-inspection .inspection-loadout .inspection-figure>img{inset:16px 6px!important;left:6px!important;width:calc(100% - 12px)!important;height:calc(100% - 32px)!important}/* 10.11.2026: the profile facts — four even columns, two rows, same frame as the bars */
/* 11.11.2026: nine facts — three rows of three, so «Физ. урон» fits its cell */.inspection-facts.is-wide{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.inspection-facts.is-wide>span{grid-template-columns:16px auto;column-gap:4px;padding:7px 2px 6px;border-radius:9px}
.inspection-facts.is-wide img{width:15px;height:15px}
.inspection-facts.is-wide b{font-size:11.5px;white-space:nowrap}
.inspection-facts.is-wide small{font-size:8.5px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inspection-vitals{margin-top:6px;gap:6px}/* 10.11.2026, round 2: health and resource as the game's own bars — icon, name, value, a framed track */
.inspection-vital{gap:6px;padding:8px 10px 9px;border:1px solid #e0d6b6;border-radius:11px;background:linear-gradient(180deg,#fffdf6,#f6efdc);box-shadow:inset 0 0 0 2px #fffefa}
.inspection-vital>span{align-items:center;justify-content:flex-start}
.inspection-vital em{margin-left:auto}
.inspection-vital-ico{flex:none;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#ff9a86,#c9493b);box-shadow:0 0 0 2px #fff,0 1px 2px rgba(0,0,0,.2)}
.inspection-vital.is-mana .inspection-vital-ico{background:radial-gradient(circle at 40% 35%,#9cc6ff,#2f63b3)}
.inspection-vital.is-might .inspection-vital-ico{background:radial-gradient(circle at 40% 35%,#ffd77d,#b77d1f)}
.inspection-vital b{font-size:11.5px;color:#3f4b36}
.inspection-vital>i{height:9px;border-radius:5px;background:#e9e3cf;box-shadow:inset 0 1px 2px rgba(60,40,10,.18),0 0 0 1px #ddd2b0}
.inspection-vital>i>s{box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
/* 10.11.2026: battery — nothing moves in a hidden game; on phones (perf-lite) the endless decorations stand still */
html.vg-page-hidden *,html.vg-page-hidden *::before,html.vg-page-hidden *::after{animation-play-state:paused!important}
html.perf-lite :is(.offering-launch-art,.offering-launch-glow,.offering-rim,.offering-ring,.offering-result-rays,.offering-result-halo,.offering-go.is-ready,.vg-comp-glow,.vg-pv-strip,.vg-pv-hand,.offering-core.is-ready){animation:none!important}
html.perf-lite .offering-veins .vein.is-lit:not(.is-flowing){animation:none!important}
html.perf-lite .offering-launch-go::after,html.perf-lite .offering-actions .offering-go.is-ready::after{animation:none!important}
html.perf-lite .offering-panel.is-casting .offering-ring{animation:offering-ring-spin 1.6s linear infinite!important}
html.perf-lite .offering-panel.is-casting .offering-rim{animation:offering-rim 2.4s linear infinite!important}/* 10.11.2026: the two bars never leave the window — columns can shrink, the name gives way to the numbers */
.inspection-vitals{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.inspection-vitals.is-single{grid-template-columns:minmax(0,1fr)!important}
.inspection-vital{min-width:0;padding:7px 8px 8px}
.inspection-vital>span{min-width:0;gap:5px}
.inspection-vital b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.inspection-vital em{flex:none;font-size:11px}
.inspection-vital-ico{width:14px;height:14px}
/* 11.11.2026: the note about gear that became «Устаревшая» (same frame as the compensation note) */
.vg-legacy-shade{position:fixed;inset:0;z-index:9400;display:grid;place-items:center;padding:20px;background:rgba(30,26,14,.45);opacity:0;transition:opacity .24s ease}
.vg-legacy-shade.is-open{opacity:1}
.vg-legacy{width:min(370px,100%);max-height:calc(100% - 20px);overflow-y:auto;scrollbar-width:none;box-sizing:border-box;display:grid;gap:8px;padding:18px;border:1px solid #d9c690;border-radius:22px;background:radial-gradient(120% 60% at 50% 0%,#f5f8ea,#fffaf0 45%,#f4e9cc);box-shadow:inset 0 0 0 3px rgba(255,255,255,.6),inset 0 0 0 4px #ecdfb9,0 12px 34px rgba(40,30,10,.35);transform:scale(.94);transition:transform .28s cubic-bezier(.2,1.2,.4,1)}
.vg-legacy-shade.is-open .vg-legacy{transform:none}
.vg-legacy h3{margin:0;text-align:center;font:800 17px/1.25 Interface,sans-serif;color:#2f4a36}
.vg-legacy>p{margin:0;font-size:12px;line-height:1.45;color:#5f6553;text-align:center}
.vg-legacy-list{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.vg-legacy-list li{display:flex;align-items:center;gap:9px;padding:5px 8px;border:1px solid #e6dcc0;border-radius:11px;background:#fffdf6}
.vg-legacy-list img{width:34px;height:34px;object-fit:contain;filter:grayscale(.35) sepia(.2)}
.vg-legacy-list b{display:block;font:700 12px/1.2 Interface,sans-serif;color:#4c4430}
.vg-legacy-list small{font-size:10.5px;color:#8a8266}
.vg-legacy button{min-height:44px;border-radius:14px}
