/* Личный кабинет (cabinet.html) — поверх style.css, те же токены цвета. */
.cab-top { background: var(--bg2); border-bottom: 1px solid var(--line); }
.cab-top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.cab-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.cab-title { color: var(--muted); flex: 1; }
.cab { padding-top: 22px; padding-bottom: 60px; }
.cab h1 { font-size: 1.7rem; margin: 0 0 4px; }
.cab h2 { font-size: 1.2rem; margin: 0 0 10px; }
.cab h3 { font-size: 1.05rem; margin: 0 0 8px; }
.cab-grid2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; align-items: start; }
.cab-login, .cab-why { padding: 18px; }
.cab-login label { display: block; font-weight: 600; margin: 12px 0 0; }
.cab-login input, .cab input[type=text], .cab input[type=number] { display: block; width: 100%; margin-top: 6px; font: 500 1rem var(--font); padding: 10px 12px; border: 1px solid var(--line2);
  border-radius: 6px; background: var(--card2); color: var(--text); min-height: 44px; }
.cab-login .btn { margin-top: 16px; width: 100%; }
.cab-steps { margin: 0; padding-left: 20px; color: var(--muted); }
.cab-steps li + li { margin-top: 4px; }
.cab-why ul { margin: 0; padding-left: 18px; color: var(--muted); }
.cab-why li + li { margin-top: 6px; }
.cab-note { color: var(--soft); font-size: .9rem; margin: 12px 0 0; }
.cab-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--red); }
.cab-msg.ok { color: var(--grass); }
.cab-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 16px 18px; }
.cab-head > div:first-child { flex: 1; min-width: 180px; }
.cab-sub { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cab-sub .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--soft); display: inline-block; }
.cab-sub .dot.on { background: #4ec94e; box-shadow: 0 0 0 3px rgba(78, 201, 78, .25); }
.cab-kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.cab-kpis .lbl { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.cab-kpis b { font-size: 1.15rem; }
.cab-tabs { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; position: sticky; top: 0; z-index: 40; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
#tab-profile > .cab-head { margin-bottom: 14px; }
.cab #cab-view { padding-top: 0; }
/* «Донат» + продолжение с бонусом — одна кнопка: золотая часть и полупрозрачный «хвост» в той же рамке */
.chip.chip-don, .chip.chip-don[aria-selected=true] { display: inline-flex; align-items: stretch; padding: 0; overflow: hidden; background: rgba(247, 199, 60, .14); border: 2px solid #d9a21b; max-width: 100%; }
.chip-don .don-main { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: linear-gradient(135deg, #f7d154, #d9a21b); color: #3a2600; white-space: nowrap; }
.chip-don[aria-selected=true] .don-main { background: linear-gradient(135deg, #ffe07a, #e8b02a); color: #2a1b00; }
.don-card .btn { white-space: normal; }
.chip-don .don-ext { background: linear-gradient(rgba(247, 199, 60, .16), rgba(247, 199, 60, .16)), var(--card); display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 10px; font-weight: 600; font-size: .82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip-don .don-ext:empty { display: none; }
.chip-don:hover .don-ext { background: linear-gradient(rgba(247, 199, 60, .26), rgba(247, 199, 60, .26)), var(--card); }
.chip-don .bc-ico { font-size: 1rem; line-height: 1; }
.chip-don .bc-t { color: var(--soft); font-weight: 500; }
.chip[aria-selected=true] { background: var(--grass); color: #fff; border-color: var(--grass); }
.cab-tab { display: grid; gap: 14px; }
.cab-tab[hidden], .cab [hidden] { display: none !important; }
.cab-tab > *, .cab-cards > * { min-width: 0; }   /* grid не растягивается под широкую таблицу — у таблицы своя прокрутка */
.cab-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.cab-card { padding: 16px; }
.cab-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cab-stat { background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.cab-stat .lbl { display: block; font-size: .78rem; color: var(--soft); }
.cab-stat b { font-size: 1.2rem; }
.bar { height: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grass); }
.bar.warn > i { background: var(--warn); }
.bar.bad > i { background: var(--red); }
.skill { display: grid; grid-template-columns: 1fr 44px; gap: 2px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.skill:last-child { border-bottom: 0; }
.skill span { font-size: .95rem; }
.skill b { text-align: right; }
.skill .bar { grid-column: 1 / -1; }
.cab-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.cab-row input { flex: 1; min-width: 140px; margin-top: 0 !important; }
.cab-meta { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tog:last-child { border-bottom: 0; }
.tog input { width: 22px; height: 22px; accent-color: var(--grass); }
.mtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mtable th, .mtable td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.mtable th:first-child, .mtable td:first-child { text-align: left; }
.mtable th { font-size: .72rem; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.mtable input { width: 20px; height: 20px; accent-color: var(--grass); }
.rank { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.rank.r3 { background: var(--gold-bg); color: var(--gold); border-color: var(--gold); }
.rank.r2 { background: var(--grass-bg); color: var(--grass); border-color: var(--grass); }
.mem { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mem:last-child { border-bottom: 0; }
.mem .nm { font-weight: 600; flex: 1; min-width: 100px; }
.mem .on { color: #4ec94e; font-size: .8rem; }
.ach { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; }
.ach h3 { margin: 0; }
.ach p { margin: 0; grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.ach .bar { grid-column: 1 / -1; }
.ach .st { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.ach.done { border-color: var(--grass); }
.ach.done .st { color: var(--grass); }
.btn.red { --b: #b4321f; --bh: #e56a55; --bl: #6f1d12; }
.body-fig { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.body-fig div { font-size: .9rem; }
.body-fig .bar { margin-top: 4px; }
.cab-sync { margin: 2px 0 0; color: var(--soft); font-size: .8rem; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; line-height: 18px; text-align: center; }
.inv { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.inv5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.slot { min-height: 54px; background: var(--card2); border: 1px solid var(--line2); border-radius: 4px; padding: 4px; font-size: .72rem; line-height: 1.2; overflow: hidden; word-break: break-word; }
.slot.empty { opacity: .45; }
.slot .bar { height: 4px; margin-top: 3px; }
.ench { color: #b67cff; }
.chat { max-height: 280px; overflow-y: auto; background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: .92rem; }
.chat .cl + .cl { margin-top: 4px; }
.chat .tm { color: var(--soft); font-size: .78rem; }
.cab-sel { font: 500 .95rem var(--font); padding: 8px 10px; min-height: 44px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card2); color: var(--text); }
.note-card { border-color: var(--gold); background: var(--gold-bg); }
.lots td:first-child { white-space: normal; }
.lbl2 { display: block; font-weight: 600; font-size: .92rem; margin: 10px 0 0; }
.lbl2 input { display: block; width: 100%; margin-top: 6px; font: 500 1rem var(--font); padding: 10px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card2); color: var(--text); min-height: 44px; }
.cab input[type=email], .cab input[type=password] { font: 500 1rem var(--font); padding: 10px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card2); color: var(--text); min-height: 44px; }
.cab-row input[type=email] { flex: 1; min-width: 160px; }
.sellslot { cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.sellslot:hover { border-color: var(--grass); background: var(--grass-bg); }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal[hidden] { display: none !important; }
.modal-box { width: 100%; max-width: 420px; padding: 18px; }
.modal-box label { display: block; font-weight: 600; margin-top: 8px; }
.modal-box input { display: block; width: 100%; margin-top: 6px; font: 600 1.2rem var(--font); padding: 10px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card2); color: var(--text); min-height: 48px; }
.cab-bonusbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin-top: 12px; border-color: var(--gold); background: var(--gold-bg); }
.bb-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 260px; }
.bb-ico { font-size: 1.8rem; line-height: 1; }
.bb-ico.pulse { animation: bbPulse 1.4s 5; }   /* 2026-10-21: 5 раз, не бесконечно */
@keyframes bbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.bb-right { display: flex; gap: 8px; flex-wrap: wrap; }
.bb-gift { font-size: .7rem; background: rgba(0, 0, 0, .25); border-radius: 99px; padding: 1px 6px; }
.modal-wide { max-width: 980px; max-height: calc(100vh - 32px); overflow-y: auto; }
.don-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 12px 0; }
.don-card { padding: 14px; display: flex; flex-direction: column; }
.don-card h3 { margin: 0 0 4px; }
.don-card ul { margin: 8px 0 12px; padding-left: 18px; color: var(--muted); font-size: .9rem; flex: 1; }
.don-price { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--gold); }
.don-price span { font-size: .82rem; font-weight: 500; color: var(--soft); }
/* ---------- скин ---------- */
.skin-card { margin-bottom: 14px; }
.skin-wrap { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
#skin-prev { width: 96px; height: 192px; image-rendering: pixelated; background: repeating-conic-gradient(var(--card2) 0 25%, var(--bg) 0 50%) 0 0/16px 16px; border: 2px solid var(--line2); border-radius: 6px; flex: 0 0 auto; }
.skin-form { flex: 1 1 260px; min-width: 0; }
.skin-form label { display: block; font-weight: 600; margin-top: 8px; }
.skin-form input[type=file], .skin-form input:not([type]) { display: block; width: 100%; margin-top: 6px; }
.skin-form input:not([type]) { font: 600 1rem var(--font); padding: 9px 11px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card2); color: var(--text); }
.skin-var select { margin-left: 6px; }
/* ---------- инвентарь и рынок как в Minecraft ---------- */
.mcwin { background: #c6c6c6; color: #3f3f3f; border: 3px solid; border-color: #fff #555 #555 #fff; outline: 2px solid #000; border-radius: 3px; padding: 8px; margin: 10px 2px 6px; max-width: 520px; }
.mcwin h4 { margin: 0 0 6px; font: 700 .9rem var(--font); color: #3f3f3f; }
.mcgrid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.mc-hot { margin-top: 8px; }
.mcs { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; margin: 0; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; border-radius: 0;
  display: flex; align-items: center; justify-content: center; container-type: inline-size; cursor: default; font: inherit; }
.mcs:not(.empty) { cursor: pointer; }
.mcs:not(.empty):hover, .mcs.sel { background: #a9a9a9; }
.mcs.sel { outline: 2px solid #fff; outline-offset: -4px; }
.mcs.sellable:hover { background: #b5c9a5; }
.mcs.mine::before { content: ""; position: absolute; left: 2px; top: 2px; width: 6px; height: 6px; background: #3d8a1e; }
.mcs.empty[data-ph]::after { content: ""; position: absolute; inset: 18%; opacity: .25; background: currentColor; -webkit-mask: var(--ph) center/contain no-repeat; mask: var(--ph) center/contain no-repeat; }
.mcs[data-ph=helmet] { --ph: url(img/mc/item__empty_armor_slot_helmet.png); }
.mcs[data-ph=chestplate] { --ph: url(img/mc/item__empty_armor_slot_chestplate.png); }
.mcs[data-ph=leggings] { --ph: url(img/mc/item__empty_armor_slot_leggings.png); }
.mcs[data-ph=boots] { --ph: url(img/mc/item__empty_armor_slot_boots.png); }
.mcs[data-ph=shield] { --ph: url(img/mc/item__empty_armor_slot_shield.png); }
.mci { width: 76%; height: 76%; background-size: 100% auto; background-repeat: no-repeat; image-rendering: pixelated; pointer-events: none; }
.mci-x { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #555; }
.mcs.ench .mci, .mcs.ench .mcb { filter: drop-shadow(0 0 2px #c77dff) drop-shadow(0 0 1px #a855f7); }
.mcb { position: relative; width: 44cqw; height: 44cqw; transform-style: preserve-3d; transform: rotateX(-30deg) rotateY(-45deg); pointer-events: none; margin-top: 6cqw; }
.mcb i { position: absolute; inset: 0; background-size: 100% auto; image-rendering: pixelated; backface-visibility: hidden; }
.mcb .t { transform: rotateX(90deg) translateZ(22cqw); }
.mcb .l { transform: translateZ(22cqw); filter: brightness(.8); }
.mcb .r { transform: rotateY(90deg) translateZ(22cqw); filter: brightness(.6); }
.mcc { position: absolute; right: 3%; bottom: 0; color: #fff; font: 700 clamp(.62rem, 32cqw, .95rem)/1 var(--font); text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; }
.mcd { position: absolute; left: 12%; right: 12%; bottom: 9%; height: 3px; background: #000; pointer-events: none; }
.mcd i { display: block; height: 2px; }
.mc-top { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.mc-armor { display: grid; grid-template-columns: 1fr; width: calc((100% - 0px) / 9 * 1); min-width: 30px; flex: 0 0 calc(100% / 9); }
.mc-me { flex: 1; align-self: stretch; background: #000; color: #ddd; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .85rem; border: 2px solid; border-color: #373737 #fff #fff #373737; min-width: 0; }
.mc-me span { color: #9a9a9a; font-size: .75rem; }
.mc-off { flex: 0 0 calc(100% / 9); }
.mc-sellbox { flex: 0 0 calc(100% / 9 * 1.6); display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 700; font-size: .72rem; }
.mc-sellbox .mcs { width: 100%; border-color: #2f6b15 #9ee27a #9ee27a #2f6b15; background: #7fa86a; }
.mc-sellbox .mcs.over { background: #b8e39f; }
.mctip { position: fixed; z-index: 90; pointer-events: none; max-width: 260px; background: rgba(16, 0, 16, .94); border: 2px solid #2a0a5e; outline: 1px solid #100010; color: #aaa; padding: 5px 8px; font-size: .82rem; line-height: 1.35; display: flex; flex-direction: column; }
.mctip[hidden] { display: none; }
.mctip b { color: #fff; font-weight: 600; }
.mctip b.aq { color: #55ffff; }
.mc-pick { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 2px solid var(--line2); border-radius: 8px; background: var(--card2); }
.mc-pick .mcs.big { width: 64px; flex: 0 0 64px; }
.mc-pick p { margin: 4px 0 8px; }

/* вкладка «Донат»: золотая, с мерцающим подарком */
.chip.chip-don { background: linear-gradient(135deg, #f7d154, #d9a21b); color: #3a2600; border-color: #b8860b; font-weight: 700; box-shadow: 0 0 10px rgba(247, 199, 60, .55); }
.chip.chip-don[aria-selected=true] { background: linear-gradient(135deg, #ffe07a, #e8b02a); color: #2a1b00; border-color: #8a6100; box-shadow: 0 0 14px rgba(247, 199, 60, .85); }
/* 2026-10-21 (владелец: «кабинет грузит процессор»): раньше анимировался filter: drop-shadow — перерисовка 60 раз/с (~7% CPU). Теперь свечение постоянное,
   анимируется только transform (это делает видеокарта без перерисовки) */
.gift-glow { display: inline-block; animation: giftGlow 1.6s ease-in-out 4; filter: drop-shadow(0 0 5px #fff3a0); }   /* качнётся 4 раза при появлении и светится дальше: бесконечная анимация держала ~3,5% CPU */
@keyframes giftGlow { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.22) rotate(-8deg); } }
.don-tab-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.don-free { border: 2px solid var(--grass); background: var(--grass-bg); position: relative; }
.don-free .don-price { color: var(--grass); }
.don-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; margin-bottom: 6px; background: var(--grass); color: #fff; }
.don-tag.gold { background: var(--gold); color: #2a1b00; }
.don-free .gift-big { font-size: 2.2rem; line-height: 1; margin-bottom: 4px; }
.streak { display: flex; gap: 6px; margin: 4px 0 8px; }
.streak .st { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 8px; border: 2px dashed var(--line2); color: var(--soft); }
.streak .st b { font-size: 1.15rem; }
.streak .st small { font-size: .68rem; }
.streak .st.done { border-style: solid; border-color: var(--grass); color: var(--grass); }
.streak .st.now { border-style: solid; border-color: var(--gold); background: var(--gold-bg); color: var(--text); box-shadow: 0 0 10px rgba(247, 199, 60, .45); }
.warn-t { color: var(--gold); }
.don-hint { font-size: .8rem; color: var(--soft); margin: 6px 0 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .gift-glow, .bb-ico.pulse { animation: none; } }
@media (max-width: 720px) {
  .inv { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cab-grid2 { grid-template-columns: 1fr; }
  .cab-title { display: none; }
  .cab-kpis { gap: 14px; }
}

/* У218: «Подарок дня» — на кнопке «Бонусы» (подпись) и вверху вкладки «Бонусы» */
.chip-bonus .bn-ext { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line2); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.chip-bonus .bn-ext:empty { display: none; }
.chip-bonus .bn-ext .bc-ico { font-size: 1rem; line-height: 1; }
.chip-bonus .bn-ext .bc-t { color: var(--soft); font-weight: 500; }
.bn-gift { margin-bottom: 14px; }
.bn-gift .don-sub:first-child { margin-top: 4px; }

/* У217 (бывш. У215): «Приведи друга» в профиле */
.ref-card { margin-top: 14px; border-color: var(--gold); background: var(--gold-bg); }
.ref-card h2 { margin: 0 0 8px; }
.ref-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; }
.ref-code code { font-family: var(--mono); font-weight: 700; font-size: clamp(1.15rem, 5vw, 1.5rem); color: #ffd64a; background: #120d09; border: 3px solid #000; box-shadow: inset 0 0 0 2px #5a4a39; padding: 6px 12px; word-break: break-all; }
.ref-card .ref-pro { margin-top: 14px; width: 100%; }

/* ---- У209 Бонусы ---- */
.bn-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 12px; }
.bn-item { padding: 14px; display: grid; gap: 6px; align-content: start; }
.bn-main { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.bn-amt { font-weight: 800; color: var(--gold); white-space: nowrap; }
.bn-st { margin: 0; font-weight: 600; font-size: .92rem; }
.bn-done { border-color: var(--grass); } .bn-done .bn-st { color: var(--grass); }
.bn-wait .bn-st { color: var(--warn); } .bn-todo .bn-st, .bn-off .bn-st { color: var(--muted); }
.bn-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
/* У213: Discord в «Аккаунте» — ручной ник спрятан под ссылку */
.dc-manual{margin-top:12px}
.dc-manual summary{cursor:pointer;text-decoration:underline dotted}

/* У236: голосовой чат (voice.js) */
.chip.chip-voice { border-color: #3fae5a; }
.vc-status { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-weight: 600; }
.vc-dot { width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; flex: none; }
.vc-dot.on { background: #3fd25e; box-shadow: 0 0 8px #3fd25e; }
.vc-me { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.vc-meter { width: 160px; max-width: 50%; height: 10px; border-radius: 5px; background: rgba(127, 127, 127, .25); overflow: hidden; }
.vc-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3fd25e, #f7d154); transition: width .08s; }
.vc-ctl { flex-wrap: wrap; gap: 8px; }
.vc-ctl .btn.red { background: #b4321f; color: #fff; }
.vc-ptt { display: block; width: 100%; margin: 12px 0; padding: 22px 12px; font-size: 1.1rem; touch-action: none; user-select: none; -webkit-user-select: none; }
.vc-ptt.on { filter: brightness(1.15); box-shadow: 0 0 0 3px #3fd25e inset; }
.vc-peer { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(127, 127, 127, .1); margin: 6px 0; flex-wrap: wrap; }
.vc-peer.talk { box-shadow: 0 0 0 2px #3fd25e inset; }
.vc-peer b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vc-ico { font-size: 1.2rem; }
.vc-peer.off { opacity: .6; }

/* У237: «Главная» — второй экран (home.js) */
.chip.chip-home { border-color: #3a9bff; font-weight: 700; }
.hm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 12px 14px; }
.hm-head-l, .hm-head-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.hm-nick { font-size: 1.1rem; }
.hm-bal { font-weight: 700; color: #d9a21b; }
.hm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 640px) { .hm-row { grid-template-columns: minmax(0, 1fr); } }
.hm-radar h3, .hm-vitals h3, .hm-skills h3, .hm-quick h3, .hm-chat h3 { margin: 0 0 8px; font-size: 1rem; }
.hm-radar canvas { display: block; width: 100%; max-width: 230px; height: auto; aspect-ratio: 1; margin: 0 auto; }
.hm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 6px; vertical-align: middle; }
.hm-dot.g { background: #3fd25e; } .hm-dot.s { background: #9a9a9a; } .hm-dot.y { background: #f7c73c; }
.hm-stat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 8px; margin: 6px 0; }
.hm-stat .bar { grid-column: 1 / -1; }
.hm-stat:not(:has(.hm-ico)) { grid-template-columns: 1fr auto; }
.hm-ico { width: 1.4em; text-align: center; }
.hm-sn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-mini { margin: 8px 0 0; font-size: .92rem; }
.hm-warn { color: #e0533d; font-weight: 600; } .hm-cold { color: #3a9bff; font-weight: 600; }
.hm-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.hm-part { border-radius: 8px; padding: 5px 6px; text-align: center; font-size: .78rem; line-height: 1.25; }
.hm-part span { display: block; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-part.ok { background: rgba(63, 210, 94, .16); } .hm-part.warn { background: rgba(247, 199, 60, .22); } .hm-part.bad { background: rgba(224, 83, 61, .25); }
.hm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hm-tags span { background: rgba(213, 140, 255, .16); border-radius: 999px; padding: 3px 9px; font-size: .82rem; }
.hm-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-quick h3 { grid-column: 1 / -1; }
.hm-q { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(127, 127, 127, .25); background: rgba(127, 127, 127, .06); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.hm-q > span:first-child { grid-row: span 2; font-size: 1.4rem; }
.hm-q .cab-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-q .bar { grid-column: 1 / -1; }
.hm-chat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hm-chat-list { max-height: 9.5em; overflow-y: auto; font-size: .9rem; line-height: 1.35; margin: 6px 0; overflow-wrap: anywhere; }
.hm-msg.me b { color: #3a9bff; }
.hm-chat-form { display: flex; gap: 6px; }
.hm-chat-form input { flex: 1; min-width: 0; }
.hm-chat-over { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg, #111); }
.hm-chat-over[hidden] { display: none; }
.hm-chat-over-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.hm-chat-over .hm-chat-list { flex: 1; max-height: none; }
body.hm-noscroll { overflow: hidden; }
.vc-compact h2 { font-size: 1rem; margin-bottom: 6px; }
.btn.vc-big { width: 100%; padding: 14px; font-size: 1.05rem; }
@media (max-width: 520px) { .hm-q { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 8px 6px; } .hm-q > span:first-child { grid-row: auto; } .hm-q b { font-size: .85rem; } .hm-q .cab-meta { font-size: .75rem; white-space: normal; } }

/* У237: «Главная» компактнее (владелец: координаты и строка с ником — под радаром, больше влезает на телефон) */
.hm .card.cab-card { padding: 10px 12px; margin-bottom: 10px; }
.hm .hm-row { gap: 10px; }
.hm h2, .hm h3 { font-size: .95rem; margin: 0 0 4px; }
.hm .bar { height: 6px; }
.hm .hm-stat { margin: 3px 0; font-size: .9rem; gap: 1px 6px; }
.hm .hm-mini { margin-top: 5px; font-size: .86rem; }
.hm .hm-body { gap: 4px; margin-top: 6px; }
.hm .hm-part { padding: 3px 4px; font-size: .72rem; }
.hm .hm-radar canvas { max-width: 210px; }
.hm .hm-note { font-size: .74rem; margin: 2px 0 4px; text-align: center; }
.hm-info { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hm-coords { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(127, 127, 127, .35); background: rgba(127, 127, 127, .08); color: inherit; font: inherit; font-size: .95rem; cursor: pointer; min-height: 36px; }
.hm-coords:active { transform: scale(.97); }
.hm-coords:disabled { opacity: .55; cursor: default; }
.hm-coords b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hm-copy { opacity: .7; }
.hm-line { font-size: .84rem; line-height: 1.35; }
.hm-line .dot { display: inline-block; vertical-align: middle; }
.hm #hm-map .btn { padding: 4px 10px; font-size: .8rem; }
.hm .hm-quick { gap: 6px; }
.hm .hm-q { padding: 7px 8px; }
.hm .hm-chat-list { max-height: 7.2em; margin: 4px 0; font-size: .86rem; }
.hm .vc-compact > p.cab-meta { font-size: .8rem; margin: 2px 0 6px; }
.hm .vc-compact #vc-msg { font-size: .74rem; margin-top: 4px; }
.hm .btn.vc-big { padding: 12px; }

/* 2026-10-18 (владелец): вкладки на телефоне — одна строка с прокруткой вбок, компактно и у самого верха */
@media (max-width: 720px) {
  .cab-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; padding: 6px 0; margin: 0 0 8px; }
  .cab-tabs::-webkit-scrollbar { display: none; }
  .cab-tabs .chip { flex: none; padding: 5px 11px; font-size: .86rem; min-height: 34px; white-space: nowrap; }
  .cab-tabs .chip.chip-don .don-main { padding: 5px 11px; }
  .cab-tabs .chip-bonus .bn-ext { display: none; }
}
.hm-rwrap { position: relative; width: 100%; max-width: 210px; margin: 0 auto; aspect-ratio: 1; } .hm-rwrap canvas { position: absolute; inset: 0; width: 100% !important; max-width: none !important; height: 100%; } .hm-rbtns { display: flex; justify-content: center; gap: 6px; margin-top: 6px; } .hm-rbtns .btn { padding: 4px 10px; font-size: .8rem; } .hm-rbtns .btn.on { box-shadow: 0 0 0 2px #3fd25e inset; }

/* 2026-10-18: объединённые вкладки — раскрывающиеся блоки и подзаголовки разделов */
.cab-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cab-fold > summary::-webkit-details-marker { display: none; }
.cab-fold > summary h2 { margin: 0; font-size: 1rem; }
.cab-fold > summary::after { content: "▾"; opacity: .6; transition: transform .15s; }
.cab-fold[open] > summary::after { transform: rotate(180deg); }
.cab-fold[open] > summary { margin-bottom: 8px; }
.cab-sec { font-size: 1.05rem; margin: 14px 2px 8px; }
.cab-sec:first-child { margin-top: 4px; }
.hm-dot.b { background: #3a9bff; } .hm-fr { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(127,127,127,.15); flex-wrap: wrap; } .hm-fr b { min-width: 0; } .hm-fr .cab-meta { flex: 1 1 auto; } .hm-fr .btn.small { padding: 3px 9px; } .hm-fr .hm-x { padding: 2px 8px; opacity: .6; } .hm-fr.req { background: rgba(247,199,60,.12); border-radius: 8px; padding: 6px 8px; } .hm-friends .hm-chat-form { margin-top: 8px; }

/* 2026-10-18 (владелец): радар крупно — во всю ширину телефона; кнопка «⤢» — на весь экран; масштаб − / + */
.hm .hm-rwrap { max-width: 440px; width: 100%; }
.hm .hm-radar canvas { max-width: none; }
.hm-rbtns { flex-wrap: wrap; align-items: center; }
.hm-rbtns .btn { min-width: 38px; min-height: 34px; }
.hm-zl { min-width: 64px; text-align: center; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.hm-rclose { display: none; }
.hm-radar.full { position: fixed; inset: 0; z-index: 70; margin: 0; border-radius: 0; border: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: calc(10px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom)); background: var(--bg, #111); }
.hm-radar.full .hm-rwrap { max-width: none; width: min(96vw, calc(100vh - 210px), calc(100dvh - 210px)); }
.hm-radar.full .hm-rclose { display: block; position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 10px; z-index: 2; }
.hm-radar.full .hm-rbtns .btn { min-height: 42px; min-width: 46px; font-size: 1rem; }
.hm-radar.full .hm-note, .hm-radar.full .hm-info { max-width: 96vw; }
.chip.chip-reload { flex: none; padding: 5px 10px; } .map-over { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--bg, #111); padding-top: env(safe-area-inset-top); } .map-over[hidden] { display: none; } .map-over-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; } .map-over-top b { flex: 1; } .map-over-top .btn { min-height: 40px; } .map-over-top .btn.red { background: #b4321f; color: #fff; } .map-over iframe { flex: 1; width: 100%; border: 0; }
.hm .card.cab-card.hm-radar.full { margin: 0; border-radius: 0; height: 100vh; height: 100dvh; box-sizing: border-box; }
.cab-tools { display: inline-flex; gap: 6px; margin-left: auto; } .cab-tools .btn { min-width: 40px; min-height: 36px; padding: 4px 10px; font-size: 1.05rem; } .cab-top .wrap { display: flex; align-items: center; gap: 8px; } @media (max-width: 520px) { .cab-title { display: none; } }
/* 2026-10-18: кабинет как приложение — без случайного масштабирования (двойной тап, авто-зум iOS на полях ввода) */ html, body { touch-action: manipulation; } @media (max-width: 720px) { input, select, textarea { font-size: 16px !important; } }
/* 2026-10-18: человечек-фигура на «Главной» */ .hm-vgrid { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 12px; align-items: start; } .hm-fig { width: 78px; height: auto; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); } .hm-vcol { min-width: 0; } @media (min-width: 900px) { .hm-vgrid { grid-template-columns: 96px minmax(0, 1fr); } .hm-fig { width: 96px; } }
/* 2026-10-18: телепорты на «Главной» */ .tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; } .tp-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; cursor: pointer; min-height: 52px; } .tp-btn b { font-size: .9rem; } .tp-btn span { font-size: .78rem; color: var(--muted); } .tp-btn:disabled { opacity: .5; cursor: default; } .tp-btn:not(:disabled):active { transform: scale(.98); } .tp-run { background: rgba(58,155,255,.14); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; } .tp-ask { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); } .tp-ask-box { width: min(420px, 100%); padding: 16px; } .tp-ask-box h3 { margin: 0 0 6px; } .tp-ask-box .btn { flex: 1; min-height: 44px; }
/* голос в полноэкранном компасе — компактно сверху */ .hm-radar.full #hm-voice { width: min(96vw, 520px); flex: none; } .hm-radar.full #hm-voice .vc-card { margin: 0; padding: 8px 10px; box-shadow: none; } .hm-radar.full #hm-voice .vc-card > p.cab-meta:last-child { display: none; } .hm-radar.full #hm-voice #vc-peers { max-height: 4.6em; overflow-y: auto; } .hm-radar.full #hm-voice .vc-ctl .btn { min-height: 38px; } .hm-radar.full .hm-rwrap { width: min(96vw, calc(100dvh - 330px)); } .hm-radar.full { justify-content: flex-start; }
.hm-radar.full .hm-rclose { min-width: 44px; min-height: 40px; padding: 4px 12px; font-size: 1.1rem; } .hm-radar.full #hm-voice .vc-card { padding-right: 62px; }

/* 2026-10-18 (владелец): голосовой чат компактно и без «дрыганья» */
.vc-on h2 { font-size: .95rem; margin: 0 0 4px; }
.vc-bar { display: flex; align-items: center; gap: 6px; height: 20px; font-size: .82rem; color: var(--muted); }
.vc-where { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px 64px; gap: 6px; align-items: center; margin: 6px 0; }
.vc-ib { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(63,210,94,.18); font-size: 1.1rem; cursor: pointer; padding: 0; }
.vc-ib.off { background: rgba(180,50,31,.85); border-color: #b4321f; }
.vc-chip { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: 600 .82rem var(--font); cursor: pointer; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-meter { height: 10px; border-radius: 5px; background: rgba(127,127,127,.22); overflow: hidden; min-width: 0; width: auto; max-width: none; position: relative; isolation: isolate; }
/* 2026-10-21: подсветка «говорю» — слой с прозрачностью (раньше box-shadow с переходом — перерисовка при каждом слове) */
.vc-meter::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(63,210,94,.85); opacity: 0; transition: opacity .15s; will-change: opacity; pointer-events: none; }
.vc-meter.talk::after { opacity: 1; }
.vc-meter i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #3fd25e, #f7d154); transform-origin: left center; transform: scaleX(0); will-change: transform; }   /* 2026-10-21: без перехода, свой слой — без перерисовки */

.vc-ptt { display: block; width: 100%; margin: 4px 0 6px; padding: 14px 10px; touch-action: none; user-select: none; -webkit-user-select: none; }
.vc-ptt[hidden] { display: none; }
.vc-peers { min-height: 30px; }
.vc-peers .vc-peer { display: grid; grid-template-columns: 22px minmax(0, auto) minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 6px; margin: 3px 0; border-radius: 8px; min-height: 34px; flex-wrap: nowrap; }
.vc-peers .vc-peer b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.vc-pm { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-mute { width: 40px; height: 30px; padding: 0; font-size: .95rem; }
.vc-empty { margin: 4px 0; font-size: .82rem; }

/* У248: спавн и порталы под радаром — тап копирует координаты */
.hm-pois { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.hm-pois:empty { display: none; }
.hm-poi { border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 999px; padding: 6px 10px; font: 600 .8rem var(--font); cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hm-poi b { font-weight: 800; }
/* У255: личные метки — ✕ рядом с меткой, «📍 Метка здесь» */
.hm-poiw { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.hm-poi-del { border: 1px solid var(--line); background: var(--card2); color: #c0392b; border-radius: 999px; width: 30px; height: 30px; font-weight: 800; cursor: pointer; flex: none; }
.hm-poi-add { border-style: dashed; color: var(--muted); }
#hm-map { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hm-discord { --b: #5865f2; --bh: #8891f7; --bl: #3a43b8; color: #fff; }

/* У256: фильтры компаса — «⚙» в левом верхнем углу карточки радара, панель с галочками поверх */
.hm-radar { position: relative; }
.hm-fbtn { position: absolute; top: 8px; left: 8px; z-index: 3; min-width: 40px; min-height: 36px; padding: 2px 8px; font-size: 1.05rem; }
.hm-fbtn.on { box-shadow: 0 0 0 2px #f6c945 inset; }
.hm-radar.full .hm-fbtn { top: calc(8px + env(safe-area-inset-top)); left: 10px; }
.hm-flt { position: absolute; top: 50px; left: 8px; right: 8px; z-index: 4; max-width: 340px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.hm-flt[hidden] { display: none; }
.hm-flt-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.hm-flt-top b { flex: 1; }
.hm-flt-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.hm-flt-row input { width: 20px; height: 20px; accent-color: #3fd25e; }

/* У254: шумодав */
.vc-nr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.vc-nr .vc-chip { height: 32px; padding: 0 10px; }
.vc-nr .vc-chip.off { opacity: .7; }
.vc-nr-hint { font-size: .76rem; color: var(--muted); }
/* У401: шумоподавление авто — одна строка + «Подробности» с выключателем */
.vc-nr-on { font-size: .86rem; font-weight: 600; }
.vc-nr-on.off { opacity: .7; font-weight: 400; }
.vc-nrd { flex-basis: 100%; font-size: .8rem; }
.vc-nrd summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.vc-nrl { display: flex; align-items: center; gap: 8px; padding: 6px 0 2px; cursor: pointer; font-size: .86rem; }
.vc-nrl input { width: 20px; height: 20px; accent-color: #3fd25e; }
.vc-nrd p { margin: 4px 0 0; }
/* У290: звучащие точки */
.vc-snd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.vc-snd .vc-chip { height: 32px; padding: 0 10px; } .vc-snd .vc-chip.off { opacity: .7; }
.vc-snd input[type=range] { width: 110px; accent-color: #1abc9c; }

/* У240: статус связи, «Проверить связь», подсказка про VPN */
.vc-health { font-size: .8rem; line-height: 1.3; padding: 5px 8px; border-radius: 8px; margin: 4px 0; background: rgba(127,127,127,.14); }
.vc-health.ok { background: rgba(63,210,94,.15); }
.vc-health.warn { background: rgba(247,209,84,.2); }
.vc-health.bad { background: rgba(220,70,50,.2); }
.vc-tools { display: flex; gap: 6px; margin: 6px 0 2px; }
.vc-check { height: 32px; padding: 0 10px; }
.vc-check:disabled { opacity: .6; cursor: default; }
.vc-report { font-size: .8rem; line-height: 1.35; padding: 6px 8px; border-radius: 8px; background: rgba(127,127,127,.1); margin: 4px 0; }
.vc-report[hidden] { display: none; }
.vc-report div { margin: 2px 0; }
.vc-report .sum { margin-top: 6px; font-weight: 600; }
.vc-hint { font-size: .76rem; line-height: 1.3; color: var(--muted); margin: 6px 0 0; }

/* 2026-10-19 (У271): «Награды» — код партнёра, кто пришёл по кодам, друзья (ссылки на профиль daviart.com/p/Ник) */
.ref-partner h2 code { font-size: 1.05em; color: #ffd54a; white-space: nowrap; }
.ref-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.ref-stats b { color: var(--text, #fff); }
.ref-table { display: grid; gap: 4px; margin-top: 6px; }
.ref-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) 56px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center;
  padding: 8px 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 6px; font-size: .92rem; }
.ref-row > span { min-width: 0; overflow-wrap: anywhere; }
.ref-head { background: none; border: none; padding: 0 10px; color: var(--muted); font-size: .8rem; }
.ref-nick { color: #7fc8ff; font-weight: 600; text-decoration: none; }
.ref-nick:hover { text-decoration: underline; }
.ref-on { color: #5fd38a; }
.ref-friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.ref-fr { padding: 8px 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 560px) {
  .ref-head { display: none; }
  .ref-row { grid-template-columns: 1fr auto; }
  .ref-row { grid-template-columns: 1fr auto; row-gap: 2px; }
  .ref-row > span:nth-child(2), .ref-row > span:nth-child(4) { color: var(--muted); font-size: .85rem; }
  .ref-row > span:nth-child(3), .ref-row > span:nth-child(5) { text-align: right; }
}
.ref-sub { margin: 12px 0 6px; font-size: 1rem; }
#tab-refs h2 code { white-space: nowrap; }

/* 2026-10-19 (У276): страницы приватов, входящие предложения, клан с ролями */
#tab-claims, #tab-clan { display: grid; gap: 14px; }
#tab-claims > *, #tab-clan > * { min-width: 0; }
.role-pill { font-weight: 600; text-shadow: none; }
.deal-card .deal { padding: 10px 0; border-bottom: 1px solid var(--line); }
.deal-card .deal:last-child { border-bottom: 0; padding-bottom: 0; }
.deal-card .deal .cab-row { margin-top: 6px; }
.deal-card .deal-main .cab-meta { margin: 4px 0 0; }
.claim-li h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.claim-li .cab-meta { margin-bottom: 4px; overflow-wrap: anywhere; }
.role-grp { border-left: 4px solid var(--line2); padding: 6px 0 6px 12px; margin: 10px 0; }
.role-grp-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.role-perms { color: var(--soft); font-size: .85rem; margin: 4px 0 2px; }
.role-sel { min-height: 36px; padding: 4px 8px; font-size: .9rem; max-width: 100%; }
.role-ed { border-top: 1px solid var(--line); padding: 8px 0; }
.role-ed > summary { cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 36px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--grass); border-color: var(--card); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin-top: 10px; }
.perm { display: flex; align-items: center; gap: 8px; font-size: .92rem; min-height: 32px; }
.perm input { width: 20px; height: 20px; flex: none; accent-color: var(--grass); }
.journal { max-height: 340px; }
/* claim.html */
.cl-page { display: grid; gap: 14px; }
.cl-page > * { min-width: 0; }
.cl-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.cl-head .cab-meta { overflow-wrap: anywhere; }
.cl-facts .cab-stat b { font-size: 1rem; overflow-wrap: anywhere; }
.cl-sell .cab-row select { flex: none; }
.tog input { flex: none; }

/* Компас 3D (holo.js, 2026-10-19): в стиле Minecraft и сайта — рамка с объёмными краями, как окна интерфейса игры; подписи — как ники
   над головой; стрелка — как метка игрока на карте Minecraft. Наклон — проведи пальцем вверх-вниз (0° сверху … 85°). */
.hm-rwrap.holo-on > canvas { visibility: hidden; }
.holo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; touch-action: none; cursor: grab;
  background: #1b1712; border: 6px solid #6b4f32; box-sizing: border-box;
  box-shadow: inset 3px 3px 0 #9c7a52, inset -3px -3px 0 #3a2a1a, 0 0 0 3px #2a1f14, 0 6px 14px rgba(0, 0, 0, .45); }
.holo-map { position: absolute; inset: 0; }
.holo-map .maplibregl-canvas { outline: none; }
.holo-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 22px rgba(0, 0, 0, .55); }
.holo-n { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); pointer-events: none; font: 700 12px/1 Rubik, system-ui, sans-serif;
  color: #ffd93d; text-shadow: 1px 1px 0 #3a2a1a; }
.holo-me { width: 18px; height: 22px; pointer-events: none;
  background: #fff; clip-path: polygon(50% 0, 100% 100%, 50% 74%, 0 100%); filter: drop-shadow(0 0 0 #000) drop-shadow(1px 1px 0 #000) drop-shadow(-1px -1px 0 #000); }
.holo-load { position: absolute; inset: 0; display: grid; place-items: center; color: #e8e2d4; font-size: .85rem; text-shadow: 1px 1px 0 #000; }
.holo-tilt { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); pointer-events: none; font: 600 11px Rubik, system-ui, sans-serif;
  color: #f4f0e6; background: rgba(0, 0, 0, .45); border-radius: 4px; padding: 2px 6px; white-space: nowrap; transition: opacity .4s; }
.holo-p { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.holo-p i { width: 9px; height: 9px; background: #e84a4a; border: 1px solid #000; }
.holo-p.friend i { background: #5fd35f; }
.holo-p.clan i { background: #ffd93d; }
.holo-p span { font: 600 11px Rubik, system-ui, sans-serif; color: #fff; background: rgba(0, 0, 0, .35); padding: 0 4px; margin-top: 2px; white-space: nowrap; }
/* масштаб компаса щипком (home.js): одним пальцем страница листается вертикально, двумя — компас масштабируется, а не вся страница */
.hm-rwrap { touch-action: pan-y; }

/* компас: «Центр» и быстрые миры (2026-10-20) */
.hm-wsel { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.hm-wsel .btn { min-width: 34px; min-height: 30px; padding: 2px 8px; font-size: .78rem; }
.hm-wsel .btn.on { background: #3d8a1e; border-color: #3d8a1e; color: #fff; }
#hm-center { font-weight: 700; }
.hm-rwrap { touch-action: none; }
.hm-vtag { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); z-index: 3; pointer-events: none; font: 600 12px Rubik, system-ui, sans-serif; color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
/* компас 3D на своём движке (holo.js v5, three.js): метки — поверх сцены */
.holo-ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.holo-ov > .holo-me { position: absolute; transform: translate(-50%, -50%); }
.holo-ov > .holo-p { position: absolute; transform: translate(-50%, -100%); }
.holo-map canvas { display: block; width: 100% !important; height: 100% !important; visibility: visible !important; }
#hm-center[hidden] { display: none !important; }
/* компас 3D: точки и метки как в 2D, подписи приватов */
.holo-ov > .holo-poi, .holo-ov > .holo-claim { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.holo-poi b { font: 900 14px/1 Rubik, system-ui, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.holo-poi.k-home b { color: #e8743b; } .holo-poi.k-claim b { color: #3fd25e; } .holo-poi.k-claim-member b { color: #f7d154; }
.holo-poi.k-clan-home b, .holo-poi.k-clan-point b { color: #1abc9c; } .holo-poi.k-clan-home b { font-size: 17px; }   /* У289 */
.holo-poi.k-mark b { color: #e0262b; } .holo-poi.k-spawn b { color: #ffd93d; } .holo-poi.k-portal b { color: #b56bff; }
.holo-poi b.ban { width: 9px; height: 7px; border: 1px solid #000; } .holo-poi b.x { color: #e0262b; }
.holo-poi span { font: 600 10px Rubik, system-ui, sans-serif; color: #fff; background: rgba(0, 0, 0, .4); padding: 0 4px; margin-top: 1px; }
.holo-poi span:empty { display: none; }
.holo-claim { font: 600 10px Rubik, system-ui, sans-serif; color: #eaffea; background: rgba(20, 70, 30, .65); border: 1px solid rgba(34, 197, 94, .9); padding: 0 4px; }
.holo-claim.clan { color: #fff7d6; background: rgba(90, 70, 10, .65); border-color: rgba(234, 179, 8, .9); }
.holo-ov > .holo-me { width: 24px; height: 28px; filter: drop-shadow(2px 0 0 #000) drop-shadow(-2px 0 0 #000) drop-shadow(0 2px 0 #000) drop-shadow(0 -2px 0 #000) drop-shadow(0 0 6px rgba(255,255,255,.9)); z-index: 5; }
/* компас 3D: полоска наклона сбоку (одним пальцем: вверх — сильнее наклон, вниз — вид сверху) */
.holo-tiltbar { position: absolute; right: -6px; top: 14%; bottom: 14%; width: 30px; z-index: 6; touch-action: none; cursor: ns-resize;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; box-sizing: border-box;
  background: #6b4f32; border: 2px solid #2a1f14; border-radius: 6px; box-shadow: inset 2px 2px 0 #9c7a52, inset -2px -2px 0 #3a2a1a, 0 3px 8px rgba(0, 0, 0, .4); }
.holo-tiltbar.on { background: #7d5d3b; }
.holo-tiltbar span { font-size: 10px; line-height: 1; color: #ffd93d; text-shadow: 1px 1px 0 #3a2a1a; }
.holo-tiltbar .tb-track { position: relative; flex: 1; width: 8px; background: #2a1f14; border-radius: 4px; }
.holo-tiltbar .tb-track i { position: absolute; left: 50%; width: 18px; height: 12px; margin: 0 0 -6px -9px; background: #c8c8c8; border: 1px solid #000;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #6b6b6b; }
.holo-tiltbar b { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); font: 700 11px Rubik, system-ui, sans-serif; color: #fff;
  background: rgba(0, 0, 0, .55); padding: 1px 5px; border-radius: 4px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.holo-tiltbar.on b { opacity: 1; }

/* У399: мастер «Голос и звук» (cabinet.html#voice, voicewiz.js) — крупно и по шагам, сначала телефон */
.vw { display: flex; justify-content: center; }
.vw[hidden] { display: none; }
.vw-box { width: 100%; max-width: 520px; padding: 20px 18px 18px; }
.vw-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.vw-head h1 { margin: 0; font-size: 1.6rem; }
.vw-head .cab-meta { margin: 2px 0 0; }
.vw-ico { font-size: 2.6rem; line-height: 1; }
.vw-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.vw-dots li { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--soft); padding: 6px 8px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); }
.vw-dots li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line2); color: #fff; font-size: .8rem; flex: none; }
.vw-dots li.cur { color: var(--text); border-color: var(--grass); font-weight: 700; }
.vw-dots li.cur b, .vw-dots li.done b { background: var(--grass); }
.vw-dots li.done { color: var(--grass); }
.vw-step[hidden] { display: none; }
.vw-step label { display: block; font-weight: 700; font-size: 1.15rem; margin: 4px 0 8px; }
.vw-in { display: block; width: 100%; font: 600 1.25rem var(--font); padding: 12px 14px; min-height: 54px; border: 2px solid var(--line2); border-radius: 8px; background: var(--card2); color: var(--text); }
.vw-in:focus { outline: none; border-color: var(--grass); }
.vw-hide { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btn.vw-btn { display: block; width: 100%; margin-top: 14px; min-height: 58px; padding: 14px 12px; font-size: 1.15rem; font-weight: 800; white-space: normal; }
.btn.vw-btn:disabled { opacity: .7; cursor: default; }
.vw-pulse { animation: vwPulse 2s ease-in-out infinite; }
@keyframes vwPulse { 50% { filter: brightness(1.12); } }
@media (prefers-reduced-motion: reduce) { .vw-pulse { animation: none; } }
.vw-who { margin: 0 0 12px; color: var(--muted); }
.vw-stat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vw-stat li { font-size: 1.08rem; font-weight: 700; line-height: 1.3; padding: 12px 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.vw-stat li.ok { background: var(--grass-bg); border-color: var(--grass); }
.vw-stat li.warn { background: var(--warn-bg); border-color: var(--warn); }
.vw-stat li.wait { background: var(--card2); }
.vw-stat li.off { color: var(--muted); }
.vw-game { margin: 10px 0 0; font-size: .92rem; color: var(--muted); min-height: 1.3em; }
.vw-michelp { margin: 8px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.vw-michelp.bad { color: var(--text); background: var(--red-bg); border: 1px solid var(--red); border-radius: 8px; padding: 10px 12px; }
.vw-keep { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--gold-bg); font-weight: 600; font-size: .92rem; }
.vw-more { margin-top: 14px; }
.vw-more summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 6px 0; }
.vw-more .vc-card { margin-top: 8px; }
.vw-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 16px; }
/* У404: карточка голоса наверху «Главной» (вход через cabinet.html#voice) — крупный статус + большая кнопка микрофона */
.vw-top { margin: 0 0 14px; padding: 14px; border: 2px solid var(--grass); }
.vw-top[hidden], .vw-top [hidden] { display: none; }
.vw-top .btn.vw-btn { margin-top: 12px; }
.vw-top #vw-start .btn.vw-btn { margin-top: 0; }
.vw-top .vw-stat { display: flex; flex-wrap: wrap; gap: 6px; }
.vw-top .vw-stat li { flex: 1 1 auto; padding: 9px 12px; font-size: 1.02rem; text-align: center; min-width: 0; }
.vw-top .vw-game { margin-top: 6px; }
/* в «Голосовом чате» на «Главной» — без второй кнопки «Включить звук и голос» / «Включить микрофон»: она одна, в карточке наверху */
.vw-armed #hm-voice #vc-join, .vw-armed #hm-voice .vc-micoff { display: none; }
.vc-micoff[hidden] { display: none; }
.vc-micoff .cab-meta { margin: 6px 0 4px; }
.vc-micoff .vc-bad { color: var(--text); background: var(--red-bg); border-radius: 8px; padding: 8px 10px; }

/* У426: один вход (мастер) + «Что внутри» рядом; галочка звука; окно «Забыл пароль»; вкладка «Карта мира» */
.vw { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.vw-why { width: 100%; max-width: 460px; }
.vw-why ul { padding-left: 18px; margin: 8px 0; display: grid; gap: 6px; }
.vw-step label.vw-auto { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; margin: 14px 0 0; cursor: pointer; }
.vw-auto input { width: 22px; height: 22px; accent-color: var(--grass); flex: none; }
#vw-steps[hidden], #recover-form[hidden] { display: none; }
#recover-form { margin-top: 6px; }
#recover-form label { display: block; margin: 8px 0; }
#recover-form input { display: block; width: 100%; margin-top: 4px; }
.vw-dlg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .62); }
.vw-dlg[hidden] { display: none; }
.vw-dlg__box { width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 18px 16px; }
.vw-dlg__box h2 { margin: 0 0 10px; }
.vw-dlg__box ul { padding-left: 18px; margin: 6px 0 10px; display: grid; gap: 4px; }
.vw-dlg__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.vw-dlg__btns .btn { flex: 1 1 180px; min-height: 48px; font-weight: 800; }
a.chip.chip-map { text-decoration: none; display: inline-flex; align-items: center; background: linear-gradient(135deg, #2f8fc4, #1f6a99); color: #fff; border-color: #1f6a99; white-space: nowrap; }
a.chip.chip-map:hover { filter: brightness(1.1); }.btn.vw-fgbtn { display: block; width: 100%; margin-top: 10px; min-height: 46px; font-weight: 700; }
