/* Спокойный слой поверх старых стилей: один акцент на главном действии, плоские поверхности, обычный шрифт, движение только по делу.
   Подключён последним. Цвета берутся из темы, поэтому все темы продолжают работать. */

/* шрифт: широкий заголовочный только у логотипа */
html:root { --f-disp: var(--f-body) !important; }
.brand-word, .tb-brand .brand-word { font-family: "Unbounded", "Arial Black", system-ui, sans-serif !important; font-weight: 700; }
h1, h2, h3, h4, h5, .chat-head .title, .gz-title b { letter-spacing: 0 !important; }

/* логотип без золотого блеска */
.brand-word { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--fg) !important; filter: none !important; animation: none !important; text-shadow: none !important; }

/* кнопки: заливка без градиента и свечения. Акцентная кнопка только для главного действия */
.btn.pri, .btn.pri:hover, .ring-btn, .ring-btn:hover { background: var(--btn-flat, var(--acc)) !important; background-image: none !important; box-shadow: none !important; text-shadow: none !important; color: var(--acc-fg, #111) !important; border-color: transparent !important; }
.btn.pri:hover, .ring-btn:hover { filter: brightness(1.08); }
.btn::before, .btn::after, .ring-btn::before, .ring-btn::after { content: none !important; }
.btn, .btn:hover, .ring-btn, .ring-btn:hover { transform: none !important; animation: none !important; }
.btn:active { filter: brightness(.92); }
.fr-tabs .add { background: none !important; background-image: none !important; box-shadow: none !important; color: var(--acc) !important; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent) !important; }

/* сообщения: обычный список без рамки вокруг каждого */
body.pult .msg, body.pult .msg.cont { margin: 0; border: 0; border-radius: 0; background: none; }
body.pult .msg { margin-top: 10px; padding-block: 3px; }
body.pult .msg.cont { margin-top: 0; }
body.pult .msg:hover { background: var(--hover, rgba(255, 255, 255, .04)); }
body.pult .msg.mention, body.pult .msg.mention-me { background: var(--mention); border: 0; }
body.pult .chat.voice-view .msg { margin-inline: 0; }
.msg.new { animation-duration: .12s; }

/* без декоративного свечения и узоров */
.sv-head .orn, .gz-bgfx { display: none !important; }
.tb-brand .gz-logo { filter: none !important; }
.panel, .dcard, .bp-row, .bug-row, .set-home button { box-shadow: none !important; }

/* скругления одного порядка, а не везде по максимуму */
.panel { border-radius: 14px; }
.modal, .mb { border-radius: 14px; }
.gz-shell, body.pult .gz-shell { border-radius: 12px; }

/* движение: подсказка о действии, а не украшение */
.sv:hover, .drow:hover, .fp-items .it:hover, .set-home button:hover, .gz-card:hover, .gz-mini:hover { transform: none !important; }
.gz-card { transition: border-color .12s, background-color .12s; }
.view-enter, .dash.enter .dsec { animation-duration: .12s !important; }
html.fx-max .hero-art i { animation: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* шапка главной не повторяет то, что уже есть в панели разделов */
.chat:has(.home-panel) .chat-head .title, .chat:has(.home-panel) .chat-head .hash { display: none; }
.chat:has(.home-panel) .chat-head [data-act="cmdk"], .chat:has(.home-panel) .chat-head [data-act="search-open"] { display: none; }

/* скачанный звук и голосовое выглядят одинаково */
.vmsg-dl { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--mut); }
.vmsg-dl:hover { background: var(--hover, rgba(255, 255, 255, .06)); color: var(--fg); }
.vmsg-dl svg, .media-dl svg { width: 16px; height: 16px; }
.media-att { position: relative; width: fit-content; }
.media-att video { width: auto; max-width: 100%; min-width: 200px; }
.media-dl { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .62); color: #fff; opacity: 0; transition: opacity .12s; }
.media-att:hover .media-dl, .media-dl:focus-visible { opacity: 1; }
@media (hover: none) { .media-dl { opacity: 1; } }

/* панели звонка открываются справа, над чатом */
.vdock { display: none; }
body.pult .chat.voice-view.has-dock > .vdock { display: block; grid-column: 2; grid-row: 2 / 5; z-index: 4; min-height: 0; overflow: auto; background: var(--main); }
body.pult .chat.voice-view.has-dock > .scroller, body.pult .chat.voice-view.has-dock > .typing, body.pult .chat.voice-view.has-dock > .composer { display: none; }
body.pult #app.v-fold .chat.voice-view.has-dock { grid-template-columns: minmax(0, 1fr) 360px; }
body.pult #app.v-fold .chat.voice-view.has-dock > .vchat-tab { display: none; }
.funpop.docked, .people-pop.docked { position: static !important; width: auto; max-width: none; max-height: none; border: 0; border-radius: 0; box-shadow: none; animation: none; background: none; backdrop-filter: none; }
[data-fp-x] { display: none; }
.funpop.docked [data-fp-x] { display: grid; }

/* панель разговора поверх игр */
.gz-callbar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 12px; background: var(--elev); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); max-width: calc(100% - 16px); }
.gz-callbar b { font-size: 13px; font-weight: 600; margin-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.gz-callbar .icon-btn { width: 36px; height: 36px; }
.gz-callbar .icon-btn.off { color: var(--err, #ff5a4a); }
.gz-callbar .icon-btn.red { background: #c9342a; color: #fff; }
body.lx-full .gz-callbar { top: 8px; bottom: auto; }
body:has(#gzg) .funpop, body:has(#gzg) .people-pop { z-index: 80; }
@media (max-width: 760px) { .gz-callbar b { display: none; } body.lx-full .gz-callbar { top: auto; bottom: 6px; left: 50%; } }

/* карточка Steam */
.steam-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #1b2838 82%, transparent); border: 1px solid #2a475e; color: #e6edf3; min-height: 56px; }
.steam-card:hover { border-color: #66c0f4; }
.steam-card img { width: 40px; height: 40px; border-radius: 6px; flex: none; }
.steam-card b { display: block; font-size: 14px; }
.steam-card small { display: block; color: #a4b4c2; font-size: 12.5px; }
.steam-card small.on { color: #66c0f4; }
.steam-card small.game { color: #90ba3c; }
.steam-card, .steam-card:hover { text-decoration: none; }
.gz-chips .on, .gz-chips button.on { background: var(--btn-flat, var(--acc)) !important; background-image: none !important; box-shadow: none !important; color: var(--acc-fg, #111) !important; }
.dsrv, .steam-card, .vmsg { box-shadow: none; }

/* в играх кидать предметы негде: вкладки нет */
body:has(#gzg) .funpop [data-ft="items"] { display: none; }
/* поиск каналов */
.chan-search { position: relative; }
.chan-search input { -webkit-appearance: none; appearance: none; }
.chan-search input::-webkit-search-cancel-button { display: none; }
.chan-x { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 6px; color: var(--mut); }
.chan-x:hover { background: var(--hover, rgba(255, 255, 255, .06)); color: var(--fg); }
.chan-x svg { width: 14px; height: 14px; }
.chan-none { padding: 8px 12px; color: var(--mut); font-size: 13px; }
/* просмотр картинки */
.lbx { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .86); overflow: hidden; touch-action: none; user-select: none; cursor: zoom-out; animation: fade .12s ease-out; }
.lbx img { position: absolute; left: 50%; top: 50%; max-width: 94%; max-height: calc(100% - 80px); transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }
.lbx.zoomed img { cursor: grab; } .lbx.drag img { cursor: grabbing; }
.lbx-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 12px; background: rgba(20, 20, 24, .88); border: 1px solid rgba(255, 255, 255, .14); color: #fff; cursor: default; }
.lbx-bar button { width: 36px; height: 36px; border-radius: 8px; color: #fff; font-size: 18px; display: grid; place-items: center; } .lbx-bar button:hover { background: rgba(255, 255, 255, .12); }
.lbx-bar span { min-width: 52px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.lbx-save { width: 36px; height: 36px; min-width: 28px; display: grid; place-items: center; color: #b1f4e8; border-radius: 8px; }
.lbx-save:hover { background: rgba(255,255,255,.12); }
.lbx-save svg { width: 19px; height: 19px; }
.lbx-bar { max-width: calc(100% - 16px); }
.lbx-bar button { min-width: 28px; }
@media (max-width: 480px) { .lbx-bar { gap: 2px; padding-inline: 4px; } .lbx-bar span { min-width: 34px; font-size: 11px; } }

/* Сетка — каталог, живые эффекты остаются у наведённого предмета и в превью. */
#pe-main .it-tile:not(:hover):not(:focus-visible) *,
#pe-main .it-tile:not(:hover):not(:focus-visible) *::before,
#pe-main .it-tile:not(:hover):not(:focus-visible) *::after { animation: none !important; }
#pe-main .it-tile .av[data-frame="emerald_flare"]::before { background-image: url(/img/fx/emerald_ring_still.webp) !important; }
#pe-main .it-tile .lantern-art { background-image: url(/img/fx/emerald_lantern_still.webp) !important; }
@media (pointer: coarse) {
  #pe-main .it-tile *, #pe-main .it-tile *::before, #pe-main .it-tile *::after { animation: none !important; }
}
@media (max-width: 760px) {
  .pe-wrap { gap: 16px; }
  .pe-wrap .pe-side { flex: 1 1 100%; min-width: 0; width: 100%; max-width: 100%; position: static; }
  .pe-tabs { display: flex; flex-wrap: wrap; }
  .pe-tabs button { min-width: 0; padding-inline: 10px; }
  .pe-main :is(input.inp, select.inp, textarea.inp) { min-width: 0; max-width: 100%; }
  .pe-main .pv-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pe-main .pv-row .seg { flex-wrap: wrap; }
}
.pblock .game-now { font-weight: 600; }

/* логотип Norvox со своим фоном: подложка значка игрового центра к нему не относится */
svg.gz-logo { background: none !important; box-shadow: none !important; border-radius: 0 !important; filter: none !important; }

.dapp { flex: none; text-decoration: none; }
.dapp .ico { width: 16px; height: 16px; }

/* демка на весь экран: размытие поверх видео пересчитывается каждый кадр, из-за него и лагало */
:fullscreen, :fullscreen * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.tile.screen video, .tile:fullscreen video { object-fit: contain; background: #000; }
html.fs-idle :fullscreen { cursor: none; }
html.fs-idle :fullscreen :is(.tile-info, .tile-q, .tile-fs, .tile-pin, .tile-throw, .stage-top, .stage-ctl) { visibility: hidden; }
html.fs-video :fullscreen .tile { box-shadow: none; }
.auth-app { display: flex; justify-content: center; align-items: center; gap: 8px; height: 42px; margin-top: 8px; text-decoration: none; }
.auth-app .ico { width: 16px; height: 16px; }

/* видео вместо картинки в аватарке, значке, баннере и фоне чата */
.av video, .sv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-av video { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
.sv-banner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* паки */
.pk-row { gap: 10px; }
.pk-h { display: flex; flex-direction: column; gap: 2px; }
.pk-items { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-it { position: relative; width: 64px; height: 64px; border-radius: 10px; background: var(--elev2); display: grid; place-items: center; }
.pk-it.emoji { width: 40px; height: 40px; }
.pk-it img { max-width: 88%; max-height: 88%; object-fit: contain; }
.pk-it .del-x { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; display: none; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--err); color: #fff; cursor: pointer; }
.pk-it:hover .del-x { display: grid; }
.pk-it .del-x svg { width: 11px; height: 11px; }

/* игры на сенсорном экране: большие внутренние тени и размытие телефон пересчитывает на каждый кадр */
@media (pointer: coarse) {
  #gzg .felt, #gzg .gz-table, #gzg .gz-card, #gzg .pc, #gzg .mf-seat, #gzg .bk-dos { box-shadow: none !important; }
  #gzg *, #gzg *::before, #gzg *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  #gzg .gz-card { transition: none; }
}

.confirm-t { margin: 0; line-height: 1.5; }
/* открытый чат в гонках и танках: кнопки остаются снаружи панели */
.gz-room.live-chat .lx-chat { right: calc(min(320px, 86vw) + 10px); background: var(--acc); color: var(--acc-fg); border-color: transparent; z-index: 40; }
.gz-room.live-chat .lx-exit { display: none; }

/* гараж перед гонкой и между раундами танков */
.lx-gar{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(6,10,18,.82)}
.lx-gar-box{width:min(860px,100%);max-height:100%;overflow:auto;background:var(--elev,#141a26);border:1px solid var(--line,rgba(255,255,255,.12));border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px;color:var(--fg,#fff)}
.lx-gar-h{display:flex;justify-content:space-between;align-items:center;font-size:18px}
.lx-gar-t{font-variant-numeric:tabular-nums;color:var(--mut,#9aa);font-size:15px}
.lx-gar-sub{color:var(--mut,#9aa);font-size:13px;margin-top:-8px}
.lx-gar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.lx-gc{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:10px;border:2px solid transparent;background:rgba(255,255,255,.05);color:inherit;cursor:pointer;text-align:left;transition:background .12s,border-color .12s}
.lx-gc:hover:not(:disabled){background:rgba(255,255,255,.09)}
.lx-gc.on{border-color:var(--acc,#5fa8ff);background:rgba(255,255,255,.09)}
.lx-gc:disabled{opacity:.45;cursor:default}
.lx-gc img{width:100%;aspect-ratio:2/1;object-fit:cover;display:block}
.lx-gc small{color:var(--mut,#9aa)}
.lx-st{display:flex;flex-direction:column;gap:3px}
.lx-st i{display:grid;grid-template-columns:62px 1fr;align-items:center;font-style:normal;font-size:10px;color:var(--mut,#9aa);position:relative}
.lx-st em{font-style:normal}
.lx-st u{display:block;height:4px;border-radius:2px;background:var(--acc,#5fa8ff);text-decoration:none;max-width:100%}
.lx-gar-sw,.lx-gar-row{display:flex;flex-wrap:wrap;gap:8px}
.lx-sw{width:30px;height:30px;border-radius:50%;border:2px solid rgba(0,0,0,.3);cursor:pointer;padding:0}
.lx-sw.on{outline:2px solid #fff;outline-offset:2px}
.lx-tm{flex:1;min-width:110px;padding:8px;border-radius:9px;border:2px solid transparent;background:rgba(255,255,255,.06);color:inherit;cursor:pointer;font-weight:600}
.lx-tm.on{background:var(--c);color:#fff}
.lx-gar-up{display:flex;flex-direction:column;gap:6px}
.lx-up{flex:1;min-width:130px;display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:9px;border:0;background:rgba(255,255,255,.07);color:inherit;cursor:pointer;text-align:left}
.lx-up small{color:var(--mut,#9aa)}
.lx-up:disabled{opacity:.45;cursor:default}
.lx-gar-go{align-self:flex-end;min-width:150px}
.lx-gar-who{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--mut,#9aa)}
.lx-gar-who span{display:flex;align-items:center;gap:5px}
.lx-gar-who span.ok{color:var(--fg,#fff)}
.lx-gar-who span.ok::after{content:"✓"}
.lx-gar-who i{width:10px;height:10px;border-radius:3px}
.lx-gar-go{padding:10px 22px;border:0;border-radius:9px;background:var(--acc,#5fa8ff);color:var(--acc-fg,#06121f);font-weight:700;cursor:pointer}
.lx-gar-go:disabled{background:rgba(255,255,255,.1);color:var(--mut,#9aa);cursor:default}
@media (max-width:600px){.lx-gar{padding:6px;align-items:flex-start}.lx-gar-box{padding:10px;gap:8px}.lx-gar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.lx-gar-go{position:sticky;bottom:0;align-self:stretch}.lx-st i{grid-template-columns:54px 1fr}}
.tk-top.many{gap:3px;padding:5px;padding-right:96px;min-height:0}
.tk-top.many .tk-p{padding:3px 6px;gap:4px;font-size:11px}
.tk-top.many .tk-p:not(.me) b,.tk-top.many .tk-r{display:none}

/* когда идёт видео, за ним незачем считать размытый анимированный фон: на слабых компьютерах это отнимает кадры */
.stage:has(.tile.has-video) .stage-bg i { display: none; }
/* подпись с кадрами остаётся на виду, если с видео плохо: человек сразу видит причину */
html.fs-idle :fullscreen .tile-q.meh, html.fs-idle :fullscreen .tile-q.bad { visibility: visible; }
.tile-q { max-width: calc(100% - 96px); }

/* выбор человека после @ */
#mention-pop { position: fixed; z-index: 90; display: flex; flex-direction: column; gap: 2px; padding: 5px; max-height: 320px; overflow: auto; background: var(--elev); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.mn-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--fg); cursor: pointer; text-align: left; font: inherit; min-width: 0; }
.mn-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-row small { color: var(--mut); margin-left: auto; white-space: nowrap; }
.mn-row.on, .mn-row:hover { background: color-mix(in srgb, var(--acc) 20%, transparent); }
.mn-all { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: var(--acc-fg); font-weight: 700; }
/* пересылка */
.fwd-ref { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); margin-bottom: 2px; }
.fwd-ref svg { width: 13px; height: 13px; transform: scaleX(-1); }
.fw-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; margin-top: 8px; }
.fw-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
.fw-row:hover { background: color-mix(in srgb, var(--acc) 16%, transparent); }
.fw-row span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fw-row small { color: var(--mut); }
.fw-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--side2, var(--side)); font-weight: 700; }
/* жалобы */
.rp-why { display: flex; flex-direction: column; gap: 3px; }
.rp-w { display: flex; align-items: center; gap: 8px; padding: 5px 2px; cursor: pointer; }
.rp-quote { margin: 0 0 10px; padding: 7px 10px; border-left: 3px solid var(--line); color: var(--mut); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-h { display: flex; justify-content: space-between; gap: 8px; }
.rp-m { margin: 4px 0; font-size: 13px; color: var(--mut); }
.rp-t { margin: 4px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-row.st-done, .rp-row.st-rejected { opacity: .65; }
/* статистика Steam в профиле */
.st-stats { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.st-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--mut); }
.st-sum b { color: var(--fg); }
.st-g { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.st-g img { width: 64px; height: 24px; object-fit: cover; border-radius: 3px; }
.st-g b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-g small { color: var(--mut); white-space: nowrap; }

/* Окно приложения без отдельной полосы: кнопки Windows (138 px) стоят справа в верхней строке, за неё же окно перетаскивается */
html.norvox-app { --tb: 64px; }
html.norvox-app .topbar { -webkit-app-region: drag; padding-right: calc(146px / var(--ui-scale, 1)); }
html.norvox-app .topbar :is(button, a, input, label, [data-act], .av) { -webkit-app-region: no-drag; }
html.norvox-app body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 12px; -webkit-app-region: drag; z-index: 1; pointer-events: none; }
html.norvox-app :is(.settings-ov, .ppage-ov, .gz-ov) { inset: var(--tb) 0 0 0; }
html.norvox-app .lbx { top: 40px; }
html.norvox-app #auth::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 36px; -webkit-app-region: drag; pointer-events: none; }
html.norvox-app body.lx-full :is(.lx-chat, .lx-exit, .lx-board, .tk-r, .gz-emote-btn) { transform: translateX(-146px); }
html.norvox-app body.lx-full .tk-top { padding-right: 240px; }

/* ================= экран входа: ночное небо ================= */
#auth.sky { background: #040814; }
.auth-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
#auth.sky .hero, #auth.sky .side-form { position: relative; z-index: 1; background: none; }
#auth.sky .hero .orn { display: none; }
#auth.sky .hero h1, #auth.sky .hero p { color: #eef3ff; }
#auth.sky .hero p { color: rgba(226,235,255,.72); }
#auth.sky .stage3d { width: min(250px, 50%); animation: au-logo .9s cubic-bezier(.2,.9,.25,1.15) both; }
.brand-word span { display: inline-block; animation: au-letter .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i) * .055s); }
.au-feats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; animation: au-rise .6s .85s both; }
.au-feats li { padding: 5px 12px; border-radius: 99px; font-size: 13px; color: #dce7ff; background: rgba(120,160,255,.12); border: 1px solid rgba(150,185,255,.22); }
.au-card { padding: 28px; border-radius: 18px; background: rgba(10,18,38,.74); border: 1px solid rgba(150,185,255,.2); box-shadow: 0 24px 70px rgba(0,0,0,.45); color: #eef3ff; backdrop-filter: blur(10px); }
.au-card.au-first { animation: au-rise .6s .25s both; }
.au-card.au-in-r { animation: au-side-r .3s cubic-bezier(.2,.8,.2,1) both; }
.au-card.au-in-l { animation: au-side-l .3s cubic-bezier(.2,.8,.2,1) both; }
.au-card.au-shake { animation: au-shake .38s; }
.au-card .inp { transition: border-color .15s, box-shadow .15s; }
.au-card .inp:focus { border-color: #7fb0ff; box-shadow: 0 0 0 3px rgba(127,176,255,.22); }
.au-card .btn.pri { transition: transform .12s, filter .12s; }
.au-card .btn.pri:hover { filter: brightness(1.1); }
.au-card .btn.pri:active { transform: scale(.98); }
.au-pw { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; margin-top: 6px; min-height: 16px; }
.au-pw i { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); transition: background .15s; }
.au-pw span { font-size: 12px; color: rgba(226,235,255,.7); margin-left: 6px; min-width: 96px; text-align: right; }
.au-pw[data-l="1"] i:nth-child(-n+1) { background: #ff6b5a; }
.au-pw[data-l="2"] i:nth-child(-n+2) { background: #ffc24d; }
.au-pw[data-l="3"] i:nth-child(-n+3) { background: #7fd66b; }
.au-pw[data-l="4"] i:nth-child(-n+4) { background: #4fe0a0; }
#auth.au-leave :is(.au-card, .hero h1, .hero p, .au-feats) { opacity: 0; transform: scale(.97); transition: opacity .35s, transform .35s; }
#auth.au-leave .stage3d { transform: scale(1.5); opacity: 0; transition: transform .55s ease-in, opacity .5s .08s; }
@keyframes au-logo { from { opacity: 0; transform: scale(.55) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes au-letter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes au-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes au-side-r { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes au-side-l { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes au-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 45% { transform: translateX(7px); } 70% { transform: translateX(-4px); } 88% { transform: translateX(2px); } }
html.reduce-motion #auth.sky * { animation: none !important; }
@media (max-width: 760px) { #auth.sky { display: block; } #auth.sky .hero { padding: 26px 16px 4px; } #auth.sky .stage3d { width: 110px; } #auth.sky .au-feats { display: none; } #auth.sky .hero p { display: none; } .au-card { padding: 20px; } }
#auth.sky .side-form { border: 0; box-shadow: none; }
.lx-gi { position: relative; display: block; aspect-ratio: 2/1; overflow: hidden; }
.lx-gi img { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; height: auto; transform: translateY(-50%); object-fit: contain; }
.lx-gd { font-size: 11px; line-height: 1.25; min-height: 28px; }

/* ================= настольные игры: фигуры и материалы из Blender (tools/art/pieces.py) ================= */
/* доски всегда помещаются в окно целиком */
.ch-l { width: min(560px, 100%, calc(100dvh - 300px)); }
.ck { width: min(100%, 520px, calc(100dvh - 340px)); }
.c4 { width: min(100%, 520px, calc((100dvh - 330px) * 7 / 6)); }
.ttt { width: min(100%, 420px, calc(100dvh - 320px)); }
.gz-table:has(.ch), .gz-table:has(.ck), .gz-table:has(.ttt) { background: linear-gradient(rgba(10,6,3,.42), rgba(10,6,3,.62)), url(/img/pieces/tex_wood_dark.webp) center/640px; }
.gz-table:has(.c4) { background: linear-gradient(rgba(4,8,20,.3), rgba(4,8,20,.6)), url(/img/pieces/tex_felt_blue.webp) center/512px; }
.ch:not(.theme-neon):not(.theme-marble) .sqr.l, .ck-c.l { background: linear-gradient(rgba(255,240,205,.5), rgba(255,240,205,.5)), url(/img/pieces/tex_wood_light.webp) center/240px; }
.ch:not(.theme-neon):not(.theme-marble) .sqr.d, .ck-c.d { background: linear-gradient(rgba(70,34,10,.5), rgba(70,34,10,.5)), url(/img/pieces/tex_wood_red.webp) center/240px; }
.ch-board, .ck { box-shadow: 0 0 0 10px #2d180b, 0 0 0 12px #6b4524, 0 26px 50px rgba(0,0,0,.55); }
.ch-l { padding: 4px 12px; box-sizing: border-box; }
/* плоские фигуры (Cburnett, BSD): узнаются сразу и остаются чёткими на телефоне */
.ch:not(.theme-neon) .pz { position: absolute; inset: 2%; display: block; font-size: 0; color: transparent; -webkit-text-stroke: 0; text-shadow: none; background: center/contain no-repeat; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); z-index: 2; }
.ch .ch-promo .pz { position: static; width: 56px; height: 56px; display: block; }
/* клетка не обрезает: иначе едущую фигуру видно только на её новом месте */
.sqr { position: relative; overflow: visible; }
.sqr .pz.ch-taken { z-index: 1; }
.ch .sqr:hover > .pz.can { transform: scale(1.07); }
.ch .sqr:has(> .pz.can) { cursor: grab; }
.ch-ghost { transition: none; }
.ch-moves .hint { grid-column: 1 / -1; }
.sqr.last { box-shadow: inset 0 0 0 100px rgba(255,214,60,.42); }
.sqr.sel { box-shadow: inset 0 0 0 100px rgba(90,200,120,.55); }
.sqr.mv::after { background: rgba(20,70,30,.5); }
.sqr.cap::after { z-index: 3; box-shadow: inset 0 0 0 5px rgba(20,70,30,.6); }
.sqr .rk, .sqr .fl { z-index: 3; opacity: .85; font-size: 11px; pointer-events: none; }
.sqr.d .rk, .sqr.d .fl { color: #f3e2c2; } .sqr.l .rk, .sqr.l .fl { color: #5a3a1e; }
.ch:not(.theme-neon) .pz.p-wk { background-image: url(/img/pieces/flat/wk.svg); }
.ch:not(.theme-neon) .pz.p-bk { background-image: url(/img/pieces/flat/bk.svg); }
.ch:not(.theme-neon) .pz.p-wq { background-image: url(/img/pieces/flat/wq.svg); }
.ch:not(.theme-neon) .pz.p-bq { background-image: url(/img/pieces/flat/bq.svg); }
.ch:not(.theme-neon) .pz.p-wr { background-image: url(/img/pieces/flat/wr.svg); }
.ch:not(.theme-neon) .pz.p-br { background-image: url(/img/pieces/flat/br.svg); }
.ch:not(.theme-neon) .pz.p-wb { background-image: url(/img/pieces/flat/wb.svg); }
.ch:not(.theme-neon) .pz.p-bb { background-image: url(/img/pieces/flat/bb.svg); }
.ch:not(.theme-neon) .pz.p-wn { background-image: url(/img/pieces/flat/wn.svg); }
.ch:not(.theme-neon) .pz.p-bn { background-image: url(/img/pieces/flat/bn.svg); }
.ch:not(.theme-neon) .pz.p-wp { background-image: url(/img/pieces/flat/wp.svg); }
.ch:not(.theme-neon) .pz.p-bp { background-image: url(/img/pieces/flat/bp.svg); }
.ck-p { background: center/contain no-repeat !important; border: 0 !important; box-shadow: none !important; width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.ck-p.w { background-image: url(/img/pieces/check_w.webp) !important; } .ck-p.w.k { background-image: url(/img/pieces/check_wk.webp) !important; }
.ck-p.b { background-image: url(/img/pieces/check_b.webp) !important; } .ck-p.b.k { background-image: url(/img/pieces/check_bk.webp) !important; }
.ck-p::before, .ck-p::after { display: none !important; }
.c4 { background: linear-gradient(160deg, #2150b8, #12317a) !important; box-shadow: 0 0 0 6px #0d2358, 0 22px 44px rgba(0,0,0,.5) !important; }
.c4-d { background: center/contain no-repeat !important; box-shadow: none !important; inset: 5%; }
.c4-d.r { background-image: url(/img/pieces/c4_a.webp) !important; } .c4-d.y { background-image: url(/img/pieces/c4_b.webp) !important; }
.c4-c::before { background: radial-gradient(circle at 50% 35%, #030818, #0c1a44) !important; box-shadow: inset 0 4px 8px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.16) !important; }
/* крестики-нолики: выжженная на дереве сетка, крупные метки */
.ttt { padding: 12px; border-radius: 16px; background: url(/img/pieces/tex_wood_light.webp) center/420px; box-shadow: 0 0 0 8px #2d180b, 0 24px 46px rgba(0,0,0,.55); gap: 6px; box-sizing: border-box; }
.ttt-c { background: rgba(60,30,10,.16) !important; border: 2px solid rgba(60,30,10,.45) !important; font-weight: 900; text-shadow: 0 2px 0 rgba(255,255,255,.35); }
.ttt-c:not(:disabled):hover { background: rgba(60,30,10,.28) !important; }
.ttt-c.x { color: #a3200f; } .ttt-c.o { color: #123f86; }
.ttt-c.win { background: rgba(255,210,60,.5) !important; border-color: #a06a10 !important; }
/* столы: настоящая ткань и дерево вместо заливки */
.felt-green { background: radial-gradient(ellipse at center, rgba(70,200,130,.18), rgba(0,0,0,.5) 80%), url(/img/pieces/tex_felt_green.webp) center/420px; }
.felt-blue { background: radial-gradient(ellipse at center, rgba(90,160,240,.18), rgba(0,0,0,.5) 80%), url(/img/pieces/tex_felt_blue.webp) center/420px; }
.felt-red { background: radial-gradient(ellipse at center, rgba(255,120,120,.14), rgba(0,0,0,.55) 80%), url(/img/pieces/tex_wood_red.webp) center/520px; }
.felt { box-shadow: inset 0 0 0 6px #2d180b, inset 0 0 0 8px #6b4524, inset 0 0 90px rgba(0,0,0,.4); }
/* реакция: настоящая лампа */
.rx-pad { position: relative; border-radius: 24px !important; box-shadow: inset 0 0 70px rgba(0,0,0,.5), 0 18px 40px rgba(0,0,0,.45) !important; }

/* ================= телефон ================= */
@media (max-width: 820px) {
  /* стол на весь экран, чат и игроки открываются полкой поверх него */
  .gz-room { grid-template-rows: minmax(0, 1fr) auto; }
  .gz-side { height: auto !important; min-height: 0 !important; max-height: none !important; }
  .gz-room:not(.live-on) .gz-side:not(.open) > :not(.gz-stabs) { display: none !important; }
  .gz-room:not(.live-on) .gz-side.open { position: absolute; left: 0; right: 0; bottom: 0; height: min(58vh, 460px) !important; z-index: 30; background: var(--side); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 34px rgba(0,0,0,.45); display: flex; flex-direction: column; }
  .gz-stabs { padding: 5px 8px; }
  .gz-stabs button { min-height: 36px; }
  .ch-l { width: min(100%, calc(100dvh - 250px)); }
  .ck { width: min(100%, calc(100dvh - 300px)); }
  .pk { min-height: 0; }
  /* достижение: узкая полоска сверху, не закрывает работу */
  .ach-pop { left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top)); bottom: auto; padding: 7px 12px; gap: 10px; border-radius: 12px; min-width: 0; width: auto; }
  .ach-pop .ap-e { font-size: 24px; animation: none; }
  .ach-pop .hint, .ach-pop .ap-r, .ach-pop .lbl { display: none; }
  .ach-pop.out { transform: translateY(-20px); }
}
/* панель звонка на других разделах */
#call-pill { position: fixed; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 14px; background: #14492f; color: #eafff2; box-shadow: 0 8px 22px rgba(0,0,0,.4); cursor: pointer; }
#call-pill b { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#call-pill button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.12); color: inherit; border: 0; }
#call-pill button .ico { width: 19px; height: 19px; }
#call-pill button.off { background: rgba(255,90,70,.4); }
#call-pill button.red { background: #d23a2c; }
.cp-dot { width: 9px; height: 9px; border-radius: 50%; background: #5de27a; flex: none; animation: cpdot 1.6s ease-in-out infinite; }
@keyframes cpdot { 50% { opacity: .35; } }
html.norvox-app .settings-ov .set-close { top: calc(var(--tb) + 18px); right: 26px; }
/* кнопка скачивания на главной телефона: старое правило прятало все кнопки приветствия */
@media (max-width: 760px) { .dhero { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; } .dhero .dapp { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; width: 100%; box-sizing: border-box; } }
.dhero .dapp { color: var(--fg); }

/* ================= кружки ================= */
#circle-ov { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; background: rgba(3,6,14,.86); }
.cn-box { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px; }
.cn-round { position: relative; width: min(78vmin, 400px); aspect-ratio: 1; }
.cn-round canvas { width: 100%; height: 100%; display: block; border-radius: 50%; background: #0b1220; }
.cn-round canvas.mirror { transform: scaleX(-1); }
.cn-round svg, .vnote svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.cn-round circle, .vnote circle { fill: none; stroke-width: 2.2; }
.cn-round .bg { stroke: rgba(255,255,255,.14); }
.cn-round .fg, .vnote .fg { stroke: var(--acc); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.cn-t { color: #eef3ff; font-size: 15px; font-variant-numeric: tabular-nums; }
.cn-row { display: flex; align-items: center; gap: 22px; }
.cn-b { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.13); color: #fff; cursor: pointer; }
.cn-b .ico { width: 24px; height: 24px; }
.cn-go { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; border: 4px solid #fff; background: none; cursor: pointer; padding: 0; }
.cn-go i { width: 54px; height: 54px; border-radius: 50%; background: #e8392c; transition: border-radius .12s, width .12s, height .12s; }
#circle-ov.rec .cn-go { border-color: var(--acc); }
#circle-ov.rec .cn-go i { width: 26px; height: 26px; border-radius: 6px; background: var(--acc); }
.vnote { position: relative; width: min(240px, 62vw); aspect-ratio: 1; margin: 4px 0; cursor: pointer; border-radius: 50%; }
.vnote video { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; background: #0b1220; pointer-events: none; }
.vnote-t { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); padding: 2px 8px; border-radius: 9px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); font-variant-numeric: tabular-nums; }
.vnote-p { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; }
.vnote.play .vnote-p { display: none; }
/* панель звонка на телефоне: все кнопки в два ряда, «Выйти» не обрезается */
@media (max-width: 760px) { .stage-ctl .ctl-group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 2px; width: 100%; box-sizing: border-box; padding: 6px 4px; } .stage-ctl .cbtn { min-width: 0; width: 100%; padding: 2px 0; } .stage-ctl .cbtn .ci { width: 40px; height: 40px; margin: 0 auto; } .stage-ctl .cbtn small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-align: center; } }

/* 02.11: тихие переходы и меньше повторяющихся действий. Левое меню сохранено. */
.settings-intro { margin: 16px 0 28px; max-width: 540px; }
.settings-eyebrow { color: var(--acc); font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.settings-intro h2 { margin: 12px 0 !important; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; line-height: 1.15; }
.settings-intro p { color: var(--mut); line-height: 1.65; max-width: 410px; }
.settings-quick { display: grid; gap: 10px; max-width: 620px; }
.settings-quick button { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--elev); color: var(--fg); text-align: left; transition: border-color .16s, background .16s; }
.settings-quick button:hover { border-color: var(--acc); background: var(--elev2); }
.sq-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc); }
.sq-icon .ico { width: 21px; height: 21px; }
.settings-quick b { display: block; font-size: 15px; }
.settings-quick small { display: block; color: var(--mut); margin-top: 5px; font-size: 13px; }
.sq-arrow { margin-left: auto; color: var(--mut); font-size: 20px; }
.settings-guide { margin-top: 32px; padding-top: 24px; max-width: 620px; border-top: 1px solid var(--line); }
.settings-guide h3 { font-size: 14px; margin: 0 0 16px; }
.settings-guide p { color: var(--mut); font-size: 13px; line-height: 1.6; margin: 10px 0; }
.settings-guide b { color: var(--fg); font-weight: 500; }
.tester-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tester-tabs button { background: none; border-bottom: 2px solid transparent; color: var(--mut); padding: 12px 0; font-weight: 600; }
.tester-tabs [aria-selected=true] { border-bottom-color: var(--acc); color: var(--fg); }
.release-note { border: 1px solid var(--line); background: var(--elev); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.release-note.latest { border-top: 2px solid var(--acc); }
.release-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--mut); font-size: 12px; }
.release-meta > span { color: var(--acc); }
.release-note h3 { font-size: 21px; line-height: 1.35; margin: 18px 0 24px; letter-spacing: -.025em; }
.release-note h4 { font-size: 13px; margin: 22px 0 10px; }
.release-note ul { padding-left: 18px; margin: 0; color: var(--mut); font-size: 14px; line-height: 1.65; }
.release-note li + li { margin-top: 8px; }
.release-note summary { cursor: pointer; font-size: 14px; line-height: 1.5; }
.tester-content { min-width: 0; }
.incoming { z-index: 98; top: max(80px, calc(env(safe-area-inset-top, 0px) + 16px)); bottom: auto; box-shadow: 0 16px 40px rgba(0,0,0,.3); border-color: var(--line); }
.incoming .av .in { animation: none; }

/* Поле ввода перестраивается по ширине самой колонки, в том числе в голосовом чате. */
.composer { min-width: 0; container-type: inline-size; container-name: composer; }
.composer .box { min-width: 0; }
.composer .box > .icon-btn { flex-shrink: 0; }
@container composer (max-width: 480px) {
  .box { display: grid; grid-template-columns: repeat(auto-fit, minmax(32px, 1fr)); gap: 2px; padding: 5px; }
  .box textarea { grid-column: 1 / -1; grid-row: 1; width: 100%; box-sizing: border-box; }
  .box > .icon-btn { width: 100%; max-width: 40px; height: 34px; justify-self: center; margin: 0; }
}
body.pult .chat.voice-view > .scroller { padding-bottom: 16px; scroll-padding-bottom: 16px; }
.atts { align-items: flex-start; }
.atts img { height: auto; object-fit: contain; }
.media-att { min-width: 0; }
.call-record { display:flex;align-items:center;gap:9px;padding:8px 0;color:var(--mut);overflow-wrap:anywhere; }
.call-record .ico { flex-shrink:0;width:20px;height:20px;color:var(--acc); }
body.pult .members.closed.search-on { width:0; }
.read-person { display:flex; align-items:center; gap:10px; padding:9px 0; min-width:0; }
.read-person > .av { flex-shrink:0; }
.read-person > div:last-child { min-width:0; }
.read-person b { color:var(--fg); overflow-wrap:anywhere; }
.read-person time,.read-person small { display:block; color:var(--mut); font-size:12px; margin-top:3px; }
.vnote { max-width: 100%; flex-shrink: 0; }

/* Личный звонок сохраняет место для переписки. */
body.pult .stage.dm-waiting { min-height: 64px; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--side); color: var(--fg); }
.dm-call-person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dm-call-person b { font-size: 14px; }
.dm-call-person small { display: block; color: var(--mut); font-size: 12px; margin-top: 3px; }
.dm-call-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.pult .stage.dm-audio:not(.full) { height: auto; min-height: 0; background: var(--side); }
.dm-audio:not(.full) .stage-bg { display: none; }
.dm-audio:not(.full) .tiles { display: flex; flex:1; min-width:0; min-height:0; gap:12px; padding:8px 16px; justify-content:center; flex-wrap:wrap; }
.dm-audio:not(.full) .tile { flex: 0 1 clamp(80px,12vw,128px); min-height:0; height:auto; aspect-ratio:1; max-width:128px; border-radius:16px; background:var(--elev); }
.dm-audio:not(.full) .tile-av { position:static; transform:translateY(-10px); }
.dm-audio:not(.full) .tile-av .av { width:48px!important; height:48px!important; font-size:22px!important; }
.dm-audio:not(.full) .tile-info { left:8px; right:8px; bottom:8px; padding:0; background:none; justify-content:center; }
.dm-audio:not(.full) .stage-top [data-act=layout] { display:none; }
.dm-audio:not(.full) :is(.tile-fog, .tile-throw, .tile-pin, .tile-fs, .tile-q) { display: none; }
body.pult .dm-audio:not(.full) .stage-ctl { padding: 4px 8px 10px; }
body.pult .dm-audio:not(.full) .cbtn .ci { height: 34px; width: 36px; border-radius: 10px; }
body.pult .dm-audio:not(.full) .cbtn { min-width: 42px; }
.call-resize { display: none; position: absolute; bottom: 0; left: 0; right: 0; height: 10px; cursor: ns-resize; touch-action: none; z-index: 5; }
.dm-video:not(.full) .call-resize { display: block; }
.call-resize::after { content: ""; display: block; width: 40px; height: 3px; margin: 4px auto; border-radius: 3px; background: var(--mut); opacity: .5; }
.call-resize:hover::after, .call-resize:focus-visible::after { background: var(--acc); opacity: 1; }
@media (max-width: 760px) {
  body.pult .stage.dm-waiting { padding: 10px; gap: 8px; flex-wrap: wrap; }
  .dm-call-person .av { display: none; }
  .dm-call-actions .btn { padding-inline: 10px; font-size: 12px; }
  .release-note { padding: 16px; }
}

/* Движение только при действии. Без постоянного GPU-эффекта в звонке. */
/* Настройки оставляют верхнюю навигацию доступной и в браузере, и в приложении. */
html body.pult .settings-ov { top: var(--settings-top, 64px); bottom: 0; height: calc(var(--app-h, 100dvh) - var(--settings-top, 64px)); }
html body.pult .settings-ov .set-close { top: calc(var(--settings-top, 64px) + 18px); }
.modal { min-width: 0; max-width: 100%; box-sizing: border-box; }
.invite-dialog { container: invite / inline-size; }
.invite-dialog :is(.mb, .fld, .mlist) { min-width: 0; max-width: 100%; }
.invite-dialog header h3 { min-width: 0; overflow-wrap: anywhere; }
.invite-dialog header .icon-btn { flex-shrink: 0; }
.invite-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px; }
.invite-options .inp { min-width: 0; width: 100%; }
.invite-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.invite-dialog .mrow { min-width: 0; flex-wrap: nowrap; }
.invite-dialog .mrow .txt { min-width: 0; }
.invite-dialog .mrow > :is(.av, button) { flex-shrink: 0; }
@container invite (max-width: 480px) {
  .invite-options { grid-template-columns: minmax(0, 1fr); }
  .invite-link-row { grid-template-columns: minmax(0, 1fr); }
  .invite-link-row button, .invite-options button { justify-content: center; min-height: 42px; }
  #iv-list .mrow { display: grid; grid-template-columns: minmax(0, 1fr) 36px 36px; gap: 8px; padding-block: 10px; }
  #iv-list .mrow .txt { grid-row: 2; grid-column: 1 / -1; white-space: normal; font-size: 11px; line-height: 1.5; }
  #iv-list .mrow button { grid-row: 1; padding-inline: 0; width: 36px; }
  #iv-list .mrow .invite-code { grid-column: 1; grid-row: 1; justify-self: start; max-width: 100%; }
  #iv-list .mrow [data-copy-inv] { grid-column: 2; }
  #iv-list .mrow [data-revoke] { grid-column: 3; }
}

/* Видео Norvox: панели не перекрывают кадр, все команды доступны с клавиатуры. */
.nv-player { width: min(460px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; gap: 0; background: var(--side); container: player / inline-size; }
.nvp-picture { position:relative; min-width:0; background:#050910; display:flex; align-items:center; justify-content:center; }
.nv-player video { border-radius:0; max-height:360px; object-fit:contain; object-position:center; min-width:0; width:auto; margin-inline:auto; }
.nvp-big { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; border-radius: 50%; background: var(--acc); color: var(--on-acc, #071421); box-shadow: 0 6px 24px #0006; place-items: center; }
.nv-player[data-player-ready]:not(.playing) .nvp-big { display: grid; }
.nvp-big .ico { width: 23px; height: 23px; margin-left: 3px; }
.nvp-controls { padding: 10px 14px 8px; }
.nvp-seek { display: block; width: 100%; height: 5px; appearance: none; border-radius: 5px; margin: 5px 0 13px; padding: 0; background: linear-gradient(to right,var(--acc) var(--played,0%),var(--line) var(--played,0%)); cursor: pointer; }
.nvp-seek::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--acc); }
.nvp-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--acc); }
.nvp-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.nvp-row button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 12px; color: var(--fg); flex-shrink: 0; }
.nvp-row button:hover { background: var(--hover); }
.nvp-row .ico { width: 18px; height: 18px; }
.nvp-time { color: var(--mut); font: 11px var(--f-mono); white-space: nowrap; }
.nvp-volume { width: 58px; min-width: 0; accent-color: var(--acc); padding: 0; }
.nvp-row .media-dl { position:static; opacity:1; flex-shrink:0; padding:5px; width:28px; height:28px; background:transparent; color:var(--mut); border-radius:8px; }
.bubbles .msg.media-message .body { background:transparent; padding:0; border-radius:0; }
.bubbles .msg.media-message .mt { background:var(--elev); border-radius:12px; padding:8px 12px; }
.bubbles .msg.mine.media-message .mt { background:color-mix(in srgb,var(--acc) 24%,var(--elev)); }
.nvp-status { position: absolute; bottom: 12px; left: 12px; right: 12px; text-align: center; font-size: 12px; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }
.nv-player:fullscreen { display: flex; width: 100%; height: 100%; max-width: none; border: 0; border-radius: 0; }
.nv-player:fullscreen .nvp-picture { flex: 1; min-height: 0; display: flex; }
.nv-player:fullscreen video { max-height: none; height: 100%; }
.nv-player:fullscreen .nvp-controls { padding-inline: max(20px, calc((100vw - 900px)/2)); flex-shrink: 0; }
@container player (max-width: 340px) { .nvp-volume { display: none; } .nvp-controls { padding-inline: 9px; } .nvp-row { gap: 4px; } .nvp-time { font-size: 10px; } }
@container player (max-width: 280px) { .nvp-row [data-video="rate"] { display: none; } .nvp-row button { width: 28px; } .nvp-time { font-size: 9px; } }
html.app-idle *, html.app-idle *::before, html.app-idle *::after { animation-play-state: paused !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.screen-watch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; }
.screen-watch.watching { left: auto; top: auto; bottom: 42px; right: 10px; transform: none; font-size: 11px; padding: 6px 10px; opacity: .75; }
.screen-watch.watching:hover, .screen-watch.watching:focus-visible { opacity: 1; }
html.fs-idle :fullscreen .screen-watch.watching { visibility: hidden; }
.gz-logo .lg-spark { animation: none; transform-box: view-box; transform-origin: 48px 14px; }
@keyframes nv-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nv-call-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes nv-signal { 0%, 100% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.14); opacity: .7; } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion):not(.perf-low) .set-page > :is(.settings-intro, .settings-quick, .settings-guide),
  html:not(.reduce-motion):not(.perf-low) .tester-content { animation: nv-reveal .18s ease-out both; }
  html:not(.reduce-motion):not(.perf-low) .settings-quick { animation-delay: .035s; }
  html:not(.reduce-motion):not(.perf-low) .settings-guide { animation-delay: .06s; }
  html:not(.reduce-motion):not(.perf-low) .incoming { animation: nv-call-in .2s ease-out both; }
  .gz-logo .lg-mark { transform-origin: 32px 32px; }
  .gz-logo :is(.lg-mark, .lg-spark) { transition: transform .18s ease-out; }
  html:not(.reduce-motion):not(.perf-low) .tb-brand:hover .lg-mark { transform: translateY(-1px); }
  html:not(.reduce-motion):not(.perf-low) .tb-brand:hover .lg-spark { transform: rotate(25deg); }
  html:not(.reduce-motion):not(.perf-low) .ringing .gz-logo .lg-signal { transform-origin: 32px 32px; animation: nv-signal .65s ease-out 2; }
}

/* Короткий отклик, затем полная остановка: не нагружаем звонок фоновыми циклами. */
@keyframes nv-ink-nod { 0%,100% { transform: rotate(0); } 35% { transform: rotate(-6deg) scale(1.035); } 70% { transform: rotate(3deg); } }
@keyframes nv-surface { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.gz-logo .lg-ink { transform-box: view-box; transform-origin: 32px 32px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion):not(.perf-low) :is(.tb-brand,.home-logo):is(:hover,:focus-visible) .lg-ink { animation: nv-ink-nod .48s cubic-bezier(.22,1,.36,1) 1; }
  html:not(.reduce-motion):not(.perf-low) .modal { animation: nv-surface .22s cubic-bezier(.22,1,.36,1); }
  html:not(.reduce-motion):not(.perf-low) :is(.ctx,.toast:not(.out)) { animation: nv-surface .16s cubic-bezier(.22,1,.36,1); }
  html:not(.reduce-motion):not(.perf-low) :is(.settings-quick button,.tb-tab,.nvp-row button,.lbx-bar button,.lbx-save) { transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease; }
  html:not(.reduce-motion):not(.perf-low) .settings-quick .sq-arrow { transition: transform .2s cubic-bezier(.22,1,.36,1); }
  html:not(.reduce-motion):not(.perf-low) .settings-quick button:is(:hover,:focus-visible) .sq-arrow { transform: translateX(4px); }
}
html:is(.reduce-motion,.perf-low) :is(.gz-logo .lg-ink,.modal,.ctx,.toast) { animation: none !important; }

/* Профиль из настроек остаётся видимым; закрытие возвращает к незавершённой форме. */
.ppage-ov { z-index: 90; }
.settings-ov { animation: none; }
.rp-row,.bug-row,.sug-prompt,.rp-message { min-width:0; overflow-wrap:anywhere; }
.rp-h > b,.bug-h > b { min-width:0; overflow-wrap:anywhere; }
.rp-h .bug-st,.bug-h .bug-st { flex-shrink:0; }
.rp-thread { display:flex;flex-direction:column;gap:10px; }
.rp-message { background:var(--elev);border:1px solid var(--line);padding:12px;border-radius:12px; }
.rp-message.staff { border-left:3px solid var(--acc); }
.rp-message time { display:block;color:var(--mut);font-size:11px;margin-top:3px; }
.rp-message p { white-space:pre-wrap;margin:8px 0 0; }
.rp-context { margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:12px;min-width:0; }
.rp-context-head { display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap; }
.rp-context-list { position:relative;max-height:42dvh;min-height:100px;overflow:auto;overscroll-behavior:contain;margin:10px 0; }
.rp-context-message { padding:10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere; }
.rp-context-message.focus { border-left:3px solid var(--acc);background:var(--elev); }
.rp-context-message.deleted { border:1px dashed var(--mut);border-radius:9px;margin:6px 0; }
.rp-context-message time,.rp-context-deleted,.rp-context-file { display:block;color:var(--mut);font-size:12px; }
.rp-context-message p { white-space:pre-wrap;margin:6px 0;line-height:1.5; }
.rp-context-pages { display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between; }
.nv-exit-ghost { pointer-events:none!important;user-select:none!important; }
.nv-exit-ghost * { pointer-events:none!important;animation:none!important; }
.settings-ov .set-page { animation:none;min-width:0; }
.ev-head > div { min-width:0;flex:1; }
.ev-head .lbl { display:block;overflow-wrap:anywhere; }
.ev-head > button { flex-shrink:0; }
.ev-tabs { max-width:100%;overflow-x:auto;flex-wrap:nowrap;flex-shrink:0; }
.ev-tabs button { flex-shrink:0;white-space:nowrap; }
.cal-head { flex-wrap:wrap; }
.cal-head b { min-width:0;flex:1;text-align:center; }
.ev-t,.ev-when,.ev-who .hint { overflow-wrap:anywhere;min-width:0; }
#pe-prev .acts { display:none; }
.ach-pop { pointer-events:none;cursor:default; }
.set-page { container:settings / inline-size; }
.set-page .tgl > span { min-width:0;flex:1;overflow-wrap:anywhere; }
.set-page :is(.role-list,.role-body,.sty-t,.sty-cols) { min-width:0; }
.set-page :is(input,select,textarea) { max-width:100%; }
.set-page .sty-sw input { max-width:none; }
.set-page .sty-row { grid-template-columns:auto minmax(0,1fr) 96px auto; }
.set-page .sty-t { overflow-wrap:anywhere; }
.tester-tabs { flex-wrap:wrap;gap:4px 20px; }
.tester-tabs button { min-width:0;overflow-wrap:anywhere; }
@container settings (max-width:480px) {
  .roles-ed { grid-template-columns:minmax(0,1fr); }
  .sty-row { grid-template-columns:auto minmax(0,1fr) auto!important;gap:6px; }
  .sty-hex { display:none; }
  .set-page .row > .fld { min-width:0!important;max-width:100%; }
  .row > div { min-width:0!important;max-width:100%; }
  .sty-prev .btn { font-size:11px;padding:6px 8px;white-space:normal;max-width:100%; }
  .role-body { padding:12px; }
}
@container settings (max-width:280px) {
  .sp-app { grid-template-columns:28px minmax(0,1fr); }
  .sp-side { display:none; }
  .sp-msg { flex-wrap:wrap; }
  .sp-msg > div { min-width:0;overflow-wrap:anywhere; }
  .row > .fld { flex-basis:100%!important; }
  .row > div:not(.sv):not(.av) { flex-basis:100%!important; }
  .tester-tabs { display:grid;grid-template-columns:minmax(0,1fr); }
}
@supports not (container-type:inline-size) {
  @media(max-width:760px) {
    .set-page .roles-ed { grid-template-columns:minmax(0,1fr); }
    .set-page .row > div { min-width:0!important;max-width:100%; }
    .set-page .sty-row { grid-template-columns:auto minmax(0,1fr) auto; }
    .set-page .sty-hex { display:none; }
  }
}
@media(max-width:760px) {
  .ev-tabs { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-self:stretch;overflow:visible; }
  .ev-tabs button { min-width:0;white-space:normal; }
}
@media(max-width:480px) {
  .evpage { padding:14px 12px; }
  .ev-head { flex-wrap:wrap;align-items:center; }
  .ev-head > div { flex-basis:calc(100% - 54px); }
  .ev-head > .sp { display:none; }
  .ev-head > [data-evp-new] { order:2;flex-basis:100%; }
  .ev-head > [data-evp-close] { order:1; }
  .cal-head { gap:4px; }
  .cal-head b { font-size:14px; }
  .cal-head [data-cal="0"] { flex-basis:100%; }
  .cal .cd { min-width:0; }
  .ev-who { flex-wrap:wrap; }
}
@media(max-width:760px) {
  .rp-w { min-height:44px;align-items:center; }
  .rp-row .btn,.modal footer .btn { min-height:44px; }
  .rp-row .row { align-items:stretch; }
  .rp-row .row .btn { flex:1 1 auto;justify-content:center; }
}

/* Вход окон должен закончиться даже при потере фокуса; фоновые циклы остаются на паузе. */
html.app-idle :is(.cmdk-ov,.cmdk,.scrim,.modal,.ppage-ov,.evpage,.ctx,.pop,.lbx,.toast,.nv-exit-ghost,.tester-content,.settings-intro,.settings-quick,.settings-guide) { animation-play-state: running !important; }
/* CSS zoom не меняет media queries: сжимаем панель по её доступной ширине. */
.topbar { container-type: inline-size; }
.tb-search { min-width: 0; }
@container (max-width: 1100px) {
  .tb-search span,.tb-search kbd { display:none; }
  .tb-search { flex:none;width:42px;padding:0;justify-content:center;margin-left:auto; }
}
@container (max-width: 820px) { .tb-brand .brand-word { display:none; } .tb-tab { padding-inline:10px; } }
@container (max-width: 620px) { .tb-tab span:not(.badge) { display:none; } .tb-tab { padding-inline:10px; } .tb-brand { display:none; } }
.chat-head .title { min-width:0;overflow:hidden;text-overflow:ellipsis;flex-shrink:1; }
.chat-head > button { flex-shrink:0; }

/* Кнопки скачивания переносятся и при крупном масштабе окна ПК. */
.dhero { flex-wrap:wrap; }
.dhero > div { min-width:0;max-width:100%;overflow-wrap:anywhere; }
.dhero .dapp { max-width:100%;white-space:normal; }

/* Разделы настроек и инструменты общения. */
.set-group { margin:4px 0; }
.set-group > summary { cursor:pointer;padding:10px 12px;color:var(--mut);font-weight:700;font-size:12px; }
.set-group[open] > summary { color:var(--fg); }
.set-group > div { padding-bottom:6px; }
.set-explanation { color:var(--mut);font-size:13px;line-height:1.5;margin:0 0 18px; }
.nv-compose-tools { display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px; }
.nv-poll { display:flex;flex-direction:column;gap:8px;max-width:460px;padding:14px;margin:8px 0;border:1px solid var(--line);border-radius:14px;background:var(--elev); }
.nv-poll-option { position:relative;isolation:isolate;display:flex;justify-content:space-between;gap:12px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:10px;overflow:hidden; }
.nv-poll-option > i { position:absolute;inset:0 auto 0 0;background:var(--acc);opacity:.15;z-index:-1; }
.nv-poll-option.on { border-color:var(--acc); }
.nv-comments { display:flex;flex-direction:column;gap:10px;max-height:45vh;overflow:auto; }
.nv-comment { padding:12px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere; }
.nv-comment header { display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px; }
.nv-comment small { color:var(--mut); }
.nv-stat-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.nv-stat-grid strong { display:block;font-size:28px; }
.nv-stat-day { display:flex;align-items:center;gap:10px;min-width:0; }
.nv-stat-day progress { min-width:0;flex:1; }
.nv-channel-tools,.nv-server-rules { min-width:0;overflow-wrap:anywhere; }
.nv-server-rules { max-height:40vh;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:12px;white-space:pre-wrap; }
.nv-invite-qr { max-width:240px;padding:12px;background:white;color:#101820;border-radius:12px;margin-top:12px; }
.nv-invite-qr svg { width:100%;height:auto; }
.nv-invite-qr .hint { color:#43566b; }
.nv-att-spoiler { position:relative;overflow:hidden;border-radius:12px;max-width:100%; }
.nv-att-spoiler:not(.open) .nv-spoiler-content { filter:blur(22px);pointer-events:none;user-select:none; }
.nv-att-spoiler > button { position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;background:var(--elev); }
.pending .pi .pending-spoiler { left:4px;right:auto;top:auto;bottom:4px;background:var(--elev); }
.pending .pi .pending-spoiler.on { background:var(--acc);color:var(--acc-fg); }
.hashtag { display:inline;padding:0;color:var(--acc);font:inherit;cursor:pointer; }
@media(max-width:760px) { .set-group > summary { padding-block:14px;font-size:14px; } .nv-poll { max-width:100%; } }

.vmsg { flex-wrap:wrap;max-width:100%; }
.vmsg-rate,.vmsg-transcribe { padding:4px;border-radius:6px;flex:none;font-size:12px; }
.vmsg-rate:hover,.vmsg-transcribe:hover { background:var(--hover); }
.nv-transcript { flex-basis:100%;padding:10px 0 0;border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6; }
.nv-bot-channels { min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px; }

.nv-rules-button { width:calc(100% - 24px);margin:6px 12px;justify-content:center; }
/* Поле сообщения: общая раскладка телефона, сайта и Windows. */
#composer .box.nv-composer { display:flex;align-items:flex-end;gap:8px;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;container-type:inline-size; }
#composer .nv-compose-field { display:flex;align-items:flex-end;gap:4px;flex:1 1 0;min-width:0;max-width:100%;padding:4px 7px;border:1px solid color-mix(in srgb,var(--acc) 44%,var(--line));border-radius:25px;background:color-mix(in srgb,var(--elev) 92%,var(--acc));box-shadow:inset 0 1px 5px #0002;transition:border-color .16s,box-shadow .16s; }
#composer .nv-compose-field:focus-within { border-color:var(--acc);box-shadow:0 0 0 2px color-mix(in srgb,var(--acc) 12%,transparent); }
#composer .nv-composer textarea { display:block;flex:1 1 0;min-width:0;width:0;min-height:34px;padding:7px 4px;max-height:30vh;font-size:14px;line-height:20px;grid-column:auto;grid-row:auto; }
#composer .nv-compose-actions { display:flex;align-items:center;gap:3px;flex:0 0 auto;min-height:34px; }
#composer .nv-compose-actions .icon-btn { width:32px;height:34px;min-width:0;padding:6px;flex:none;border-radius:50%;color:var(--mut); }
#composer .nv-compose-actions .icon-btn:hover { color:var(--acc);background:var(--hover); }
#composer .nv-compose-actions [data-act="compose-record"] { border:1px solid var(--line);color:var(--acc); }
#composer .nv-composer > .icon-btn { width:44px;height:44px;max-width:none;min-width:0;flex:0 0 44px;padding:10px;margin:0;border-radius:16px;justify-self:auto;border:1px solid color-mix(in srgb,var(--acc) 60%,var(--line));color:var(--acc);background:var(--elev);box-shadow:0 2px 8px #0002; }
#composer .nv-composer > .send { color:var(--acc-fg);background:var(--acc); }
#composer .nv-composer button:disabled { opacity:.45;cursor:default; }
#composer .nv-composer button:focus-visible { outline:2px solid var(--acc);outline-offset:2px; }
#composer [data-act="compose-record"] { touch-action:none;user-select:none; }
.nv-compose-edit { display:flex;align-items:center;gap:8px;padding:7px 10px;margin:0 0 6px;border-left:2px solid var(--acc);color:var(--acc);font-size:13px; }
.nv-compose-edit > svg { width:18px;height:18px;flex:none; }
.nv-compose-edit > span { flex:1;min-width:0; }
.nv-compose-edit .icon-btn { width:28px;height:28px;flex:none; }
.nv-media-picker { max-width:calc(100vw - 16px); }
.nv-media-picker > .tabs { display:flex;gap:0;padding:5px; }
.nv-media-picker > .tabs > button:not(.icon-btn) { min-width:0;flex:1;padding:8px 5px;font-size:12px; }
.nv-media-picker > .tabs > .icon-btn { flex:0 0 25px;width:25px;padding:4px; }
.nv-media-picker .pb { min-width:0;overflow-x:hidden; }
.nv-media-picker #toss-pick .toss-tabs { flex-wrap:wrap; }
.nv-media-picker #toss-pick .toss-people { grid-template-columns:1fr; }
@container (max-width:360px) {
  #composer .nv-compose-field { padding:3px 5px;gap:0;border-radius:22px; }
  #composer .nv-compose-actions { gap:0;min-height:32px; }
  #composer .nv-compose-actions .icon-btn { width:28px;height:32px;padding:5px; }
  #composer .nv-composer textarea { padding:6px 3px;min-height:32px; }
}
@media(max-width:460px) {
  #composer .box.nv-composer { gap:5px; }
  #composer .nv-composer > .icon-btn { width:36px;height:40px;flex-basis:36px;border-radius:14px;padding:8px; }
}
@media(prefers-reduced-motion:no-preference) {
  html:not(.reduce-motion):not(.perf-low) #composer .nv-composer .icon-btn:active { transform:scale(.94); }
}
#composer { container-type:inline-size; }
@container (max-width:260px) {
  #composer .box.nv-composer { flex-wrap:wrap;gap:5px; }
  #composer .nv-compose-field { order:-1;flex-basis:100%; }
  #composer .nv-composer > .send { margin-left:auto; }
  #composer .nv-composer > .icon-btn { width:32px;height:32px;flex-basis:32px;padding:6px;border-radius:12px; }
}
@media(pointer:coarse) { #composer .nv-composer textarea { font-size:16px; } }
/* Отзыв 05.11: понятные области нажатия и завершённые переходы. */
.msg-avatar { display:block; width:40px; height:40px; padding:0; border:0; border-radius:50%; background:none; color:inherit; cursor:pointer; }
.msg-avatar:focus-visible { outline:2px solid var(--acc); outline-offset:3px; }
.shade.closing { animation:none; opacity:0; transition:opacity .28s ease; }
.pin-entry { padding:10px 0; border-bottom:1px solid var(--line); }
.pin-entry>.btn { margin:8px 0 0 56px; }
.pin-entry .atts { max-width:100%; }
.dash .drow:active { background:var(--sel); }
.dash [role=button]:focus-visible { outline:2px solid var(--acc); border-radius:50%; }
.vnote .fg { stroke:#fff; stroke-width:1.5; filter:drop-shadow(0 1px 2px #000b); transition:none; }
.nvp-retry { position:absolute; left:50%; top:70%; transform:translateX(-50%); }
.nvp-seek { background:linear-gradient(to right,var(--acc) var(--played,0%),var(--mut) var(--played,0%),var(--mut) var(--buffered,0%),var(--line) var(--buffered,0%)); }
.nvp-picture { min-height:140px; }
.image-att { position:relative; display:inline-flex; max-width:100%; min-width:0; }
.image-att img { max-width:100%; }
.image-att.loading { min-width:min(160px,100%); min-height:100px; background:var(--side); border-radius:12px; }
.image-load { position:absolute; left:8px; right:8px; top:50%; transform:translateY(-50%); text-align:center; font-size:12px; color:var(--mut); pointer-events:none; }
.image-att.loaded .image-load,.image-att:not(.failed) .image-retry { display:none; }
.image-att.failed { min-width:min(200px,100%); min-height:100px; background:var(--side); border:1px solid var(--line); border-radius:12px; }
.image-att.failed img { visibility:hidden; }
.image-att.failed .image-load { top:24px; }
.image-retry { position:absolute; left:8px; bottom:8px; }
body.reduce-motion .nav { transition:none!important; }
.reduce-motion .nav,.perf-low .nav { transition:none!important; }
.drow.person-row { cursor:default; }
.drow-avatar { display:grid;place-items:center;width:40px;height:40px;flex:none;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer; }
.drow-main { display:flex;align-items:center;gap:8px;flex:1;min-width:0;align-self:stretch;padding:0;border:0;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer; }
.drow-main:focus-visible,.drow-avatar:focus-visible { outline:2px solid var(--acc);outline-offset:3px;border-radius:8px; }
/* Критичные исправления 05.11: демонстрация отличается от карточки человека. */
.tile .screen-placeholder { display:none; }
.tile.screen .tile-av { display:none; }
.tile.screen:not(.video-ready) .screen-placeholder { display:block;position:absolute;left:12px;right:12px;top:24%;text-align:center;font-size:clamp(11px,1.3vw,15px);line-height:1.35;color:#dce8f5;overflow-wrap:anywhere; }
.tile.screen .screen-watch { max-width:calc(100% - 16px);white-space:normal;line-height:1.3;box-sizing:border-box; }
.tile.screen .screen-watch.watching { bottom:48px;right:8px;min-height:30px;opacity:1; }
.tile.screen .tile-info { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
html.fs-idle :fullscreen .screen-watch.watching { visibility:visible; }
.aim-chip { max-width:calc(100% - 24px);box-sizing:border-box;flex-wrap:wrap; }
.aim-chip>span:not(.art) { flex:1;min-width:100px;white-space:normal; }
.aim-chip button { flex:none; }
.pop[aria-busy=true] [data-tp] { pointer-events:none;opacity:.65; }
/* Конечные переходы завершаются и без фокуса: содержимое не остаётся прозрачным. */
html.app-idle :is(.view-enter,.dash.enter,.dash.enter .dsec,.dash.enter .dhero,#auth.au-leave,.au-card) { animation-play-state:running!important; }
.stage-body { display:flex;flex:1;min-width:0;min-height:0; }
.stage-body>.tiles { flex:1;min-width:0; }
.stage-body>.tile-rail { display:none; }
.stage-body.speaker>.tiles { display:flex;flex-direction:column;min-width:0; }
.stage-body.speaker>.tiles>.tile { flex:1;min-height:140px; }
.stage-body.speaker>.tile-rail:not([hidden]) { display:flex;flex:0 0 112px;flex-direction:column;gap:8px;padding:6px 8px 6px 0;overflow-y:auto;overscroll-behavior:contain; }
.tile-rail>.tile { flex:0 0 108px;min-height:108px;width:100%; }
.tile-rail .tile-av { transform:scale(.45); }
.tile-rail .tile-info { left:4px;right:4px;bottom:4px;font-size:10px;padding:3px;max-width:none; }
.tile-rail .tile-q,.tile-rail .tile-throw,.tile-rail .tile-fs { display:none; }
.tile-rail .tile-pin { right:4px;top:4px; }
.tile-rail .screen-placeholder { font-size:10px!important;top:6px!important;left:4px!important;right:4px!important; }
.tile-rail .screen-watch.watching { bottom:28px;right:4px;max-width:calc(100% - 8px);min-height:26px;font-size:10px;padding:3px; }
@media(max-width:760px) {
 .stage-body.speaker { flex-direction:column;overflow-y:auto; }
 .stage-body.speaker>.tile-rail:not([hidden]) { flex:0 0 116px;flex-direction:row;padding:4px 8px;overflow-x:auto;overflow-y:hidden; }
 .tile-rail>.tile { flex:0 0 108px;width:108px;min-height:104px; }
}

.boss-title{display:inline-block;margin-left:5px;padding:1px 5px;border:1px solid #a9824455;border-radius:5px;color:#e9bf73;font-size:10px;line-height:1.4;vertical-align:middle;white-space:nowrap}

.badges span[data-badge="boss"]{width:auto;min-width:30px;padding:0 8px;white-space:nowrap;font-size:13px}

/* Групповые чаты: те же размеры элементов на телефоне и ПК. */
.dm-group-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:11px;background:var(--elev);color:var(--acc);border:1px solid var(--line)}
.dm-group-icon>.ico{width:55%;height:55%}
.group-friends,.group-members{max-height:42dvh;overflow-y:auto;overscroll-behavior:contain;margin-top:12px}
.group-friend,.group-person{display:flex;align-items:center;gap:10px;padding:8px 2px;min-height:48px;min-width:0}
.group-friend-name,.group-person-name{flex:1;min-width:0;overflow-wrap:anywhere}
.group-friend small,.group-person small,#members .mem small{display:block;font-size:12px;color:var(--mut);margin-top:2px}
.group-friend input{width:20px;height:20px;flex-shrink:0;accent-color:var(--acc)}
.group-person>button:first-child{display:flex;align-items:center;gap:10px;text-align:left;flex:1;min-width:0;background:transparent;border:0;color:inherit;padding:0}
.group-manage{margin:12px 0;width:100%}
#group-error:empty{display:none}
#group-error{color:var(--red,#f28891);overflow-wrap:anywhere}
@media(max-width:480px){.modal:has(.group-members) footer,.modal:has(.group-friends) footer{flex-wrap:wrap}.modal:has(.group-friends) .fld{min-width:0}}

#scrim[data-group-id] .modal header h3{min-width:0;overflow-wrap:anywhere}

.install-steps{padding-left:22px;margin:8px 0;line-height:1.65}.install-steps li+li{margin-top:8px}.install-panel{overflow-wrap:anywhere}

.panel-order-row{display:flex;align-items:center;gap:8px;min-width:0}.panel-order-row>span{flex:1;overflow-wrap:anywhere}
@media(min-width:861px){
 body.pult #app.panel-custom:not(.v-full){--nav-panel-width:260px;grid-template-columns:var(--panel-columns)}
 body.pult #app.panel-custom:not(.v-full)>.nav,body.pult #app.panel-custom:not(.v-full)>.chat,body.pult #app.panel-custom:not(.v-full)>.members{grid-row:2;grid-column:var(--panel-column)}
 body.pult #app.panel-custom:not(.v-full)>.members.closed{margin-left:0;display:none}
 body.pult #app.voice-chat-left:not(.v-full) .chat.voice-view{grid-template-columns:360px minmax(0,1fr)}
 body.pult #app.voice-chat-left:not(.v-full) .chat.voice-view>#callstrip{grid-column:2;border-right:0;border-left:1px solid var(--line)}
 body.pult #app.voice-chat-left:not(.v-full) .chat.voice-view>.scroller,body.pult #app.voice-chat-left:not(.v-full) .chat.voice-view>.typing,body.pult #app.voice-chat-left:not(.v-full) .chat.voice-view>.composer{grid-column:1}
 body.pult #app.voice-chat-left.v-fold:not(.v-full) .chat.voice-view{grid-template-columns:56px minmax(0,1fr)}
}
@media(min-width:1101px){body.pult #app.panel-custom:not(.v-full){--nav-panel-width:300px}}

.winter-home{display:flex;align-items:center;gap:24px;padding:18px;border:1px solid #386a79;border-radius:18px;background:linear-gradient(130deg,var(--side),#17434733);margin:12px 0 18px;min-width:0}
.winter-home h2{font-size:20px;line-height:1.4}.winter-home p{color:var(--mut);line-height:1.6}
.winter-tree,.winter-gift{display:block;max-width:180px;width:100%;height:210px;flex-shrink:0;margin:8px auto}
.winter-home>.winter-tree,.winter-home>.winter-gift{width:150px;height:180px;margin:0}
.winter-prizes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.winter-prizes>div{border:1px solid var(--line);padding:12px;border-radius:12px;min-width:0;overflow-wrap:anywhere}.winter-prizes small{display:block;color:var(--mut);margin:6px 0;line-height:1.4}
.winter-result{min-height:30px;margin:14px 0;color:var(--acc);font-weight:700}
.winter-coal,.badges span.winter-coal{display:inline-block;width:auto;height:auto;max-width:160px;padding:3px 6px;color:#e7c798;border:1px solid #a3845055;border-radius:6px;font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.av.winter-frost .in{outline:2px solid #bceafa;outline-offset:2px;box-shadow:0 0 10px #86c9ee55}.winter-ornament{position:absolute;width:35%;height:35%;right:-5%;bottom:-4%;z-index:5}.winter-ornament svg{width:100%;height:100%}
#winter-snow{position:fixed;inset:0;pointer-events:none;z-index:54;overflow:hidden}#winter-snow i{position:absolute;left:var(--x);top:-30px;color:#d8eeff77;font-size:13px;font-style:normal;animation:winter-snow var(--d) var(--delay) linear infinite}
@keyframes winter-snow{to{transform:translate3d(30px,110vh,0) rotate(150deg)}}
@keyframes winter-case{0%{transform:rotate(0) scale(1)}25%{transform:rotate(-6deg) scale(1.05)}50%{transform:rotate(7deg) scale(1.1)}100%{transform:translateY(-12px) scale(1.15);opacity:.1}}
.case-opening>.winter-gift,.case-opening>.winter-tree{animation:winter-case .9s ease-in-out forwards}
html.perf-low #winter-snow,html.reduce-motion #winter-snow,html.app-idle #winter-snow{display:none}
@media(prefers-reduced-motion:reduce){#winter-snow{display:none}.case-opening>.winter-gift,.case-opening>.winter-tree{animation:none}}
@media(max-width:600px){.winter-home{gap:10px;padding:12px}.winter-home>.winter-tree,.winter-home>.winter-gift{width:90px;height:130px}.winter-home h2{font-size:16px}.winter-home p{font-size:12px}.winter-prizes{grid-template-columns:1fr}}

.profile-banner{position:relative;overflow:hidden}.profile-banner>img,.profile-banner>video,.profile-bg>img,.profile-bg>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.av .profile-still{width:100%;height:100%;display:block;object-fit:cover}.profile-upload-preview{display:flex;align-items:center;justify-content:center;max-height:45dvh;overflow:hidden;border-radius:12px;background:var(--elev)}.profile-upload-preview>img,.profile-upload-preview>video{max-width:100%;max-height:45dvh;object-fit:contain}

@media(min-width:861px){body.pult #app.voice-chat-left.v-fold:not(.v-full) .chat.voice-view>.vchat-tab{grid-column:1}}

@media(min-width:861px) and (max-width:1180px){body.pult #app.voice-chat-left:not(.v-full):not(.v-fold) .chat.voice-view{grid-template-columns:300px minmax(0,1fr)}}

/* Do not interpolate structural columns when moving whole panels. */
@media(min-width:861px){body.pult #app.panel-custom,body.pult #app.voice-chat-left .chat.voice-view{transition-property:background-color,border-color,box-shadow}}

/* Settings navigation: independent disclosure groups, with one bounded height animation. */
.set-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;user-select:none;border-radius:9px}
.set-group>summary::-webkit-details-marker{display:none}
.set-group>summary:hover{background:var(--hover)}
.set-group>summary:focus-visible{outline:2px solid var(--acc);outline-offset:-2px}
.set-chevron{display:inline-flex;transition:transform .2s cubic-bezier(.2,0,0,1);pointer-events:none}.set-chevron .ico{width:15px;height:15px}
.set-group>summary[aria-expanded="true"] .set-chevron{transform:rotate(180deg)}
.set-group>.set-group-items{padding:0;overflow:clip}.set-group-items>div{padding-bottom:6px;display:flex;flex-direction:column}
.set-divider{border:0;border-top:1px solid var(--line);margin:10px 4px}
@media(prefers-reduced-motion:reduce){.set-chevron{transition:none}}
html:is(.reduce-motion,.perf-low) .set-chevron{transition:none}
/* Reward thumbnails are static; only the selected full preview is animated. */
#settings .ach .arew *,#settings .ach .arew *::before,#settings .ach .arew *::after{animation:none!important}
#settings .ach .arew .av[data-frame="emerald_flare"]::before{background-image:url(/img/fx/emerald_ring_still.webp)!important}
#settings .ach .arew .lantern-art{background-image:url(/img/fx/emerald_lantern_still.webp)!important}
#settings :is(.it-tile,.ach){contain:layout style}



/* The catalogue is a selector; motion and glow remain in the full selected preview. */
#pe-main .it-tile *,#pe-main .it-tile *::before,#pe-main .it-tile *::after{animation:none!important}
#pe-main .it-tile.locked>:not(.lk):not(.n){filter:none;opacity:.6}
#pe-main .it-tile .av::before,#pe-main .it-tile .av::after,#pe-main .it-tile .deco{filter:none!important}
