/* Микровзаимодействия вау-пакета: отклик нажатия в то же касание, искры. */
#mv-root button, #mv-root [data-cell] { transition: transform .08s ease, filter .08s ease; }
#mv-root button:active, #mv-root .mv-press { transform: scale(.97); filter: brightness(.92); }
.mv-spark { position: fixed; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; z-index: 46; box-shadow: 0 0 8px 2px rgba(255,215,106,.5); }

/* ГризлиГрад, поток 2: ландшафтный HUD и создание персонажа.
/* Первый экран вау-пакета: загрузка силуэтом города, без чёрного экрана */
html, body { background: #141d27; }
#mv-root #mv-load { background: linear-gradient(180deg, rgba(19,30,43,.94) 0%, rgba(32,56,79,.90) 55%, rgba(81,116,143,.88) 82%, rgba(42,66,88,.94) 100%); transition: opacity .5s ease, background .8s ease; overflow: hidden; }
#mv-load.mv-load-out { opacity: 0; pointer-events: none; }
#mv-load .mv-card { background: rgba(13,20,29,.55); position: relative; z-index: 1; }
#mv-load.mv-load-live { background: linear-gradient(180deg, rgba(10,17,26,.42) 0%, rgba(10,17,26,.12) 45%, rgba(10,17,26,.34) 100%); }
#mv-load-place { color: #a8dcf2; font-size: 15px; margin: 2px 0 0; min-height: 18px; }
   Токены: панель rgba(18,16,12,.78) HUD и .94 крупные, рамка 1px #E8B34B,
   текст крем #F8EDD6, вторичный #CFC7AE, HP #E5484D, MP #3E7CC9, XP золото. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0d1526; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #F8EDD6; }
#mv-root { position: fixed; inset: 0; }
#mv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.mv-hidden { display: none !important; }
button { font-family: inherit; }
/* v114: единый размер всех кнопок панели и меню (слово владельца 05.11:
   панель и меню в одной системе, размер один на всех ширинах). */
:root { --uibtn: 48px; }
@media (max-width: 900px) { :root { --uibtn: 44px; } }
@media (max-height: 520px) { :root { --uibtn: 42px; } }
/* Угловые акценты крупных панелей */
.mv-grand { position: relative; }
.mv-grand::before, .mv-grand::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2; }
.mv-grand::before { top: -1px; left: -1px; border-top: 2px solid #E8B34B; border-left: 2px solid #E8B34B; }
.mv-grand::after { bottom: -1px; right: -1px; border-bottom: 2px solid #E8B34B; border-right: 2px solid #E8B34B; }
/* ---------- Панель героя ---------- */
#mv-hero { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: calc(8px + env(safe-area-inset-left)); width: 218px; background: rgba(18,16,12,.78); border: 1px solid #E8B34B; padding: 7px 9px 8px; z-index: 5; }
.mv-hero-top { display: flex; gap: 8px; align-items: center; }
#mv-portrait { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; overflow: hidden; border: 2px solid #E8B34B; background: #241f16; }
#mv-portrait svg { display: block; width: 100%; height: 100%; }
.mv-hero-info { min-width: 0; }
#mv-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mv-name-sub { font-size: 11px; color: #CFC7AE; white-space: nowrap; }
#mv-wallet { font-size: 12px; color: #E8B34B; white-space: nowrap; }
.mv-bar-row { display: flex; align-items: center; margin-top: 5px; }
.mv-track { position: relative; flex: 1; height: 14px; background: rgba(248,237,214,.14); overflow: hidden; }
.mv-track > div { height: 100%; width: 100%; transition: width .25s ease; }
.mv-hp > div { background: #E5484D; }
.mv-mp > div { background: #3E7CC9; }
.mv-cast > div { background: #E8B34B; }
.mv-bar-val { position: absolute; right: 5px; top: 0; line-height: 14px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; }
#mv-xp-track { height: 3px; background: rgba(248,237,214,.14); margin-top: 5px; }
#mv-xp-fill { height: 100%; width: 0%; background: #E8B34B; transition: width .25s ease; }
#mv-loot { margin-top: 4px; font-size: 11px; line-height: 1.3; color: #7dffb0; }
/* ---------- Цель ---------- */
#mv-target { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: 224px; background: rgba(18,16,12,.78); border: 1px solid #E8B34B; padding: 6px 9px 7px; z-index: 5; }
.mv-target-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
#mv-target-lvl { color: #CFC7AE; font-weight: 400; font-size: 12px; }
#mv-target .mv-cast { margin-top: 3px; height: 5px; }
#mv-place { position: absolute; top: calc(76px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: rgba(18,16,12,.78); border: 1px solid rgba(232,179,75,.6); padding: 5px 14px; font-size: 14px; z-index: 4; pointer-events: none; white-space: nowrap; }
/* ---------- Миникарта и трекер ---------- */
#mv-minimap { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); width: 120px; height: 120px; border-radius: 50%; border: 2px solid #E8B34B; background: rgba(10,14,24,.8); z-index: 4; cursor: pointer; }
#mv-tracker { position: absolute; top: calc(136px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); width: 196px; background: rgba(18,16,12,.78); border: 1px solid #E8B34B; padding: 7px 9px; z-index: 4; cursor: pointer; }
.mv-tracker-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#mv-tracker-title { font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #E8B34B; }
#mv-tracker-arrow { color: #E8B34B; font-size: 17px; line-height: 1; display: inline-block; }
#mv-tracker-text { font-size: 12px; line-height: 1.35; margin-top: 3px; }
#mv-tracker.mv-collapsed #mv-tracker-text { display: none; }
/* Портрет на мобильном закрыт целиком: игра только в горизонтали
   (слово владельца 05.11; раньше здесь была закрываемая подсказка). */
#mv-rotate { position: fixed; inset: 0; z-index: 900; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #101922; color: #eaf7ff; text-align: center; padding: 24px; }
#mv-rotate .mv-rotate-t { font-size: 19px; font-weight: 700; }
#mv-rotate .mv-rotate-s { font-size: 14px; color: #9fc6dd; max-width: 300px; }
@media (orientation: portrait) and (max-width: 1024px) and (pointer: coarse) {
  #mv-rotate { display: flex; }
}
/* ---------- Чат ---------- */
#mv-chat { position: absolute; left: calc(10px + env(safe-area-inset-left)); bottom: calc(152px + env(safe-area-inset-bottom)); width: 252px; background: rgba(18,16,12,.94); border: 1px solid rgba(232,179,75,.65); z-index: 6; }
#mv-chat-tabs { display: flex; }
.mv-chat-tab { flex: 1; height: 30px; min-height: 30px; border: none; border-right: 1px solid rgba(232,179,75,.25); background: transparent; color: #CFC7AE; font-size: 11px; cursor: pointer; }
.mv-chat-tab.mv-on { color: #221a08; background: #E8B34B; font-weight: 700; }
#mv-chat-lines { padding: 5px 8px 6px; font-size: 11.5px; line-height: 1.4; min-height: 52px; cursor: pointer; }
.mv-chat-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-chat-line.mv-chat-empty { color: #CFC7AE; white-space: normal; }
#mv-chat.mv-open { width: min(430px, 92vw); height: 50vh; display: flex; flex-direction: column; z-index: 9; }
#mv-chat.mv-open #mv-chat-lines { flex: 1; overflow-y: auto; }
#mv-chat.mv-open .mv-chat-line { white-space: normal; }
#mv-chat-input-row { display: flex; gap: 6px; padding: 6px; }
#mv-chat-input { flex: 1; height: 44px; background: #10182c; border: 1px solid rgba(248,237,214,.3); color: #CFC7AE; padding: 0 10px; font-size: 14px; }
#mv-chat-send { height: 44px; padding: 0 12px; background: #2a251c; border: 1px solid rgba(232,179,75,.5); color: #CFC7AE; }
#mv-chat-note { padding: 0 8px 7px; font-size: 11px; color: #CFC7AE; line-height: 1.35; }
body.mv-chat-open #mv-stick { display: none !important; }
/* ---------- Джойстик ---------- */
#mv-stick { display: none; position: absolute; left: calc(18px + env(safe-area-inset-left)); bottom: calc(20px + env(safe-area-inset-bottom)); width: 124px; height: 124px; border-radius: 50%; background: rgba(248,237,214,.10); border: 2px solid rgba(248,237,214,.35); z-index: 5; touch-action: none; }
#mv-stick-dot { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(232,179,75,.75); }
/* ---------- Панель действий ---------- */
#mv-actionbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: stretch; gap: 6px; background: rgba(18,16,12,.78); border: 1px solid #E8B34B; padding: 6px; z-index: 5; touch-action: none; }
#mv-actionbar-cells { display: grid; grid-template-columns: repeat(8, 48px); gap: 5px; }
.mv-key { position: absolute; top: 1px; left: 3px; font-size: 8px; line-height: 1; color: #93a7b8; pointer-events: none; z-index: 2; }
.mv-cell { position: relative; width: var(--uibtn); height: var(--uibtn); border: 1px solid rgba(232,179,75,.55); background: rgba(35,30,20,.9); color: #F8EDD6; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; overflow: hidden; padding: 0; }
.mv-cell .mv-cell-g { font-size: 17px; line-height: 1; }
.mv-cell .mv-cell-t { font-size: 8px; line-height: 1.0; max-width: 46px; white-space: normal; overflow: hidden; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mv-cell.mv-on { background: #E8B34B; color: #221a08; }
.mv-cell:disabled { opacity: .42; cursor: default; }
.mv-cell .mv-cell-badge { position: absolute; top: 2px; right: 3px; font-size: 10px; font-weight: 700; color: #E8B34B; }
.mv-cell .mv-cd { position: absolute; inset: 0; pointer-events: none; }
.mv-cell .mv-cd-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
#mv-pages { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mv-page-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(248,237,214,.3); }
.mv-page-dot.mv-on { background: #E8B34B; }
/* ---------- Кластер справа снизу ---------- */
/* ---------- Панели, тост, журнал ---------- */
#mv-panel { position: absolute; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); max-height: 62vh; overflow: auto; background: rgba(18,16,12,.94); border: 1px solid #E8B34B; padding: 14px 16px; z-index: 8; }
#mv-panel h3 { font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; margin-bottom: 6px; color: #E8B34B; }
#mv-panel p { font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
#mv-panel .mv-prow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#mv-panel button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(232,179,75,.55); background: #2a251c; color: #F8EDD6; font-size: 14px; cursor: pointer; }
#mv-panel button.mv-primary { background: #E8B34B; color: #221a08; font-weight: 700; }
#mv-panel button:disabled { opacity: .45; cursor: default; }
#mv-panel .mv-bar { height: 12px; background: #2a251c; overflow: hidden; margin: 8px 0; }
#mv-panel .mv-bar > div { height: 100%; background: #ff7a2f; width: 0%; }
#mv-toast { position: absolute; left: 50%; bottom: calc(190px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(18,16,12,.94); border: 1px solid rgba(55,224,200,.6); color: #d9fff7; padding: 9px 16px; font-size: 14px; z-index: 9; pointer-events: none; max-width: 92vw; text-align: center; }
#mv-journal .mv-j-main { font-size: 16px; font-weight: 700; line-height: 1.4; color: #ffe9b0; background: rgba(232,179,75,.13); border: 1px solid rgba(232,179,75,.55); padding: 10px 12px; margin-bottom: 10px; }
.mv-j-sec { margin-bottom: 10px; }
.mv-j-sec h4 { font-size: 13px; color: #E8B34B; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.mv-j-line { font-size: 13px; line-height: 1.4; padding: 5px 8px; background: rgba(248,237,214,.05); margin-bottom: 5px; }
.mv-j-line p { font-size: 13px; margin: 3px 0; }
.mv-j-reward { font-size: 12px; color: #b8e6c8; margin-top: 2px; }
.mv-j-step { font-size: 13px; line-height: 1.4; padding: 6px 8px; margin-bottom: 5px; border-left: 4px solid rgba(248,237,214,.25); background: rgba(248,237,214,.05); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.mv-j-step .mv-j-reward { flex: 1 1 100%; }
.mv-step-done { border-left-color: #53d769; color: #b8e6c8; }
.mv-step-cur { border-left-color: #E8B34B; background: rgba(232,179,75,.14); color: #ffe9b0; }
.mv-step-next { opacity: .65; }
.mv-j-zone { font-size: 13px; padding: 5px 8px; margin-bottom: 4px; border-left: 4px solid #9aa3b2; background: rgba(248,237,214,.05); display: flex; gap: 8px; }
.mv-z-green { border-left-color: #53d769; }
.mv-z-yellow { border-left-color: #E8B34B; }
.mv-z-red { border-left-color: #E5484D; }
.mv-j-herald { border: 1px solid rgba(55,224,200,.55); background: rgba(55,224,200,.08); padding: 10px 12px; margin-bottom: 10px; }
.mv-j-herald b { color: #7dffb0; }
#mv-edge-arrow { position: absolute; left: 50%; top: 50%; z-index: 6; font-size: 34px; line-height: 1; color: #E8B34B; text-shadow: 0 0 8px rgba(0,0,0,.85), 0 0 3px #000; pointer-events: none; transform: translate(-50%, -50%); }
/* ---------- Большая карта ---------- */
#mv-bigmap { position: absolute; inset: 0; z-index: 11; display: flex; align-items: center; justify-content: center; background: rgba(5,6,10,.72); }
.mv-bigmap-box { background: rgba(18,16,12,.94); border: 1px solid #E8B34B; padding: 10px; }
.mv-bigmap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mv-bigmap-head span { font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .05em; color: #E8B34B; font-size: 15px; }
#mv-bigmap-close { width: 44px; height: 44px; border: 1px solid #E8B34B; background: transparent; color: #F8EDD6; font-size: 22px; cursor: pointer; }
#mv-bigmap-canvas { display: block; background: #0a0e18; max-width: 92vw; max-height: 82vh; }
/* ---------- Создание персонажа ---------- */
#mv-create { position: absolute; inset: 0; z-index: 10; display: grid; grid-template-columns: 300px 1fr 312px; grid-template-rows: 1fr auto; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); background: rgba(8,11,20,.38); }
.mv-create-left, .mv-create-right { background: rgba(18,16,12,.94); border: 1px solid #E8B34B; padding: 6px 8px; overflow-y: auto; min-height: 0; }
.mv-create-cols { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.mv-create-right { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; align-content: start; }
.mv-rand { width: 100%; min-height: 28px; }
#mv-skin-pal .mv-swatch, #mv-hair-pal .mv-swatch, #mv-outfit-row .mv-swatch { width: 24px; height: 24px; }
.mv-csec-wide { grid-column: 1 / -1; }
.mv-create-h { font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; color: #E8B34B; margin: 4px 0 3px; }
.mv-create-h:first-child { margin-top: 0; }
.mv-sel-name { color: #CFC7AE; text-transform: none; letter-spacing: 0; font-family: system-ui, sans-serif; }
.mv-race, .mv-branch { display: flex; gap: 6px; align-items: center; width: 100%; min-height: 44px; margin-bottom: 5px; padding: 4px 6px; border: 1px solid rgba(248,237,214,.3); background: #241f16; color: #F8EDD6; cursor: pointer; text-align: left; }
.mv-race.mv-sel, .mv-branch.mv-sel { border-color: #E8B34B; background: rgba(232,179,75,.22); }
.mv-race-port { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; overflow: hidden; border: 1px solid #E8B34B; }
.mv-race-port svg { display: block; width: 100%; height: 100%; }
.mv-race-tx, .mv-branch { flex-direction: column; align-items: flex-start; justify-content: center; }
.mv-race-tx { display: flex; flex-direction: column; }
.mv-race-tx b, .mv-branch b { font-size: 13px; }
.mv-race-tx i, .mv-branch i { font-style: normal; font-size: 9.5px; color: #CFC7AE; line-height: 1.25; }
.mv-create-note { font-size: 10px; color: #CFC7AE; line-height: 1.3; margin-top: 2px; }
#mv-create-center { position: relative; min-width: 0; touch-action: none; }
.mv-create-title { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .12em; font-size: 22px; color: #E8B34B; text-shadow: 0 2px 8px #000; pointer-events: none; }
.mv-create-sub { position: absolute; top: 32px; left: 0; right: 0; text-align: center; font-size: 12px; color: #F8EDD6; text-shadow: 0 1px 5px #000; pointer-events: none; }
#mv-create-summary { position: absolute; top: 56px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: #ffe9b0; text-shadow: 0 1px 5px #000; pointer-events: none; padding: 0 8px; }
.mv-create-rot { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; color: #CFC7AE; text-shadow: 0 1px 4px #000; }
.mv-create-rot button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E8B34B; background: rgba(18,16,12,.85); color: #F8EDD6; font-size: 16px; cursor: pointer; }
.mv-row { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.mv-chip { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(248,237,214,.35); background: #241f16; color: #F8EDD6; font-size: 14px; cursor: pointer; }
.mv-create-right .mv-chip, .mv-create-bottom .mv-chip { min-height: 32px; font-size: 11px; padding: 0 5px; }
.mv-chip.mv-sel { background: #E8B34B; color: #221a08; font-weight: 700; }
.mv-pal { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 2px; }
.mv-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(248,237,214,.35); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; background: #241f16; color: #F8EDD6; }
.mv-swatch.mv-sel { border-color: #E8B34B; box-shadow: 0 0 0 2px rgba(232,179,75,.45); }
.mv-swatch svg { display: block; width: 22px; height: 22px; }
#mv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.mv-stat { display: grid; grid-template-columns: 27px 1fr 20px; align-items: center; gap: 5px; font-size: 11px; }
.mv-stat .mv-stat-nm { display: none; }
.mv-stat .mv-stat-ic { font-size: 9px; font-weight: 800; color: #E8B34B; border: 1px solid rgba(232,179,75,.5); text-align: center; padding: 1px 0; }
.mv-stat .mv-stat-bar { height: 4px; background: rgba(248,237,214,.14); }
.mv-stat .mv-stat-bar > div { height: 100%; background: #E8B34B; transition: width .25s ease; }
.mv-stat .mv-stat-val { text-align: right; font-weight: 700; }
.mv-stat.mv-changed .mv-stat-val { color: #E8B34B; }
.mv-create-bottom { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; background: rgba(18,16,12,.94); border: 1px solid #E8B34B; padding: 7px 10px; }
.mv-name-block { flex: 1; min-width: 0; }
.mv-name-block label { display: block; font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #E8B34B; margin-bottom: 4px; }
.mv-name-row { display: flex; gap: 8px; }
#mv-inname { flex: 1; min-width: 120px; height: 44px; border: 1px solid rgba(248,237,214,.35); background: #10182c; color: #F8EDD6; font-size: 16px; padding: 0 12px; }
#mv-name-status { font-size: 11px; color: #CFC7AE; margin-top: 3px; line-height: 1.25; }
.mv-enter-block { width: 250px; flex: 0 0 250px; }
.mv-big { width: 100%; height: 56px; border: none; background: #E8B34B; color: #221a08; font-size: 17px; font-weight: 800; cursor: pointer; }
.mv-big:disabled { opacity: .45; cursor: default; }
#mv-enter-reason { font-size: 11.5px; color: #CFC7AE; margin-top: 4px; text-align: center; }
.mv-err { color: #ff9a7a; font-size: 13px; min-height: 0; margin-top: 2px; text-align: center; }
/* ---------- Ворота и загрузка ---------- */
#mv-gate, #mv-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,11,20,.55); z-index: 12; padding: 12px; }
.mv-card { background: rgba(18,16,12,.94); border: 1px solid #E8B34B; padding: 20px; width: min(520px, 100%); max-height: 92vh; overflow: auto; text-align: center; }
.mv-card h1 { font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .08em; font-size: 26px; color: #E8B34B; margin-bottom: 6px; }
.mv-sub { font-size: 14px; color: #CFC7AE; margin-bottom: 14px; line-height: 1.4; }
/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  #mv-hero { width: 200px; }
  #mv-tracker { width: 176px; }
  #mv-chat { width: 224px; }
}
@media (max-width: 760px) {
  #mv-hero { width: 178px; padding: 6px 7px; }
  #mv-portrait { width: 48px; height: 48px; flex-basis: 48px; }
  #mv-name { font-size: 13px; }
  #mv-minimap { width: 104px; height: 104px; }
  #mv-tracker { top: calc(120px + env(safe-area-inset-top)); width: 158px; }
  #mv-target { width: 190px; }
  #mv-chat { width: 200px; bottom: calc(140px + env(safe-area-inset-bottom)); }
  #mv-stick { width: 104px; height: 104px; }
  #mv-panel { max-height: 58vh; }
  #mv-edge-arrow { font-size: 28px; }
  #mv-create { grid-template-columns: 248px 1fr 258px; }
  .mv-create-rot > span { display: none; }
  .mv-enter-block { width: 200px; flex-basis: 200px; }
}
@media (max-width: 560px) {
  #mv-actionbar { left: calc(50% + 62px); }
  #mv-actionbar-cells { grid-template-columns: repeat(4, var(--uibtn)); }
  #mv-chat { bottom: calc(300px + env(safe-area-inset-bottom)); width: 188px; }
  #mv-hero { width: 158px; }
  #mv-tracker { width: 140px; }
  #mv-target { width: 168px; top: calc(64px + env(safe-area-inset-top)); }
  #mv-create { grid-template-columns: 1fr; grid-template-rows: auto 260px auto auto; overflow-y: auto; }
  .mv-create-bottom { flex-direction: column; align-items: stretch; }
  .mv-enter-block { width: 100%; flex-basis: auto; }
}
@media (max-width: 380px) {
  #mv-chat { width: 176px; }
  #mv-actionbar-cells { grid-template-columns: repeat(4, var(--uibtn)); }
}
@media (max-height: 430px) and (orientation: landscape) {
  #mv-panel { max-height: 74vh; bottom: calc(76px + env(safe-area-inset-bottom)); }
  #mv-chat { bottom: calc(136px + env(safe-area-inset-bottom)); }
  #mv-stick { width: 96px; height: 96px; }
  .mv-create-title { font-size: 18px; }
  .mv-create-sub { top: 26px; }
  #mv-create-summary { top: 46px; }
  .mv-swatch { width: 27px; height: 27px; }
  #mv-skin-pal .mv-swatch, #mv-hair-pal .mv-swatch, #mv-outfit-row .mv-swatch { width: 22px; height: 22px; }
  .mv-create-h { margin: 2px 0; }
  .mv-create-right .mv-chip { min-height: 30px; }
}
@media (max-height: 400px) and (orientation: landscape) {
  .mv-swatch { width: 24px; height: 24px; }
  #mv-skin-pal .mv-swatch, #mv-hair-pal .mv-swatch, #mv-outfit-row .mv-swatch { width: 20px; height: 20px; }
  .mv-create-h { margin: 1px 0; font-size: 10px; }
  .mv-create-right .mv-chip { min-height: 28px; }
  .mv-stat { font-size: 10px; }
  .mv-race, .mv-branch { min-height: 38px; margin-bottom: 3px; padding: 2px 5px; }
  .mv-branch i, .mv-race-tx i { font-size: 9px; }
  .mv-create-note { font-size: 9px; }
  .mv-race, .mv-branch { min-height: 40px; }
}
/* --- каркас пакета владельца 2026-11-01: бафы, группа, приглашение, 12 слотов --- */
#mv-actionbar { flex-direction: column; align-items: center; }
#mv-actionbar-cells { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: min(94vw, 672px); }
.mv-buffrow { display: flex; gap: 4px; justify-content: center; }
.mv-buff { position: relative; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: rgba(35,30,20,.9); border: 1px solid rgba(232,179,75,.55); border-radius: 6px; font-size: 14px; }
.mv-buff i { position: absolute; right: 1px; bottom: 0; font-size: 8px; font-style: normal; color: #ffd76a; text-shadow: 0 1px 2px #000; }
#mv-buffs { padding-bottom: 2px; }
#mv-tbuffs { position: absolute; top: calc(64px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 5; }
#mv-target.mv-ally { border-color: #53d769; }
#mv-party { display: flex; gap: 4px; margin-top: 5px; }
.mv-pslot { flex: 1; min-width: 0; background: rgba(35,30,20,.9); border: 1px solid rgba(232,179,75,.4); border-radius: 6px; padding: 3px 4px; cursor: pointer; color: #F8EDD6; }
.mv-pslot .mv-pname { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-pbar { display: block; height: 4px; background: rgba(255,255,255,.15); margin-top: 2px; border-radius: 2px; overflow: hidden; }
.mv-pbar i { display: block; height: 100%; background: #e5484d; }
.mv-pbar.mv-pmp { height: 3px; }
.mv-pbar.mv-pmp i { background: #3E7CC9; }
.mv-pslot.mv-off { opacity: .45; }
#mv-invite { position: absolute; top: calc(100px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(430px, 92vw); z-index: 6; }
.mv-invite-card { background: rgba(18,16,12,.94); border: 1px solid #E8B34B; border-radius: 12px; padding: 12px 14px; }
.mv-invite-text { font-size: 14px; margin-bottom: 8px; }
.mv-cell.mv-lock { opacity: .55; }
.mv-cell.mv-lock .mv-cell-g { filter: grayscale(1); }
@media (max-width: 560px) {
  #mv-tbuffs { top: calc(120px + env(safe-area-inset-top)); }
  #mv-invite { top: calc(158px + env(safe-area-inset-top)); }
}
/* каркас: геометрия бара 12 слотов */
.mv-cell { box-sizing: border-box; }
#mv-actionbar-cells { width: min(94vw, 672px); }
@media (max-width: 900px) {
  #mv-actionbar-cells { width: min(94vw, 336px); }
}
@media (max-width: 560px) {
  #mv-actionbar { left: calc(50% + 30px); }
}
/* журнал навигационным центром: строки трекинга и стрелка края */
#mv-tracker-rows { margin-top: 5px; display: flex; flex-direction: column; gap: 4px; }
#mv-tracker.mv-collapsed #mv-tracker-rows { display: none; }
.mv-trk-row { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.mv-trk-num { flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%; color: #1d1608; font-weight: 700; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.mv-trk-name { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-trk-dist { flex: 0 0 auto; color: #ffd76a; }
.mv-trk-go { flex: 0 0 auto; min-height: 26px; padding: 2px 8px; border-radius: 6px; border: 1px solid #E8B34B; background: rgba(232,179,75,.16); color: #ffd76a; font-size: 11px; cursor: pointer; }
.mv-j-go { min-height: 28px; padding: 2px 10px; border-radius: 6px; border: 1px solid #E8B34B; background: rgba(232,179,75,.16); color: #ffd76a; font-size: 12px; cursor: pointer; margin-left: 6px; }
#mv-edge-arrow { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border: 2px solid #ffd76a; border-radius: 50%; background: rgba(18,16,12,.72); align-items: center; justify-content: center; font-size: 17px; z-index: 4; pointer-events: none; }
/* ===== раскладка по бенчмарку v2: один ряд, кластер без зоны панелей, правая колонка ===== */
#mv-actionbar { flex-direction: row; align-items: center; gap: 5px; }
#mv-actionbar-cells { display: block; overflow: hidden; width: calc(var(--perview, 6) * 53px - 5px); max-width: none; flex-wrap: nowrap; }
.mv-cells-track { display: flex; gap: 5px; width: max-content; transition: transform .18s ease; }
.mv-cells-track .mv-cell { flex: 0 0 auto; }
.mv-bar-nav { width: var(--uibtn); height: var(--uibtn); flex: 0 0 auto; border: 1px solid #E8B34B; background: rgba(18, 16, 12, .85); color: #F8EDD6; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; }
.mv-bar-nav-g { font-size: 16px; line-height: 1; }
.mv-bar-nav-t { font-size: 8.5px; line-height: 1.05; }
.mv-bar-nav:disabled { opacity: .35; }
#mv-rightcol { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 4; }
#mv-rightcol #mv-minimap { position: static; }
#mv-rightcol #mv-tracker { position: static; width: 212px; }
#mv-rightcol #mv-buffs { display: flex; justify-content: flex-end; position: static; }
#mv-phase { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #E8B34B; background: rgba(18, 16, 12, .78); border: 1px solid rgba(232, 179, 75, .55); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 900px) {
  #mv-rightcol #mv-tracker { width: 184px; }
}
@media (max-width: 560px) {
  #mv-rightcol #mv-tracker { width: 160px; }
  #mv-actionbar { left: calc(50% + 12px); }
}
@media (max-width: 1100px) {
  #mv-panel { bottom: calc(150px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 252px); }
}
/* фикс замеров: кластер в нижнюю полосу, панель выше кластера целиком, короткий ландшафт это боковой лист */
@media (max-width: 1100px) {
  #mv-panel { bottom: calc(204px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 306px); }
}
@media (max-height: 500px) {
  #mv-panel { left: calc(8px + env(safe-area-inset-left)); right: auto; transform: none; width: min(430px, 56vw); top: calc(8px + env(safe-area-inset-top)); bottom: calc(8px + env(safe-area-inset-bottom)); max-height: none; }
}
/* короткий ландшафт: кластер одной строкой у нижнего края, колонка не входит в его зону */
@media (max-height: 500px) {
  #mv-rightcol #mv-minimap { width: 92px; height: 92px; }
  #mv-rightcol #mv-tracker { max-height: 108px; overflow-y: auto; }
  #mv-actionbar { left: calc(50% - 30px); }
}
/* icons 3D in slots, cluster and headers */
.mv-cell-ic { width: 24px; height: 24px; display: block; margin: 0 auto; }
.mv-h3-bear { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
/* сборка гибрида: портрет, кластер выше полосы, панель выше кластера */
@media (max-width: 560px) {
  #mv-panel { bottom: calc(272px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 374px); }
}
/* прыжок и зум: ряд кластера с кнопкой прыжка */
/* ворота 2, полировка: недоступная главная кнопка по токену состояния */
#mv-enter:disabled, .mv-big:disabled { opacity: .45; filter: saturate(.35); cursor: not-allowed; }
/* портрет: джойстик выше полосы умений, пересечение убрано */
@media (max-width: 700px) {
  #mv-stick { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
/* джойстик только на сенсорном вводе: класс ставит клиент по типу указателя */
body.mv-touch #mv-stick { display: block; }
/* ===== Анатомия HUD по L2 (v62): якоря и соседства, материал не тронут ===== */
#mv-hero { width: 258px; padding: 8px 10px 9px; }
#mv-hero .mv-track { height: 11px; }
#mv-wallet { display: none; }
#mv-xp-track { display: none; }
#mv-hero #mv-buffs { position: absolute; top: calc(100% + 5px); left: 0; justify-content: flex-start; z-index: 5; }
#mv-party { position: absolute; top: calc(100% + 34px); left: 0; width: 100%; z-index: 5; }
#mv-target { width: 300px; }
#mv-target .mv-track { height: 15px; }
#mv-tbuffs { top: calc(78px + env(safe-area-inset-top)); }
.mv-target-bear { width: 20px; height: 20px; vertical-align: -4px; margin-right: 5px; }
#mv-minimap { width: 132px; height: 132px; }
#mv-rightcol #mv-tracker { width: 250px; margin-top: 42px; }
#mv-btn-mute { position: fixed !important; top: calc(180px + env(safe-area-inset-top)) !important; right: calc(10px + env(safe-area-inset-right)) !important; z-index: 60; }
#mv-chat { width: 380px; bottom: calc(10px + env(safe-area-inset-bottom)); }
#mv-chat-lines { min-height: 92px; }
#mv-actionbar { left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); }
#mv-pages { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 5px; }
#mv-xpline { position: fixed; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(8, 12, 18, .55); z-index: 6; cursor: pointer; }
#mv-xpline-fill { height: 100%; width: 0; background: #7a63c8; }
#mv-xpline-num { position: absolute; right: 10px; bottom: 9px; font-size: 11px; color: #d3ecfa; background: rgba(10, 16, 26, .88); padding: 2px 8px; border-radius: 6px; }
body.mv-combat #mv-tracker-text { display: none; }
body.mv-combat #mv-tracker-rows .mv-trk-row:nth-child(n+2) { display: none; }
@media (max-width: 1250px) {
  #mv-chat { width: 320px; }
}
@media (max-width: 900px) {
  #mv-hero { width: 218px; }
  #mv-target { width: 240px; }
  #mv-chat { width: 320px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  #mv-minimap { width: 104px; height: 104px; }
  #mv-rightcol #mv-tracker { width: 210px; }
  #mv-btn-mute { top: calc(152px + env(safe-area-inset-top)) !important; }
  #mv-chat { width: 264px; bottom: calc(92px + env(safe-area-inset-bottom)); }
  #mv-actionbar { left: calc(50% - 26px); }
  #mv-rightcol #mv-tracker { max-height: 84px; }
  #mv-chat:not(.mv-open) #mv-chat-lines { min-height: 20px; max-height: 36px; overflow: hidden; }
  #mv-stick { bottom: calc(160px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  #mv-hero { width: 178px; }
  #mv-target { width: 210px; }
  #mv-tbuffs { top: calc(128px + env(safe-area-inset-top)); }
  #mv-minimap { width: 84px; height: 84px; }
  #mv-rightcol #mv-tracker { width: 180px; }
  #mv-btn-mute { top: calc(128px + env(safe-area-inset-top)) !important; }
  #mv-chat { width: 200px; bottom: calc(196px + env(safe-area-inset-bottom)); }
}
/* бой: активная строка трекера читается целиком, без обрезки имени и подвала */
body.mv-combat .mv-trk-name { white-space: normal; overflow: visible; text-overflow: clip; }
.mv-trk-summit .mv-trk-name { white-space: normal; overflow: visible; text-overflow: clip; }
.mv-trk-summit .mv-trk-dist { white-space: nowrap; }
body.mv-combat #mv-rightcol #mv-tracker { max-height: none; overflow: visible; }
/* v80: ряды панели умений и перетаскиваемые панели */
#mv-actionbar-cells { display: block; }
.mv-cells-track { flex-wrap: wrap; width: calc(var(--uibtn) * 12 + 55px); transition: none; }
@media (max-width: 900px) {
  .mv-cells-track { width: calc(var(--uibtn) * 12 + 55px); }
}
@media (max-width: 560px) {
  .mv-cells-track { width: calc(var(--uibtn) * 8 + 35px); }
}
#mv-hero, #mv-target, #mv-rightcol, #mv-chat, #mv-panel, #mv-tbuffs { touch-action: none; }
#mv-actionbar-cells { width: auto; overflow: visible; }
/* v81: диалоги держат размер без прокруток на коротком содержимом */
#mv-panel { overflow-x: hidden; overflow-y: auto; box-sizing: border-box; scrollbar-width: thin; }
#mv-panel * { min-width: 0; }
.mv-card { overflow-x: hidden; overflow-y: auto; box-sizing: border-box; scrollbar-width: thin; }
#mv-panel img, #mv-panel table, .mv-card img, .mv-card table { max-width: 100%; }
#mv-gate .mv-card, #mv-load .mv-card { overflow: visible; }
/* v84: ни одной полосы прокрутки на диалогах и панелях: дорожки скрыты везде,
   прокрутка колёсиком, касанием и перетаскиванием сохраняется */
#mv-panel, .mv-card, #mv-chat-lines, .mv-create-left, .mv-create-right, #mv-tracker, #mv-bigmap { scrollbar-width: none; }
#mv-panel::-webkit-scrollbar, .mv-card::-webkit-scrollbar, #mv-chat-lines::-webkit-scrollbar, .mv-create-left::-webkit-scrollbar, .mv-create-right::-webkit-scrollbar, #mv-tracker::-webkit-scrollbar, #mv-bigmap::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* ——— Горизонталь телефона (max-height 520): края экрана по кадру владельца ——— */
@media (max-height: 520px) {
  #mv-rightcol { max-height: calc(100vh - 128px); }
  #mv-rightcol #mv-tracker { overflow-y: auto; min-height: 0; scrollbar-width: none; }
  #mv-rightcol #mv-tracker::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .mv-trk-name { overflow-wrap: anywhere; }
  #mv-btn-mute { top: calc(8px + env(safe-area-inset-top)) !important; right: calc(106px + env(safe-area-inset-right)) !important; }
  .mv-cells-track { width: calc(var(--uibtn) * 12 + 55px); }
  #mv-actionbar { bottom: calc(8px + env(safe-area-inset-bottom)); }
  #mv-chat { bottom: calc(var(--barH, 108px) + 8px + env(safe-area-inset-bottom)); width: 216px; }
  #mv-stick { width: 84px; height: 84px; left: calc(12px + env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  #mv-tracker { font-size: 11px; -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 84%, transparent 100%); }
}
/* ==== Пакет окон L2 (css v31): единый каркас, вкладки, колонки, сетка сумки,
   корзина лавки, резерв меню, список зон карты ==== */
#mv-panel.mv-wide { width: min(780px, calc(100vw - 24px)); }
.mv-win-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 8px; padding-bottom: 7px; border-bottom: 1px solid rgba(111,195,228,.35); }
.mv-win-title { font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; color: #d7ecfa; }
#mv-panel .mv-win-x { min-height: 32px; width: 36px; padding: 0; flex: none; font-size: 15px; line-height: 1; }
.mv-win-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
#mv-panel .mv-win-tab { min-height: 34px; padding: 0 12px; font-size: 13px; opacity: .78; }
#mv-panel .mv-win-tab.mv-on { opacity: 1; border-color: #6fc3e4; color: #eaf7ff; box-shadow: inset 0 0 0 1px rgba(111,195,228,.45); }
.mv-win-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(111,195,228,.28); flex-wrap: wrap; }
.mv-win-foinfo { margin-right: auto; font-size: 13px; color: #b9d9ee; }
.mv-win-cols { display: flex; gap: 16px; align-items: flex-start; }
.mv-win-col { flex: 1 1 0; min-width: 0; }
.mv-stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mv-stat-table td { padding: 4px 6px; border-bottom: 1px solid rgba(215,236,250,.12); }
.mv-stat-ab { color: #8fb8d8; font-size: 12px; letter-spacing: .06em; }
.mv-stat-v { text-align: right; font-weight: 700; color: #eaf7ff; }
.mv-sk-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid rgba(215,236,250,.12); margin-bottom: 6px; }
.mv-sk-ic { font-size: 19px; width: 26px; text-align: center; flex: none; }
.mv-sk-main { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.mv-sk-sub { font-size: 12px; color: #a9c8de; }
.mv-sk-lock { opacity: .72; }
.mv-bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.mv-bag-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px 7px; border: 1px solid rgba(215,236,250,.16); text-align: center; }
.mv-bag-tile { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(111,195,228,.5); font-size: 15px; font-weight: 700; color: #d7ecfa; background: rgba(111,195,228,.08); }
.mv-bag-ic { width: 26px; height: 26px; }
.mv-bag-name { font-size: 13px; }
.mv-bag-n { font-size: 12px; color: #eaf7ff; font-weight: 700; }
.mv-bag-p { font-size: 11px; color: #a9c8de; }
.mv-eq-col h4 { margin-bottom: 8px; }
.mv-eq-grid { display: grid; grid-template-columns: repeat(2, minmax(84px, 1fr)); gap: 8px; }
.mv-eq-slot { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px dashed rgba(215,236,250,.3); color: #8fb8d8; font-size: 12px; }
.mv-j-list { display: flex; flex-direction: column; gap: 5px; flex: 0 0 42%; max-height: 300px; overflow-y: auto; scrollbar-width: none; }
.mv-j-list::-webkit-scrollbar { display: none; }
#mv-panel .mv-j-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 0; padding: 7px 10px; text-align: left; width: 100%; }
#mv-panel .mv-j-item.mv-on { border-color: #6fc3e4; box-shadow: inset 0 0 0 1px rgba(111,195,228,.45); }
.mv-j-item-name { font-size: 13px; }
.mv-j-item-state { font-size: 11px; color: #a9c8de; }
.mv-j-detail { flex: 1 1 0; min-width: 0; }
.mv-j-detail-name { font-weight: 700; margin-bottom: 4px; }
.mv-cart-row { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between; margin-bottom: 6px; text-align: left; }
#mv-panel .mv-cart-row { min-height: 40px; padding: 4px 12px; }
.mv-cart-row.mv-on { border-color: #6fc3e4; }
.mv-cart-box { font-size: 16px; flex: none; }
.mv-cart-step { display: inline-flex; align-items: center; gap: 8px; }
#mv-panel .mv-cart-step button { min-height: 30px; width: 32px; padding: 0; }
.mv-menu-list { display: flex; flex-direction: column; gap: 6px; }
.mv-menu-list button { width: 100%; text-align: left; }
#mv-panel .mv-reserve { opacity: .42; cursor: default; }
.mv-bigmap-box { display: grid; grid-template-columns: 190px auto; grid-template-areas: "head head" "zones tabs" "zones map" "zones foot"; gap: 8px 12px; align-items: start; max-width: 96vw; }
.mv-bigmap-head { grid-area: head; }
#mv-bigmap-tabs { grid-area: tabs; }
#mv-bigmap-canvas { grid-area: map; }
#mv-bigmap-quests { grid-area: map; }
#mv-bigmap-foot { grid-area: foot; }
#mv-bigmap-zones { grid-area: zones; max-height: 92vh; overflow-y: auto; scrollbar-width: none; }
#mv-bigmap-zones::-webkit-scrollbar { display: none; }
.mv-bz-title { font-weight: 700; margin-bottom: 6px; color: #d7ecfa; }
@media (max-width: 700px) {
  .mv-win-cols { flex-direction: column; }
  .mv-j-list { flex: none; width: 100%; max-height: 180px; }
  .mv-bigmap-box { grid-template-columns: 1fr; grid-template-areas: "head" "tabs" "map" "zones" "foot"; }
  #mv-bigmap-zones { width: 100%; max-height: 132px; }
}
/* ==== Правка панели умений (css v32): перетаскивание ячеек и умений ==== */
body.mv-bar-edit .mv-cell { outline: 1px dashed rgba(111,195,228,.55); outline-offset: -3px; touch-action: none; }
.mv-cell.mv-dragging { opacity: .78; position: relative; z-index: 30; }
.mv-drag-ghost { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -140%); padding: 6px 11px; background: rgba(20,29,39,.96); border: 1px solid #6fc3e4; color: #eaf7ff; font-size: 13px; white-space: nowrap; }
/* ==== Индикатор потери связи (css v33) ==== */
#mv-conn { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 7px; padding: 6px 12px; background: rgba(20,29,39,.92); border: 1px solid rgba(255,179,167,.65); color: #ffd9d2; font-size: 13px; pointer-events: none; }
.mv-conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7a6b; animation: mv-conn-pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes mv-conn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* ==== L2-пакет 2026-11-04 (css v34): плашка героя без вылезания текста.
   Стили удалённого кластера вычищены в css v41. ====
   В L2 правый нижний угол это строгая полоса тёмных квадратных ячеек в языке
   панели умений, без круглых золотых кнопок и золотой плашки действия. */
#mv-name-sub { overflow: hidden; text-overflow: ellipsis; }
#mv-wallet { overflow: hidden; text-overflow: ellipsis; }
/* ==== L2-пакет П0 (css v35): статус таблицей L2, эффекты своей рамкой,
   подсказка действия над полосой, панель меню в углу (разметка v100) ==== */
#mv-hero { width: 252px; min-width: 252px; }
.mv-status-grid { display: flex; gap: 8px; align-items: stretch; margin-bottom: 6px; }
#mv-lvl { width: 38px; height: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #eaf7ff; background: rgba(111,195,228,.14); border: 1px solid rgba(111,195,228,.55); }
.mv-hero-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
#mv-hero .mv-track { height: 14px; }
#mv-hero .mv-bar-val { left: 0; right: 0; text-align: center; line-height: 14px; font-size: 11px; }
#mv-target .mv-bar-val { left: 0; right: 0; text-align: center; }
#mv-xp-track { display: block; height: 4px; margin-top: 5px; position: relative; cursor: pointer; }
#mv-xp-pct { position: absolute; right: 0; top: -4px; font-size: 9px; color: #a9c6da; background: rgba(20,29,39,.92); padding: 0 3px; }
#mv-effects { position: absolute; top: calc(100% + 6px); left: 0; padding: 4px; background: rgba(20,29,39,.88); border: 1px solid rgba(111,195,228,.4); z-index: 5; }
#mv-effects #mv-buffs { position: static; }
#mv-party { top: calc(100% + 6px); }
#mv-hero.mv-hasfx #mv-party { top: calc(100% + 50px); }
@media (min-width: 1101px) {
  #mv-effects { top: 0; left: calc(100% + 8px); }
  #mv-hero.mv-hasfx #mv-party { top: calc(100% + 6px); }
}
@media (max-width: 700px) {
  #mv-hero { width: 236px; min-width: 236px; }
}
@media (max-width: 480px) {
  #mv-hero { width: 228px; min-width: 228px; }
}
#mv-acthint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--barH, 64px) + 20px + env(safe-area-inset-bottom)); max-width: 320px; padding: 7px 14px; background: rgba(20,29,39,.92); border: 1px solid rgba(111,195,228,.6); color: #eaf7ff; font-size: 14px; font-weight: 600; cursor: pointer; z-index: 8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-hero-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.mv-hero-head-name { font-weight: 700; font-size: 15px; color: #eaf7ff; }
#mv-mainmenu { position: absolute; right: calc(10px + env(safe-area-inset-right)); bottom: calc(var(--barH, 64px) + 12px + env(safe-area-inset-bottom)); display: flex; gap: 4px; z-index: 7; }
.mv-mm-btn { width: var(--uibtn); height: var(--uibtn); padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: rgba(20,29,39,.9); border: 1px solid rgba(111,195,228,.5); color: #d7ecfa; cursor: pointer; }
.mv-mm-g { font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.mv-mm-t { font-size: 8.5px; line-height: 1.05; white-space: nowrap; }
.mv-mm-ic { width: 22px; height: 22px; display: block; }
@media (max-height: 520px) {
  #mv-mainmenu { display: grid; grid-template-columns: repeat(4, var(--uibtn)); gap: 4px; }
}
@media (max-width: 480px) {
  .mv-mm-ic { width: 20px; height: 20px; }
}
@media (max-height: 520px) {
  #mv-actionbar { left: calc(50% - 78px); }
}
@media (max-width: 480px) and (orientation: portrait) {
  #mv-actionbar { bottom: calc(52px + env(safe-area-inset-bottom)); }
}
/* ==== L2-пакет шаг 2 (css v36): окно действий сеткой ==== */
.mv-act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mv-act-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; background: rgba(111,195,228,.07); border: 1px solid rgba(111,195,228,.35); color: #d7ecfa; font-size: 11px; cursor: pointer; }
.mv-act-cell img { width: 26px; height: 26px; }
.mv-act-cell.mv-on { border-color: #6fc3e4; background: rgba(111,195,228,.2); color: #fff; }
.mv-act-cell:disabled { opacity: .45; cursor: default; }
/* ==== L2-пакет шаг 3 (css v37): кукла инвентаря, вкладки карты ==== */
.mv-doll { display: grid; grid-template-columns: 46px 1fr 46px; grid-template-areas: ". head amulet" "shield fig weapon" "hands fig ring2" "ring1 body legs"; gap: 5px; align-items: center; justify-items: center; }
.mv-doll-svg { grid-area: fig; width: 74px; height: 136px; fill: rgba(111,195,228,.28); stroke: rgba(111,195,228,.55); }
.mv-doll .mv-eq-slot { width: 46px; height: 46px; }
.mv-ds-head { grid-area: head; }
.mv-ds-amulet { grid-area: amulet; }
.mv-ds-shield { grid-area: shield; }
.mv-ds-weapon { grid-area: weapon; }
.mv-ds-hands { grid-area: hands; }
.mv-ds-ring1 { grid-area: ring1; }
.mv-ds-ring2 { grid-area: ring2; }
.mv-ds-body { grid-area: body; }
.mv-ds-legs { grid-area: legs; }
.mv-doll-col { flex: 0 0 168px; }
#mv-bigmap-tabs { display: flex; gap: 6px; padding: 6px 2px 0; }
#mv-bigmap-tabs button { padding: 5px 14px; background: rgba(111,195,228,.08); border: 1px solid rgba(111,195,228,.4); color: #d7ecfa; cursor: pointer; font-size: 13px; }
#mv-bigmap-tabs button.mv-on { background: rgba(111,195,228,.22); color: #fff; border-color: #6fc3e4; }
#mv-bigmap-foot { padding: 6px 2px 2px; font-size: 12px; color: #a9c6da; }
/* ==== L2-пакет шаги 4-5 (css v38): место прозрачной строкой, системная строка чата ==== */
#mv-place { background: transparent; border: 0; box-shadow: none; color: #eaf7ff; text-shadow: 0 1px 3px rgba(0,0,0,.8); font-size: 15px; }
#mv-chat-sys { font-size: 11px; color: #ffb3a7; padding: 2px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }
/* ==== L2-пакет добивка HUD (css v39): фаза под радаром, звук на кромке,
   строка сведений цели ==== */
#mv-phase { position: absolute; top: calc(148px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); width: 132px; text-align: center; font-size: 12px; color: #a9c6da; text-shadow: 0 1px 3px rgba(0,0,0,.8); z-index: 4; pointer-events: none; }
#mv-btn-mute { top: calc(106px + env(safe-area-inset-top)) !important; right: calc(106px + env(safe-area-inset-right)) !important; }
#mv-target-sub { font-size: 11px; color: #a9c6da; margin-top: 2px; min-height: 13px; }
@media (min-width: 1101px) {
  #mv-tracker { top: calc(168px + env(safe-area-inset-top)); }
}
@media (max-width: 1100px) {
  #mv-phase { display: none; }
}
/* ==== L2-пакет, слово геймдизайна по строке действия (css v40):
   высота минимум 40, состояния наведения, нажатия и недоступности ==== */
#mv-acthint { min-height: 40px; display: flex; align-items: center; box-sizing: border-box; }
#mv-acthint:hover { background: rgba(41,62,84,.95); border-color: #6fc3e4; }
#mv-acthint:active { transform: translateX(-50%) translateY(1px); background: rgba(111,195,228,.28); }
#mv-acthint.mv-dis { opacity: .45; pointer-events: none; }

/* ==== L2-пакет, дополнения владельца 04.11 (css v42): диалоги NPC ==== */
#mv-panel.mv-dlg { width: min(430px, calc(100vw - 24px)); }
#mv-panel.mv-dlg .mv-prow { flex-direction: column; align-items: stretch; gap: 6px; }
#mv-panel.mv-dlg .mv-prow button { width: 100%; text-align: left; }

/* ==== L2-пакет, сверка 5а (css v43): диалог поверх контекстной кнопки ==== */
#mv-panel { z-index: 12; }


/* v116: система уменьшенной служебной кнопкой рядом с четырьмя главными. */
.mv-mm-svc { width: calc(var(--uibtn) * 0.7); height: calc(var(--uibtn) * 0.7); align-self: flex-end; justify-self: center; }
.mv-mm-svc .mv-mm-ic { width: 15px; height: 15px; }
.mv-mm-svc .mv-mm-t { font-size: 7.5px; }
/* Вкладка «Задания» в окне карты: тело журнала внутри коробки карты. */
#mv-bigmap-quests { overflow-y: auto; padding: 4px; max-height: 72vh; }

/* v117: по большой карте можно щёлкнуть и бежать к точке. */
#mv-bigmap-canvas { cursor: crosshair; }

/* ==== Эталон 05.11 (css v47): опыт по нижнему краю, слоты под радаром,
   трекер слева под бафами ==== */
#mv-xp-track { display: none; }
#mv-actionbar { left: auto; right: calc(8px + env(safe-area-inset-right)); top: calc(214px + env(safe-area-inset-top)); bottom: auto; transform: none; flex-direction: row; }
.mv-cells-track { width: calc(var(--uibtn) * 4 + 15px); }
@media (max-width: 900px) {
  #mv-actionbar { top: calc(198px + env(safe-area-inset-top)); }
}
@media (max-height: 520px) {
  #mv-actionbar { top: calc(150px + env(safe-area-inset-top)); }
  #mv-mainmenu { grid-template-columns: repeat(5, var(--uibtn)); align-items: end; right: calc(262px + env(safe-area-inset-right)); }
  #mv-rightcol { max-height: calc(100vh - 12px); }
  #mv-rightcol #mv-tracker { flex: none; max-height: 96px; }
}
#mv-tracker-map { margin-top: 4px; color: #ffd98a; font-size: 11px; }
#mv-bigmap-go { grid-area: foot; justify-self: end; align-self: center; padding: 7px 18px; font-size: 13px; }
#mv-bigmap-foot { padding-right: 96px; }

#mv-rightcol #mv-tracker { flex: none; }

/* ===== Мобильная раскладка по образцу Lineage 2M (раздел 9) =====
   Сенсорные экраны телефона: ландшафт и портрет. Компьютерная
   раскладка раздела 8 не тронута. Джойстик слева внизу, круглый
   кластер действий справа внизу, задания под миникартой, меню
   компактной полосой, без F-подписей.
   ПОРТРЕТ: суждение цикла 05.11 - портретная раскладка в пакет
   не принята, в посадочном составе портрет держится заглушкой
   поворота по прямому слову владельца «только горизонт».
   Портретный блок ниже помечен и сохранён в ветке отдельным
   пакетом на слово владельца через Топ-агента, в посадку
   не входит: заглушка его перекрывает. */
@media (pointer: coarse) and (max-width: 1024px) {
  #mv-stick { display: block; width: 128px; height: 128px; left: calc(14px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  #mv-stick-dot { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  #mv-chat { left: calc(10px + env(safe-area-inset-left)); bottom: calc(156px + env(safe-area-inset-bottom)); width: 236px; }
  #mv-actionbar { background: transparent; border-color: transparent; box-shadow: none; }
  .mv-cells-track { gap: 4px; }
  #mv-actionbar { top: auto; left: auto; right: calc(10px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  #mv-actionbar .mv-bar-nav { display: none; }
  #mv-actionbar-cells { overflow: visible; }
  .mv-cells-track { display: grid; grid-template-columns: 68px repeat(5, 52px); gap: 6px; width: auto; }
  #mv-actionbar .mv-cells-track .mv-cell { width: 52px; height: 52px; border-radius: 50% !important; padding: 2px; }
  #mv-btn-mute { top: calc(100px + env(safe-area-inset-top)) !important; right: calc(220px + env(safe-area-inset-right)) !important; }
  #mv-actionbar .mv-cells-track .mv-cell[data-cell="attack"] { width: 68px; height: 68px; border-color: rgba(232,179,75,.85); border-width: 2px; }
  .mv-cells-track .mv-cell .mv-key { display: none; }
  .mv-cells-track .mv-cell-t { font-size: 7.5px; line-height: 1.0; }
  .mv-cells-track .mv-cell-ic { width: 22px; height: 22px; }
  #mv-mainmenu { left: calc(156px + env(safe-area-inset-left)); right: auto; transform: none; bottom: calc(10px + env(safe-area-inset-bottom)); --uibtn: 44px; }
  #mv-rightcol #mv-tracker { max-height: 76px; overflow: hidden; }
  body.mv-combat #mv-rightcol #mv-tracker { max-height: 76px; overflow: hidden; }
  #mv-tracker-text { display: none; }
  .mv-trk-row { padding: 3px 4px; cursor: pointer; }
  #mv-acthint { bottom: calc(66px + env(safe-area-inset-bottom)); }
  #mv-stick { width: 118px; height: 118px; }
  #mv-hero { width: 228px; min-width: 228px; }
  #mv-hero .mv-track { height: 10px; }
  #mv-rightcol #mv-tracker { width: 196px; }
  #mv-target { max-width: 300px; }
  #mv-conn { top: calc(100px + env(safe-area-inset-top)); right: calc(262px + env(safe-area-inset-right)); left: auto; transform: none; }
  body:not(.mv-chat-open) #mv-chat { height: 30px; overflow: hidden; }
  body:not(.mv-chat-open) #mv-chat-tabs, body:not(.mv-chat-open) #mv-chat-lines, body:not(.mv-chat-open) #mv-chat-input-row { display: none; }
  #mv-chat-sys { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.mv-combat #mv-tracker { opacity: .88; }
  body.mv-combat #mv-tracker-rows .mv-trk-row:nth-child(n+2) { display: none; }
}
@media (pointer: coarse) and (max-width: 1024px) and (orientation: portrait) {
  #mv-stick { width: 110px; height: 110px; left: calc(10px + env(safe-area-inset-left)); }
  #mv-actionbar { right: calc(6px + env(safe-area-inset-right)); }
  .mv-cells-track { grid-template-columns: 68px repeat(3, 52px); }
  #mv-rightcol #mv-tracker { max-height: 124px; }
  body.mv-combat #mv-rightcol #mv-tracker { max-height: 124px; overflow: hidden; }
  #mv-mainmenu { left: auto; right: calc(8px + env(safe-area-inset-right)); top: calc(300px + env(safe-area-inset-top)); bottom: auto; }
  #mv-chat { width: 200px; }
  #mv-target { left: calc(8px + env(safe-area-inset-left)); transform: none; top: calc(88px + env(safe-area-inset-top)); max-width: 220px; }
  #mv-rightcol #mv-tracker { margin-top: 64px !important; }
  #mv-btn-mute { top: calc(162px + env(safe-area-inset-top)) !important; right: calc(220px + env(safe-area-inset-right)) !important; }
  #mv-acthint { bottom: calc(208px + env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) and (max-width: 720px) and (orientation: landscape) {
  #mv-rightcol #mv-tracker { max-height: 64px; }
  body.mv-combat #mv-rightcol #mv-tracker { max-height: 64px; }
  #mv-acthint { bottom: calc(204px + env(safe-area-inset-bottom)); max-width: 260px; }
  .mv-trk-row { padding: 1px 4px; flex-wrap: nowrap; }
  .mv-trk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mv-trk-go { padding: 1px 7px; }
  #mv-tracker-head { padding: 0 2px; min-height: 0; }
  #mv-tracker-title { font-size: 11px; }
  #mv-tracker { padding: 4px 7px; }
  body.mv-combat .mv-trk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

#mv-chat-expand { display: none; }

/* ===== Плавающий интерфейс без подложек (правка владельца 05.11) =====
   Поверх закрытого мобильного пакета: сплошные подложки панелей
   убраны полностью, кнопки плавают отдельными значками поверх
   мира полупрозрачно, тексты читаются тенью. Только сенсорные. */
@media (pointer: coarse) and (max-width: 1024px) {
  #mv-actionbar#mv-actionbar, #mv-hero#mv-hero, #mv-target#mv-target, #mv-chat#mv-chat, #mv-tracker#mv-tracker {
    background: transparent !important; border-color: transparent !important; box-shadow: none !important;
  }
  body.mv-chat-open #mv-chat#mv-chat { background: rgba(10, 16, 26, .55) !important; }
  #mv-actionbar .mv-cells-track .mv-cell { background: rgba(13, 20, 30, .55) !important; }
  #mv-mainmenu .mv-mm-btn { background: rgba(13, 20, 30, .55) !important; }
  #mv-acthint { background: rgba(13, 20, 30, .6); }
  #mv-hero, #mv-target, #mv-chat, #mv-rightcol #mv-tracker { text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
  #mv-stick { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  #mv-stick.mv-stick-live { opacity: 1; pointer-events: auto; }
  #mv-chat-expand { display: block; position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(140, 190, 240, .6); background: rgba(13, 20, 30, .6); color: #d3ecfa; font-size: 13px; line-height: 1; cursor: pointer; }
  #mv-chat-expand::after { content: '▲'; font-size: 9px; }
  body.mv-chat-open #mv-chat-expand::after { content: '▼'; }
  #mv-chat-sys { padding-right: 30px; }
  #mv-mainmenu, #mv-actionbar, #mv-tracker, #mv-chat, #mv-acthint, #mv-hero, #mv-target { transition: opacity .6s ease; }
  body.mv-idle:not(.mv-combat) #mv-mainmenu, body.mv-idle:not(.mv-combat) #mv-actionbar, body.mv-idle:not(.mv-combat) #mv-chat, body.mv-idle:not(.mv-combat) #mv-acthint { opacity: .3; }
  body.mv-idle:not(.mv-combat) #mv-hero, body.mv-idle:not(.mv-combat) #mv-target, body.mv-idle:not(.mv-combat) #mv-tracker { opacity: .55; }
}

/* ===== Доращивание по ответу владельца на кадр v129 =====
   Меню строкой мелких значков у миникарты справа вверху, низ
   свободен; кластер глубже в нижний правый угол; у кластера
   отдельные кнопки автобоя и поиска цели как в L2M. */
@media (pointer: coarse) and (max-width: 1024px) {
  #mv-mainmenu { top: calc(122px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); left: auto; bottom: auto; transform: none; grid-template-columns: repeat(5, 30px); gap: 4px; --uibtn: 30px; }
  #mv-mainmenu .mv-mm-t { display: none; }
  #mv-mainmenu .mv-mm-ic, #mv-mainmenu .mv-mm-g { width: 17px; height: 17px; }
  #mv-actionbar { right: calc(4px + env(safe-area-inset-right)); bottom: calc(4px + env(safe-area-inset-bottom)); }
}

/* Строка состояния автобоя в трекере (блок 9.2). */
.mv-trk-ab { margin-top: 3px; font-size: 11px; line-height: 1.25; color: #ffd9a0; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }

/* Урезанная мобильная раскладка (блок 9.3): кластер по составу ячеек,
   трекер одной строкой, звук ушёл в настройки, в бою затухают только
   меню и чат. */
@media (pointer: coarse) and (max-width: 1024px) {
  #mv-btn-mute { display: none !important; }
  #mv-actionbar .mv-cells-track { display: flex; flex-wrap: wrap; width: fit-content; max-width: 372px; gap: 6px; }
  #mv-tracker-text { display: none; }
  #mv-tracker-rows .mv-trk-row { display: none; }
  #mv-tracker-rows .mv-trk-row:first-child { display: flex; }
  #mv-tracker.mv-trk-flag #mv-tracker-rows .mv-trk-row { display: none; }
  body.mv-combat.mv-idle #mv-mainmenu, body.mv-combat.mv-idle #mv-chat { opacity: .3; }
}

/* Пакет «Скилы, иконки и расположение»: рамки ветвей, знаки, состояния. */
.mv-cell.mv-cell.mv-fb-war { border-color: rgba(216,110,84,.95) !important; border-radius: 2px !important; }
.mv-cell.mv-cell.mv-fb-craft { border-color: rgba(216,154,91,.95) !important; border-style: double !important; border-width: 3px !important; }
.mv-cell.mv-cell.mv-fb-trade { border-color: rgba(232,179,75,.95) !important; border-radius: 12px !important; }
.mv-cell.mv-cell.mv-fb-lore { border-color: rgba(111,195,228,.95) !important; outline: 1px solid rgba(111,195,228,.65); outline-offset: 2px; }
.mv-cell.mv-cell.mv-fb-druid { border-color: rgba(125,208,105,.95) !important; border-radius: 9px 2px 9px 2px !important; }
.mv-cell.mv-cell.mv-grand { border-color: #e8b34b !important; outline: 2px solid rgba(232,179,75,.9); outline-offset: 2px; box-shadow: 0 0 9px rgba(232,179,75,.5), inset 0 0 0 1px rgba(232,179,75,.45); }
.mv-cell-sign { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; display: grid; place-items: center; z-index: 3; pointer-events: none; }
.mv-cell-sign img { width: 14px; height: 14px; filter: drop-shadow(0 0 1.6px rgba(0,0,0,.95)) drop-shadow(0 0 1.6px rgba(0,0,0,.95)); }
.mv-cell-paw { position: absolute; left: 2px; bottom: 2px; width: 15px; height: 15px; background: rgba(10,16,26,.9); border-radius: 50%; display: grid; place-items: center; z-index: 3; pointer-events: none; }
.mv-cell-paw img { width: 10px; height: 10px; }
.mv-cell-lock { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.mv-cell-lock img { width: 17px; height: 17px; opacity: .92; }
.mv-cell.mv-lock .mv-cell-ic { filter: grayscale(1) brightness(1.9); opacity: .38; }
.mv-cell.mv-nomp { box-shadow: inset 0 0 0 60px rgba(38,84,180,.34); }
.mv-cell.mv-nomp .mv-cell-ic { filter: saturate(.55) brightness(.85); }
.mv-cell.mv-nocond { box-shadow: inset 0 0 0 60px rgba(90,100,112,.36); }
.mv-cell.mv-nocond .mv-cell-ic { filter: grayscale(.75) brightness(.8); }
.mv-cell.mv-buffon { border-color: #e8b34b !important; box-shadow: 0 0 7px rgba(232,179,75,.55); }
.mv-cell .mv-arc { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px)); }
.mv-cell.mv-casting .mv-cd { border-radius: 50%; animation: mv-spinarc .9s linear infinite; }
@keyframes mv-spinarc { to { transform: rotate(360deg); } }
.mv-sk-icimg { width: 26px; height: 26px; }

/* Пакет «Скилы»: зоны кадра боя и строка-подсказка на сенсорном экране. */
@media (pointer: coarse) and (max-width: 1024px) {
  #mv-skill-note { position: fixed; right: 10px; bottom: calc(var(--barH, 64px) + 10px); max-width: 300px; background: rgba(10,16,26,.85); color: #eaf4ff; font-size: 12.5px; line-height: 1.35; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(140,190,240,.4); z-index: 30; pointer-events: none; }
  #mv-actionbar .mv-cell.mv-skc .mv-cell-t { display: none; }
  #mv-actionbar .mv-cell.mv-skc .mv-cell-ic { width: 32px; height: 32px; }
  #mv-actionbar .mv-cells-track.mv-zones { display: grid; grid-template-columns: 52px 40px 52px 52px 52px 52px; grid-template-rows: 50px 58px 32px; gap: 4px; gap: 6px; width: 330px; max-width: 330px; }
  .mv-z-food { grid-area: 1 / 1; }
  .mv-z-sw { grid-area: 1 / 2; width: 40px; height: 40px; align-self: center; }
  .mv-z-sw .mv-cell-g { font-size: 16px; font-weight: 700; }
  .mv-z-sk1 { grid-area: 1 / 3; }
  .mv-z-sk2 { grid-area: 1 / 4; }
  .mv-z-sk3 { grid-area: 1 / 5; }
  .mv-z-sk4 { grid-area: 1 / 6; }
  .mv-z-tgt { grid-area: 2 / 1; align-self: center; }
  .mv-z-exp { grid-area: 2 / 2; width: 40px; height: 40px; align-self: center; }
  .mv-z-ab { grid-area: 2 / 5; align-self: end; }
  .mv-z-atk { grid-area: 2 / 6; width: 68px; height: 68px; justify-self: center; align-self: end; }
  .mv-z-jump { grid-area: 3 / 6; width: 44px; height: 44px; justify-self: center; align-self: center; }
  .mv-z-food .mv-cell-badge { top: auto; bottom: 2px; right: 3px; background: rgba(10,16,26,.85); border-radius: 7px; padding: 0 4px; }
}

#mv-actionbar .mv-cell.mv-skc .mv-cell-badge { top: auto; bottom: 2px; right: 3px; }

/* Доводка пакета скилов: ряд умений ниже текста трекера на узких экранах. */
@media (pointer: coarse) and (max-width: 720px) {
  #mv-actionbar .mv-cells-track.mv-zones { grid-template-rows: 50px 56px 30px; gap: 4px; }
}

/* Доводка пакета скилов: трекер целиком выше ряда умений на телефоне. */
@media (pointer: coarse) and (max-width: 1024px) {
  #mv-tracker { transform: translateY(-7px); margin-top: 55px !important; }
  #mv-actionbar { padding: 0 !important; }
  #mv-actionbar .mv-z-jump { align-self: end; }
  #mv-tracker .mv-trk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.mv-combat #mv-rightcol #mv-tracker { max-height: 96px; overflow: hidden; }
}

/* Образец заполненных иконок: картинка на весь квадрат, полоса страниц под рядом. */
@media (pointer: coarse) and (max-width: 1024px) {
  #mv-actionbar#mv-actionbar .mv-skc { border-radius: 14px !important; border-width: 2px; padding: 0; }
  #mv-actionbar#mv-actionbar .mv-skc .mv-cell-ic { width: 47px; height: 47px; }
  #mv-actionbar .mv-skc.mv-lock .mv-cell-ic { filter: brightness(.35) saturate(.35); opacity: 1; }
  #mv-actionbar .mv-cells-track.mv-zones { position: relative; }
  #mv-actionbar#mv-actionbar .mv-z-sw { width: 36px; height: 32px; justify-self: center; align-self: center; border-radius: 9px !important; background: rgba(13,20,30,.65) !important; }
  #mv-actionbar .mv-z-sw .mv-cell-t, #mv-actionbar .mv-z-sw .mv-key { display: none !important; }
  .mv-sw-in { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .mv-sw-arr { font-size: 13px; line-height: 1; letter-spacing: -3px; color: #9fc6e8; font-weight: 700; }
  .mv-sw-dots { display: inline-flex; gap: 3px; }
  .mv-sw-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
  .mv-sw-dots i.mv-on { background: #ffffff; box-shadow: 0 0 4px rgba(255,255,255,.8); }

}

/* v195: фон до загрузки темы, перенесён из инлайн-блока grizzly.html (CSP style-src без unsafe-inline) */
html, body { background: #141d27; }
