:root {
  --bg0: #090720;
  --bg1: #120e2e;
  --glass: rgba(26, 22, 56, .58);
  --glass-strong: rgba(34, 29, 70, .82);
  --line: rgba(var(--wh), .08);
  --line-strong: rgba(var(--wh), .16);
  --text: #eceaf8;
  --muted: #9b98b8;
  --dim: #6c6a8c;
  --blue: #5b8cff;
  --violet: #a55bff;
  --cyan: #22e6ff;
  --green: #3ddc84;
  --red: #ff4d5e;
  --amber: #ffb020;
  --grad: linear-gradient(135deg, #5b8cff 0%, #8d5bff 60%, #a55bff 100%);
  --glow1: 120, 70, 255; --glow2: 34, 140, 255; --glow3: 165, 91, 255;
  --wh: 255, 255, 255; --bk: 0, 0, 0; --in: 8, 6, 28; --pop: 20, 16, 46; --ringc: #14102e;
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, "SF Pro Text", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg0);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(var(--glow1), .38), transparent 60%),
    radial-gradient(800px 600px at 105% 110%, rgba(var(--glow2), .26), transparent 60%),
    radial-gradient(600px 400px at 60% 40%, rgba(var(--glow3), .10), transparent 70%),
    linear-gradient(160deg, var(--bg1), var(--bg0));
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }

.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); }
.glass-strong { background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3); }

/* ---------- РєРЅРѕРїРєРё Рё РїРѕР»СЏ ---------- */
.btn { padding: 11px 18px; border-radius: 12px; background: rgba(var(--wh),.08); border: 1px solid var(--line); transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: rgba(var(--wh),.14); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); border-color: transparent; font-weight: 600; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .8); }
.btn.primary:hover { box-shadow: 0 10px 30px -6px rgba(124, 92, 255, 1); background: var(--grad); filter: brightness(1.08); }
.btn.wide { width: 100%; }
.btn.danger { background: rgba(255, 77, 94, .16); border-color: rgba(255, 77, 94, .4); color: #ffb3bb; }

.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s, transform .1s; }
.icon-btn:hover { background: rgba(var(--wh),.1); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.off { color: var(--red); }
.icon-btn.off:hover { background: rgba(255, 77, 94, .14); }

.field { display: block; text-align: left; margin: 12px 0; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input:not([type]), input[type=password], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: rgba(var(--in), .55); border: 1px solid var(--line); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(120, 140, 255, .7); box-shadow: 0 0 0 3px rgba(91, 140, 255, .18); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239b98b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select option, select optgroup { background: #1a1638; color: #f2f0ff; }
textarea { resize: none; min-height: 84px; }
.form-error { color: #ffb3bb; background: rgba(255,77,94,.12); border: 1px solid rgba(255,77,94,.3); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 8px 0; text-align: left; }

/* ---------- РІС…РѕРґ ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); border-radius: 26px; overflow: hidden; background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(26px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 80px -20px rgba(120, 70, 255, .5); }
.login-banner { height: 110px; background: radial-gradient(160px 90px at 80% 30%, rgba(34,230,255,.45), transparent 70%), linear-gradient(120deg, #1b1260, #5b3cff 55%, #a55bff); }
.login-body { padding: 0 28px 28px; text-align: center; }
.login-body .logo.big { width: 76px; height: 76px; margin: -38px auto 14px; border-radius: 26px; box-shadow: 0 0 0 4px rgba(34, 29, 70, 1), 0 12px 40px -6px rgba(124, 92, 255, .9); }
.login-body h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; }
.login-body p { margin: 0 0 12px; }

.logo { width: 46px; height: 46px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(124, 92, 255, .9); }
.logo svg { width: 84%; height: 84%; }
.logo, .home-btn, .av.home-ic { background: linear-gradient(145deg, #262d78, #141945); }
.fox-hero { --fox-gap: var(--bg1, #120e2e); width: min(300px, 70vw); margin: 0 auto 18px; filter: drop-shadow(0 18px 40px rgba(124, 92, 255, .45)); }
.fox-hero svg { width: 100%; height: auto; display: block; }
.fox .fx-eye { transform-box: fill-box; transform-origin: center; animation: fxBlink 5.5s infinite; }
.fox .fx-tail { transform-box: fill-box; transform-origin: 40% 95%; animation: fxTail 4.5s ease-in-out infinite; }
@keyframes fxBlink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes fxTail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3.5deg); } }
.logo svg .fx-eye, .home-btn svg .fx-eye, .home-ic svg .fx-eye, .login-body .logo svg .fx-eye { animation: none; }
@media (prefers-reduced-motion: reduce) { .fox .fx-eye, .fox .fx-tail { animation: none; } }

/* ---------- РєР°СЂРєР°СЃ ---------- */
.shell { position: fixed; inset: 0; padding: 12px; display: grid; grid-template-columns: 72px 264px minmax(0, 1fr) 316px; gap: 12px; }
.shell > * { border-radius: 22px; min-height: 0; }

.rail { display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 12px; }
.rail-sep { width: 28px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.rail-srv { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--wh),.07); color: var(--blue); position: relative; box-shadow: 0 0 0 2px rgba(91,140,255,.55), 0 0 22px -4px rgba(91,140,255,.7); }
.rail-srv::before { content: ""; position: absolute; left: -14px; top: 12px; width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: #fff; }

.side { display: flex; flex-direction: column; overflow: hidden; }
.side-head { padding: 18px 20px 12px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.side-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
.side-title { font-size: 13px; color: var(--dim); padding: 10px 10px 6px; font-weight: 600; }

.room { border-radius: 14px; margin-bottom: 4px; }
.room-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; color: var(--muted); text-align: left; transition: background .15s, color .15s; }
.room-btn:hover { background: rgba(var(--wh),.07); color: var(--text); }
.room.active > .room-btn { background: rgba(var(--wh),.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.room.active > .room-btn .ic { color: var(--cyan); }
.room-btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(var(--wh),.2); border-top-color: var(--cyan); animation: spin .8s linear infinite; margin-left: auto; }
.room-people { padding: 2px 6px 6px 34px; }
.rp { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.rp:hover { background: rgba(var(--wh),.06); color: var(--text); }
.rp .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp.speaking .av { box-shadow: 0 0 0 2px var(--green); }

.me { display: flex; align-items: center; gap: 0; padding: 6px 6px 6px 8px; margin: 0 10px 10px; border-radius: 16px; background: rgba(var(--in), .45); border: 1px solid var(--line); }
.me-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 4px; border-radius: 12px; text-align: left; }
.me-main:hover { background: rgba(var(--wh),.07); }
.me-text { min-width: 0; line-height: 1.25; }
.me-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text { flex: 1; }
.me .icon-btn { width: 28px; height: 28px; flex: none; border-radius: 10px; }
.me-main { gap: 8px; padding: 2px; }

/* Р°РІР°С‚Р°СЂРєРё */
.av { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 32%; background-size: cover; background-position: center; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); transition: box-shadow .15s; }
.av.xs { width: 24px; height: 24px; font-size: 12px; }
.av.sm { width: 34px; height: 34px; font-size: 15px; }
.av.md { width: 42px; height: 42px; font-size: 18px; }
.av.lg { width: 88px; height: 88px; font-size: 38px; }
.av.xl { width: 104px; height: 104px; font-size: 44px; }
.dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ringc, #1b1739); background: var(--green); box-sizing: content-box; width: 9px; height: 9px; }
.dot.dnd { background: var(--red); }
.dot.away { background: var(--amber); }
.av.xs .dot, .av.sm .dot { width: 7px; height: 7px; border-width: 2px; }

/* ---------- СЃС†РµРЅР° ---------- */
.stage { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.top { display: flex; align-items: center; gap: 10px; padding: 14px 18px 8px; min-height: 64px; }
.top-title { flex: 1; font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-title small { font-weight: 400; color: var(--muted); font-size: 14px; }
.grid { flex: 1; min-height: 0; padding: 8px 18px 104px; display: flex; }

.empty { margin: auto; text-align: center; max-width: 380px; color: var(--muted); }
.empty .logo { width: 88px; height: 88px; border-radius: 30px; margin: 0 auto 20px; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 70px -10px rgba(124, 92, 255, .9); }
.empty h2 { color: var(--text); margin: 0 0 8px; font-size: 22px; }
.empty p { margin: 0; line-height: 1.5; }

.tiles { flex: 1; display: grid; gap: 12px; align-content: center; justify-content: center; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); max-width: 1200px; margin: 0 auto; width: 100%; }
.stage-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; min-height: 0; }
.strip { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 2px; }
.strip .tile { aspect-ratio: 16 / 11; flex: none; }
.big-wrap { min-height: 0; display: flex; }
.big-wrap .tile { flex: 1; aspect-ratio: auto; min-height: 0; }

.tile { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(160deg, rgba(var(--wh),.07), rgba(var(--wh),.025)); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; transition: box-shadow .18s, border-color .18s; }
.tile.speaking { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan), 0 0 34px -2px rgba(34, 230, 255, .45); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.scr video { object-fit: contain; }
.tile .av { box-shadow: 0 0 0 3px rgba(var(--wh),.12), 0 10px 40px -8px rgba(0,0,0,.6); }
.tile.speaking .av { box-shadow: 0 0 0 3px var(--cyan), 0 0 40px -4px rgba(34,230,255,.6); }
.tile-name { position: absolute; left: 12px; bottom: 10px; padding: 5px 11px; border-radius: 10px; font-size: 14px; background: rgba(var(--in), .6); backdrop-filter: blur(10px); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-mic { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--in), .6); backdrop-filter: blur(10px); color: var(--muted); }
.tile-mic .ic { width: 16px; height: 16px; }
.tile.speaking .tile-mic { color: var(--cyan); }
.tile-mic.muted { color: #fff; background: rgba(255, 77, 94, .85); }
.tile-fs { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--in), .6); backdrop-filter: blur(10px); opacity: 0; transition: opacity .15s; }
.tile:hover .tile-fs { opacity: 1; }
.tile-fs .ic { width: 16px; height: 16px; }

.react-float { position: absolute; bottom: 44px; font-size: 38px; pointer-events: none; animation: floatup 2.2s ease-out forwards; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
@keyframes floatup { 0% { transform: translateY(0) scale(.5); opacity: 0; } 12% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { transform: translateY(-170px) scale(1); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* РїР°РЅРµР»СЊ СѓРїСЂР°РІР»РµРЅРёСЏ */
.controls { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px; border-radius: 24px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.ctl { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(var(--wh),.09); border: 1px solid var(--line); transition: background .15s, transform .1s, box-shadow .15s, color .15s; }
.ctl .ic { width: 24px; height: 24px; }
.ctl:hover { background: rgba(var(--wh),.17); }
.ctl:active { transform: scale(.94); }
.ctl.on { background: var(--grad); border-color: transparent; box-shadow: 0 8px 26px -6px rgba(124, 92, 255, .95); }
.ctl.off { background: rgba(255, 77, 94, .2); color: #ff9aa5; border-color: rgba(255, 77, 94, .4); }
.ctl.hang { background: linear-gradient(135deg, #ff5a6a, #ff3b4f); border-color: transparent; box-shadow: 0 8px 26px -8px rgba(255, 59, 79, .9); width: 72px; }
.ctl.hang:hover { filter: brightness(1.1); }
.emoji-wrap { position: relative; }
.emoji-pop { position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; border-radius: 18px; }
.emoji-pop button { width: 44px; height: 44px; border-radius: 12px; font-size: 24px; }
.emoji-pop button:hover { background: rgba(var(--wh),.12); }
.audio-warn { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 12px; background: rgba(255, 176, 32, .18); border: 1px solid rgba(255,176,32,.5); color: #ffd98a; z-index: 5; }

/* ---------- РїСЂР°РІР°СЏ РїР°РЅРµР»СЊ ---------- */
.panel { display: flex; flex-direction: column; overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 14px 14px 0; align-items: center; }
.tabs > button[data-tab] { padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tabs > button[data-tab]:hover { color: var(--text); background: rgba(var(--wh),.06); }
.tabs > button.on { background: rgba(var(--wh),.1); color: var(--text); }
.tabs .close { margin-left: auto; }
.count { font-size: 12px; padding: 2px 7px; border-radius: 8px; background: rgba(var(--wh),.1); color: var(--muted); font-weight: 600; }
.count.hot { background: var(--red); color: #fff; }
.tabbody { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px; }
.tabbody.chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }

.prow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.prow:hover { background: rgba(var(--wh),.07); }
.prow-text { min-width: 0; flex: 1; line-height: 1.25; }
.prow-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-sub { font-size: 12px; color: var(--muted); }
.prow .wave { display: flex; align-items: center; gap: 2px; height: 26px; width: 74px; flex: none; }
.wave i { display: block; width: 2px; border-radius: 2px; height: 3px; background: rgba(var(--wh),.22); transition: background .15s; }
.prow.speaking .wave i { background: var(--cyan); }
.prow .mic-state { color: var(--red); display: grid; }
.prow .mic-state .ic { width: 16px; height: 16px; }

.msgs { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; }
.msg-body { min-width: 0; }
.msg-head { font-size: 13px; color: var(--muted); }
.msg-head b { color: var(--text); font-size: 14px; margin-right: 6px; }
.msg-text { overflow-wrap: anywhere; line-height: 1.4; white-space: pre-wrap; }
.msg.sys { justify-content: center; color: var(--dim); font-size: 13px; }
.msg-empty { margin: auto; text-align: center; color: var(--dim); font-size: 14px; padding: 20px; line-height: 1.5; }
.chat-form { display: flex; gap: 6px; padding: 10px 12px 14px; }
.chat-form input { flex: 1; }
.send { background: var(--grad); color: #fff; }
.send:hover { background: var(--grad); color: #fff; filter: brightness(1.1); }

/* ---------- РјРѕРґР°Р»СЊРЅС‹Рµ РѕРєРЅР° ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(5, 3, 20, .6); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal { border-radius: 26px; background: rgba(var(--pop), .95); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); animation: pop .18s ease-out; position: relative; overflow: hidden; }
.modal-x { position: absolute; right: 14px; top: 14px; z-index: 3; }

.settings { width: min(980px, 100%); height: min(660px, 92vh); display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.set-nav { padding: 24px 12px; background: rgba(var(--in), .5); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.set-nav button { text-align: left; padding: 10px 14px; border-radius: 12px; color: var(--muted); }
.set-nav button:hover { background: rgba(var(--wh),.06); color: var(--text); }
.set-nav button.on { background: rgba(var(--wh),.12); color: var(--text); font-weight: 600; }
.set-body { overflow-y: auto; padding: 28px 30px 30px; position: relative; }
.set-body h2 { margin: 0 0 20px; font-size: 26px; letter-spacing: -.01em; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { border-radius: 20px; padding: 18px; background: rgba(var(--wh),.055); border: 1px solid var(--line); position: relative; overflow: hidden; }
.card.span2 { grid-column: span 2; }
.card h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.card h3 .ic { color: var(--violet); }
.card.out h3 .ic { color: var(--blue); }
.card.scr h3 .ic { color: var(--green); }
.card.scr { background: linear-gradient(160deg, rgba(61, 220, 132, .12), rgba(var(--wh),.04) 60%); }
.row-l { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin: 14px 0 8px; }
.row-l b { color: var(--text); font-weight: 600; }
.hint { font-size: 13px; color: var(--dim); line-height: 1.45; margin-top: 10px; }
.hint.warn { color: #ffd98a; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c1, #a55bff) var(--p, 50%), rgba(var(--wh),.12) var(--p, 50%)); outline: none; padding: 0; border: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(165, 91, 255, .35), 0 2px 8px rgba(0,0,0,.5); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(165, 91, 255, .35); cursor: pointer; }
input[type=range].blue { --c1: #5b8cff; }
input[type=range].green { --c1: #3ddc84; }

.meter { display: flex; gap: 3px; height: 28px; align-items: center; margin-top: 14px; }
.meter i { flex: 1; height: 100%; border-radius: 3px; background: rgba(var(--wh),.1); transition: background .06s; }
.meter i.on { background: var(--mc, #a55bff); }
canvas.wavebox { width: 100%; height: 76px; border-radius: 14px; background: rgba(5, 3, 20, .6); display: block; }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(var(--in), .55); border: 1px solid var(--line); }
.seg button { flex: 1; padding: 8px 6px; border-radius: 9px; color: var(--muted); font-size: 14px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(var(--wh),.14); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg.green button.on { background: rgba(61, 220, 132, .22); box-shadow: inset 0 0 0 1px rgba(61,220,132,.5); }

.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.sw-row small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.sw { position: relative; width: 44px; height: 26px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sw span { position: absolute; inset: 0; border-radius: 26px; background: rgba(var(--wh),.14); transition: background .15s; }
.sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(18px); }
.sw input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* РїСЂРѕС„РёР»СЊ: СЂРµРґР°РєС‚РѕСЂ */
.pe { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.pe .preview { position: sticky; top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { width: 44px; height: 44px; border-radius: 14px; font-size: 22px; background: rgba(var(--wh),.07); border: 1px solid var(--line); }
.chip-btn:hover { background: rgba(var(--wh),.14); }
.chip-btn.on { background: rgba(165, 91, 255, .25); border-color: var(--violet); box-shadow: 0 0 18px -4px var(--violet); }
.banners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.banners button { height: 36px; border-radius: 10px; border: 2px solid transparent; }
.banners button.on { border-color: #fff; }
.av-pick { display: flex; align-items: center; gap: 14px; }

/* РєР°СЂС‚РѕС‡РєР° РїСЂРѕС„РёР»СЏ */
.pcard { width: min(400px, 100%); }
.pcard-banner { height: 120px; position: relative; }
.pcard-body { padding: 0 24px 24px; position: relative; }
.pcard .av-wrap { margin-top: -52px; display: inline-block; border-radius: 34%; padding: 4px; background: linear-gradient(135deg, var(--blue), var(--violet), var(--cyan)); box-shadow: 0 0 40px -4px rgba(140, 100, 255, .8); }
.pcard .av-wrap .av { border: 4px solid var(--ringc, #14102e); border-radius: 32%; }
.pcard .av-wrap .dot { border-color: var(--ringc, #14102e); width: 12px; height: 12px; right: 2px; bottom: 2px; }
.pcard h2 { margin: 12px 0 8px; font-size: 26px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 4px 11px; border-radius: 9px; font-size: 13px; background: rgba(var(--wh),.08); color: var(--muted); }
.tag.violet { background: rgba(165, 91, 255, .2); color: #cfa8ff; }
.tag.cyan { background: rgba(34, 230, 255, .14); color: #7eeeff; }
.tag.red { background: rgba(255, 77, 94, .16); color: #ff9aa5; }
.tag.amber { background: rgba(255, 176, 32, .16); color: #ffd98a; }
.tag.green { background: rgba(61, 220, 132, .16); color: #8ff0bc; }
.pbadges { display: flex; gap: 10px; margin: 14px 0 4px; font-size: 26px; min-height: 8px; }
.pcard hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.pcard h4 { margin: 0 0 6px; font-size: 14px; }
.pcard .bio { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.pcard .actions { margin-top: 16px; }

.b0 { background: radial-gradient(160px 90px at 82% 25%, rgba(34,230,255,.45), transparent 70%), linear-gradient(120deg, #1b1260, #5b3cff 55%, #a55bff); }
.b1 { background: radial-gradient(160px 90px at 82% 25%, rgba(var(--wh),.25), transparent 70%), linear-gradient(120deg, #08243d, #1e6cff 50%, #22e6ff); }
.b2 { background: radial-gradient(160px 90px at 82% 25%, rgba(255,200,240,.35), transparent 70%), linear-gradient(120deg, #2a0f3d, #c23bff 55%, #ff6bd5); }
.b3 { background: radial-gradient(160px 90px at 82% 25%, rgba(var(--wh),.3), transparent 70%), linear-gradient(120deg, #062a2a, #12b886 55%, #7cf5c8); }
.b4 { background: radial-gradient(160px 90px at 82% 25%, rgba(var(--wh),.3), transparent 70%), linear-gradient(120deg, #2d1208, #ff6a3d 55%, #ffc24d); }
.b5 { background: radial-gradient(160px 90px at 82% 25%, rgba(var(--wh),.18), transparent 70%), linear-gradient(120deg, #101326, #2b3158 55%, #59628f); }

/* ---------- РІСЃРїР»С‹РІР°С€РєРё ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 14px; background: rgba(var(--pop), .95); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px -12px rgba(0,0,0,.8); animation: pop .2s ease-out; font-size: 14px; max-width: min(92vw, 460px); }
.toast.err { border-color: rgba(255, 77, 94, .5); color: #ffc2c8; }

.only-narrow { display: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--wh),.12); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--wh),.22); background-clip: padding-box; border: 3px solid transparent; }

/* ---------- СѓР·РєРёРµ СЌРєСЂР°РЅС‹ ---------- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 72px 250px minmax(0, 1fr); }
  .panel { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(340px, 92vw); z-index: 40; transform: translateX(110%); transition: transform .22s ease; background: var(--glass-strong); }
  .panel.open { transform: none; }
  .only-narrow.close { display: grid; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .rail { display: none; }
  .side { position: fixed; top: 8px; left: 8px; bottom: 8px; width: min(320px, 90vw); z-index: 40; transform: translateX(-110%); transition: transform .22s ease; background: var(--glass-strong); }
  .side.open { transform: none; }
  .only-narrow { display: grid; }
  .stage-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .strip { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .strip .tile { width: 150px; }
  .grid { padding: 6px 10px 96px; }
  .controls { gap: 6px; padding: 8px; bottom: 12px; }
  .ctl { width: 48px; height: 48px; border-radius: 15px; }
  .ctl.hang { width: 58px; }
  .settings { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .set-nav { flex-direction: row; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .cards, .pe { grid-template-columns: 1fr; }
  .card.span2 { grid-column: auto; }
  .pe .preview { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- v3: Р°РєРєР°СѓРЅС‚С‹, РєР°СЂС‚РёРЅРєРё, В«РІ СЃРµС‚РёВ» ---------- */
.login-card .seg { margin: 4px 0 8px; }
.av-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.av-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dot.off { background: #6c6a8c; }
.pcard-banner { overflow: hidden; }
.pcard-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sec-title { font-size: 12px; font-weight: 700; color: var(--dim); padding: 12px 10px 6px; display: flex; gap: 8px; }
.sec-title:first-child { padding-top: 2px; }
.prow.offline { opacity: .5; }
.prow.offline:hover { opacity: .85; }
.tag.gray { background: rgba(var(--wh),.07); color: var(--dim); }

.cropper { position: relative; overflow: hidden; cursor: grab; touch-action: none; background: rgba(5, 3, 20, .55); border: 1px solid var(--line-strong); user-select: none; }
.cropper:active { cursor: grabbing; }
.cropper.avatar { width: 150px; height: 150px; border-radius: 32%; flex: none; }
.cropper.banner { width: 100%; aspect-ratio: 10 / 3; border-radius: 14px; }
.cropper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cropper.empty { display: grid; place-items: center; color: var(--dim); font-size: 13px; cursor: default; text-align: center; padding: 8px; }
.zoom-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.zoom-row input { flex: 1; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.av-pick { align-items: flex-start; }
.av-pick > div:last-child { flex: 1; min-width: 0; }

/* ---------- v4: СЃРµСЂРІРµСЂС‹, РєР°РЅР°Р»С‹, С‡Р°С‚ ---------- */
.rail-servers { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; width: 100%; padding: 2px 0; scrollbar-width: none; }
.rail-servers::-webkit-scrollbar { display: none; }
.rail-srv { width: 46px; height: 46px; border-radius: 16px; padding: 0; background: none; box-shadow: none; position: relative; flex: none; display: grid; place-items: center; transition: border-radius .15s, transform .12s; }
.rail-srv::before { content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: #fff; transform: translateY(-50%); transition: height .15s; }
.rail-srv:hover { border-radius: 13px; transform: scale(1.04); }
.rail-srv:hover::before { height: 14px; }
.rail-srv.active::before { height: 26px; }
.rail-srv.active .av { box-shadow: 0 0 0 2px rgba(91,140,255,.8), 0 0 22px -4px rgba(91,140,255,.8); }
.av.srv { width: 46px; height: 46px; font-size: 19px; }
.rail-add { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: var(--green); background: rgba(61,220,132,.1); border: 1px dashed rgba(61,220,132,.5); flex: none; transition: background .15s, transform .12s; }
.rail-add:hover { background: rgba(61,220,132,.2); transform: scale(1.05); }
.rail-add .ic { width: 22px; height: 22px; }

.side-head { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px 18px; min-height: 88px; border-bottom: 1px solid var(--line); overflow: hidden; border-radius: 22px 22px 0 0; }
.side-head .sh-bg { position: absolute; inset: 0; opacity: .55; }
.side-head .sh-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-head .sh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,10,36,.15), rgba(14,10,36,.8)); }
.side-head > *:not(.sh-bg):not(.sh-shade) { position: relative; }
.side-head:hover .sh-name { text-decoration: underline; text-underline-offset: 4px; }
.sh-name { font-size: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.sh-sub { font-size: 12px; color: var(--muted); }
.sh-text { min-width: 0; flex: 1; }
.sh-chev { color: var(--muted); }

.side-title { display: flex; align-items: center; justify-content: space-between; }
.mini { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.mini:hover { background: rgba(var(--wh),.12); color: var(--text); }
.mini .ic { width: 15px; height: 15px; }
.ch { position: relative; border-radius: 14px; margin-bottom: 2px; display: flex; align-items: center; }
.ch-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; color: var(--muted); text-align: left; transition: background .15s, color .15s; }
.ch-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-btn .ic { width: 18px; height: 18px; }
.ch-btn:hover { background: rgba(var(--wh),.07); color: var(--text); }
.ch.active .ch-btn { background: rgba(var(--wh),.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ch-edit { position: absolute; right: 6px; width: 26px; height: 26px; border-radius: 8px; display: none; place-items: center; color: var(--muted); background: rgba(var(--pop),.9); }
.ch:hover .ch-edit, .room:hover .ch-edit, .ch-edit:focus-visible { display: grid; }
.ch-edit:hover { color: var(--text); }
.ch-edit .ic { width: 15px; height: 15px; }
.badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; font-style: normal; text-align: center; }
.room { position: relative; }
.room .ch-edit { top: 7px; }
.ch:hover .badge { display: none; }

.voice-bar { margin: 0 10px 8px; padding: 10px 12px; border-radius: 14px; background: rgba(61,220,132,.12); border: 1px solid rgba(61,220,132,.35); display: flex; align-items: center; gap: 10px; }
.voice-bar .vb-text { flex: 1; min-width: 0; line-height: 1.25; }
.voice-bar b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-bar small { color: #8ff0bc; font-size: 12px; }
.voice-bar .ic { color: #8ff0bc; }
.voice-bar button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #ffb3bb; }
.voice-bar button:hover { background: rgba(255,77,94,.2); }

.panel-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 6px; font-weight: 650; font-size: 16px; }
.panel-head .close { margin-left: auto; }

/* С‡Р°С‚ */
.chat-view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.chat-view.drop::after { content: "РћС‚РїСѓСЃС‚Рё, С‡С‚РѕР±С‹ РїСЂРёРєСЂРµРїРёС‚СЊ РєР°СЂС‚РёРЅРєСѓ"; position: absolute; inset: 8px; border-radius: 18px; border: 2px dashed var(--cyan); background: rgba(var(--pop),.85); display: grid; place-items: center; color: var(--cyan); font-size: 18px; z-index: 5; }
.chat-view .msgs { padding: 8px 20px 10px; gap: 2px; }
.msg { position: relative; gap: 12px; padding: 3px 10px; margin: 0 -10px; border-radius: 12px; }
.msg:hover { background: rgba(var(--wh),.04); }
.msg-gap { width: 34px; flex: none; }
.msg.head-row { margin-top: 12px; }
.msg-head time { margin-left: 4px; font-size: 12px; color: var(--dim); }
.msg-text a { color: #8fb4ff; }
.msg-img { display: block; margin-top: 6px; max-width: min(420px, 100%); max-height: 320px; border-radius: 14px; cursor: zoom-in; border: 1px solid var(--line); background: rgba(var(--bk),.3); }
.msg-del { position: absolute; right: 10px; top: 2px; width: 28px; height: 28px; border-radius: 9px; display: none; place-items: center; color: var(--muted); background: rgba(var(--pop),.95); border: 1px solid var(--line); }
.msg:hover .msg-del { display: grid; }
.msg-del:hover { color: #ff9aa5; }
.msg-del .ic { width: 15px; height: 15px; }
.more { align-self: center; margin: 6px 0 10px; padding: 7px 16px; border-radius: 10px; background: rgba(var(--wh),.08); color: var(--muted); font-size: 14px; }
.more:hover { background: rgba(var(--wh),.14); color: var(--text); }
.composer { display: flex; align-items: center; gap: 6px; margin: 0 18px 18px; padding: 8px; border-radius: 18px; background: rgba(var(--in),.55); border: 1px solid var(--line); }
.composer { align-items: flex-end; }
.composer textarea#chat-input { flex: 1; min-height: 0; height: 38px; max-height: 180px; background: none; border: 0; box-shadow: none; padding: 9px 8px; line-height: 20px; resize: none; overflow-y: auto; }
.composer textarea#chat-input:focus { box-shadow: none; }
.composer:focus-within { border-color: rgba(120,140,255,.6); }
.attach { margin: 0 18px 8px; }
.attach-chip { position: relative; display: inline-block; padding: 6px; border-radius: 14px; background: rgba(var(--wh),.08); border: 1px solid var(--line); }
.attach-chip img { display: block; max-height: 110px; max-width: 220px; border-radius: 10px; }
.attach-chip button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.attach-chip .ic { width: 14px; height: 14px; }
.modal.lightbox { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.lightbox-img { display: block; max-width: 92vw; max-height: 88vh; border-radius: 16px; box-shadow: 0 30px 90px -20px #000; }
.modal.lightbox .modal-x { top: -14px; right: -14px; background: rgba(var(--pop),.95); }

/* РїРѕРґРєР»СЋС‡РµРЅРёРµ Рє СЃРµСЂРІРµСЂСѓ (РїРѕ СЂРµС„РµСЂРµРЅСЃСѓ) */
.connect { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 20px; background:
  radial-gradient(500px 360px at 18% 62%, rgba(190, 40, 255, .35), transparent 70%),
  radial-gradient(520px 380px at 82% 38%, rgba(150, 60, 255, .3), transparent 70%),
  radial-gradient(420px 320px at 25% 80%, rgba(40, 110, 255, .35), transparent 70%),
  radial-gradient(380px 260px at 88% 14%, rgba(34, 190, 255, .25), transparent 70%), #0b0a18; }
.connect::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(var(--wh),.7), transparent), radial-gradient(1.5px 1.5px at 70% 20%, rgba(var(--wh),.6), transparent), radial-gradient(2px 2px at 40% 80%, rgba(160,170,255,.8), transparent), radial-gradient(1.5px 1.5px at 85% 70%, rgba(var(--wh),.5), transparent), radial-gradient(1.5px 1.5px at 10% 70%, rgba(var(--wh),.5), transparent); pointer-events: none; }
.connect-x { position: absolute; top: 20px; right: 20px; z-index: 2; }
.connect-card { position: relative; width: min(520px, 100%); padding: 44px 44px 36px; border-radius: 34px; background: linear-gradient(160deg, rgba(86,86,106,.45), rgba(34,33,48,.8)); border: 1px solid rgba(var(--wh),.2); backdrop-filter: blur(28px); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 80px -30px rgba(140, 90, 255, .6); text-align: center; }
.connect-card h1 { margin: 0 0 30px; font-size: 32px; letter-spacing: -.01em; font-weight: 650; background: linear-gradient(180deg, #fff, #b5b5c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gfield { position: relative; display: block; margin-bottom: 18px; }
.gfield input { width: 100%; padding: 17px 20px; font-size: 17px; border-radius: 18px; background: rgba(20, 19, 34, .6); border: 1.5px solid rgba(var(--wh),.14); outline: none; transition: border-color .2s, box-shadow .2s; }
.gfield input:focus { border-color: transparent; background: linear-gradient(rgba(24,22,40,.95), rgba(24,22,40,.95)) padding-box, linear-gradient(90deg, #67d6ff, #b07bff) border-box; box-shadow: 0 0 22px -4px rgba(120, 190, 255, .55); }
.gfield.pass input { padding-right: 56px; }
.eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.eye:hover { color: var(--text); }
.btn-grad { width: 100%; margin-top: 10px; padding: 17px; font-size: 20px; font-weight: 650; border-radius: 18px; color: #fff; background: linear-gradient(100deg, #3b0a82 0%, #7a2cf0 38%, #3d7bff 75%, #11a8ff 100%); border: 1.5px solid rgba(110, 200, 255, .55); box-shadow: 0 10px 40px -8px rgba(60, 150, 255, .75), inset 0 1px 0 rgba(var(--wh),.2); transition: filter .15s, transform .1s; }
.btn-grad:hover { filter: brightness(1.12); }
.btn-grad:active { transform: scale(.985); }
.btn-grad:disabled { opacity: .6; cursor: default; }
.linkbtn { margin-top: 18px; color: var(--muted); font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.linkbtn:hover { color: var(--text); }

/* РєР°СЂС‚РѕС‡РєР°/РЅР°СЃС‚СЂРѕР№РєРё СЃРµСЂРІРµСЂР° */
.pcard .av-wrap.srv, .av-wrap.srv { border-radius: 34%; }
.srvset { width: min(720px, 100%); max-height: 92vh; overflow-y: auto; padding: 28px 30px 30px; }
.srvset h2 { margin: 0 0 20px; font-size: 24px; }
.srvset .card + .card { margin-top: 14px; }
.danger-zone { border-color: rgba(255,77,94,.35); background: rgba(255,77,94,.06); }
.kind-seg { margin-bottom: 14px; }
.chmodal { width: min(440px, calc(100vw - 32px)); padding: 28px; }
.chmodal h2 { margin: 0 0 16px; font-size: 22px; }

@media (max-width: 820px) {
  .connect-card { padding: 30px 22px; }
  .connect-card h1 { font-size: 26px; }
  .chat-view .msgs { padding: 6px 12px; }
  .composer, .attach { margin-left: 10px; margin-right: 10px; }
}

/* СѓР·РєРёРµ СЌРєСЂР°РЅС‹: РєРѕР»РѕРЅРєР° СЃРµСЂРІРµСЂРѕРІ РѕСЃС‚Р°С‘С‚СЃСЏ, С‡С‚РѕР±С‹ РјРѕР¶РЅРѕ Р±С‹Р»Рѕ РїРµСЂРµРєР»СЋС‡Р°С‚СЊСЃСЏ */
@media (max-width: 820px) {
  .shell { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
  .rail { display: flex; padding: 10px 0; }
  .rail .logo, .rail-sep { display: none; }
  .rail-srv, .rail-add, .av.srv { width: 42px; height: 42px; }
  .side { left: 78px; width: min(300px, calc(100vw - 92px)); }
}

/* ---------- v5: РЅРёРєРё, СЂРѕР»Рё, СЌРјРѕРґР·Рё, СЃС‚РёРєРµСЂС‹ ---------- */
.nick { transition: filter .2s; }
.nick.shimmer { animation: shimmer 4s linear infinite; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.role-ic { margin-left: 5px; font-size: 13px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 20px; font-size: 13px; background: color-mix(in srgb, var(--rc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); color: var(--text); }
.role-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); flex: none; }
.role-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.role-chip.pick { cursor: pointer; opacity: .55; transition: opacity .15s, transform .1s; }
.role-chip.pick:hover { opacity: .9; }
.role-chip.pick.on { opacity: 1; box-shadow: 0 0 14px -4px var(--rc); }
.role-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.role-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.role-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-btns { display: flex; gap: 2px; }
.role-btns .mini:disabled { opacity: .3; cursor: default; }
.role-prev { margin: 4px 0 14px; }
.color-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
input[type=color] { width: 46px; height: 38px; padding: 2px; border-radius: 10px; background: rgba(var(--in),.55); border: 1px solid var(--line-strong); cursor: pointer; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(var(--wh),.25); }
.swatches button:hover { border-color: #fff; }
.cpick { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.nk-prev-box { margin: 4px 0 6px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--in),.55); border: 1px solid var(--line); font-size: 20px; }
.nk-prev-box .muted { font-size: 13px; margin-right: 6px; }

.sub { z-index: 60; background: rgba(5,3,20,.5); }
.set-nav .logout { margin-top: auto; color: #ffb3bb; }
.set-nav .logout:hover { background: rgba(255,77,94,.14); color: #ffb3bb; }
.connect-card .who { margin: -18px 0 22px; color: var(--muted); font-size: 14px; }
.linkbtn.out { display: block; margin: 4px auto 0; color: #ff9aa5; }
.linkbtn.out:hover { color: #ffb3bb; }

.cemoji { width: 22px; height: 22px; vertical-align: -5px; object-fit: contain; margin: 0 1px; }
.cemoji.big { width: 48px; height: 48px; vertical-align: -12px; }
.msg-sticker { display: block; margin-top: 6px; width: 160px; height: 160px; object-fit: contain; }
.picker { position: absolute; left: 18px; bottom: 76px; width: min(380px, calc(100% - 36px)); height: 340px; border-radius: 20px; display: flex; flex-direction: column; z-index: 8; box-shadow: 0 24px 60px -20px #000; }
.picker-tabs { display: flex; gap: 4px; padding: 10px 10px 0; }
.picker-tabs button { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.picker-tabs button.on { background: rgba(var(--wh),.12); color: var(--text); }
.picker-body { flex: 1; overflow-y: auto; padding: 8px 10px 12px; }
.pk-title { font-size: 12px; font-weight: 700; color: var(--dim); padding: 8px 4px 4px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; }
.pk-grid button { height: 38px; border-radius: 9px; font-size: 22px; display: grid; place-items: center; }
.pk-grid button:hover { background: rgba(var(--wh),.12); }
.pk-grid img { width: 28px; height: 28px; object-fit: contain; }
.pk-grid.stk { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.pk-grid.stk button { height: 92px; }
.pk-grid.stk img { width: 80px; height: 80px; }

.em-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.em-item, .stk-item { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 12px; background: rgba(var(--in),.5); border: 1px solid var(--line); font-size: 13px; }
.em-item img { width: 28px; height: 28px; object-fit: contain; }
.stk-item img { width: 56px; height: 56px; object-fit: contain; }
.add-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.add-row input[type=text], .add-row input:not([type]) { width: 160px; padding: 8px 12px; }
.add-prev img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; vertical-align: middle; }

@media (max-width: 820px) {
  .picker { left: 10px; width: calc(100% - 20px); }
}

/* ---------- v6: СЃС‚РµРєР»СЏРЅРЅС‹Рµ СЂРѕР»Рё ---------- */
.role-chip {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--rc) 38%, transparent), color-mix(in srgb, var(--rc) 9%, transparent) 70%),
    rgba(var(--wh), .04);
  border: 1px solid color-mix(in srgb, var(--rc) 62%, transparent);
  box-shadow: inset 0 1px 0 rgba(var(--wh), .32), inset 0 -8px 14px -10px color-mix(in srgb, var(--rc) 55%, transparent), 0 6px 16px -8px var(--rc);
  backdrop-filter: blur(10px) saturate(1.5); -webkit-backdrop-filter: blur(10px) saturate(1.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.role-chip::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; background: linear-gradient(180deg, rgba(var(--wh), .2), transparent); pointer-events: none; }
.role-chip i { box-shadow: 0 0 8px var(--rc); }
.role-chip.pick.on { box-shadow: inset 0 1px 0 rgba(var(--wh), .4), 0 0 18px -2px var(--rc); }

.sec-title.role-sec {
  margin: 14px 4px 6px; padding: 8px 12px; border-radius: 13px; align-items: center;
  color: var(--text); font-size: 13px; letter-spacing: .01em;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 30%, transparent), color-mix(in srgb, var(--rc) 5%, transparent) 85%), rgba(var(--wh), .03);
  border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
  box-shadow: inset 3px 0 0 var(--rc), inset 0 1px 0 rgba(var(--wh), .16), 0 8px 18px -12px var(--rc);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sec-title.role-sec span { margin-left: auto; color: var(--text); opacity: .7; }
.prow.has-role { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 11%, transparent), transparent 80%); box-shadow: inset 2px 0 0 color-mix(in srgb, var(--rc) 70%, transparent); }
.prow.has-role:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 20%, transparent), rgba(var(--wh), .03) 85%); }
.role-row { margin-bottom: 6px; padding: 9px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--role-c, var(--line-strong)) 40%, transparent); background: rgba(var(--wh), .04); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(var(--wh), .1); }
.role-dot { box-shadow: 0 0 10px currentColor; }
.role-prev { padding: 14px; border-radius: 14px; background: rgba(var(--in), .55); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.role-prev .role-chip { font-size: 15px; padding: 6px 14px 6px 11px; }
.cemoji.role { width: 16px; height: 16px; vertical-align: -3px; margin: 0; }
.role-ic .cemoji.role { vertical-align: -3px; }
.rl-em { max-height: 130px; overflow-y: auto; margin-bottom: 12px; padding: 6px; border-radius: 12px; background: rgba(var(--in), .45); border: 1px solid var(--line); }


/* ============================================================
   v7: С‡Р°С‚
   ============================================================ */
.badge.quiet { background: rgba(var(--wh),.18); color: var(--text); }
.ch.unread .ch-btn { color: var(--text); font-weight: 650; }
.rail-srv .srv-badge { position: absolute; right: -4px; bottom: -4px; min-width: 18px; padding: 0 5px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; border: 2px solid var(--ringc, #14102e); box-sizing: content-box; }
.rail-srv .srv-dot { position: absolute; left: -11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff; }
.rail-srv.active .srv-dot { display: none; }

.msgs { scroll-behavior: auto; }
.msg { align-items: flex-start; }
.msg-body { min-width: 0; flex: 1; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.42; }
.msg-text.jumbo { font-size: 38px; line-height: 1.2; }
.msg-text.jumbo .cemoji { width: 46px; height: 46px; vertical-align: -10px; }
.msg-text .edited { margin-left: 6px; font-size: 11px; color: var(--dim); }
.msg-gap { position: relative; display: block; }
.msg-gap time { position: absolute; left: 0; right: 0; top: 3px; text-align: center; font-size: 10.5px; color: var(--dim); opacity: 0; }
.msg:hover .msg-gap time { opacity: 1; }
.msg.hl { background: rgba(255, 176, 32, .09); box-shadow: inset 3px 0 0 var(--amber); }
.msg.hl:hover { background: rgba(255, 176, 32, .14); }
.msg.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 55% { background: rgba(91, 140, 255, .28); } 100% { background: transparent; } }
.pin-mark { display: inline-grid; vertical-align: -3px; margin-left: 6px; color: var(--amber); }
.pin-mark .ic { width: 13px; height: 13px; }

.msg-tools { position: absolute; right: 8px; top: -14px; display: none; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(var(--pop), .96); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px -8px #000; z-index: 3; }
.msg:hover .msg-tools, .msg.tools-open .msg-tools { display: flex; }
.msg-tools button { width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.msg-tools button:hover { background: rgba(var(--wh),.12); color: var(--text); }
.msg-tools button.danger:hover { color: #ff9aa5; background: rgba(255,77,94,.16); }
.msg-tools .ic { width: 16px; height: 16px; }

.msg-reply { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 3px; cursor: pointer; min-width: 0; }
.msg-reply .ic { width: 14px; height: 14px; flex: none; transform: scaleX(-1); color: var(--dim); }
.msg-reply b { color: var(--text); font-weight: 600; flex: none; }
.msg-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-reply:hover span { color: var(--text); }
.msg-reply.gone { cursor: default; font-style: italic; color: var(--dim); }

.rxs { display: flex; flex-wrap: wrap; gap: 5px; }
.rxs:not(:empty) { margin-top: 5px; }
.rx { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 9px; background: rgba(var(--wh),.07); border: 1px solid transparent; font-size: 15px; transition: background .12s; }
.rx b { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.rx:hover { background: rgba(var(--wh),.13); }
.rx.mine { background: rgba(91, 140, 255, .22); border-color: rgba(91, 140, 255, .65); }
.rx.mine b { color: #cfe0ff; }
.rx .cemoji { height: 18px; width: 18px; margin: 0; }

.msg-text code.icode { padding: 1px 6px; border-radius: 6px; background: rgba(var(--bk),.35); border: 1px solid var(--line); font: 13.5px/1.4 ui-monospace, Consolas, "Cascadia Mono", monospace; }
.msg-text pre.code { margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: rgba(var(--bk),.4); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.msg-text pre.code code { font: 13.5px/1.45 ui-monospace, Consolas, "Cascadia Mono", monospace; white-space: pre; }
.msg-text blockquote { margin: 3px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--violet); color: var(--muted); }
.spoiler { background: #2a2650; color: transparent; border-radius: 5px; padding: 0 3px; cursor: pointer; transition: background .15s; user-select: none; }
.spoiler * { visibility: hidden; }
.spoiler.open { background: rgba(var(--wh),.1); color: inherit; user-select: text; }
.spoiler.open * { visibility: visible; }
.mention { padding: 0 4px; border-radius: 5px; background: rgba(91, 140, 255, .22); color: #bcd2ff; font-weight: 550; cursor: pointer; }
.mention:hover { background: rgba(91, 140, 255, .4); }
.mention.self, .mention.all { background: rgba(255, 176, 32, .22); color: #ffd98a; }

.file-card, .attach-chip.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 6px; max-width: 380px; border-radius: 14px; background: rgba(var(--wh),.07); border: 1px solid var(--line); }
.file-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.file-ic .ic { width: 20px; height: 20px; }
.file-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name small, .media-cap small { color: var(--dim); font-size: 12px; }
.file-dl { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; }
.file-dl:hover { background: rgba(var(--wh),.12); color: var(--text); }
.file-dl .ic { width: 18px; height: 18px; }
.media-card { margin-top: 6px; max-width: min(460px, 100%); border-radius: 14px; overflow: hidden; background: rgba(var(--bk),.35); border: 1px solid var(--line); }
.media-card video { display: block; width: 100%; max-height: 340px; background: #000; }
.media-card audio { display: block; width: 100%; height: 40px; }
.media-cap { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; font-size: 13px; }
.media-cap span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card.audio { padding-bottom: 4px; }

.lp { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; max-width: 440px; padding: 9px 12px; border-left: 3px solid var(--cyan); border-radius: 6px 12px 12px 6px; background: rgba(var(--wh),.05); }
.lp:hover { background: rgba(var(--wh),.09); }
.lp small { color: var(--dim); font-size: 12px; }
.lp b { color: #8fb4ff; font-weight: 600; }
.lp span { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.day-sep, .new-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; color: var(--dim); font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after, .new-sep::before, .new-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.new-sep { color: #ff8a96; }
.new-sep::before, .new-sep::after { background: rgba(255, 77, 94, .5); }

.jump { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 8px 16px; border-radius: 20px; background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(91,140,255,.8); z-index: 4; }
.typing { display: flex; align-items: center; gap: 8px; margin: 0 24px 2px; min-height: 18px; font-size: 12.5px; color: var(--muted); }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: tdot 1.2s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .15s; }
.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.ctxbar { display: flex; align-items: center; gap: 8px; margin: 0 18px -6px; padding: 8px 12px 14px; border-radius: 14px 14px 0 0; background: rgba(var(--wh),.07); border: 1px solid var(--line); border-bottom: 0; font-size: 13px; color: var(--muted); }
.ctxbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctxbar b { color: var(--text); }
.ctxbar small { color: var(--dim); }
.ctxbar .ic { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.ctxbar.edit .ic { color: var(--amber); }
.ctxbar button { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.ctxbar button:hover { background: rgba(var(--wh),.12); color: var(--text); }

.mention-pop { position: absolute; left: 18px; bottom: 76px; width: min(340px, calc(100% - 36px)); padding: 6px; border-radius: 14px; z-index: 6; display: flex; flex-direction: column; border: 1px solid var(--line-strong); }
.mention-pop button { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; text-align: left; }
.mention-pop button.on, .mention-pop button:hover { background: rgba(var(--wh),.1); }
.mention-pop b { font-weight: 600; }
.mention-pop small { margin-left: auto; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av.at { display: grid; place-items: center; background: var(--grad); color: #fff; }
.av.at .ic { width: 13px; height: 13px; }

.attach-chip.file { margin-top: 0; position: relative; }
.attach-chip.file .bar { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: rgba(var(--wh),.12); overflow: hidden; }
.attach-chip.file .bar i { display: block; height: 100%; background: var(--grad); transition: width .1s; }
.chat-view.drop::after { content: "РћС‚РїСѓСЃС‚Рё, С‡С‚РѕР±С‹ РїСЂРёРєСЂРµРїРёС‚СЊ С„Р°Р№Р»"; }

.pop { position: absolute; right: 18px; top: 6px; width: min(400px, calc(100% - 36px)); max-height: calc(100% - 120px); display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -20px #000; z-index: 8; overflow: hidden; }
.pop-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.pop-head > b { flex: 1; }
.pop-body { overflow-y: auto; padding: 6px; min-height: 80px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 12px; background: rgba(var(--in),.55); border: 1px solid var(--line); }
.search-box .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search-box input { flex: 1; border: 0; background: none; box-shadow: none; padding: 9px 0; min-width: 0; }
.search-box input:focus { box-shadow: none; }
.seg.small { margin: 8px 10px 0; }
.seg.small button { padding: 6px; font-size: 13px; }
.sr { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; }
.sr:hover { background: rgba(var(--wh),.08); }
.sr-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sr-top small { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
.sr-text { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sr-text mark { background: rgba(255, 176, 32, .35); color: #fff; border-radius: 3px; padding: 0 1px; }
.sr-count { padding: 6px 12px; font-size: 12px; color: var(--dim); }
.sr-unpin { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--muted); }
.sr-unpin:hover { background: rgba(255,77,94,.2); color: #ff9aa5; }
.sr-unpin .ic { width: 13px; height: 13px; }
.icon-btn.on { background: rgba(var(--wh),.12); color: var(--text); }

.rx-pop { position: fixed; z-index: 70; width: 332px; max-height: 360px; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -20px #000; overflow: hidden; }
.rx-quick { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); }
.rx-quick button { flex: 1; height: 36px; border-radius: 10px; font-size: 20px; }
.rx-quick button:hover, .rx-all .pk-grid button:hover { background: rgba(var(--wh),.12); }
.rx-all { overflow-y: auto; padding: 4px 8px 8px; }

.ctx { position: fixed; z-index: 80; min-width: 230px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -16px #000; }
.ctx-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ctx-vol { padding: 6px 6px 10px; }
.ctx > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; color: var(--muted); }
.ctx > button:hover { background: rgba(var(--wh),.1); color: var(--text); }
.ctx > button.on { color: var(--red); }
.ctx > button .ic { width: 16px; height: 16px; }

/* ============================================================
   v7: Р·РІСѓРє
   ============================================================ */
.lvl { position: relative; height: 12px; margin-top: 14px; border-radius: 6px; background: rgba(var(--wh),.1); overflow: hidden; }
.lvl i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--violet); transition: background .08s; }
.lvl.open i { background: var(--green); }
.lvl u { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgba(var(--wh),.7); }
.btn.keycap { min-width: 180px; font-weight: 600; }
.btn.keycap.wait { border-color: var(--cyan); color: var(--cyan); }
.btn.on { background: rgba(61, 220, 132, .22); border-color: rgba(61,220,132,.5); }
.icon-btn.talking, .ctl.talking { color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 0 18px -2px rgba(61,220,132,.7); }
input[type=range]:disabled { opacity: .4; }

@media (hover: none) { .msg-tools { top: -16px; } }
@media (max-width: 760px) { .pop { right: 8px; } .jump { bottom: 90px; } .ctxbar { margin: 0 8px -6px; } }
.top-actions { display: flex; align-items: center; gap: 4px; }

/* СѓР·РєРёРµ СЌРєСЂР°РЅС‹: Р±РѕРєРѕРІР°СЏ РїР°РЅРµР»СЊ РЅРµ РґРѕР»Р¶РЅР° РІС‹РіР»СЏРґС‹РІР°С‚СЊ, Р·Р°РіРѕР»РѕРІРѕРє РЅРµ РЅР°РµР·Р¶Р°РµС‚ РЅР° РєРЅРѕРїРєРё */
@media (max-width: 820px) {
  .side { transform: translateX(-160%); }
  .side.open { transform: none; }
  .top-title small { display: none; }
  .composer textarea#chat-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rx-pop { width: min(332px, calc(100vw - 16px)); }
}


/* ---------- v8: С‚РµРјС‹ РѕС„РѕСЂРјР»РµРЅРёСЏ ---------- */
:root[data-theme="ocean"] { --bg0: #04101f; --bg1: #08203a; --glass: rgba(10, 34, 62, .58); --glass-strong: rgba(14, 44, 80, .84); --blue: #22b8ff; --violet: #2f6bff; --grad: linear-gradient(135deg, #22b8ff 0%, #2f6bff 60%, #5b6bff 100%); --glow1: 47, 107, 255; --glow2: 34, 184, 255; --glow3: 34, 230, 255; }
:root[data-theme="sunset"] { --bg0: #1d0a14; --bg1: #2e1020; --glass: rgba(60, 22, 40, .58); --glass-strong: rgba(76, 28, 50, .84); --blue: #ff7a45; --violet: #ff4f9a; --grad: linear-gradient(135deg, #ff7a45 0%, #ff4f9a 75%, #ff4fc0 100%); --glow1: 255, 90, 100; --glow2: 255, 150, 60; --glow3: 255, 79, 154; }
:root[data-theme="forest"] { --bg0: #06140e; --bg1: #0c2418; --glass: rgba(14, 44, 30, .58); --glass-strong: rgba(18, 58, 40, .84); --blue: #3ddc84; --violet: #16a68f; --grad: linear-gradient(135deg, #3ddc84 0%, #16a68f 80%, #12a0b8 100%); --glow1: 22, 166, 143; --glow2: 61, 220, 132; --glow3: 120, 220, 90; }
:root[data-theme="rose"] { --bg0: #1a0b22; --bg1: #2a1235; --glass: rgba(54, 24, 64, .58); --glass-strong: rgba(68, 30, 80, .84); --blue: #ff6bb5; --violet: #c25bff; --grad: linear-gradient(135deg, #ff6bb5 0%, #c25bff 80%, #9a5bff 100%); --glow1: 194, 91, 255; --glow2: 255, 107, 181; --glow3: 255, 150, 220; }
:root[data-theme="graphite"] { --bg0: #0e0f13; --bg1: #1a1b21; --glass: rgba(30, 31, 38, .64); --glass-strong: rgba(38, 40, 48, .88); --blue: #9aa7ff; --violet: #6f7bd9; --grad: linear-gradient(135deg, #9aa7ff 0%, #6f7bd9 100%); --glow1: 111, 123, 217; --glow2: 154, 167, 255; --glow3: 90, 100, 160; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; border: 2px solid var(--line); background: rgba(var(--wh),.04); text-align: left; transition: border-color .15s, transform .1s; }
.theme-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.theme-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.theme-prev { display: flex; align-items: flex-end; gap: 5px; height: 66px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.theme-prev i { width: 22px; height: 22px; border-radius: 7px; background: rgba(var(--wh),.14); }
.theme-card b { font-size: 14px; padding: 0 2px 2px; }

/* ---------- v8: РіР»Р°РІРЅР°СЏ, РґСЂСѓР·СЊСЏ, Р»РёС‡РЅС‹Рµ СЃРѕРѕР±С‰РµРЅРёСЏ ---------- */
.home-wrap { position: relative; flex: none; }
.home-btn { width: 46px; height: 46px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(var(--glow1), .9); transition: border-radius .15s, transform .12s; }
.home-btn svg { width: 86%; height: 86%; }
.home-btn:hover { border-radius: 13px; transform: scale(1.04); }
.home-btn.active { box-shadow: 0 0 0 3px rgba(var(--wh),.85), 0 8px 22px -8px rgba(var(--glow1), .9); }
.home-wrap .srv-badge { position: absolute; right: -4px; bottom: -4px; min-width: 18px; padding: 0 5px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 3px var(--ringc, #15112f); }
.av.home-ic { display: grid; place-items: center; background: var(--grad); }
.av.home-ic svg { width: 90%; height: 90%; }
.ch.dm .ch-btn { padding: 6px 10px; }
.ch.dm .av { width: 28px; height: 28px; }
.ch.dm.unread .ch-btn span { color: var(--text); font-weight: 650; }
.pcard .actions { display: flex; flex-direction: column; gap: 8px; }
.pcard .actions.duo { flex-direction: row; }
.pcard .actions.duo .btn { flex: 1; padding-left: 10px; padding-right: 10px; }
@media (max-width: 820px) { .home-btn { width: 42px; height: 42px; } }

.friends-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fr-head { display: flex; align-items: center; gap: 8px; padding: 6px 20px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.fr-head h2 { margin: 0 4px 0 8px; font-size: 17px; }
.fr-sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 6px; }
.fr-tab { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.fr-tab:hover { background: rgba(var(--wh),.08); color: var(--text); }
.fr-tab.on { background: rgba(var(--wh),.14); color: var(--text); }
.fr-tab b { min-width: 18px; padding: 0 6px; height: 18px; line-height: 18px; border-radius: 9px; background: rgba(var(--wh),.16); font-size: 11px; text-align: center; }
.fr-tab.add { background: var(--grad); color: #fff; margin-left: 4px; }
.fr-tab.add.on { filter: brightness(1.1); }
.fr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 20px; }
.fr-title { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; padding: 12px 0 8px; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.fr-row:hover { background: rgba(var(--wh),.06); }
.fr-text { flex: 1; min-width: 0; line-height: 1.25; }
.fr-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-sub { font-size: 12.5px; color: var(--muted); }
.fr-acts { display: flex; gap: 8px; }
.fr-act { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--wh),.09); color: var(--muted); transition: background .15s, color .15s; }
.fr-act:hover { background: rgba(var(--wh),.18); color: var(--text); }
.fr-act.good:hover { background: rgba(61,220,132,.25); color: var(--green); }
.fr-act.danger:hover, .fr-act.armed { background: rgba(255,77,94,.25); color: #ff9aa5; }
.fr-act.armed { box-shadow: 0 0 0 2px rgba(255,77,94,.6); }
.fr-empty { color: var(--muted); padding: 30px 6px; text-align: center; }
.fr-add { max-width: 560px; }
.fr-form { display: flex; gap: 10px; }
.fr-form input { flex: 1; }
.fr-note { margin-top: 10px; min-height: 20px; color: var(--green); font-size: 14px; }
.fr-note.err { color: #ff9aa5; }

.invite-banner { display: flex; align-items: center; gap: 12px; text-align: left; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(var(--wh),.07); border: 1px solid var(--line-strong); }
.invite-banner div { display: flex; flex-direction: column; min-width: 0; }
.invite-banner b { font-size: 16px; }
.invite-banner small { color: var(--muted); font-size: 12.5px; }

.inv-opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inv-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.inv-opts select { padding: 8px 10px; border-radius: 10px; background: rgba(var(--wh),.08); border: 1px solid var(--line); color: var(--text); }
.inv-opts select option { background: #1a1638; color: #f2f0ff; }
.inv-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.inv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-row input { flex: 1; min-width: 180px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--bk),.25); border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.inv-row small { color: var(--muted); font-size: 12px; }

.snd-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.snd-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(var(--wh),.05); }
.snd-em { font-size: 18px; }
.snd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-file { font-size: 12px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sb-pop { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(360px, 86vw); padding: 12px; border-radius: 18px; z-index: 30; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; }
.sb-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: rgba(var(--wh),.08); border: 1px solid var(--line); transition: background .15s, transform .1s; }
.sb-btn:hover { background: rgba(var(--wh),.16); }
.sb-btn:active { transform: scale(.95); }
.sb-btn span { font-size: 24px; line-height: 1; }
.sb-btn b { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-vol { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sb-vol input { flex: 1; }
.sb-float { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(var(--bk),.65); font-size: 13px; font-weight: 600; white-space: nowrap; animation: sbf 2.6s ease-out forwards; pointer-events: none; }
@keyframes sbf { 0% { opacity: 0; transform: translate(-50%, 10px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -6px); } }

/* ---------- v8.1: Р·РІРѕРЅРєРё РІ Р»РёС‡РЅС‹С… СЃРѕРѕР±С‰РµРЅРёСЏС… ---------- */
#btn-call.live { color: #fff; background: var(--green); animation: callpulse 1.4s ease-in-out infinite; }
@keyframes callpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 50% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } }
.dm-live { margin-left: auto; color: var(--green); display: grid; }
.dm-live .ic { width: 15px; height: 15px; }
.dm-live + .badge { margin-left: 6px; }
.ring-card { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.85); animation: ringin .25s ease-out; }
@keyframes ringin { from { opacity: 0; transform: translate(-50%, -14px); } }
.ring-text { display: flex; flex-direction: column; min-width: 120px; }
.ring-text small { color: var(--muted); }
.ring-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .1s, filter .15s; }
.ring-btn:hover { filter: brightness(1.12); }
.ring-btn:active { transform: scale(.93); }
.ring-btn.ok { background: var(--green); animation: callpulse 1.4s ease-in-out infinite; }
.ring-btn.no { background: var(--red); }

/* ---------- v9: РїСЂР°РІР° Рё РїСЂРµСЃРµС‚С‹ ---------- */
.pm-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.pm-presets > span { color: var(--muted); font-size: 13px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(var(--wh),.08); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s; }
.chip:hover { background: rgba(var(--wh),.16); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.pm-list { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.pm-group { margin-bottom: 10px; }
.pm-title { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.pm-row:hover { background: rgba(var(--wh),.05); }
.pm-row b { display: block; font-weight: 600; font-size: 14px; }
.pm-row small { display: block; color: var(--muted); font-size: 12px; }
.pm-row.locked { opacity: .4; cursor: not-allowed; }
.pm-row.implied { opacity: .55; }
.pm-modal { width: min(520px, 92vw); }
.mod-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.mod-box input { width: 100%; margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(var(--bk),.25); border: 1px solid var(--line); color: var(--text); }
.pcard .actions.wrap { flex-wrap: wrap; }
.pcard .actions.wrap .btn { flex: 1 1 40%; }
.role-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(var(--wh),.12); color: var(--muted); }
.role-row.base { border-style: dashed; }
.composer.ro { opacity: .55; pointer-events: none; }
.backdrop.sub .modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.pm-list { max-height: none; overflow: visible; padding-right: 0; }

/* ---------- v9.1: С†РІРµС‚ РєР°СЂС‚РѕС‡РєРё РїСЂРѕС„РёР»СЏ ---------- */
.pc-theme { border-radius: inherit; }
.pc-theme.on { background: linear-gradient(180deg, color-mix(in srgb, var(--cc1) 60%, #0a0820) 0%, color-mix(in srgb, var(--cc2) 52%, #0a0820) 100%); }
.pc-theme.on .av-wrap .av, .pc-theme.on .av-wrap .dot { border-color: color-mix(in srgb, var(--cc1) 60%, #0a0820); }
.pc-theme.on hr { border-top-color: rgba(var(--wh),.14); }
.pc-theme.on .bio { color: rgba(var(--wh),.72); }
.cc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 10px 0; }
.cc-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cc-row input[type="color"] { width: 54px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: none; cursor: pointer; }
.cc-row .btn.on { background: rgba(var(--wh),.18); }
.cc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-presets button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; transition: transform .1s, border-color .15s; }
.cc-presets button:hover { transform: scale(1.1); }
.cc-presets button.on { border-color: #fff; }

/* ---------- Р±СЂРµРЅРґ: Р»РёСЃР° ---------- */
.rail .home-btn, .logo, .av.home-ic { background: linear-gradient(145deg, #262d78, #141945); }
.rail .home-btn svg { width: 88%; height: 88%; }

/* ---------- Р°РґРјРёРЅ-РїР°РЅРµР»СЊ Рё РїР°СЂРѕР»СЊ ---------- */
.ad-search { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--bk),.25); color: var(--text); margin-bottom: 10px; outline: none; }
.ad-search:focus { border-color: var(--blue); }
.ad-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--wh),.04); border: 1px solid var(--line); }
.ad-dot { width: 10px; height: 10px; border-radius: 50%; background: #5b5880; flex: none; }
.ad-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.ad-main { flex: 1; min-width: 0; }
/* 38.57: если кнопки не помещаются рядом с описанием — переносятся на строку ниже, а не сжимают текст в столбик */
.ad-row { flex-wrap: wrap; row-gap: 8px; }
.ad-row > .ad-main { flex: 1 1 300px; }
.ad-row > .ad-act { flex: 0 1 auto; margin-left: auto; }
.ad-srv-ic, .ad-fl-pv { width: 36px; height: 36px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--wh), .07); font-weight: 650; text-decoration: none; }
.ad-srv-ic img, .ad-fl-pv img { width: 100%; height: 100%; object-fit: cover; }
.ad-fl-pv.ic { font-size: 18px; }
.ad-main > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
/* просмотр сервера из админки */
.modal.ad-sv-modal { width: min(1100px, calc(100vw - 32px)); max-width: none; }
.ad-sv { padding: 28px; }
.ad-sv h2 { margin: 0 40px 12px 0; }
@media (max-width: 760px) { .ad-sv { padding: 20px 16px; } }
.ad-sv-body { display: grid; grid-template-columns: 240px 1fr; gap: 12px; height: min(68vh, 640px); }
.ad-sv-side { display: flex; flex-direction: column; min-height: 0; gap: 4px; }
.ad-sv-list { overflow-y: auto; flex: 1 1 60%; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-sv-mem { overflow-y: auto; flex: 0 1 40%; min-height: 0; font-size: 13px; display: flex; flex-direction: column; gap: 3px; padding: 0 6px; }
.ad-sv-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); margin: 8px 6px 2px; }
.ad-sv-ch { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; text-align: left; color: var(--muted); }
.ad-sv-ch span { width: 18px; text-align: center; flex: none; }
.ad-sv-ch small { margin-left: auto; color: var(--dim); font-size: 11px; }
.ad-sv-ch.sub { padding-left: 22px; font-size: 13px; }
.ad-sv-ch:hover { background: rgba(var(--wh), .06); color: var(--text); }
.ad-sv-ch.on { background: rgba(var(--wh), .1); color: var(--text); }
.ad-sv-msgs { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--bk), .2); border: 1px solid var(--line); }
.ad-sv-m { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 3px; }
.ad-sv-m .muted { font-size: 12px; }
.ad-sv-re { padding-left: 8px; border-left: 2px solid var(--line-strong); }
.ad-sv-img { max-width: 320px; max-height: 220px; border-radius: 10px; display: block; }
.ad-sv-img.st { max-width: 120px; }
@media (max-width: 760px) { .ad-sv-body { grid-template-columns: 1fr; height: auto; } .ad-sv-side { max-height: 30vh; } .ad-sv-msgs { height: 55vh; } }
.ad-main small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.ad-tag { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 99px; margin-left: 6px; background: rgba(124, 92, 255, .25); color: #cdbdff; }
.ad-tag.warn { background: rgba(255, 184, 77, .2); color: #ffd28a; }
.ad-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* 38.56: состояние сервера, регистрация, блокировка и удаление */
.ad-tag.bad { background: rgba(255, 77, 94, .2); color: #ff9aa4; }
:root[data-theme="light"] .ad-tag.bad { color: #b3192b; }
.ad-st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ad-st-t { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--wh), .04); border: 1px solid var(--line); min-width: 0; }
.ad-st-t small { font-size: 12px; color: var(--muted); }
.ad-st-t b { font-size: 17px; font-weight: 650; }
.ad-st-t span { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.ad-st-t.bad { border-color: rgba(255, 77, 94, .45); background: rgba(255, 77, 94, .08); }
.ad-st-t.bad b { color: #ff8f9a; }
:root[data-theme="light"] .ad-st-t.bad b { color: #b3192b; }
.ad-st-w { margin-top: 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px; background: rgba(255, 184, 77, .12); border: 1px solid rgba(255, 184, 77, .3); }
.ad-inv-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.ad-inv-row code { font: 600 16px/1.2 ui-monospace, Consolas, monospace; padding: 4px 10px; border-radius: 8px; background: rgba(var(--bk), .3); user-select: all; }
.ad-del-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.ad-log { display: flex; flex-direction: column; gap: 6px; font-size: 13px; max-height: 220px; overflow-y: auto; }
.ad-pw { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--bk),.3); border: 1px dashed var(--line-strong); margin-bottom: 8px; }
.ad-pw code { flex: 1; font: 600 20px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; user-select: all; }
@media (max-width: 700px) { .ad-row { flex-wrap: wrap; } .ad-act { width: 100%; justify-content: flex-start; } }

/* ---------- СЃР°СѓРЅРґР±РѕСЂРґ: РїР°РЅРµР»СЊ ---------- */
/* .emoji-pop СЂР°СЃСЃС‡РёС‚Р°РЅ РЅР° СЃРµС‚РєСѓ СЌРјРѕРґР·Рё 4Г—N: РґР»СЏ СЃР°СѓРЅРґР±РѕСЂРґР° СЃР±СЂР°СЃС‹РІР°РµРј РµС‘ */
.emoji-pop.sb-pop { display: block; grid-template-columns: none; gap: 0; padding: 12px; }
.sb-pop .sb-btn { width: auto; height: auto; min-height: 66px; font-size: inherit; border-radius: 14px; }
.sb-pop .sb-btn span { font-size: 24px; }
.sb-pop .sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.sb-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.sb-empty b { color: var(--text); font-size: 14px; }
.sb-empty .btn { margin-top: 6px; }
.sb-pop .sb-vol { margin-top: 12px; }
.sb-pop .sb-vol span { flex: none; }

/* ---------- СѓР·РєРёРµ СЌРєСЂР°РЅС‹: РїР°РЅРµР»СЊ Р·РІРѕРЅРєР° Рё СЃР°СѓРЅРґР±РѕСЂРґ РїРѕРјРµС‰Р°СЋС‚СЃСЏ РІ РѕРєРЅРѕ ---------- */
@media (max-width: 820px) {
  .controls { flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 8px); }
  .emoji-wrap:has(> .sb-pop) { position: static; }
  .emoji-pop.sb-pop { left: 50%; transform: translateX(-50%); bottom: calc(100% + 10px); width: min(360px, calc(100vw - 90px)); }
}
@media (max-width: 480px) {
  .controls { gap: 4px; padding: 6px; }
  .ctl { width: 42px; height: 42px; border-radius: 13px; }
  .ctl .ic { width: 22px; height: 22px; }
  .ctl.hang { width: 52px; }
}

.sb-empty .btn.sm { width: auto; height: auto; font-size: 13px; }
.sb-empty .btn.primary { color: #fff; }

/* ---------- v11: РґРµРјРѕРЅСЃС‚СЂР°С†РёСЏ СЌРєСЂР°РЅР° ---------- */
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 4px; }
.presets button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--wh),.07); border: 1px solid var(--line); text-align: left; transition: background .15s, border-color .15s; }
.presets button:hover { background: rgba(var(--wh),.13); }
.presets button.on { border-color: var(--green); background: rgba(61, 220, 132, .14); }
.presets b { font-size: 14px; }
.presets small { color: var(--dim); font-size: 12px; }
.tile-sv { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(var(--bk),.55); backdrop-filter: blur(8px); opacity: 0; transition: opacity .15s; z-index: 3; }
.tile:hover .tile-sv, .tile-sv:focus-within { opacity: 1; }
.tile-sv .ic { width: 18px; height: 18px; }
.tile-sv input { width: 96px; }
@media (hover: none) { .tile-sv { opacity: 1; } }

/* ---------- v11: Р»РёСЃР° РІ СЃРѕСЃС‚РѕСЏРЅРёСЏС… ---------- */
.fox-scene { position: relative; width: var(--fs, 140px); margin: 0 auto 12px; --fox-gap: var(--bg1, #120e2e); flex: none; }
.fox-scene > svg { width: 100%; height: auto; display: block; animation: fsFloat 4.5s ease-in-out infinite; filter: drop-shadow(0 14px 30px rgba(124, 92, 255, .4)); }
@keyframes fsFloat { 50% { transform: translateY(-5px) rotate(-1.5deg); } }
.fs-z { position: absolute; right: -4%; top: 6%; font: 700 20px/1 var(--font); font-style: normal; color: var(--blue); opacity: 0; animation: fsZ 3.2s ease-in infinite; }
.fs-z.z2 { animation-delay: 1.05s; right: 4%; font-size: 15px; }
.fs-z.z3 { animation-delay: 2.1s; right: -10%; font-size: 26px; }
@keyframes fsZ { 0% { opacity: 0; transform: translate(0, 12px) scale(.7); } 25% { opacity: .95; } 100% { opacity: 0; transform: translate(14px, -30px) scale(1.15); } }
.fs-q { position: absolute; right: -6%; top: -4%; width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 800 1.5em/1 var(--font); font-style: normal; color: #fff; background: var(--grad); animation: fsQ 2.2s ease-in-out infinite; transform-origin: 20% 90%; }
@keyframes fsQ { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }
.fs-ring { position: absolute; inset: -9%; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--blue); border-right-color: var(--violet); animation: fsSpin 1.1s linear infinite; }
@keyframes fsSpin { to { transform: rotate(360deg); } }
.fs-p-ring > svg { animation: fsShake .5s ease-in-out infinite; }
@keyframes fsShake { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.fs-wave { position: absolute; top: 18%; width: 22%; height: 40%; border: 3px solid var(--green); border-radius: 50%; opacity: 0; animation: fsWave 1.2s ease-out infinite; }
.fs-wave.w1 { left: -24%; border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.fs-wave.w2 { right: -24%; border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; animation-delay: .3s; }
@keyframes fsWave { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: scale(1.3); } }
.fox-scene .fx-eye { transform-box: fill-box; transform-origin: center; animation: fxBlink 5.5s infinite; }
.msg-empty .fox-scene, .fr-empty .fox-scene, .empty .fox-scene { margin-bottom: 14px; }
.ring-card .fox-scene { margin: 0 -2px 0 0; }
.ring-card .fox-scene > svg { filter: none; animation: none; }
.ring-card .fs-p-ring > svg { animation: fsShake .5s ease-in-out infinite; }
#splash { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(900px 600px at 8% -10%, rgba(var(--glow1), .38), transparent 60%), var(--bg0); transition: opacity .35s; }
#splash.out { opacity: 0; pointer-events: none; }
.splash-msg { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); text-align: center; max-width: 320px; padding: 0 16px; min-height: 20px; }
.splash-msg b { color: var(--text); font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .fox-scene > svg, .fs-z, .fs-q, .fs-ring, .fs-wave, .fox-scene .fx-eye, .fs-p-ring > svg { animation: none !important; } .fs-z { opacity: .8; } }

/* ---------- v11: РІРёРґ С‡Р°С‚Р° ---------- */
:root { --chat-fs: 15px; --chat-maxw: none; }
.msg-text { font-size: var(--chat-fs); }
.msg-head b { font-size: calc(var(--chat-fs) - 1px); }
.chat-view .msgs > * { max-width: var(--chat-maxw); width: 100%; }
.card .seg + .row-l { margin-top: 14px; }
.card .row-l + .seg { margin-top: 6px; }
.card .seg { margin-bottom: 4px; }
html[data-density="compact"] .chat-view .msgs { gap: 0; padding-top: 4px; }
html[data-density="compact"] .msg { padding: 1px 10px; gap: 8px; }
html[data-density="compact"] .msg.head-row { margin-top: 6px; }
html[data-density="compact"] .msg-text { line-height: 1.3; }
html[data-density="compact"] .msg .av.sm { width: 24px; height: 24px; font-size: 11px; }
html[data-density="compact"] .msg-gap { width: 24px; }
html[data-density="compact"] .msg-img { max-height: 220px; }

/* ---------- v12: РєР°С‚РµРіРѕСЂРёРё, РїСЂР°РІР° РєР°РЅР°Р»Р°, Р¶СѓСЂРЅР°Р», С‚Р°Р№Рј-Р°СѓС‚ ---------- */
.ch-lock { margin-left: auto; display: inline-grid; place-items: center; color: var(--dim); }
.ch-lock .ic { width: 13px; height: 13px; }
.ch-btn .ch-lock + .badge, .room-btn .ch-lock + .spin { margin-left: 6px; }
.cat { margin-top: 6px; }
.cat-head { display: flex; align-items: center; gap: 2px; padding: 4px 6px 2px 4px; }
.cat-tg { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); padding: 4px 6px; border-radius: 8px; text-align: left; }
.cat-tg:hover { color: var(--text); }
.cat-tg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tg .ic { width: 12px; height: 12px; flex: none; transition: transform .15s; }
.cat.closed .cat-tg .ic { transform: rotate(-90deg); }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); flex: none; margin-left: 2px; }
.side-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 10px 4px; }
.side-tools .chip { display: inline-flex; align-items: center; gap: 4px; }
.side-tools .chip .ic { width: 13px; height: 13px; }
.lay-modal, .ov-modal, .aud-modal { width: min(560px, calc(100vw - 32px)); }
.lay-list { max-height: 52vh; overflow-y: auto; margin: 10px -6px 0; padding: 0 6px; }
.lay-group { margin-bottom: 12px; }
.lay-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); padding: 4px 6px; }
.lay-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 10px; background: rgba(var(--wh),.05); margin-bottom: 4px; }
.lay-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lay-name .ic { width: 15px; height: 15px; flex: none; color: var(--muted); }
.lay-cat { width: 150px; padding: 5px 30px 5px 8px; font-size: 13px; border-radius: 9px; background-color: rgba(var(--wh),.08); border: 1px solid var(--line); color: var(--text); }
.ov-add { display: flex; gap: 8px; margin: 12px 0 8px; }
.ov-add select { flex: 1; min-width: 0; }
.ov-targets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ov-targets .chip { display: inline-flex; align-items: center; gap: 4px; }
.ov-targets .chip[style] { border-color: var(--rc); }
.ov-targets .chip .ic { width: 13px; height: 13px; }
.ov-x { margin-left: 4px; opacity: .6; cursor: pointer; font-size: 15px; line-height: 1; }
.ov-x:hover { opacity: 1; }
.ov-perms { max-height: 40vh; overflow-y: auto; }
.ov-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.ov-row:hover { background: rgba(var(--wh),.05); }
.ov-row b { display: block; font-weight: 600; font-size: 14px; }
.ov-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ov-row.locked { opacity: .45; }
.tri { display: flex; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: rgba(var(--in),.55); }
.tri button { width: 34px; height: 30px; color: var(--muted); font-size: 14px; }
.tri button:hover:not(:disabled) { background: rgba(var(--wh),.1); color: var(--text); }
.tri button.on { background: rgba(var(--wh),.16); color: #fff; font-weight: 700; }
.tri button.on.allow { background: rgba(61,220,132,.28); color: #7dffb0; }
.tri button.on.deny { background: rgba(255,77,94,.28); color: #ff9aa5; }
.aud-modal select { width: 100%; margin: 4px 0 10px; }
.aud-list { max-height: 55vh; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.aud-row { display: flex; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.aud-t { flex: none; width: 104px; color: var(--dim); font-size: 12px; padding-top: 2px; }
.aud-row small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.aud-tg { color: #b9c8ff; }
.to-row { display: flex; gap: 8px; }
.to-row select { flex: 1; min-width: 0; }
.to-mark { display: inline-grid; place-items: center; margin-left: 6px; color: #ffb020; vertical-align: -2px; }
.to-mark .ic { width: 14px; height: 14px; }
@media (max-width: 560px) { .lay-cat { width: 110px; } .aud-t { width: 80px; } }
.hint .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- v13: РєРѕРґ, РѕРїСЂРѕСЃС‹, РіРѕР»РѕСЃРѕРІС‹Рµ, РЅР°РїРѕРјРёРЅР°РЅРёСЏ ---------- */
.codeblk { margin: 6px 0; border-radius: 10px; background: rgba(var(--bk),.4); border: 1px solid var(--line); overflow: hidden; max-width: 100%; }
.code-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; font-size: 11.5px; color: var(--dim); background: rgba(var(--wh),.04); text-transform: lowercase; }
.code-copy { font-size: 11.5px; color: var(--muted); padding: 2px 8px; border-radius: 7px; }
.code-copy:hover { background: rgba(var(--wh),.1); color: var(--text); }
.codeblk pre.code { margin: 0; border: 0; border-radius: 0; background: none; }
.hl-c { color: #7c7aa6; font-style: italic; }
.hl-s { color: #8fe3a5; }
.hl-n { color: #ffb86b; }
.hl-k { color: #b69cff; }
.hl-l { color: #ff8fa3; }
.hl-f { color: #7fb4ff; }
.hl-t { color: #ff8fa3; }
.hl-p { color: #7fd6e8; }
.md-h { display: block; margin: 4px 0 2px; }
.md-h1 { font-size: 1.35em; }
.md-h2 { font-size: 1.2em; }
.md-h3 { font-size: 1.07em; }
.md-li { display: block; padding-left: 4px; }
.msg-blocked { opacity: .65; font-size: 13px; }
.msg-blocked small { color: var(--dim); }
.msg-blocked small .ic { width: 13px; height: 13px; vertical-align: -2px; }
.msg-blocked button { color: #8fb4ff; margin-left: 4px; }
.spoil-wrap { position: relative; display: inline-block; max-width: 100%; margin-top: 6px; cursor: pointer; border-radius: 14px; overflow: hidden; }
.spoil-wrap .spoil-in { filter: blur(26px) saturate(.6); pointer-events: none; transition: filter .2s; }
.spoil-wrap .spoil-tag { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(var(--pop),.35); }
.spoil-wrap .spoil-tag .ic { width: 22px; height: 22px; }
.spoil-wrap.open { cursor: default; }
.spoil-wrap.open .spoil-in { filter: none; pointer-events: auto; }
.spoil-wrap.open .spoil-tag { display: none; }
.voice { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px 8px 8px; width: min(320px, 100%); border-radius: 16px; background: rgba(var(--wh),.07); border: 1px solid var(--line); }
.v-play { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent, #5b8cff), #a55bff); color: #fff; }
.v-play .ic { width: 16px; height: 16px; }
.v-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(var(--wh),.14); cursor: pointer; position: relative; }
.v-bar::before { content: ''; position: absolute; inset: -8px 0; }
.v-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: #cdd6ff; }
.v-time { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.rec-bar { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; padding: 8px 12px; border-radius: 14px; background: rgba(255,77,94,.12); border: 1px solid rgba(255,77,94,.35); }
.rec-sp { flex: 1; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d5e; animation: recPulse 1s ease-in-out infinite; }
@keyframes recPulse { 50% { opacity: .35; } }
#chat-form.recording textarea { opacity: .4; pointer-events: none; }
.poll { margin-top: 6px; padding: 12px; width: min(420px, 100%); border-radius: 16px; background: rgba(var(--wh),.06); border: 1px solid var(--line); }
.poll-q { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 15px; line-height: 1.35; }
.poll-q .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #8fb4ff; }
.poll-sub { font-size: 12px; color: var(--dim); margin: 2px 0 10px 26px; }
.poll-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: 6px; padding: 9px 12px; border-radius: 11px; background: rgba(var(--wh),.06); border: 1px solid var(--line); overflow: hidden; text-align: left; }
.poll-opt:hover:not(:disabled) { border-color: var(--line-strong); }
.poll-opt:disabled { cursor: default; }
.poll-opt.mine { border-color: #5b8cff; }
.po-fill { position: absolute; inset: 0 auto 0 0; background: rgba(91,140,255,.22); transition: width .25s; }
.poll-opt.mine .po-fill { background: rgba(91,140,255,.4); }
.po-t, .po-n { position: relative; }
.po-t { overflow-wrap: anywhere; }
.po-n { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 4px; }
.poll-end { color: #8fb4ff; }
.poll-modal #pl-opts input { width: 100%; }
.rem-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.rem-modal .aud-list { max-height: 36vh; }
.rem-card { position: fixed; right: 18px; bottom: 90px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px; max-width: min(380px, calc(100vw - 36px)); border-radius: 18px; box-shadow: 0 20px 50px -12px #000; animation: pop .18s ease-out; }
.rem-card + .rem-card { bottom: 170px; }
.rem-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,176,32,.18); color: #ffb020; }
.rem-ic .ic { width: 18px; height: 18px; }
.rem-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.rem-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.rem-text small { color: var(--dim); }
.ch-mute { position: absolute; right: 34px; width: 26px; height: 26px; border-radius: 8px; display: none; place-items: center; color: var(--muted); background: rgba(var(--pop),.9); }
.room .ch-mute { top: 7px; }
.ch:hover .ch-mute, .room:hover .ch-mute, .ch-mute.on { display: grid; }
.ch-mute.on { right: 6px; background: none; color: var(--dim); }
.ch:hover .ch-mute.on, .room:hover .ch-mute.on { background: rgba(var(--pop),.9); right: 34px; }
.ch-mute:hover { color: var(--text); }
.ch-mute .ic { width: 14px; height: 14px; }
.ch-draft { display: inline-grid; margin-left: 6px; color: var(--dim); }
.ch-draft .ic { width: 12px; height: 12px; }
.snd-name .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- v13.1: РІРµС‚РєРё, С‡Р°С‚ РіРѕР»РѕСЃРѕРІРѕРіРѕ, С„РѕСЂСѓРјС‹ ---------- */
.ch-mute.vchat { right: 62px; top: 7px; }
.ch-mute.vchat.on { right: 62px; color: var(--cyan); }
.room-btn .badge { margin-left: auto; }
.thr-back { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); margin-right: 2px; }
.thr-back:hover { background: rgba(var(--wh),.1); color: var(--text); }
.top-join { margin-left: 12px; padding: 5px 12px; border-radius: 10px; background: rgba(61,220,132,.18); color: #7dffb4; border: 1px solid rgba(61,220,132,.4); font-size: 13px; }
.top-join:hover { background: rgba(61,220,132,.3); }
.thr-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 12px 5px 9px; border-radius: 12px; background: rgba(34,230,255,.08); border: 1px solid rgba(34,230,255,.28); color: var(--cyan); font-size: 13px; max-width: 100%; }
.thr-chip svg { width: 16px; height: 16px; flex: none; }
.thr-chip b { font-weight: 600; }
.thr-chip span { color: var(--muted); }
.thr-chip:hover { background: rgba(34,230,255,.16); }
.thr-origin { margin: 4px 0 12px; padding: 10px 14px; border-radius: 14px; background: rgba(var(--wh),.05); border-left: 3px solid var(--cyan); }
.thr-origin small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.thr-origin small svg { width: 14px; height: 14px; }
.thr-origin p { margin: 2px 0 0; color: var(--dim, var(--muted)); font-size: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.forum-view { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.forum-view[hidden] { display: none; }
.fo-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fo-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 22px; }
.fo-head h2 svg { width: 24px; height: 24px; color: var(--violet); }
.fo-head small { color: var(--muted); }
.fo-list { display: flex; flex-direction: column; gap: 10px; }
.fo-card { text-align: left; padding: 14px 16px; border-radius: 16px; background: rgba(var(--wh),.05); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: .15s; }
.fo-card:hover { background: rgba(var(--wh),.09); border-color: var(--violet); transform: translateY(-1px); }
.fo-title { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.fo-prev { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fo-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.fo-meta time { margin-left: auto; }
@media (max-width: 760px) { .forum-view { padding: 12px 12px 22px; } }

/* ---------- v14: СЂРµР¶РёРјС‹ РїРѕРєР°Р·Р°, СЂСѓРєР°, РјРёРЅРё-РѕРєРЅРѕ ---------- */
.tile-hand { position: absolute; left: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,176,32,.92); color: #2a1a00; box-shadow: 0 6px 18px -4px rgba(255,176,32,.7); animation: handUp .5s ease; }
.tile-hand .ic { width: 20px; height: 20px; }
@keyframes handUp { from { transform: translateY(10px) scale(.6); opacity: 0; } }
#c-hand.on { background: rgba(255,176,32,.9); color: #2a1a00; }
#c-lay.on { color: var(--cyan); }
.mini-call { position: fixed; z-index: 60; width: 236px; padding: 10px 12px 12px; border-radius: 18px; box-shadow: 0 22px 50px -14px rgba(0,0,0,.85); border: 1px solid var(--line-strong); }
.mini-call[hidden] { display: none; }
.mc-head { display: flex; flex-direction: column; cursor: grab; user-select: none; touch-action: none; padding-bottom: 8px; }
.mc-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-head small { color: var(--muted); font-size: 12px; }
.mc-people { display: flex; gap: 6px; flex-wrap: wrap; min-height: 30px; margin-bottom: 10px; }
.mc-av { position: relative; border-radius: 50%; padding: 2px; transition: box-shadow .15s; }
.mc-av.speaking { box-shadow: 0 0 0 2px var(--cyan), 0 0 14px rgba(34,230,255,.55); }
.mc-av i { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: #ffb020; color: #2a1a00; display: grid; place-items: center; }
.mc-av i .ic { width: 10px; height: 10px; }
.mc-more { align-self: center; color: var(--muted); font-size: 12px; }
.mc-btns { display: flex; gap: 6px; }
.mc-btns button { flex: 1; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--wh),.08); }
.mc-btns button:hover { background: rgba(var(--wh),.16); }
.mc-btns button.off { background: rgba(255,77,94,.85); color: #fff; }
.mc-btns button.hang { background: rgba(255,77,94,.85); color: #fff; }
.mc-btns .ic { width: 17px; height: 17px; }

/* ---------- v14.1: С‚СЂРёР±СѓРЅР° ---------- */
.tribune { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; width: 100%; }
.tb-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tb-stage .stage-layout { flex: 1; }
.tb-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); gap: 6px; max-width: 420px; margin: auto; }
.tb-aud { flex: none; max-height: 34%; overflow-y: auto; padding: 12px 14px 74px; border-radius: 18px; background: rgba(var(--wh),.04); border: 1px solid var(--line); }
.tb-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.tb-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-chip { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgba(var(--wh),.07); border: 1px solid var(--line); font-size: 14px; }
.tb-chip.hand { border-color: #ffb020; background: rgba(255,176,32,.14); }
.tb-chip.speaking { box-shadow: 0 0 0 2px var(--cyan); }
.tb-chip i { color: #ffb020; display: grid; }
.tb-chip i .ic { width: 16px; height: 16px; }
.tb-chip button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(61,220,132,.2); color: #7dffb4; font-size: 12.5px; border: 1px solid rgba(61,220,132,.4); }
.tb-chip button .ic { width: 13px; height: 13px; }
.tb-chip button:hover { background: rgba(61,220,132,.35); }
.tile-down { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 10px; font-size: 12.5px; background: rgba(var(--in),.7); backdrop-filter: blur(10px); opacity: 0; transition: opacity .15s; z-index: 2; }
.tile:hover .tile-down { opacity: 1; }
.tile-down .ic { width: 12px; height: 12px; }
.tile-down:hover { background: rgba(255,77,94,.85); }
.tile .tile-mic ~ .tile-down { right: 52px; }
.tile-prio { position: absolute; left: 10px; bottom: 44px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(165,91,255,.9); color: #fff; }
.tile-prio .ic { width: 15px; height: 15px; }
#c-prio.on { background: rgba(165,91,255,.9); color: #fff; }
@media (hover: none) { .tile-down { opacity: 1; } }
.controls { flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 24px); }
.tb-aud { padding-bottom: 120px; }

/* ---------- v15: РїСЂРёРІРµС‚СЃС‚РІРёРµ, Р°РІС‚РѕРјРѕРґРµСЂР°С†РёСЏ, РєР°С‚Р°Р»РѕРі ---------- */
.cf-sub { font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.cf-roles { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cf-role { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(var(--wh),.05); flex-wrap: wrap; }
.cf-role label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 130px; cursor: pointer; }
.cf-role .dot { width: 10px; height: 10px; border-radius: 50%; }
.cf-role.locked { opacity: .55; }
.cf-role small { color: var(--muted); }
.cf-role input.cf-emoji { width: 52px; text-align: center; }
.cf-role input.cf-label { width: 150px; }
.cf-role input[type=text], .cf-role input:not([type]) { padding: 6px 9px; border-radius: 9px; background: rgba(var(--wh),.07); border: 1px solid var(--line); color: var(--text); }
.welcome { width: min(480px, 100%); }
.wl-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 12px; }
.wl-head h2 { margin: 0; }
.wl-text { padding: 12px 14px; border-radius: 14px; background: rgba(var(--wh),.06); line-height: 1.5; overflow-wrap: anywhere; margin-bottom: 14px; }
.wl-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-role { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--wh),.06); font-size: 14px; transition: .15s; }
.wl-role:hover { border-color: var(--rc); }
.wl-role.on { background: color-mix(in srgb, var(--rc) 28%, transparent); border-color: var(--rc); }
.wl-role .ic { width: 15px; height: 15px; }
.catmodal { width: min(860px, 100%); }
.catalog h2 { margin: 0 0 12px; }
.ct-q { width: 100%; padding: 11px 14px; border-radius: 12px; background: rgba(var(--wh),.07); border: 1px solid var(--line); color: var(--text); margin-bottom: 10px; }
.ct-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ct-tags .chip { padding: 5px 12px; border-radius: 999px; background: rgba(var(--wh),.07); border: 1px solid var(--line); font-size: 13px; }
.ct-tags .chip.on { background: rgba(165,91,255,.3); border-color: var(--violet); }
.ct-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.ct-card { border-radius: 18px; overflow: hidden; background: rgba(var(--wh),.05); border: 1px solid var(--line); display: flex; flex-direction: column; }
.ct-banner { height: 62px; background: linear-gradient(120deg, #3b2a8f, #6b3fd8 60%, #1fb5d6) center/cover; }
.ct-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ct-top { display: flex; align-items: flex-end; gap: 10px; margin-top: -22px; }
.ct-top > div { display: flex; flex-direction: column; min-width: 0; padding-bottom: 2px; }
.ct-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-top small { color: var(--muted); }
.ct-body p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.welcome { padding: 28px 24px 22px; }
.catalog { padding: 24px 24px 22px; }
.catalog h2 { padding-right: 36px; }

/* v15.1: РґР»РёРЅРЅС‹Рµ РЅР°Р·РІР°РЅРёСЏ РЅРµ РЅР°РµР·Р¶Р°СЋС‚ РЅР° РєРЅРѕРїРєРё */
.top-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.top-title > svg, .top-title > .thr-back, .top-title > .top-join { flex: none; }
.top-title small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 100 auto; }
.top-actions { flex: none; }
.ch-btn > span, .room-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room:hover .room-btn > span, .ch:hover .ch-btn > span { max-width: calc(100% - 100px); }
.voice-bar .vb-text { min-width: 0; flex: 1; overflow: hidden; }
.voice-bar .vb-text b, .voice-bar .vb-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-bar > button { flex: none; }
.voice-bar > button.vb-text { flex: 1; }
.voice-bar .vb-text b, .voice-bar .vb-text small { text-align: left; width: 100%; }
.voice-bar .vb-text { display: block; }
.inv-app { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--cyan); }
.btn.keycap.wait { color: var(--cyan); border-color: var(--cyan); }

/* v16.1: РіР»Р°РІРЅР°СЏ Р±РµР· РїСЂР°РІРѕР№ РєРѕР»РѕРЅРєРё, РєРЅРѕРїРєР° СЃРєР°С‡РёРІР°РЅРёСЏ */
@media (min-width: 1181px) { .shell.no-panel { grid-template-columns: 72px 264px minmax(0, 1fr); } }
.shell.no-panel #panel, .shell.no-panel #btn-panel { display: none; }
a.btn.primary, a.btn.primary:hover, a.btn.primary:visited { color: #fff; text-decoration: none; }
.login-dl { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; background: rgba(var(--wh),.08); border: 1px solid rgba(var(--wh),.16); backdrop-filter: blur(10px); }
.login-dl:hover { background: rgba(var(--wh),.16); }
.login-dl svg { width: 18px; height: 18px; }
.login-dl[hidden] { display: none; }

/* v17: СЂР°РјРєРё Р°РІР°С‚Р°СЂР° Рё РґРѕСЃС‚РёР¶РµРЅРёСЏ */
.av > .fr { position: absolute; inset: calc((1 - var(--fs, 2)) * 50%); width: calc(var(--fs, 2) * 100%); height: calc(var(--fs, 2) * 100%); max-width: none; pointer-events: none; z-index: 3; user-select: none; }
.av.xs > .fr { display: none; }
.rp .av > .fr, .member .av > .fr { z-index: 3; }
.ach-top { display: flex; gap: 22px; align-items: center; padding: 22px; }
.ach-me { flex: none; width: 150px; display: grid; place-items: center; }
.ach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ach { display: flex; gap: 14px; align-items: center; padding: 14px 14px 14px 12px; border-radius: 18px; background: rgba(var(--wh),.045); border: 1px solid var(--line); }
.ach.done { background: rgba(var(--wh),.075); }
.ach:not(.done) .ach-pre { opacity: .5; filter: grayscale(.7); }
.ach.rare.done { border-color: rgba(110,170,255,.45); } .ach.epic.done { border-color: rgba(190,130,255,.55); } .ach.legendary.done { border-color: rgba(255,200,90,.65); }
.ach-pre { position: relative; flex: none; width: 76px; height: 76px; display: grid; place-items: center; }
.ach-lock { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--bk),.6); }
.ach-lock svg { width: 12px; height: 12px; }
.ach-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ach-txt b { font-size: 14px; } .ach-txt small { color: var(--muted); font-size: 12px; line-height: 1.3; } .ach-txt em { font-style: normal; font-size: 11px; color: var(--muted); opacity: .8; }
.ach-bar { height: 5px; border-radius: 3px; background: rgba(var(--wh),.1); overflow: hidden; margin-top: 4px; } .ach-bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.ach-act { flex: none; }
@media (max-width: 900px) { .ach-grid { grid-template-columns: 1fr; } .ach-top { flex-direction: column; text-align: center; } }
.ach-pre { width: 100px; height: 100px; } .ach-pre .av { width: 58px; height: 58px; font-size: 24px; }
.ach-lock { right: 14px; bottom: 14px; }
.ach { padding-left: 8px; }

/* ---------- v19: РєРѕРјРїР°РєС‚РЅР°СЏ РїР°РЅРµР»СЊ Р·РІРѕРЅРєР° ---------- */
.more-wrap { position: static; }
.more-pop { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 16px; box-shadow: 0 18px 44px -16px rgba(0,0,0,.8); z-index: 5; border: 1px solid var(--line); background: var(--glass-strong); }
.more-pop[hidden] { display: none; }
.more-pop .emoji-wrap { display: contents; }
.more-pop .ctl { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.more-pop .ctl .ic { width: 20px; height: 20px; color: var(--text); }
.more-pop .ctl.on, .more-pop .ctl.on .ic { color: #fff; }
.more-pop .ctl[hidden] { display: none; }
html[data-sh-theme="1"] .more-pop { border-radius: 4px; background: #0f1312; border-color: rgba(160,170,165,.22); box-shadow: inset 0 0 0 3px rgba(0,0,0,.35), 0 18px 44px -16px rgba(0,0,0,.9); }
html[data-sh-theme="1"] .more-pop .ctl { border-radius: 3px; background: rgba(160,170,165,.07); border-color: rgba(160,170,165,.16); }
html[data-sh-theme="1"] .more-pop .ctl:hover { background: rgba(160,170,165,.16); }
html[data-sh-theme="1"] .more-pop .ctl.on { background: #8f2a2a; box-shadow: none; }
#c-more.open { background: rgba(var(--wh),.2); }
#c-more.has-dot { position: relative; }
#c-more.has-dot::after { content: ''; position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: #a55bff; box-shadow: 0 0 0 2px rgba(30,26,60,.9); }
@media (max-width: 480px) { .more-pop .ctl { width: 38px; height: 38px; } }

/* ---------- v19: СЃС‚СЂРёРј РїРѕ РєРЅРѕРїРєРµ, Р·СЂРёС‚РµР»Рё, СЃРІСЏР·СЊ ---------- */
.tile.locked { background: radial-gradient(120% 120% at 20% 10%, rgba(124,92,255,.25), rgba(12,9,36,.9)); overflow: hidden; cursor: default; }
.tile.locked .lock-bg { position: absolute; inset: 0; display: grid; place-items: center; filter: blur(22px) saturate(1.3); opacity: .55; transform: scale(2.2); pointer-events: none; }
.lock-box { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; }
.lock-title { font-size: 15px; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.lock-title span { font-weight: 400; color: var(--muted); }
.lock-load { color: var(--muted); font-size: 14px; }
.glass-join { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 18px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, rgba(var(--wh),.26), rgba(var(--wh),.07)); border: 1px solid rgba(var(--wh),.38);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(var(--wh),.55), inset 0 -10px 22px rgba(124,92,255,.22), 0 14px 34px -12px rgba(124,92,255,.85);
  transition: transform .15s, box-shadow .2s, background .2s; }
.glass-join::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(var(--wh),.45), transparent); transform: skewX(-18deg); transition: left .6s; }
.glass-join:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(var(--wh),.34), rgba(var(--wh),.1)); box-shadow: inset 0 1px 0 rgba(var(--wh),.65), inset 0 -10px 22px rgba(124,92,255,.3), 0 18px 40px -12px rgba(124,92,255,1); }
.glass-join:hover::before { left: 120%; }
.glass-join:active { transform: scale(.97); }
.glass-join .ic { width: 20px; height: 20px; }
.tile-viewers { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 14px; background: rgba(var(--in),.6); backdrop-filter: blur(10px); font-size: 13px; z-index: 4; }
.tile-viewers > .ic { width: 15px; height: 15px; color: #8ff0bc; }
.tile-viewers .vw-list { display: flex; margin-left: 2px; }
.tile-viewers .vw { display: inline-flex; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(20,16,50,.95); }
.tile-viewers .vw:first-child { margin-left: 0; }
.tile-viewers .vw-more { margin-left: 4px; color: var(--muted); font-size: 12px; }
.lock-box .tile-viewers { position: static; margin-top: 2px; }
.tile-unwatch { position: absolute; right: 52px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; background: rgba(var(--in),.6); backdrop-filter: blur(10px); opacity: 0; transition: opacity .15s, background .15s; }
.tile-unwatch .ic { width: 15px; height: 15px; }
.tile:hover .tile-unwatch { opacity: 1; }
.tile-unwatch:hover { background: rgba(255,77,94,.85); }
@media (hover: none) { .tile-unwatch { opacity: 1; } }
.vb-net { display: inline-grid; place-items: center; width: 24px; flex: none; }
.vb-net .net-ic { width: 20px; height: 20px; }
.vb-net .net-ic rect { fill: rgba(var(--wh),.22); transition: fill .3s; }
.vb-net.n-good .net-ic rect { fill: #3ddc84; }
.vb-net.n-mid .b1, .vb-net.n-mid .b2 { fill: #ffb020; }
.vb-net.n-bad .b1 { fill: #ff4d5e; }
.vb-net.n-none .net-ic rect { fill: rgba(var(--wh),.3); }
#vb-ms { color: var(--muted); }

/* v19.2: РЅР° СЃС‚СЂРёРјРµ СѓС‡Р°СЃС‚РЅРёРєРё вЂ” РєРѕРјРїР°РєС‚РЅРѕР№ Р»РµРЅС‚РѕР№ РїРѕРґ РѕРєРЅРѕРј */
.stage-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.strip { flex-direction: row; justify-content: safe center; overflow-x: auto; overflow-y: hidden; gap: 8px; padding: 2px; }
.strip .tile { width: 132px; aspect-ratio: 16 / 10; border-radius: 14px; }
.strip .tile .av.xl { width: 48px; height: 48px; font-size: 20px; }
.strip .tile .tile-name { left: 6px; bottom: 6px; padding: 2px 7px; font-size: 11px; border-radius: 8px; max-width: calc(100% - 12px); }
.strip .tile .tile-mic { width: 22px; height: 22px; top: 6px; right: 6px; }
.strip .tile .tile-mic .ic { width: 12px; height: 12px; }
.strip .tile .glass-join { padding: 6px 10px; font-size: 11px; border-radius: 12px; gap: 6px; }
.strip .tile .glass-join .ic { width: 14px; height: 14px; }
.strip .tile .lock-title { font-size: 11px; }
.strip .tile .lock-box { gap: 6px; padding: 6px; }

/* ---------- v20: Р°РєС‚РёРІРЅРѕСЃС‚СЊ ---------- */
.prow-sub.act, .prow .prow-sub.act { color: #8ff0bc; }
.pc-act { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--wh),.06); border: 1px solid var(--line); }
.pc-act-ic { font-size: 22px; line-height: 1; }
.pc-act b { display: block; font-size: 14px; }
.pc-act small { color: var(--muted); font-size: 12px; }
.pc-act.game { background: rgba(61,220,132,.1); border-color: rgba(61,220,132,.3); }
.pc-act.music { background: rgba(124,92,255,.12); border-color: rgba(124,92,255,.35); }
.act-custom { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.act-custom input { flex: 1; min-width: 120px; }
.act-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.act-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(var(--wh),.05); font-size: 13px; }
.act-item code { color: var(--muted); }
.act-item span { flex: 1; }

.tile.scr .tile-sv { top: 52px; }
.tile-pv { left: auto; right: 10px; top: auto; bottom: 10px; }
.tile-pv input { width: 84px; }
.strip .tile .tile-pv { display: none; }

/* ---------- v20.1: РјРµРЅСЋ С‡РµР»РѕРІРµРєР° ---------- */
.ctx { min-width: 250px; max-width: 290px; z-index: 120; }
.ctx-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.ctx-title { padding: 4px 10px 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.ctx > button.danger { color: #ff9aa5; }
.ctx > button.danger:hover { background: rgba(255,77,94,.18); color: #ffb3bb; }
.ctx > button .ic { flex: none; }
#pc-more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#pc-more .ic { width: 18px; height: 18px; }

/* ---------- v20.2: РѕС‚Р»РѕР¶РµРЅРЅС‹Рµ СЃРѕРѕР±С‰РµРЅРёСЏ ---------- */
.sch-prev { padding: 10px 12px; border-radius: 12px; background: rgba(var(--wh),.06); border: 1px solid var(--line); color: var(--muted); font-size: 14px; white-space: pre-wrap; word-break: break-word; margin: 8px 0 12px; max-height: 110px; overflow: auto; }
.sch-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sch-presets .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
.sch-presets .btn small { color: var(--muted); font-weight: 400; font-size: 12px; }
.sch-item { align-items: center; }
.sch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sch-t b { font-size: 13px; }
.sch-t span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#btn-sched .ic { width: 20px; height: 20px; }
.to-row input { flex: 1; min-width: 0; }
input[type="datetime-local"], input[type="date"], input[type="time"] { color-scheme: dark; background: rgba(var(--bk),.28); border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; padding: 10px 12px; font: inherit; }
input[type="datetime-local"]:focus { outline: none; border-color: var(--accent, #7c5cff); }

:root[data-theme="amoled"] { --bg0: #000; --bg1: #07070a; --glass: rgba(14, 14, 20, .72); --glass-strong: rgba(18, 18, 26, .92); --line: rgba(var(--wh),.07); --blue: #7c8cff; --violet: #a55bff; --grad: linear-gradient(135deg, #7c8cff 0%, #a55bff 100%); --glow1: 124, 100, 255; --glow2: 124, 140, 255; --glow3: 165, 91, 255; }
:root[data-theme="mint"] { --bg0: #041213; --bg1: #082a2c; --glass: rgba(10, 44, 46, .58); --glass-strong: rgba(14, 58, 60, .84); --blue: #2de2c3; --violet: #2fb4ff; --grad: linear-gradient(135deg, #2de2c3 0%, #2fb4ff 100%); --glow1: 47, 180, 255; --glow2: 45, 226, 195; --glow3: 34, 230, 255; }
:root[data-theme="lavender"] { --bg0: #120e22; --bg1: #231c40; --glass: rgba(44, 36, 82, .58); --glass-strong: rgba(56, 46, 100, .84); --blue: #b79cff; --violet: #7c9bff; --grad: linear-gradient(135deg, #b79cff 0%, #7c9bff 100%); --glow1: 124, 155, 255; --glow2: 183, 156, 255; --glow3: 215, 190, 255; }
.acc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); transition: transform .12s, border-color .12s; display: grid; place-items: center; }
.acc-sw:hover { transform: scale(1.1); }
.acc-sw.on { border-color: #fff; }
.acc-sw.reset { background: rgba(var(--wh),.08); color: var(--muted); }
.acc-sw.reset .ic { width: 16px; height: 16px; }
.acc-custom { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(var(--wh),.07); border: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--muted); }
.acc-custom input { width: 28px; height: 28px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }

/* v21: Р¶СѓСЂРЅР°Р» вЂ” РїРѕРёСЃРє, СЃС‚Р°С‚РёСЃС‚РёРєР° */
.aud-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
#aud-q { width: 100%; margin-bottom: 10px; }
.stats-modal { max-width: 520px; }
.stats-modal h4 { margin: 16px 0 8px; font-size: 13px; color: var(--muted, #9aa3b8); font-weight: 600; }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-c { background: rgba(var(--wh),.05); border-radius: 12px; padding: 12px 10px; text-align: center; }
.st-c b { display: block; font-size: 22px; }
.st-c span { font-size: 11px; opacity: .65; }
.st-days { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 6px; }
.st-d { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.st-d i { width: 100%; border-radius: 4px 4px 2px 2px; background: var(--grad, linear-gradient(#5b8cff,#9b6bff)); min-height: 3px; }
.st-d span { font-size: 10px; opacity: .55; }
.st-bar { display: grid; grid-template-columns: 110px 1fr 36px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.st-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-line { height: 8px; border-radius: 4px; background: rgba(var(--wh),.07); overflow: hidden; }
.st-line i { display: block; height: 100%; border-radius: 4px; background: var(--grad, linear-gradient(90deg,#5b8cff,#9b6bff)); }
.st-v { text-align: right; opacity: .7; }
.inv-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; margin-right: 6px; vertical-align: 1px; }
.alert-out { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.alert-out > span { font-size: 12.5px; color: var(--muted); }

/* v22: РёРєРѕРЅРєР° Р°РєС‚РёРІРЅРѕСЃС‚Рё, РІС‹Р±РѕСЂ РїСЂРѕРіСЂР°РјРјС‹ */
.act-img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; display: block; }
.act-custom select { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; background: rgba(var(--wh),.08); border: 1px solid var(--line); color: var(--text); }
.act-custom select option { background: #1a1638; color: #f2f0ff; }
.act-item small { color: var(--muted); font-size: 11.5px; }

/* ---------- v23: С‚РµР»РµС„РѕРЅ ---------- */
@media (max-width: 560px) {
  /* РїРѕР»Рµ РІРІРѕРґР° РЅР° РІСЃСЋ С€РёСЂРёРЅСѓ, РєРЅРѕРїРєРё вЂ” РѕС‚РґРµР»СЊРЅС‹Рј СЂСЏРґРѕРј РїРѕРґ РЅРёРј */
  .composer { flex-wrap: wrap; margin-left: 6px; margin-right: 6px; gap: 2px 4px; padding: 6px 8px; }
  .composer textarea#chat-input { order: -1; flex: 1 1 100%; width: 100%; padding: 8px 4px; font-size: 16px; }
  .composer #btn-voice { margin-left: auto; }
  .composer .icon-btn { width: 40px; height: 40px; }
  .composer .icon-btn.send { width: 44px; }
  /* С€Р°РїРєР°: РЅР°Р·РІР°РЅРёРµ РєР°РЅР°Р»Р° РЅРµ РѕР±СЂРµР·Р°РµС‚СЃСЏ РґРѕ РѕРґРЅРѕР№ Р±СѓРєРІС‹ */
  .top { padding: 10px 8px 6px; gap: 4px; min-height: 52px; }
  .top-title { font-size: 17px; gap: 6px; }
  .top-actions { gap: 0; }
  .top-actions .icon-btn { width: 36px; height: 36px; }
  .chat-view .msgs { padding: 6px 8px; }
  .shell { padding: 6px; gap: 6px; grid-template-columns: 56px minmax(0, 1fr); }
  .rail-srv, .rail-add, .av.srv { width: 38px; height: 38px; }
  .side { left: 68px; width: min(300px, calc(100vw - 80px)); }
}
@media (max-width: 560px) {
  .backdrop { padding: 8px; }
  .modal { padding: 20px 16px; border-radius: 22px; }
  .modal.srvset { padding: 16px 10px; }
  .modal.srvset .srvset, .modal .srvset { padding: 0; }
  .modal .card { padding: 14px; }
}
@media (max-width: 560px) {
  .modal.settings { padding: 0; }
  .set-nav { padding: 10px 8px; margin-right: 44px; gap: 2px; scrollbar-width: none; border-bottom: 0; }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-nav button { white-space: nowrap; flex: none; padding: 9px 12px; }
  .set-body { padding: 18px 14px 24px; }
  .set-body h2 { font-size: 22px; }
}

/* ---------- v23: СЃРѕР±С‹С‚РёСЏ СЃРµСЂРІРµСЂР° ---------- */
.ev-row { display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 4px 8px 8px; padding: 9px 12px; border-radius: 12px; background: rgba(var(--wh),.06); border: 1px solid var(--line); color: var(--text); font-size: 14px; text-align: left; transition: background .15s; }
.ev-row:hover { background: rgba(var(--wh),.11); }
.ev-row .ic { width: 18px; height: 18px; color: var(--blue); flex: none; }
.ev-row span { flex: 1; }
.ev-badge { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 12px; text-align: center; }
.ev-modal { max-width: 560px; }
.ev-card { margin: 10px 0; padding: 14px; border-radius: 16px; background: rgba(var(--wh),.06); border: 1px solid var(--line); }
.ev-card.live { border-color: rgba(61,220,132,.45); background: rgba(61,220,132,.08); }
.ev-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ev-title { font-size: 16px; }
.ev-when { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ev-when b { color: var(--text); font-weight: 600; }
.ev-desc { margin: 10px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-ch { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(var(--bk),.22); font-size: 14px; }
.ev-ch .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ev-ch span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.ev-going { color: var(--muted); font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.ev-foot .btn { flex: none; width: auto; height: auto; }
.ev-empty { padding: 20px 4px; }
.ev-modal select, .ev-modal textarea, .ev-modal input[type=datetime-local] { color-scheme: dark; }

/* v25: СЂР°РјРєРё СЃС‚Р°Р»Рё РєСЂСѓРїРЅРµРµ вЂ” Сѓ РјРµР»РєРёС… Р°РІР°С‚Р°СЂРѕРІ РѕСЃС‚Р°РІР»СЏРµРј РјРµСЃС‚Рѕ, С‡С‚РѕР±С‹ РґРµРєРѕСЂ РЅРµ РЅР°РµР·Р¶Р°Р» РЅР° РЅРёРє */
.av.sm:has(> .fr), .av.md:has(> .fr) { margin-left: 8px; margin-right: 10px; }
.ach.hid { border-style: dashed; background: rgba(var(--wh),.03); }
.ach.hid .ach-pre { opacity: .35; }
.ach.hid .ach-txt b { letter-spacing: .3em; }

/* ---------- СЃРІРµС‚Р»Р°СЏ С‚РµРјР°: РєР°РЅР°Р»С‹ --wh/--bk/--in/--pop РїРµСЂРµРІРѕСЂР°С‡РёРІР°СЋС‚ В«Р±РµР»С‹РµВ» Рё В«С‚С‘РјРЅС‹РµВ» РїРѕРґР»РѕР¶РєРё ---------- */
:root[data-theme="light"] { color-scheme: light; --bg0: #e8ebf6; --bg1: #f7f8fd; --glass: rgba(255, 255, 255, .72); --glass-strong: rgba(255, 255, 255, .94); --line: rgba(30, 36, 80, .1); --line-strong: rgba(30, 36, 80, .18); --text: #1d2040; --muted: #596089; --dim: #8b90b4; --blue: #4a6bff; --violet: #8a4dff; --cyan: #0a9fc0; --green: #14a257; --red: #dc3148; --amber: #c97d00; --grad: linear-gradient(135deg, #4a6bff 0%, #8a4dff 100%); --glow1: 120, 110, 255; --glow2: 80, 170, 255; --glow3: 190, 130, 255; --wh: 30, 36, 80; --bk: 30, 36, 80; --in: 228, 232, 247; --pop: 255, 255, 255; --ringc: #ffffff; }
:root[data-theme="light"] #bg { opacity: .5; }

:root[data-theme="light"] .btn.danger,
:root[data-theme="light"] .form-error,
:root[data-theme="light"] .voice-bar button,
:root[data-theme="light"] .set-nav .logout,
:root[data-theme="light"] .set-nav .logout:hover,
:root[data-theme="light"] .linkbtn.out,
:root[data-theme="light"] .linkbtn.out:hover,
:root[data-theme="light"] .msg-del:hover,
:root[data-theme="light"] .msg-tools button.danger:hover,
:root[data-theme="light"] .sr-unpin:hover,
:root[data-theme="light"] .fr-act.danger:hover,
:root[data-theme="light"] .fr-act.armed,
:root[data-theme="light"] .fr-note.err,
:root[data-theme="light"] .ctx > button.danger,
:root[data-theme="light"] .ctx > button.danger:hover,
:root[data-theme="light"] .tag.red,
:root[data-theme="light"] .tri button.on.deny,
:root[data-theme="light"] .ctl.off,
:root[data-theme="light"] .toast.err,
:root[data-theme="light"] .new-sep,
:root[data-theme="light"] .hl-l,
:root[data-theme="light"] .hl-t { color: #c4283d }
:root[data-theme="light"] .audio-warn,
:root[data-theme="light"] .hint.warn,
:root[data-theme="light"] .tag.amber,
:root[data-theme="light"] .mention.self,
:root[data-theme="light"] .mention.all,
:root[data-theme="light"] .ad-tag.warn { color: #865600 }
:root[data-theme="light"] .tag.green,
:root[data-theme="light"] .voice-bar small,
:root[data-theme="light"] .voice-bar .ic,
:root[data-theme="light"] .top-join,
:root[data-theme="light"] .tb-chip button,
:root[data-theme="light"] .tile-viewers > .ic,
:root[data-theme="light"] .tri button.on.allow,
:root[data-theme="light"] .hl-s { color: #0d7a41 }
:root[data-theme="light"] .msg-text a,
:root[data-theme="light"] .lp b,
:root[data-theme="light"] .msg-blocked button,
:root[data-theme="light"] .poll-q .ic,
:root[data-theme="light"] .poll-end,
:root[data-theme="light"] .mention,
:root[data-theme="light"] .rx.mine b,
:root[data-theme="light"] .aud-tg { color: #3453d8 }
:root[data-theme="light"] .tag.violet,
:root[data-theme="light"] .ad-tag { color: #6a35c8 }
:root[data-theme="light"] .tag.cyan { color: #056f87 }
:root[data-theme="light"] .hl-c { color: #6a6e96 }
:root[data-theme="light"] .hl-n { color: #b45f06 }
:root[data-theme="light"] .hl-k { color: #6d3fd0 }
:root[data-theme="light"] .hl-f { color: #2456c8 }
:root[data-theme="light"] .hl-p { color: #0b7285 }
:root[data-theme="light"] .seg button.on,
:root[data-theme="light"] .tri button.on,
:root[data-theme="light"] .login-dl { color: var(--text) }
:root[data-theme="light"] .btn.primary,
:root[data-theme="light"] .btn.primary:hover,
:root[data-theme="light"] .ctl.on,
:root[data-theme="light"] .ctl.hang,
:root[data-theme="light"] .logo,
:root[data-theme="light"] .home-btn,
:root[data-theme="light"] .chip.on,
:root[data-theme="light"] .pc-theme.on,
:root[data-theme="light"] .glass-join,
:root[data-theme="light"] .connect-card,
:root[data-theme="light"] .role-chip,
:root[data-theme="light"] .attach-chip.file .bar i { color: #fff }
:root[data-theme="light"] select option,
:root[data-theme="light"] select optgroup,
:root[data-theme="light"] .inv-opts select option,
:root[data-theme="light"] .act-custom select option { background: #fff; color: #1d2040 }
:root[data-theme="light"] .side-head { color: #fff }
:root[data-theme="light"] .side-head .muted,
:root[data-theme="light"] .side-head small,
:root[data-theme="light"] .side-head .sh-sub { color: rgba(255,255,255,.78) }
:root[data-theme="light"] .msg-text code.icode,
:root[data-theme="light"] .msg-text pre.code { background: rgba(30, 36, 80, .07) }
:root[data-theme="light"] .msg-img,
:root[data-theme="light"] .media-card { background: rgba(30, 36, 80, .05) }
:root[data-theme="light"] .dot.off,
:root[data-theme="light"] .spoiler { background: #bfc3dd }
:root[data-theme="light"] .codeblk { background: rgba(30, 36, 80, .06); }

/* Р·РЅР°С‡РєРё РїРѕР»СЊР·РѕРІР°С‚РµР»РµР№ */
.pb { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--pbc, #5b8cff); background: color-mix(in srgb, var(--pbc, #5b8cff) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pbc, #5b8cff) 45%, transparent); flex: none; }
.pb svg { width: 62%; height: 62%; }
.pb-mini { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 5px; }
.pb-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }

.ad-badges, .ad-ub { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0; }
.ad-bd { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 10px; background: rgba(var(--wh), .05); border: 1px solid rgba(var(--wh), .08); color: inherit; cursor: pointer; font: inherit; }
.ad-bd:hover { background: rgba(var(--wh), .09); }
.ad-bd.on { border-color: var(--accent, #5b8cff); }
.ad-bd small { display: block; opacity: .65; font-size: 12px; }
.ad-glyphs { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-gl { padding: 4px; border-radius: 10px; border: 1px solid transparent; background: rgba(var(--wh), .05); cursor: pointer; }
.ad-gl.on { border-color: var(--accent, #5b8cff); }

.link-btn { background: none; border: 0; color: var(--accent, #7aa2ff); cursor: pointer; font: inherit; font-size: 13px; padding: 6px 0 0; text-align: center; width: 100%; }
.link-btn:hover { text-decoration: underline; }

/* ---------- РїСЂР°Р·РґРЅРёС‡РЅРѕРµ РѕС„РѕСЂРјР»РµРЅРёРµ: РҐСЌР»Р»РѕСѓРёРЅ (РµРґРІР° Р·Р°РјРµС‚РЅРѕРµ) ---------- */
html[data-season="halloween"] .modal::after,
html[data-season="halloween"] .login-card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; pointer-events: none; z-index: 2;
  background: rgba(var(--wh), .13);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M100 0L0 0M100 0L100 100M100 0L18 62M100 0L52 82M100 0L78 48M100 0L36 28'/%3E%3Cpath d='M92 0Q88 18 100 24M72 0Q66 30 100 44M50 0Q42 44 100 66M28 0Q20 56 100 90'/%3E%3C/svg%3E") no-repeat top right / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M100 0L0 0M100 0L100 100M100 0L18 62M100 0L52 82M100 0L78 48M100 0L36 28'/%3E%3Cpath d='M92 0Q88 18 100 24M72 0Q66 30 100 44M50 0Q42 44 100 66M28 0Q20 56 100 90'/%3E%3C/svg%3E") no-repeat top right / contain;
}
html[data-season="halloween"] .modal-x { z-index: 4; }
#sn-bats { display: none; }
html[data-season="halloween"] #sn-bats { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.sn-bat { position: absolute; left: -90px; color: rgba(var(--wh), .34); width: 44px; opacity: 0; animation: sn-fly 48s linear infinite; }
.sn-bat svg { width: 100%; display: block; animation: sn-flap .42s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.sn-bat.sn-b0 { top: 16%; animation-delay: 2s; }
.sn-bat.sn-b1 { top: 38%; width: 32px; animation-duration: 61s; animation-delay: 14s; }
.sn-bat.sn-b2 { top: 8%; width: 26px; animation-duration: 73s; animation-delay: 27s; }
@keyframes sn-fly { 0% { transform: translate(0, 0); opacity: 0; } 2% { opacity: 1; } 20% { transform: translate(40vw, 9vh); } 38% { transform: translate(calc(100vw + 180px), -5vh); opacity: 1; } 40%, 100% { transform: translate(calc(100vw + 180px), -5vh); opacity: 0; } }
@keyframes sn-flap { from { transform: scaleY(1); } to { transform: scaleY(.7); } }
@media (prefers-reduced-motion: reduce) { .sn-bat, .sn-bat svg { animation: none !important; } .sn-bat { display: none; } }
html[data-season="halloween"] .login-card { position: relative; }

/* СѓРєСЂР°С€РµРЅРёСЏ РѕРєРЅР° С‡Р°С‚Р° */
.sn-deco { display: none; }
html[data-season="halloween"] .sn-deco { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sn-web { position: absolute; width: 130px; height: 130px; background: rgba(var(--wh), .1); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M100 0L0 0M100 0L100 100M100 0L18 62M100 0L52 82M100 0L78 48M100 0L36 28'/%3E%3Cpath d='M92 0Q88 18 100 24M72 0Q66 30 100 44M50 0Q42 44 100 66M28 0Q20 56 100 90'/%3E%3C/svg%3E") no-repeat top right / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M100 0L0 0M100 0L100 100M100 0L18 62M100 0L52 82M100 0L78 48M100 0L36 28'/%3E%3Cpath d='M92 0Q88 18 100 24M72 0Q66 30 100 44M50 0Q42 44 100 66M28 0Q20 56 100 90'/%3E%3C/svg%3E") no-repeat top right / contain; }
.sn-web.tl { left: 0; top: 0; transform: scaleX(-1); }
.sn-web.br { right: 0; bottom: 0; width: 64px; height: 64px; transform: scaleY(-1); opacity: .9; }
.sn-candle { position: absolute; bottom: 74px; width: 20px; height: 47px; display: none; }
.sn-candle.l { left: 6px; } .sn-candle.r { right: 6px; bottom: 76px; height: 40px; width: 17px; }
.sn-candle svg { width: 100%; height: 100%; overflow: visible; }
.sn-candle::before { content: ''; position: absolute; left: 50%; top: -6px; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: radial-gradient(circle, rgba(255,170,70,.22), transparent 68%); animation: sn-glow 3.2s ease-in-out infinite alternate; }
.sn-candle .fl { transform-origin: 12px 16px; animation: sn-flick 1.8s ease-in-out infinite alternate; }
html[data-season="halloween"] .stage:has(#chat:not([hidden])) .sn-candle { display: block; }
@keyframes sn-flick { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.94, 1.06) rotate(2deg); } 100% { transform: scale(1.03, .96) rotate(-1deg); } }
@keyframes sn-glow { from { opacity: .6; } to { opacity: 1; } }
@media (max-width: 800px) { .sn-candle { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sn-candle .fl, .sn-candle::before { animation: none; } }

/* РїР°СѓС‡РѕРє РІ РєР°СЂС‚РѕС‡РєРµ РїСЂРѕС„РёР»СЏ */
html[data-season="halloween"] .pcard::before { content: ''; position: absolute; top: -92px; right: 58px; width: 26px; height: 120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 120'%3E%3Cpath d='M13 0V98' stroke='%23ffffff' stroke-opacity='.45' stroke-width='1'/%3E%3Cg stroke='%2316102e' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M9 104Q3 98 1 104M9 107Q2 106 1 112M10 110Q4 112 3 118M11 112Q8 116 8 119M17 104Q23 98 25 104M17 107Q24 106 25 112M16 110Q22 112 23 118M15 112Q18 116 18 119'/%3E%3C/g%3E%3Ccircle cx='13' cy='108' r='7' fill='%2316102e' stroke='%23ffffff' stroke-opacity='.25'/%3E%3Ccircle cx='13' cy='100' r='4.500' fill='%2316102e' stroke='%23ffffff' stroke-opacity='.25'/%3E%3Ccircle cx='11.300' cy='99.500' r='1' fill='%23ff8a3d'/%3E%3Ccircle cx='14.700' cy='99.500' r='1' fill='%23ff8a3d'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; z-index: 3; animation: sn-spider 5.5s ease-in-out infinite alternate; }
@keyframes sn-spider { from { transform: translateY(0); } to { transform: translateY(34px); } }
@media (prefers-reduced-motion: reduce) { html[data-season="halloween"] .pcard::before { animation: none; transform: translateY(18px); } }

/* ---------- РїР°СЃС…Р°Р»РєР°: СЃРІРµС‡Рё Рё РґРµРІСЏС‚СЊ РєРІР°РґСЂР°С‚РѕРІ ---------- */
.sn-candle { pointer-events: auto; cursor: pointer; }
.sn-candle::after { content: ''; position: absolute; inset: -10px -12px -4px; }
.sn-candle .smoke { stroke-dasharray: 60; }
.sn-candle.out .fl, .sn-candle.out::before { display: none; }
.sn-candle.out .smoke { animation: sn-smoke 2.6s ease-out forwards; }
@keyframes sn-smoke { 0% { opacity: .0; transform: translateY(4px); } 20% { opacity: .75; } 100% { opacity: 0; transform: translateY(-12px); } }
.sq9 .q { transform-box: fill-box; transform-origin: center; animation: sq-pulse 3.4s ease-in-out infinite; }
@keyframes sq-pulse { 0%, 100% { opacity: .5; transform: scale(.93); } 50% { opacity: 1; transform: scale(1); } }
svg.sq9 { cursor: pointer; filter: drop-shadow(0 0 14px rgba(190, 30, 30, .35)); }
[data-logo]:has(.sq9), .home-btn:has(.sq9), .av.home-ic:has(.sq9), .logo:has(.sq9) { background: #050607 !important; }
html.sq-reveal svg.sq9 { animation: sq-in 1.8s ease both; }
@keyframes sq-in { from { opacity: 0; filter: blur(10px); } to { opacity: 1; } }

/* ---------- С‚РµРјР° Silent Hill ---------- */
:root[data-theme="silent"] {
  --bg0: #080a0b; --bg1: #171c1d; --glass: rgba(30, 36, 37, .62); --glass-strong: rgba(38, 45, 46, .9);
  --text: #d3d7d2; --muted: #8c9691; --dim: #5f6965;
  --blue: #a3aea7; --violet: #8a2b2b; --cyan: #a9bdb2; --green: #7fa58b; --red: #c0392b; --amber: #b79b5c;
  --grad: linear-gradient(135deg, #8f2a2a 0%, #5a1818 100%);
  --glow1: 110, 34, 34; --glow2: 120, 134, 127; --glow3: 90, 102, 96;
  --in: 6, 9, 10; --pop: 22, 27, 28; --ringc: #0f1314;
}
:root[data-theme="silent"] #bg { background: radial-gradient(1100px 700px at 25% 8%, rgba(160, 175, 168, .2), transparent 62%), radial-gradient(900px 600px at 100% 100%, rgba(var(--glow1), .22), transparent 60%), linear-gradient(175deg, #1c2223, #080a0b); }
:root[data-theme="silent"] .btn.primary { box-shadow: 0 8px 24px -10px rgba(140, 30, 30, .7); }
html[data-sh-theme="1"] .sn-deco, html[data-sh-theme="1"] #sn-bats, html[data-sh-theme="1"] .pcard::before, html[data-sh-theme="1"] .modal::after, html[data-sh-theme="1"] .login-card::after { display: none !important; }
.sh-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; contain: strict; }
.sh-fog-back { z-index: -1; }
.sh-fog-back i, .sh-fog-front i { position: absolute; left: -30%; width: 160%; background: radial-gradient(closest-side, rgba(190, 205, 198, .3), transparent 72%); animation: sh-drift 80s ease-in-out infinite alternate; will-change: transform; }
.sh-fog-back .f1 { top: -5%; height: 55%; }
.sh-fog-back .f2 { top: 35%; height: 50%; animation-duration: 110s; animation-direction: alternate-reverse; opacity: .85; }
.sh-fog-back .f3 { top: 62%; height: 55%; animation-duration: 140s; opacity: .9; }
.sh-fog-front { z-index: 45; }
.sh-fog-front i { background: radial-gradient(closest-side, rgba(200, 212, 206, .17), transparent 74%); will-change: transform; }
.sh-fog-front .f1 { top: 10%; height: 50%; animation-duration: 95s; }
.sh-fog-front .f2 { top: 55%; height: 55%; animation-duration: 125s; animation-direction: alternate-reverse; }
@keyframes sh-drift { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.sh-vignette { z-index: 46; background: radial-gradient(125% 105% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5)); }
.sh-grain { z-index: 47; inset: 0; opacity: .03; background-size: 128px 128px; }
@keyframes sh-grain { 0% { background-position: 0 0; } 25% { background-position: -37px 21px; } 50% { background-position: 53px -29px; } 75% { background-position: -19px -47px; } 100% { background-position: 0 0; } }
html.sh-glitch .sh-grain { opacity: .22; }
html.sh-glitch .stage { animation: sh-glitch 1.05s steps(1, end); }
@keyframes sh-glitch { 0% { transform: translate(2px, 0); } 4% { transform: translate(-3px, 1px) skewX(1deg); } 8% { transform: translate(2px, -1px); } 12% { transform: none; } 34% { transform: translate(-2px, 0) skewX(-.6deg); } 38% { transform: translate(3px, 1px); } 42% { transform: none; } 62% { transform: translate(2px, -1px) skewX(.8deg); } 66% { transform: translate(-3px, 0); } 70% { transform: translate(1px, 1px); } 74% { transform: none; } 88% { transform: translate(-1px, 0); } 91% { transform: none; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sh-fog-back i, .sh-fog-front i, .sh-grain, .sq9 .q, html.sh-glitch .stage { animation: none !important; } }
/* v38.36: С‚РµРјР° РЅРµ Р»РѕР¶РёС‚СЃСЏ РЅР° РІРёРґРµРѕ. РџРѕРєР° РѕС‚РєСЂС‹С‚ Р·РІРѕРЅРѕРє, РіРґРµ РµСЃС‚СЊ РґРµРјРѕРЅСЃС‚СЂР°С†РёСЏ СЌРєСЂР°РЅР°, РєР°РјРµСЂР° РёР»Рё СЃРѕРІРјРµСЃС‚РЅС‹Р№ РїСЂРѕСЃРјРѕС‚СЂ,
   РїРµСЂРµРґРЅРёРµ СЃР»РѕРё (С‚СѓРјР°РЅ, РІРёРЅСЊРµС‚РєР°, Р·РµСЂРЅРѕ) РїСЂСЏС‡РµРј, Р° В«РїРѕРјРµС…Рё СЂР°РґРёРѕВ» РЅРµ С‚СЂСЏСЃСѓС‚ РѕРєРЅРѕ Р·РІРѕРЅРєР°. Р—Р°РґРЅРёР№ С‚СѓРјР°РЅ РѕСЃС‚Р°С‘С‚СЃСЏ. */
html:has(#grid:not([hidden]) .tile video) .sh-fog-front,
html:has(#grid:not([hidden]) .tile video) .sh-vignette,
html:has(#grid:not([hidden]) .tile video) .sh-grain,
html:has(.stage.wt-on #grid:not([hidden])) .sh-fog-front,
html:has(.stage.wt-on #grid:not([hidden])) .sh-vignette,
html:has(.stage.wt-on #grid:not([hidden])) .sh-grain { display: none !important; }
html.sh-glitch:has(#grid:not([hidden]) .tile video) .stage,
html.sh-glitch:has(.stage.wt-on #grid:not([hidden])) .stage { animation: none !important; }html[data-sh-theme="1"] .login-banner { filter: grayscale(.9) contrast(.95); }

/* С‚РµРјР° Silent Hill: Р±РµР· РґРѕСЂРѕРіРѕРіРѕ СЂР°Р·РјС‹С‚РёСЏ С„РѕРЅР° Рё Р±РµР· С„РѕРЅРѕРІРѕРіРѕ РґРІРёР¶РµРЅРёСЏ РїРѕРґ РѕРєРЅР°РјРё */
html[data-sh-theme="1"] .glass, html[data-sh-theme="1"] .glass-strong, html[data-sh-theme="1"] .backdrop, html[data-sh-theme="1"] .login-card, html[data-sh-theme="1"] .more-pop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-sh-theme="1"] .backdrop { background: rgba(4, 6, 6, .78); }
html[data-sh-theme="1"].modal-open .sh-fog-back i, html[data-sh-theme="1"].modal-open .sh-fog-front i { animation-play-state: paused; }

/* ===== Silent Hill: РґРѕРїРѕР»РЅРµРЅРёСЏ С‚РµРјС‹ ===== */
/* Р»С‘РіРєРёР№ СЂРµР¶РёРј: РЅРёРєР°РєРёС… СЃР»РѕС‘РІ Рё С„РѕРЅРѕРІРѕРіРѕ РґРІРёР¶РµРЅРёСЏ */
html[data-sh-lite="1"] .sh-layer, html[data-sh-lite="1"] #sh-ri, html[data-sh-lite="1"] #sh-pulse { display: none !important; }
html[data-sh-lite="1"] .sh-note { display: none; }
/* РЅРѕС‡СЊСЋ С‚СѓРјР°РЅ РіСѓС‰Рµ Рё С‚РµРјРЅРµРµ */
html[data-sh-night="1"][data-sh-theme="1"] .sh-fog-back i { background: radial-gradient(closest-side, rgba(190, 205, 198, .42), transparent 72%); }
html[data-sh-night="1"][data-sh-theme="1"] .sh-fog-front i { background: radial-gradient(closest-side, rgba(200, 212, 206, .27), transparent 74%); }
html[data-sh-night="1"][data-sh-theme="1"] .sh-vignette { background: radial-gradient(125% 105% at 50% 45%, transparent 45%, rgba(0, 0, 0, .7)); }

/* Р·Р°РїРёСЃРєР° РЅР° СЃС‚РµРЅРµ */
.sh-note { margin: 14px auto; max-width: 72%; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 13px; color: #9aa59e; opacity: .75; padding: 8px 14px; border-top: 1px solid rgba(160, 170, 165, .15); border-bottom: 1px solid rgba(160, 170, 165, .15); }
/* С‚СѓРјР°РЅРЅР°СЏ РІСЃРїС‹С€РєР° РїРѕ СЃРµРєСЂРµС‚РЅРѕРјСѓ СЃР»РѕРІСѓ */
#sh-pulse { position: fixed; inset: 0; z-index: 9400; pointer-events: none; opacity: 0; transition: opacity .7s ease; background: radial-gradient(120% 90% at 40% 35%, rgba(190, 200, 196, .5), rgba(120, 132, 128, .45) 60%, rgba(60, 68, 66, .5)); }
#sh-pulse.on { opacity: 1; }
/* СЂР°РґРёРѕ-РёРЅРґРёРєР°С‚РѕСЂ Сѓ Р»РµРІРѕРіРѕ РєСЂР°СЏ */
#sh-ri { position: fixed; left: 28px; bottom: 96px; z-index: 40; display: flex; align-items: flex-end; gap: 2px; height: 18px; opacity: .75; }
#sh-ri i { width: 3px; background: rgba(160, 170, 165, .25); }
#sh-ri i:nth-child(1) { height: 5px; } #sh-ri i:nth-child(2) { height: 8px; } #sh-ri i:nth-child(3) { height: 11px; } #sh-ri i:nth-child(4) { height: 14px; } #sh-ri i:nth-child(5) { height: 18px; }
#sh-ri i.on { background: #8f2a2a; animation: sh-bar var(--ri-speed, 1.2s) steps(2) infinite; }
@media (max-width: 900px) { #sh-ri { display: none; } }
/* СЃС‚СЂРѕРєР° РІ РїСЂРѕС„РёР»Рµ */
/* РїРѕРјРµС…Рё РІ РіРѕР»РѕСЃРѕРІС‹С… РєР°РЅР°Р»Р°С…: РіРѕРІРѕСЂСЏС‰РёР№ В«СЂСЏР±РёС‚В» */
html[data-sh-theme="1"] .rp.speaking .av, html[data-sh-theme="1"] .tile.speaking .av, html[data-sh-theme="1"] .mc-av.speaking { animation: sh-jit .5s steps(2) infinite; box-shadow: 0 0 0 2px #9aa59e, 2px 0 0 2px rgba(143, 42, 42, .55), -2px 0 0 2px rgba(90, 120, 130, .35); }
html[data-sh-theme="1"] .tile.speaking { border-color: #9aa59e; box-shadow: 0 0 0 2px #9aa59e, 0 0 30px -4px rgba(143, 42, 42, .4); }
html[data-sh-theme="1"] .prow.speaking .wave i { background: #9aa59e; }
@keyframes sh-jit { 0% { transform: translate(0, 0); } 25% { transform: translate(1px, 0); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(0, -1px); } 100% { transform: translate(0, 0); } }
html[data-sh-lite="1"] .rp.speaking .av, html[data-sh-lite="1"] .tile.speaking .av, html[data-sh-lite="1"] .mc-av.speaking { animation: none; }
/* РѕС„РѕСЂРјР»РµРЅРёРµ РІ РґСѓС…Рµ СЃС‚Р°СЂС‹С… РёРіСЂРѕРІС‹С… РјРµРЅСЋ */
html[data-sh-theme="1"] .modal { border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(160, 170, 165, .14), inset 0 0 0 5px rgba(0, 0, 0, .35), inset 0 0 0 6px rgba(160, 170, 165, .08), 0 24px 60px rgba(0, 0, 0, .6); }
html[data-sh-theme="1"] .modal h2, html[data-sh-theme="1"] .modal h3, html[data-sh-theme="1"] .set-nav button { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .05em; }
html[data-sh-theme="1"] .modal h2 { font-size: 1.35em; }
html[data-sh-theme="1"] .msg time, html[data-sh-theme="1"] .msg-gap time { font-family: ui-monospace, "Courier New", monospace; letter-spacing: .06em; opacity: .55; }
/* РєСѓСЂСЃРѕСЂ: С‚СѓСЃРєР»Р°СЏ С‚РѕС‡РєР° СЃ РєРѕР»СЊС†РѕРј */
html[data-sh-theme="1"] body { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='11' cy='11' r='3' fill='%23c4cbc6'/><circle cx='11' cy='11' r='8' fill='none' stroke='%23c4cbc6' stroke-opacity='.45'/></svg>") 11 11, auto; }
/* Р·Р°РіСЂСѓР·РєР°: РїСѓР»СЊСЃРёСЂСѓСЋС‰РёР№ РєСЂР°СЃРЅС‹Р№ РєРІР°РґСЂР°С‚ РІРјРµСЃС‚Рѕ СЃРїРёРЅРЅРµСЂР° */
html[data-sh-theme="1"] .spin { border: 0 !important; border-radius: 2px !important; background: #8f2a2a; animation: sq-pulse 1.1s ease-in-out infinite !important; }
/* РІ С‚РµРјРµ Р»РѕРіРѕС‚РёРї-РєРІР°РґСЂР°С‚С‹ РЅРµ РїСѓР»СЊСЃРёСЂСѓСЋС‚ Рё Р±РµР· В«СЃРЅРµР¶РёРЅРѕРє СЃРЅР°В»: СЃРїРѕРєРѕР№РЅС‹Р№ Р·РЅР°С‡РѕРє */
html[data-sh-theme="1"] .sq9 .q { animation: none !important; opacity: .95; }
html[data-sh-theme="1"] .fs-z, html[data-sh-theme="1"] .fs-q { display: none !important; }

/* Р—Р°СЃС‚Р°РІРєР° Р·Р°РіСЂСѓР·РєРё РІ С‚РµРјРµ Silent Hill: С‡С‘СЂРЅС‹Р№ С„РѕРЅ, РґРµРІСЏС‚СЊ РєРІР°РґСЂР°С‚РѕРІ СЃРїСЂР°РІР°, РїРѕ РґРёР°РіРѕРЅР°Р»Рё РїСЂРѕСЃС‚СѓРїР°СЋС‚ СЃР»РµРґС‹ РїРѕРґРѕС€РІ */
#splash.sh { background: #000; overflow: hidden; }
#splash.sh .sh-sp-prints { position: absolute; inset: 0; width: 100%; height: 100%; }
#splash.sh .sh-pr { opacity: 0; fill: #eceeea; animation: sh-step 6.8s ease-in-out infinite; }
#splash.sh .sh-pr .sm { opacity: .28; }
@keyframes sh-step { 0% { opacity: 0; } 8% { opacity: .8; } 36% { opacity: .5; } 70%, 100% { opacity: 0; } }
#splash.sh .sh-sp-sq { position: absolute; right: 11vw; top: 50%; width: 58px; height: 58px; margin-top: -29px; }
#splash.sh .sh-sp-sq svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(190, 30, 30, .3)); }
#splash.sh .sh-sp-sq .sq9 .q { animation: sq-pulse 2.6s ease-in-out infinite !important; }
#splash.sh .splash-msg { position: relative; z-index: 2; margin-top: 140px; }
@media (prefers-reduced-motion: reduce) { #splash.sh .sh-pr { animation: none; opacity: .35; } }

/* Silent Hill: С€Р°РїРєР° В«Р“Р»Р°РІРЅР°СЏВ» Р±РµР· СЃРёРЅРµРіРѕ, РІ С†РІРµС‚ С‚СѓРјР°РЅР° */
html[data-sh-theme="1"] .side-head .sh-bg.b0 { background: radial-gradient(160px 90px at 82% 25%, rgba(150,165,155,.22), transparent 70%), linear-gradient(120deg, #0d1110, #2a3330 55%, #3a4440); }
html[data-sh-theme="1"] .side-head .sh-shade { background: linear-gradient(180deg, rgba(6,8,7,.15), rgba(6,8,7,.8)); }

/* ---------- СЂРµР¶РёРј В«РџСЂРѕРёР·РІРѕРґРёС‚РµР»СЊРЅРѕСЃС‚СЊВ»: Р±РµР· СЂР°Р·РјС‹С‚РёСЏ, Р»РёС€РЅРёС… Р°РЅРёРјР°С†РёР№ Рё С‚СЏР¶С‘Р»С‹С… СЃР»РѕС‘РІ ---------- */
html[data-perf="1"] *, html[data-perf="1"] *::before, html[data-perf="1"] *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-perf="1"] .glass { background: var(--glass-strong); }
html[data-perf="1"] .backdrop { background: rgba(5, 3, 20, .84); }
html[data-perf="1"] #bg { background: linear-gradient(160deg, var(--bg1), var(--bg0)) !important; }
html[data-perf="1"] .nick.shimmer, html[data-perf="1"] .fox .fx-eye, html[data-perf="1"] .fox .fx-tail, html[data-perf="1"] .fox-scene > svg, html[data-perf="1"] .fox-scene .fx-eye,
html[data-perf="1"] .sn-bat, html[data-perf="1"] .sn-bat svg, html[data-perf="1"] .sn-candle .fl, html[data-perf="1"] .sq9 .q { animation: none !important; }
html[data-perf="1"] .fox-scene > svg { filter: none; }
html[data-perf="1"] .sn-deco, html[data-perf="1"] #sn-bats { display: none !important; }

/* Р±С‹СЃС‚СЂС‹Р№ РїРµСЂРµС…РѕРґ (Ctrl+K) */
.modal.qs-modal { width: min(540px, 94vw); align-self: start; margin-top: 12vh; }
.qs { padding: 14px; }
.qs input { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(var(--in), .5); font-size: 15px; outline: none; }
.qs input:focus { border-color: var(--blue); }
.qs-list { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.qs-it { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; text-align: left; color: var(--text); }
.qs-it.on { background: rgba(var(--wh), .12); }
.qs-it .ic { color: var(--muted); }
.qs-it span { display: flex; flex-direction: column; min-width: 0; }
.qs-it b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-it small { color: var(--dim); font-size: 12px; }
.qs-foot { margin-top: 10px; color: var(--dim); font-size: 11.5px; padding: 0 4px; }
/* РѕРєРЅРѕ СЃРєСЂС‹С‚Рѕ РёР»Рё СЃРІС‘СЂРЅСѓС‚Рѕ: Р°РЅРёРјР°С†РёРё РЅР° РїР°СѓР·Рµ */
html.bg-hidden *, html.bg-hidden *::before, html.bg-hidden *::after { animation-play-state: paused !important; }

/* РІРµР±-РєР°РјРµСЂР° РІ РЅР°СЃС‚СЂРѕР№РєР°С… */
.cam-prev { margin-top: 10px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-width: 420px; }
.cam-prev video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }

/* ---------- СЃРѕРІРјРµСЃС‚РЅС‹Р№ РїСЂРѕСЃРјРѕС‚СЂ ---------- */
.wt-wrap { margin: 8px 18px 0; border-radius: 16px; background: var(--panel, rgba(20,20,30,.6)); border: 1px solid var(--line, rgba(255,255,255,.1)); overflow: hidden; display: flex; flex-direction: column; flex: 0 1 auto; max-height: 56%; }
#wt-wrap { flex: 1 1 0; max-height: none; min-height: 190px; }
.wt-wrap.away { display: none !important; }
.wt-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.wt-head .wt-ic svg { width: 18px; height: 18px; }
.wt-head input[type=range] { width: 90px; }
.wt-box { position: relative; aspect-ratio: 16 / 9; max-height: 100%; min-height: 160px; background: #000; display: flex; }
#wt-wrap .wt-box { aspect-ratio: auto; flex: 1; min-height: 0; }
.wt-box video, .wt-box iframe { width: 100%; height: 100%; border: 0; background: #000; }
#c-wt.on { box-shadow: 0 0 0 2px var(--accent, #7c5cff) inset; }

/* ---------- Р·Р°РјРµС‚РєРё СЃРµСЂРІРµСЂР° ---------- */
.nt-modal { min-width: min(560px, 92vw); }
.nt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--panel, rgba(255,255,255,.05)); border: 1px solid var(--line, rgba(255,255,255,.08)); color: inherit; cursor: pointer; }
.nt-row small { width: 100%; opacity: .6; }
.nt-view { margin: 12px 0; display: flex; flex-direction: column; gap: 4px; word-break: break-word; }
.nt-item { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.nt-item.done span { text-decoration: line-through; opacity: .55; }
.nt-gap { height: 8px; }

/* ---------- РјРёРЅРё-РёРіСЂС‹ ---------- */
.gm-wrap { margin: 8px 18px 0; border-radius: 16px; background: var(--panel, rgba(20,20,30,.6)); border: 1px solid var(--line, rgba(255,255,255,.1)); overflow: hidden; flex: 0 0 auto; }
.gm-box { padding: 6px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gm-sub, .gm-status { opacity: .8; text-align: center; }
.gm-status { font-weight: 600; opacity: 1; }
.gm-pick { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.gm-pick small { display: block; opacity: .6; font-weight: 400; }
#c-gm.on { box-shadow: 0 0 0 2px var(--accent, #7c5cff) inset; }

/* ---------- РґРѕСЃРєР° ---------- */
.wb-wrap { max-height: 62%; }
.wb-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: 12px; flex: 1 1 0; min-width: 0; }
.wb-col { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); padding: 0; cursor: pointer; }
.wb-col.on { border-color: var(--accent, #7c5cff); box-shadow: 0 0 0 2px var(--accent, #7c5cff); }
.wb-area { background: #1b1d2a; display: flex; justify-content: center; min-height: 0; }
.wb-area canvas { height: min(46vh, 520px); aspect-ratio: 1 / 1; max-width: 100%; touch-action: none; cursor: crosshair; background: #1b1d2a; }
#c-wb.on { box-shadow: 0 0 0 2px var(--accent, #7c5cff) inset; }

.pt-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.pt-row span { opacity: .7; text-align: right; }

/* РєСЂСѓР¶РєРё */
.circle-msg { position: relative; width: min(220px, 66vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-top: 6px; cursor: pointer; background: #000; box-shadow: 0 0 0 2px var(--line); --p: 0deg; }
.circle-msg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.circle-msg::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(rgba(255,255,255,.95) var(--p), rgba(255,255,255,.22) 0); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); opacity: 0; transition: opacity .12s; }
.circle-msg.playing::after { opacity: 1; }
.circle-ic { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.circle-ic .ic { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: rgba(0,0,0,.45); box-sizing: content-box; }
.circle-msg.playing .circle-ic { display: none; }
.circle-t { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.circ-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4,5,12,.78); }
.circ-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.circ-ring { --p: 0deg; width: min(280px, 72vw); aspect-ratio: 1; border-radius: 50%; padding: 3px; background: conic-gradient(#ff4d5e var(--p), rgba(255,255,255,.18) 0); }
.circ-ring video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scaleX(-1); background: #000; display: block; }
.circ-time { font-size: 18px; font-variant-numeric: tabular-nums; color: #fff; }
.circ-ov.rec .circ-time { color: #ff7a86; }
.circ-btns { display: flex; gap: 10px; }
html[data-sh-theme="1"] .circ-ring { background: conic-gradient(#8f2a2a var(--p), rgba(160,170,165,.2) 0); }

/* РёРіСЂС‹: С€РїРёРѕРЅ, РјР°С„РёСЏ, С‚РµР»РµС„РѕРЅ */
.gm-box input { width: min(420px, 100%); }
.gm-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 560px; }
.gm-chip { padding: 5px 12px; border-radius: 999px; font-size: 13px; background: rgba(var(--wh),.08); border: 1px solid var(--line); }
.gm-chip.btn { cursor: pointer; }
.gm-chip.dead { opacity: .4; text-decoration: line-through; }
.gm-chip.bad { border-color: #8f2a2a; color: #ff9a9a; }
.gm-role { font-size: 22px; font-weight: 700; text-align: center; padding: 10px 18px; border-radius: 14px; background: rgba(var(--wh),.07); border: 1px solid var(--line); max-width: 100%; word-break: break-word; }
.gm-role small { display: block; font-size: 12px; font-weight: 400; opacity: .7; margin-top: 2px; }
.gm-role.spy { border-color: #b33a4a; color: #ff9aa6; }
.gm-timer { font-size: 20px; font-variant-numeric: tabular-nums; opacity: .85; }
.gm-locs { max-width: 560px; }
.gm-locs summary { cursor: pointer; text-align: center; opacity: .8; margin-bottom: 6px; }
.gm-log { width: min(460px, 100%); font-size: 13px; opacity: .8; display: flex; flex-direction: column; gap: 2px; max-height: 120px; overflow: auto; }
.gm-canvas { width: min(400px, 100%); aspect-ratio: 4 / 3; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.gm-img { width: min(400px, 100%); border-radius: 10px; background: #fff; }
.gm-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.gm-col { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); }
.gm-col.on { border-color: var(--text); }
.gm-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gm-step small { opacity: .6; }
html[data-sh-theme="1"] .gm-chip, html[data-sh-theme="1"] .gm-role { border-radius: 3px; }

/* В«РњР°РіРЅР°С‚В» */
.mn-ov { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: radial-gradient(1200px 700px at 30% 0%, #1d1840, #0b0a1c 70%); color: var(--text); }
.mn-wait { margin: auto; opacity: .7; }
.mn-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; flex-wrap: wrap; }
.mn-turn { font-variant-numeric: tabular-nums; opacity: .85; }
.mn-top small { opacity: .6; }
.mn-body { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 10px 12px; overflow: auto; }
.mn-boardwrap { flex: 1 1 auto; display: flex; align-items: flex-start; justify-content: center; min-width: 0; }
.mn-board { --ch: calc((100vh - 116px) / 9); --cw: min(calc((100vw - 356px) / 14), calc(var(--ch) * 1.4)); --u: min(var(--cw), calc(var(--ch) / 1.02)); display: grid; grid-template-columns: repeat(14, var(--cw)); grid-template-rows: repeat(9, var(--ch)); gap: 2px; font-size: calc(var(--u) * .16); }
.mn-c { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3px 2px 2px; border-radius: 6px; background: rgba(var(--wh), .07); border: 1px solid var(--line); overflow: hidden; cursor: pointer; text-align: center; line-height: 1.05; }
.mn-c.owned { background: color-mix(in srgb, var(--oc) 38%, rgba(20,18,40,.9)); border-color: var(--oc); }
.mn-c.mort { opacity: .55; filter: grayscale(.7); }
.mn-c.sel { outline: 2px solid #fff; z-index: 2; }
.mn-strip { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--sc); }
.mn-e { font-size: calc(var(--u) * .42); line-height: 1; margin-top: 5px; }
.mn-e:has(img) { position: relative; display: block; width: calc(var(--u) * .62); height: calc(var(--u) * .62); }
.mn-e img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }
.mn-e:has(img)::after { content: ""; position: absolute; inset: 0; border-radius: 5px; pointer-events: none; box-shadow: inset 0 0 6px 2px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.35); }
.mn-n { font-size: max(9px, min(.95em, calc((var(--cw) - 10px) / (var(--nl, 8) * .7)))); font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mn-p { opacity: .85; font-size: .95em; }
.mn-lv { position: absolute; top: 6px; right: 2px; color: #ffd24d; font-size: .9em; }
.mn-toks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; min-height: calc(var(--u) * .24); }
.mn-tok { width: calc(var(--u) * .27); height: calc(var(--u) * .27); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .85em; color: #fff; border: 1px solid rgba(0,0,0,.4); }
.mn-tok.cur { box-shadow: 0 0 0 2px #fff; }
.mn-c.t-start, .mn-c.t-customs, .mn-c.t-vacation, .mn-c.t-jackpot { background: rgba(61,220,132,.13); }
.mn-c.t-tax { background: rgba(255,77,94,.12); }
.mn-c.t-lottery { background: rgba(255,210,77,.14); }
.mn-centre { grid-area: 2 / 2 / 9 / 14; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px; overflow: auto; font-size: 14px; }
.mn-card, .mn-sel, .mn-offer, .mn-trade { width: min(520px, 100%); padding: 12px 14px; border-radius: 14px; background: rgba(var(--wh), .07); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.mn-card.bad { border-color: #b33a4a; }
.mn-card b { font-size: 16px; }
.mn-big { font-size: 26px; font-weight: 700; }
.mn-timer { opacity: .7; font-variant-numeric: tabular-nums; }
.mn-dice { display: flex; gap: 8px; align-items: center; }
.mn-dice b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #fff; color: #111; font-size: 22px; }
.mn-dice span { color: #ffd24d; font-weight: 600; }
.btn.big { padding: 12px 22px; font-size: 16px; }
.mn-sel { align-items: stretch; text-align: left; font-size: 13px; }
.mn-sel-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mn-sel-b { opacity: .9; line-height: 1.5; }
.mn-trade { align-items: stretch; text-align: left; }
.mn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mn-list { max-height: 150px; overflow: auto; display: flex; flex-direction: column; gap: 2px; margin: 4px 0; }
.mn-chk { display: flex; gap: 6px; align-items: center; cursor: pointer; font-size: 13px; }
.mn-row { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.mn-row input[type=number] { width: 110px; }
.mn-side { flex: 0 0 280px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.mn-players { display: flex; flex-direction: column; gap: 6px; }
.mn-pl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(var(--wh), .06); border: 1px solid var(--line); }
.mn-pl i.mn-pa { width: auto; height: auto; border-radius: 32%; background: none; box-shadow: 0 0 0 2px var(--pc); flex: none; display: inline-flex; }
.mn-pl div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mn-pl small { opacity: .6; }
.mn-pl span { font-variant-numeric: tabular-nums; font-weight: 600; }
.mn-pl.cur { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc); }
.mn-pl.dead { opacity: .4; }
.mn-log { flex: 1; min-height: 120px; overflow: auto; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; opacity: .85; padding: 8px 10px; border-radius: 12px; background: rgba(var(--wh), .04); border: 1px solid var(--line); }
@media (max-width: 900px) { .mn-body { flex-direction: column; } .mn-board { --u: calc((100vw - 24px) / 14.4); --cw: var(--u); --ch: calc(var(--u) * 1.1); } .mn-side { flex-basis: auto; } }
html[data-sh-theme="1"] .mn-ov { background: #0b0e0d; }
html[data-sh-theme="1"] .mn-c, html[data-sh-theme="1"] .mn-card, html[data-sh-theme="1"] .mn-pl { border-radius: 3px; }

/* СЂРµРґР°РєС‚РѕСЂ РїРѕР»СЏ Рё С‚Р°Р±Р»РёС†Р° Р»РёРґРµСЂРѕРІ */
.ld-wrap { display: flex; flex-direction: column; gap: 6px; }
.ld-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(var(--wh), .06); border: 1px solid var(--line); }
.ld-row b { flex: 1; }
.ld-n { width: 26px; text-align: center; font-size: 18px; }
.ld-w { font-weight: 600; }
.ld-row small { opacity: .6; min-width: 90px; text-align: right; }


/* Р°РЅРёРјР°С†РёСЏ РєСѓР±РёРєРѕРІ */
.mn-dice.rolling b { animation: mn-shake .18s infinite linear; }
.mn-dice.landed b { animation: mn-land .35s ease-out; }
@keyframes mn-shake { 0% { transform: rotate(-14deg) translateY(-3px); } 50% { transform: rotate(12deg) translateY(2px); } 100% { transform: rotate(-14deg) translateY(-3px); } }
@keyframes mn-land { 0% { transform: scale(1.4) rotate(18deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mn-dice.rolling b, .mn-dice.landed b { animation: none; } }
.mn-mid { grid-area: 2 / 2 / 9 / 14; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: calc(var(--u) * .5); opacity: .95; }
.mn-mid b { font-size: 1.1em; }
.mn-mid .mn-dice b { width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); font-size: calc(var(--u) * .8); }

/* С‚РµР»РµС„РѕРЅ: РїРѕР»Рµ С†РµР»РёРєРѕРј РЅР° СЌРєСЂР°РЅРµ (С‚РѕР»СЊРєРѕ Р·РЅР°С‡РєРё), РІСЃС‘ РѕСЃС‚Р°Р»СЊРЅРѕРµ РїРѕРґ РЅРёРј */
@media (max-width: 760px) {
  .mn-top { padding: 6px 10px; gap: 8px; font-size: 13px; }
  .mn-body { flex-direction: column; padding: 6px; gap: 8px; }
  .mn-boardwrap { flex: none; }
  .mn-board { --u: min(calc((100vw - 16px) / 14.3), calc((100vh - 70px) / 11)); --cw: var(--u); --ch: calc(var(--u) * 1.1); gap: 1px; }
  .mn-c { padding: 1px; border-radius: 4px; justify-content: center; }
  .mn-n, .mn-p { display: none; }
  .mn-e { margin-top: 0; font-size: calc(var(--u) * .56); }
  .mn-e:has(img) { width: calc(var(--u) * .8); height: calc(var(--u) * .8); }
  .mn-strip { height: 3px; }
  .mn-lv { top: 3px; right: 1px; font-size: 7px; }
  .mn-toks { position: absolute; left: 0; right: 0; bottom: 0; min-height: 0; }
  .mn-tok { width: calc(var(--u) * .36); height: calc(var(--u) * .36); font-size: 7px; }
  .mn-centre.m { grid-area: auto; flex: none; overflow: visible; padding: 0; }
  .mn-side { flex: none; }
  .mn-log { max-height: 130px; }
  .mn-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .mn-centre.m .mn-dice { display: none; } }
.ask-modal { width: min(380px, 92vw); padding: 20px 22px; }
.ask-modal h3 { margin: 0 0 6px; font-size: 18px; }
.ask-modal p { margin: 0 0 16px; opacity: .8; line-height: 1.4; }
.ask-modal .btn-row { display: flex; gap: 8px; justify-content: flex-end; }

.gm-as { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; font-size: 13px; padding: 6px 10px; border-radius: 12px; background: rgba(255,210,77,.1); border: 1px dashed rgba(255,210,77,.45); }
.gm-as.mn { padding: 2px 8px; }
.gm-as > span { opacity: .8; }
.gm-test { align-items: center; }
.gm-test small { opacity: .6; width: 100%; text-align: center; }

/* СЂРµРґР°РєС‚РѕСЂ РїРѕР»СЏ В«РњР°РіРЅР°С‚Р°В» */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.modal.ed-modal { width: min(1040px, 96vw); max-height: 92vh; padding: 0; display: flex; flex-direction: column; }
.ed-modal .modal-x { top: 14px; right: 14px; }
.edx { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 20px 22px 0; gap: 12px; }
.edx-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 40px; }
.edx-head h2 { margin: 0; font-size: 20px; flex: 1; min-width: 200px; }
.edx-selrow { display: flex; gap: 8px; align-items: center; }
.edx-selrow select { width: 240px; max-width: 50vw; }
.edx-nm { max-width: 420px; }
.edx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.edx-tabs button { padding: 9px 16px; border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; opacity: .65; font-weight: 600; margin-bottom: -1px; }
.edx-tabs button.on { opacity: 1; border-bottom-color: #8e9bff; }
.edx-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 4px 14px 0; }
.edx-foot { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 12px 0 16px; border-top: 1px solid var(--line); background: inherit; position: sticky; bottom: 0; }
.edx-foot .form-error { flex: 1; margin: 0; }
.edx-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; min-width: 0; }
.edx-f > span { opacity: .7; }
.edx-f small, .edx-sec small, .edx-body .hint { opacity: .55; font-size: 12px; line-height: 1.35; }
.edx-fmt { min-height: 14px; }
.edx-num { position: relative; }
.edx-num input { padding-right: 46px; }
.edx-num em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; opacity: .5; font-size: 13px; pointer-events: none; }
.edx-cells { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.edx-map { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; position: sticky; top: 0; }
.edx-t { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: rgba(var(--wh), .07); cursor: pointer; display: grid; place-items: center; overflow: hidden; font-size: clamp(11px, 1.9vw, 20px); }
.edx-t:hover { border-color: rgba(var(--wh), .5); }
.edx-t.sel { outline: 2px solid #fff; outline-offset: 1px; z-index: 2; }
.edx-t b { font-weight: 400; line-height: 1; }
.edx-t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edx-t:has(img)::after, .edx-ptile.img::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 6px 2px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.35); }
.edx-strip { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sc); z-index: 1; }
.edx-t.t-start, .edx-t.t-customs, .edx-t.t-vacation, .edx-t.t-jackpot { background: rgba(61,220,132,.16); }
.edx-t.t-tax { background: rgba(255,77,94,.15); }
.edx-t.t-lottery { background: rgba(255,210,77,.17); }
.edx-mid { grid-area: 2 / 2 / 9 / 14; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; opacity: .7; padding: 8px; }
.edx-mid b { font-size: clamp(14px, 2.2vw, 20px); }
.edx-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.edx-prev { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--wh), .06); border: 1px solid var(--line); }
.edx-ptile { position: relative; width: 52px; height: 52px; border-radius: 10px; background: rgba(var(--wh), .1); border: 1px solid var(--line); display: grid; place-items: center; font-size: 28px; overflow: hidden; flex: none; }
.edx-ptile b { font-weight: 400; line-height: 1; }
.edx-ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edx-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.edx-pt b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edx-pt small { opacity: .6; }
.edx-nav { display: flex; gap: 6px; }
.edx-sec { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(var(--wh), .04); border: 1px solid var(--line); align-items: flex-start; }
.edx-sec > * { max-width: 100%; }
.edx-sec > .edx-f, .edx-sec > .edx-rents, .edx-sec > .edx-rg { align-self: stretch; }
.edx-sec h4 { margin: 0; font-size: 14px; opacity: .9; }
.edx-emo { display: flex; flex-wrap: wrap; gap: 4px; }
.edx-emo button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(var(--wh), .05); font-size: 18px; cursor: pointer; padding: 0; }
.edx-emo button:hover { background: rgba(var(--wh), .14); }
.edx-img { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.edx-img img, .edx-img i { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; opacity: .8; font-style: normal; }
.edx-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.edx-sw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.edx-sw button.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.edx-rents, .edx-rg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; }
.edx-rules { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 760px; }
.edx-rules .edx-sec { align-self: stretch; }
.edx-lot { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.edx-ev { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--wh), .04); border: 1px solid var(--line); }
.edx-ev-top { display: flex; gap: 8px; }
.edx-ev-top select { flex: 1; }
.edx-ev-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.edx .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .edx-cells { grid-template-columns: 1fr; }
  .edx-map { position: static; }
  .edx { padding: 16px 12px 0; }
  .edx-head h2 { font-size: 18px; }
  .edx-selrow select { width: 100%; max-width: none; }
  .edx-selrow { width: 100%; }
}
.edx-rents, .edx-rg, .edx-ev-nums { align-items: end; }

/* Р°РЅРёРјР°С†РёРё В«РњР°РіРЅР°С‚Р°В»: СЃР»РѕР№ СЃ С„РёС€РєР°РјРё Рё РєСѓР±РёРєР°РјРё */
#mn-main { display: contents; }
#mn-fx { position: fixed; inset: 0; pointer-events: none; z-index: 6; perspective: 1100px; overflow: hidden; }
.mn-tok2 { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; border: 1.5px solid rgba(0,0,0,.45); box-shadow: 0 2px 4px rgba(0,0,0,.55), inset 0 -3px 4px rgba(0,0,0,.25), inset 0 2px 3px rgba(255,255,255,.35); will-change: transform; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.mn-tok2.cur { box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.6); }
.mn-tok2.moving { z-index: 3; }
.mn-dw { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }
.mn-d3 { position: absolute; inset: 0; transform-style: preserve-3d; }
.mn-df { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14%; border-radius: 18%; background: linear-gradient(145deg, #fff, #d9d9e3); border: 1px solid rgba(0,0,0,.25); backface-visibility: hidden; box-sizing: border-box; }
.mn-df i { place-self: center; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #555, #111); }
.mn-df i.r { background: radial-gradient(circle at 35% 30%, #ff6b6b, #c0182d); width: 100%; }
.mn-dsh { position: absolute; left: 0; top: 0; margin: -4px 0 0 0; border-radius: 50%; background: rgba(0,0,0,.7); filter: blur(5px); opacity: 0; }

.ld-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ld-tabs button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--wh), .05); cursor: pointer; font-size: 13px; }
.ld-tabs button.on { background: rgba(142,155,255,.22); border-color: rgba(142,155,255,.6); }

/* РїРѕРєР° РёРґС‘С‚ СЃРѕРІРјРµСЃС‚РЅС‹Р№ РїСЂРѕСЃРјРѕС‚СЂ: СѓС‡Р°СЃС‚РЅРёРєРё вЂ” РєРѕРјРїР°РєС‚РЅРѕР№ РїРѕР»РѕСЃРѕР№ РїРѕРґ РІРёРґРµРѕ, РЅРёС‡РµРіРѕ РЅРµ РЅР°Р»РµР·Р°РµС‚ РґСЂСѓРі РЅР° РґСЂСѓРіР° */
.stage.wt-on .grid { display: block; flex: 0 0 auto; max-height: 30%; min-height: 0; overflow-y: auto; padding: 8px 18px 96px; }
.stage.wt-on .tiles { flex: none; height: auto; grid-auto-rows: max-content; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-content: start; justify-content: stretch; max-width: none; gap: 8px; }
.stage.wt-on .tiles .tile { aspect-ratio: 16 / 10; min-height: 0; }
.stage.wt-on .tile .av { transform: scale(.7); }
.stage.wt-on .stage-layout { display: flex; flex-direction: row; gap: 8px; }
.stage.wt-on .big-wrap { display: none; }
.stage.wt-on .strip { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
.stage.wt-on .strip .tile { width: 150px; }
@media (max-width: 800px) { .stage.wt-on .grid { max-height: 26%; } .wt-wrap { margin: 6px 10px 0; } }
.mn-p.rent { color: #ffd24d; opacity: 1; font-weight: 700; }

/* В«РњР°РіРЅР°С‚В»: СѓРєСЂР°С€РµРЅРёРµ СЃРµСЂРµРґРёРЅС‹, РїРѕРґСЃРІРµС‚РєР° СЃРѕР±СЂР°РЅРЅС‹С… РіСЂСѓРїРї, Р·Р°РґРµСЂР¶Р°РЅРЅС‹Рµ РЅР° В«РћС‚РїСѓСЃРєРµВ», РїР»Р°РІР°СЋС‰РёРµ СЃСѓРјРјС‹ */
.mn-deco { grid-area: 2 / 2 / 9 / 14; position: relative; pointer-events: none; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse at 50% 45%, rgba(124, 92, 255, .14), transparent 62%), repeating-linear-gradient(135deg, rgba(var(--wh), .025) 0 2px, transparent 2px 14px); }
.mn-centre { position: relative; z-index: 1; }
.mn-wm { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: .1; user-select: none; }
.mn-wm i { font-style: normal; font-size: calc(var(--u) * 2.4); line-height: 1; }
.mn-wm b { font-size: calc(var(--u) * 1.5); letter-spacing: .3em; margin-left: .3em; }
.mn-wm small { font-size: calc(var(--u) * .5); letter-spacing: .2em; text-transform: uppercase; }
.mn-deck { position: absolute; left: 4%; top: 9%; width: calc(var(--u) * 2); height: calc(var(--u) * 1.3); transform: rotate(-9deg); }
.mn-deck span { position: absolute; inset: 0; border-radius: 8px; border: 1.5px solid rgba(255, 210, 77, .55); background: linear-gradient(160deg, rgba(255, 210, 77, .22), rgba(255, 154, 60, .12)); box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.mn-deck span:nth-child(1) { transform: translate(-5px, 5px) rotate(-3deg); opacity: .6; }
.mn-deck span:nth-child(2) { transform: translate(-2px, 2px) rotate(-1deg); opacity: .8; }
.mn-deck span:nth-child(3) { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: calc(var(--u) * .3); font-weight: 700; color: #ffd24d; gap: 2px; }
.mn-deck span i { font-style: normal; font-size: calc(var(--u) * .7); }
.mn-pot { position: absolute; right: 4%; bottom: 9%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: calc(var(--u) * .18) calc(var(--u) * .45); border-radius: 14px; border: 1.5px solid rgba(61, 220, 132, .45); background: rgba(61, 220, 132, .1); }
.mn-pot i { font-style: normal; font-size: calc(var(--u) * .6); line-height: 1; }
.mn-pot small { opacity: .75; font-size: calc(var(--u) * .2); text-transform: uppercase; letter-spacing: .12em; }
.mn-pot b { font-size: calc(var(--u) * .3); color: #7dffb0; font-variant-numeric: tabular-nums; }
.mn-c.monop { box-shadow: inset 0 0 0 2px var(--oc), 0 0 10px -1px var(--oc); }
.mn-c.jailed { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .42) 0 3px, transparent 3px 11px), rgba(61, 220, 132, .13); }
.mn-jl { position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 1px 3px; border-radius: 5px; background: rgba(0, 0, 0, .72); color: #ffd24d; font-size: .8em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.mn-fl { position: fixed; z-index: 50; transform: translate(-100%, -50%); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); pointer-events: none; animation: mn-float 1.8s ease-out forwards; }
.mn-fl.up { color: #7dffb0; } .mn-fl.down { color: #ff7a88; }
@keyframes mn-float { 0% { opacity: 0; margin-top: 10px; } 12% { opacity: 1; } 100% { opacity: 0; margin-top: -42px; } }
@media (prefers-reduced-motion: reduce) { .mn-fl { animation: none; opacity: 0; } }
@media (max-width: 760px) { .mn-deco { display: none; } .mn-jl { display: none; } }

.mn-feed { position: absolute; right: 2%; top: 3%; width: calc(var(--u) * 3.2); display: flex; flex-direction: column; gap: 3px; padding: calc(var(--u) * .12) calc(var(--u) * .2); border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); font-size: calc(var(--u) * .17); line-height: 1.25; }
.mn-feed small { opacity: .55; text-transform: uppercase; letter-spacing: .1em; font-size: .85em; }
.mn-who { position: absolute; left: 4%; bottom: 9%; display: flex; align-items: center; gap: calc(var(--u) * .18); padding: calc(var(--u) * .14) calc(var(--u) * .35); border-radius: 999px; border: 1.5px solid var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent); }
.mn-who i { width: calc(var(--u) * .4); height: calc(var(--u) * .4); border-radius: 50%; background: var(--pc); box-shadow: 0 0 12px var(--pc); }
.mn-who span { display: flex; flex-direction: column; font-size: calc(var(--u) * .2); opacity: .9; line-height: 1.1; }
.mn-who b { font-size: 1.5em; }
@media (max-width: 1100px) { .mn-feed { display: none; } }
.mn-tok2 { overflow: hidden; border-width: 2.5px; font-size: 11px; }
.mn-tok2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-tok2.av { border-radius: 50%; }
/* РІСЃС‚СЂРѕРµРЅРЅС‹Рµ РєР°СЂС‚РёРЅРєРё РєР»РµС‚РѕРє: РїСЂРѕР·СЂР°С‡РЅС‹Рµ, Р±РµР· СЂР°РјРєРё Рё РѕР±СЂРµР·РєРё */
.mn-e:has(img.ic) { width: calc(var(--u) * .58); height: calc(var(--u) * .58); margin-top: 3px; }
.mn-e img.ic { object-fit: contain; border-radius: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.mn-e:has(img.ic)::after { content: none; }
.edx-ptile img.ic, .edx-t img.ic { object-fit: contain; padding: 3px; }
.edx-t:has(img.ic)::after, .edx-ptile:has(img.ic)::after { content: none; }
.mn-ei { height: 1.25em; width: 1.25em; vertical-align: -.25em; object-fit: cover; border-radius: 4px; }
.mn-ei.ic { object-fit: contain; border-radius: 0; }
@media (max-width: 760px) { .mn-e:has(img.ic) { width: calc(var(--u) * .84); height: calc(var(--u) * .84); } }
.mn-deck span i img, .mn-pot i img { width: calc(var(--u) * .75); height: calc(var(--u) * .75); object-fit: contain; display: block; }

/* ---------- РєР°С‚Р°Р»РѕРі РёРіСЂ Рё Р»РѕР±Р±Рё ---------- */
.gm-art { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, var(--g1), var(--g2)); isolation: isolate; flex: none; }
.gm-art .orb { position: absolute; width: 70%; aspect-ratio: 1; right: -12%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); z-index: -1; }
.gm-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); z-index: -1; }
.gm-art i { position: absolute; font-style: normal; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.gm-art img { position: absolute; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.gm-art.lg { height: 150px; border-radius: 18px 18px 0 0; }
.gm-art.lg .a1 { font-size: 84px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); }
.gm-art.lg .a2 { font-size: 42px; right: 18%; bottom: 14%; transform: rotate(10deg); opacity: .9; }
.gm-art.lg img.a1 { width: 110px; height: 110px; font-size: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gm-art.lg img.a2 { width: 74px; height: 74px; left: 20%; right: auto; bottom: 8%; transform: rotate(-12deg); }
.gm-art.lg img.a3 { width: 74px; height: 74px; right: 16%; top: 12%; transform: rotate(8deg); }
.gm-art.sm { width: 84px; height: 84px; }
.gm-art.sm .a1 { font-size: 46px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); }
.gm-art.sm .a2 { font-size: 22px; right: 6px; bottom: 6px; }
.gm-art.sm img.a1 { width: 54px; height: 54px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gm-art.sm img.a2 { width: 34px; height: 34px; left: 4px; bottom: 4px; }
.gm-art.sm img.a3 { width: 30px; height: 30px; right: 4px; top: 4px; }
.gm-art.xs { width: 52px; height: 52px; border-radius: 13px; }
.gm-art.xs .a1 { font-size: 28px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gm-art.xs .a2, .gm-art.xs img.a2, .gm-art.xs img.a3 { display: none; }
.gm-art.xs img.a1 { width: 34px; height: 34px; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.modal.gm-cat { width: min(880px, 96vw); padding: 0; overflow: hidden; }
.gmc { display: flex; flex-direction: column; max-height: min(86vh, 720px); }
.gmc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px 56px 14px 26px; }
.gmc-head h2 { margin: 0 0 4px; font-size: 24px; }
.gmc-head p { margin: 0; opacity: .65; font-size: 14px; max-width: 520px; }
.gmc-online { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(var(--wh), .08); border: 1px solid var(--line); font-size: 13px; }
.gmc-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; padding: 4px 22px 14px; min-height: 0; flex: 1; overflow: hidden; }
.gmc-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px; }
.gmc-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--wh), .05); color: inherit; font: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.gmc-item:hover { background: rgba(var(--wh), .1); transform: translateX(2px); }
.gmc-item.on { border-color: var(--accent, #7c5cff); background: rgba(124, 92, 255, .16); box-shadow: 0 0 0 1px var(--accent, #7c5cff) inset; }
.gmc-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gmc-item b { font-size: 15px; }
.gmc-item small { opacity: .65; font-size: 12px; line-height: 1.25; }
.gmc-item em { font-style: normal; opacity: .5; font-size: 11px; }
.gmc-detail { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-radius: 18px; border: 1px solid var(--line); background: rgba(var(--wh), .04); }
.gmc-dt { padding: 16px 20px 6px; }
.gmc-dt h3 { margin: 0; font-size: 22px; }
.gmc-tag { opacity: .7; margin: 2px 0 10px; }
.gmc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gmc-chips span { padding: 3px 10px; border-radius: 999px; font-size: 12px; background: rgba(var(--wh), .09); border: 1px solid var(--line); }
.gmc-dt p { margin: 0 0 12px; line-height: 1.45; opacity: .9; }
.gmc-dt h4 { margin: 4px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.gmc-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; line-height: 1.4; }
.gmc-go { position: sticky; bottom: 0; margin-top: auto; display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding: 12px 20px; background: linear-gradient(0deg, var(--panel, #14141e) 70%, transparent); }
.gmc-need { font-size: 13px; opacity: .75; flex: 1 1 220px; }
.gmc-need.warn { color: #ffcf6b; opacity: 1; }
.gmc-foot { padding: 0 22px 18px; display: flex; justify-content: flex-start; }
@media (max-width: 720px) {
  .gmc-body { grid-template-columns: 1fr; overflow-y: auto; }
  .gmc-list { flex-direction: row; overflow-x: auto; overflow-y: visible; flex: none; padding-bottom: 6px; }
  .gmc-item { flex: 0 0 210px; }
  .gmc-detail { overflow: visible; }
  .gmc-head { padding-right: 52px; flex-wrap: wrap; }
  .gm-art.lg { height: 120px; }
}

.lb { width: min(640px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.lb-banner { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: rgba(var(--wh), .05); }
.lb-bt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-bt b { font-size: 19px; }
.lb-bt > span { opacity: .7; font-size: 13px; }
.lb-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.lb-meta em { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(var(--wh), .09); border: 1px solid var(--line); }
.lb-count { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lb-count span { opacity: .85; }
.lb-bar { height: 6px; border-radius: 99px; background: rgba(var(--wh), .1); overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent, #7c5cff), #3ddc84); border-radius: 99px; transition: width .3s; }
.gm-chips.lb-players { max-width: none; justify-content: flex-start; gap: 8px; }
.lb-p { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 14px; font-size: 14px; background: rgba(var(--wh), .09); }
.lb-p.host { border-color: rgba(255, 210, 77, .5); }
.lb-p em { font-style: normal; font-size: 13px; }
.lb-p small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; padding: 1px 6px; border-radius: 6px; background: rgba(var(--wh), .12); }
.lb-slot { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 14px; font-size: 13px; border: 1px dashed var(--line); opacity: .55; }
.lb-slot i { width: 34px; height: 34px; border-radius: 32%; display: grid; place-items: center; font-style: normal; font-size: 18px; border: 1px dashed var(--line); }
.lb-slot.need { opacity: .8; border-color: rgba(255, 207, 107, .5); }
.lb-board { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--wh), .04); }
.lb-bhead { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; font-size: 13px; }
.lb-bhead span { opacity: .65; }
.lb-bhead b { font-size: 15px; }
.lb-board small { opacity: .6; }
.gm-chips.lb-boards { max-width: none; justify-content: flex-start; }
.lb-boards .gm-chip.on { border-color: var(--accent, #7c5cff); background: rgba(124, 92, 255, .22); }
.lb-boards .gm-chip.ed { margin-left: auto; }
.lb-act { margin-top: 2px; }
.lb-act .btn.big { min-width: 190px; }
.lb-test { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line); font-size: 13px; }
.lb-test > span { opacity: .75; }
.lb-test small { flex-basis: 100%; text-align: center; opacity: .5; font-size: 11px; }
html[data-sh-theme="1"] .gm-art, html[data-sh-theme="1"] .gmc-item, html[data-sh-theme="1"] .gmc-detail, html[data-sh-theme="1"] .lb-banner, html[data-sh-theme="1"] .lb-p, html[data-sh-theme="1"] .lb-slot { border-radius: 3px; }
.lb-act .btn:disabled { opacity: .4; filter: grayscale(.5); cursor: not-allowed; box-shadow: none; }
.lb-test { padding: 6px 10px; gap: 6px 8px; }
.gmc { max-height: min(90vh, 780px); }
.gm-art.lg { height: 128px; }
.gm-art.lg .a1 { font-size: 72px; }
@media (max-width: 720px) { .gmc-go { position: static; background: none; } }

/* РѕР¶РёРґР°РЅРёРµ РІРµРґСѓС‰РµРіРѕ Рё РїР»Р°С€РєР° РѕР±РЅРѕРІР»РµРЅРёСЏ */
#gm-away { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 210; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px; background: rgba(30, 24, 8, .92); border: 1px solid rgba(255, 207, 107, .55); color: #ffe3a3; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); max-width: calc(100vw - 24px); }
#gm-away i { width: 10px; height: 10px; border-radius: 50%; background: #ffcf6b; animation: gm-away-p 1.2s ease-in-out infinite; flex: none; }
#gm-away b { font-variant-numeric: tabular-nums; }
@keyframes gm-away-p { 50% { opacity: .3; transform: scale(.7); } }
#upd-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(24, 22, 48, .94); border: 1px solid rgba(124, 92, 255, .6); box-shadow: 0 10px 34px rgba(0, 0, 0, .55); backdrop-filter: blur(12px); color: var(--text); max-width: calc(100vw - 24px); }
#upd-bar span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#upd-bar small { opacity: .7; font-size: 12px; }
@media (max-width: 560px) { #upd-bar { flex-wrap: wrap; justify-content: flex-end; } #upd-bar span { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { #gm-away i { animation: none; } }

/* ---------- Р°РєС‚РёРІРЅРѕСЃС‚СЊ РІ РїСЂРѕС„РёР»Рµ: С€Р°РїРєР° Р±Р»РѕРєР°, Р·РЅР°С‡РєРё-СѓСЂРѕРІРЅРё, РІС‹РµР·Р¶Р°СЋС‰Р°СЏ РїР°РЅРµР»СЊ ---------- */
.pbadges { flex-wrap: wrap; align-items: center; }
.pbadges .pb-row { margin: 0; }

.backdrop.has-side { display: flex; align-items: center; justify-content: center; }
.backdrop.has-side > .modal { flex: none; }
.pc-side { flex: none; width: 0; opacity: 0; overflow: hidden; transition: width .34s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; max-height: calc(100vh - 32px); min-height: 360px; }
.pc-side.open { width: 392px; opacity: 1; }
.pcs-in { width: 380px; margin-left: 12px; height: 100%; display: flex; flex-direction: column; border-radius: 26px; background: rgba(var(--pop), .95); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); transform: translateX(-28px); transition: transform .34s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.pc-side.open .pcs-in { transform: none; }
.pcs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 0 18px; border-bottom: 1px solid var(--line); }
.pcs-tabs { display: flex; gap: 18px; }
.pcs-tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 0 11px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pcs-tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.pcs-tabs button:hover { color: var(--text); }
.pcs-x { margin-bottom: 6px; }
.pcs-body { flex: 1; overflow-y: auto; padding: 12px 14px 16px; overscroll-behavior: contain; }
.pcs-sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 4px 8px; }
.pcs-sec small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--dim); margin-left: 4px; }
.pcs-game { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; background: rgba(var(--wh), .045); border: 1px solid var(--line); margin-bottom: 8px; animation: pcs-in .3s ease-out both; }
.pcs-game:nth-child(3) { animation-delay: .03s; } .pcs-game:nth-child(4) { animation-delay: .06s; } .pcs-game:nth-child(5) { animation-delay: .09s; } .pcs-game:nth-child(n+6) { animation-delay: .12s; }
@keyframes pcs-in { from { opacity: 0; transform: translateX(14px); } }
.pcs-game.now { border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); margin-bottom: 14px; }
.pcs-gt { min-width: 0; flex: 1; padding-top: 2px; }
.pcs-gt b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcs-gt small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.pcs-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pcs-live 1.6s infinite; }
@keyframes pcs-live { 70% { box-shadow: 0 0 0 6px transparent; } }
.pcs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pcs-tags em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(var(--wh), .07); }
.pcs-tags svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcs-empty { text-align: center; padding: 40px 18px; color: var(--muted); display: grid; gap: 6px; }
.pcs-empty b { color: var(--text); font-size: 15px; }

.lv-card { padding: 14px; border-radius: 16px; background: rgba(var(--wh), .045); border: 1px solid var(--line); margin-bottom: 10px; animation: pcs-in .3s ease-out both; }
.lv-card.flash { animation: lv-flash 1.2s ease-out; }
@keyframes lv-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--blue); } 100% { box-shadow: 0 0 0 2px transparent; } }
.lv-card.off { opacity: .75; }
.lv-hero { display: flex; gap: 14px; align-items: center; }
.lv-hero > div > small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.lv-hero > div > b { display: block; font-size: 18px; margin: 2px 0; letter-spacing: -.01em; }
.lv-hero > div > span { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.35; }
.lv-prog { margin: 12px 0 4px; }
.lv-bar { height: 8px; border-radius: 99px; background: rgba(var(--wh), .1); overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.lv-prog small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.lv-prog.max small { color: var(--amber); font-weight: 600; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px 6px; margin-top: 12px; }
.lv-t { display: grid; justify-items: center; text-align: center; gap: 3px; }
.lv-t b { font-size: 11px; font-weight: 600; line-height: 1.2; }
.lv-t small { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--dim); }
.lv-t small svg { width: 10px; height: 10px; }
.lv-t.lk b { color: var(--dim); }

@media (max-width: 860px) {
  .backdrop.has-side { display: grid; }
  .pc-side { position: fixed; inset: 0; width: 100% !important; max-height: none; min-height: 0; height: 100% !important; opacity: 1; z-index: 5; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .pc-side.open { transform: none; }
  .pcs-in { width: 100%; margin: 0; border-radius: 0; transform: none; border: 0; background: rgb(var(--pop)); }
  .pcs-head { padding-top: max(14px, env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) { .pc-side, .pcs-in, .pcs-game, .lv-card { transition: none; animation: none; } }

/* v38.27: РєРЅРѕРїРєР° В«РђРєС‚РёРІРЅРѕСЃС‚СЊВ», Р·РЅР°С‡РєРё-СѓСЂРѕРІРЅРё РІ РѕР±С‰РµРј СЃС‚РёР»Рµ, РґРѕСЃРєР° СЃ РІРёРґР¶РµС‚Р°РјРё */
.pt-open { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--wh), .05); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: background .15s, border-color .15s, transform .15s; }
.pt-open:hover { background: rgba(var(--wh), .09); border-color: var(--line-strong); }
.pt-open:active { transform: scale(.99); }
.pt-open b { font-size: 14px; }
.pt-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.pt-ic svg { width: 18px; height: 18px; }
.pt-sub { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.pt-open > svg { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--muted); flex: none; }
/* Р·РЅР°С‡РєРё: РѕРґРёРЅР°РєРѕРІР°СЏ Р°РЅРёРјР°С†РёСЏ РїСЂРё РЅР°РІРµРґРµРЅРёРё Сѓ РІСЃРµС… */
.pbadges .pb, .lv-hero .pb, .lv-t .pb { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.pbadges .pb:hover { transform: translateY(-3px) scale(1.12); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pbc) 70%, transparent), 0 6px 16px -4px color-mix(in srgb, var(--pbc) 70%, transparent); }
button.pb { border: 0; padding: 0; cursor: pointer; font: inherit; }
.pb.lv-hi { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pbc) 60%, transparent), 0 0 10px -2px color-mix(in srgb, var(--pbc) 60%, transparent); }
.pb.lv-top { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--pbc) 45%, transparent), color-mix(in srgb, var(--pbc) 14%, transparent) 70%); }
.pb.lv-off { filter: grayscale(1); opacity: .55; }
.lv-hero .pb:hover, .lv-t .pb:hover { transform: scale(1.08); }
.lv-t.cur .pb { box-shadow: inset 0 0 0 2px var(--pbc), 0 0 14px -3px var(--pbc); }
.lv-note { margin: 4px 4px 0; font-size: 12px; }
/* РѕР±Р»РѕР¶РєРё РёРіСЂ */
.gc { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 55% 46%), hsl(calc(var(--h) + 50) 50% 22%)); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7); flex: none; }
.gc > i { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; font-style: normal; text-align: center; color: #fff; }
.gc > i b { font-size: 26px; font-weight: 800; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.gc > i small { font-size: 10px; font-weight: 600; line-height: 1.15; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gc.big { width: 92px; } .gc.mid { width: 60px; }
.gc.mid > i b { font-size: 20px; } .gc.mid > i small { display: none; }
.pcs-gi { width: 54px; height: 72px; border-radius: 10px; flex: none; overflow: hidden; display: grid; place-items: center; background: rgba(var(--wh), .08); position: relative; }
.pcs-gi > img { width: 34px; height: 34px; object-fit: contain; }
.pcs-gi.cov > img:not(.ex) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcs-gi.cov img.ex { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 4px; background: rgba(0, 0, 0, .55); padding: 1px; }
.pcs-gi.gen { background: linear-gradient(160deg, hsl(var(--h) 60% 52%), hsl(calc(var(--h) + 45) 55% 30%)); color: #fff; font-weight: 800; font-size: 24px; text-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pcs-game { padding: 12px; gap: 14px; background: rgba(var(--wh), .055); }
.pcs-game:hover { background: rgba(var(--wh), .08); }
.pcs-gt b { font-size: 15px; }
.pcs-pad { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* РґРѕСЃРєР° */
.bw-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 2px 10px; }
.bw-head > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.bw-head .btn svg, .bw-slot svg, .bw-tag svg { width: 14px; height: 14px; }
.bw-head .btn { display: inline-flex; align-items: center; gap: 6px; }
.bw-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 4; width: 260px; padding: 6px; border-radius: 14px; background: rgb(var(--pop)); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); animation: pop .15s ease-out; }
.bw-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.bw-menu button:hover { background: rgba(var(--wh), .07); }
.bw-menu b { display: block; font-size: 13.5px; } .bw-menu small { color: var(--muted); font-size: 12px; }
.bw { padding: 14px; border-radius: 16px; background: rgba(var(--wh), .045); border: 1px solid var(--line); margin-bottom: 10px; animation: pcs-in .3s ease-out both; }
.bw > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bw > header b { display: block; font-size: 14px; } .bw > header small { color: var(--dim); font-size: 12px; }
.bw-ctl { display: flex; gap: 2px; margin: -6px -6px 0 0; }
.bw-ctl .icon-btn { width: 28px; height: 28px; opacity: .65; } .bw-ctl .icon-btn:hover { opacity: 1; } .bw-ctl .icon-btn:disabled { opacity: .2; }
.bw-ctl svg { width: 15px; height: 15px; }
.bw-fav, .bw-row { display: flex; gap: 12px; align-items: flex-start; }
.bw-row { padding: 6px 0; } .bw-row + .bw-row { border-top: 1px solid var(--line); padding-top: 10px; }
.bw-fi { flex: 1; min-width: 0; }
.bw-fi > b { display: block; font-size: 15px; margin: 2px 0 6px; overflow-wrap: anywhere; }
.bw-txt { width: 100%; resize: none; border: 1px solid transparent; border-radius: 10px; background: rgba(var(--wh), .05); color: var(--text); font: inherit; font-size: 13px; padding: 7px 9px; font-style: italic; }
.bw-txt:focus { outline: none; border-color: var(--line-strong); font-style: normal; }
.bw-p { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.45; font-style: italic; overflow-wrap: anywhere; }
.bw-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.bw-tag { display: inline-flex; align-items: center; gap: 4px; border: 0; font: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(var(--wh), .09); color: var(--text); }
button.bw-tag { cursor: pointer; } button.bw-tag span { display: none; } button.bw-tag:hover span { display: inline-flex; } button.bw-tag span svg { width: 11px; height: 11px; }
.bw-tag.add { background: none; color: var(--muted); border: 1px dashed var(--line-strong); }
.bw-tag.add:hover { color: var(--text); }
.bw-tag-in { width: 110px; font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--wh), .06); color: var(--text); outline: none; }
.bw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bw-cell { position: relative; transition: transform .18s; } .bw-cell:hover { transform: translateY(-3px); }
.bw-rm2 { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; padding: 0; }
.bw-cell:hover .bw-rm2 { display: grid; } .bw-rm2 svg { width: 12px; height: 12px; }
.bw-rm { width: 26px; height: 26px; opacity: .5; } .bw-rm:hover { opacity: 1; } .bw-rm svg { width: 14px; height: 14px; }
.bw-slot { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 10px; border: 1.5px dashed var(--line-strong); background: none; color: var(--muted); cursor: pointer; font: inherit; }
.bw-slot:hover { color: var(--text); border-color: var(--text); background: rgba(var(--wh), .04); }
.bw-slot svg { width: 20px; height: 20px; }
.bw-slot.wide { aspect-ratio: auto; display: flex; justify-content: center; gap: 6px; width: 100%; padding: 12px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.bw-slot.wide svg { width: 15px; height: 15px; }
/* РІС‹Р±РѕСЂ РёРіСЂС‹ */
.pcs-in { position: relative; }
.pcs-pick { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: rgb(var(--pop)); animation: pcs-in .2s ease-out; }
.pcs-pick header { display: flex; align-items: center; justify-content: space-between; }
.pcs-pick header b { font-size: 15px; }
.pk-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; transition: opacity .2s; }
.pk-list.busy { opacity: .55; }
.pk-sec { font-size: 11.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; margin: 10px 4px 4px; }
.pk-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pk-it:hover { background: rgba(var(--wh), .07); }
.pk-it img, .pk-ph { width: 64px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; background: rgba(var(--wh), .08); }
.pk-ph { display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 60% 50%), hsl(calc(var(--h) + 45) 55% 30%)); }
.pk-it.own span:last-child { color: var(--muted); }
.pk-hint { color: var(--dim); font-size: 12.5px; text-align: center; padding: 24px 12px; }
.pk-in { width: 100%; }
/* РґРІСѓС…С„Р°РєС‚РѕСЂРЅС‹Р№ РІС…РѕРґ */
.tf-state { padding: 10px 12px; border-radius: 12px; background: rgba(var(--wh), .05); border: 1px solid var(--line); margin-bottom: 10px; }
.tf-state b { display: block; font-size: 14px; }
.tf-state small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.tf-state.on { border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.tf-state.on b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.tf-modal { width: 420px; max-width: calc(100vw - 32px); }
.tf-qr { background: #fff; border-radius: 14px; padding: 10px; width: 200px; margin: 0 auto; }
.tf-qr svg { display: block; width: 100%; height: auto; }
.tf-key { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(var(--wh), .06); }
.tf-key code { font-size: 13px; letter-spacing: .04em; word-break: break-all; }
.tf-codes { user-select: all; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; background: rgba(var(--wh), .06); padding: 12px 14px; border-radius: 12px; font-size: 14px; letter-spacing: .05em; margin: 0 0 6px; font-family: ui-monospace, Consolas, monospace; }
.linkish { display: block; margin: 7px 0 0; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--text); } .linkish:disabled { opacity: .5; cursor: default; }
.tf-flash { animation: lv-flash 1.6s ease-out; }
.form-error.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
/* РѕРєРЅР° РЅРёРєРѕРіРґР° РЅРµ С€РёСЂРµ СЌРєСЂР°РЅР° (СЂР°РЅСЊС€Рµ В«100%В» РІРЅСѓС‚СЂРё РѕРєРЅР° РїРѕ СЃРѕРґРµСЂР¶РёРјРѕРјСѓ РЅРµ СЂР°Р±РѕС‚Р°Р»Рѕ, Рё РЅР° С‚РµР»РµС„РѕРЅРµ РѕРєРЅР° РІС‹Р»РµР·Р°Р»Рё Р·Р° РєСЂР°Р№) */
.modal { max-width: calc(100vw - 32px); }
@media (max-width: 520px) { .chmodal { padding: 22px 18px; } }
.modal > .chmodal, .modal > div > .chmodal { max-width: 100%; }

/* ===== v38.39: РІРёР·СѓР°Р»СЊРЅС‹Рµ РїСЂР°РІРєРё РїРѕ РёС‚РѕРіР°Рј Р°СѓРґРёС‚Р° ===== */
/* 1. Р‘РµР· СЂР°Р·РјС‹С‚РёСЏ С„РѕРЅР° (С‚РµРјР° Silent Hill, СЂРµР¶РёРј В«РџСЂРѕРёР·РІРѕРґРёС‚РµР»СЊРЅРѕСЃС‚СЊВ») РѕРєРЅР° РЅРµРїСЂРѕР·СЂР°С‡РЅС‹Рµ: СЂР°РЅСЊС€Рµ СЃРєРІРѕР·СЊ РЅРёС… С‡РёС‚Р°Р»Р°СЃСЊ С‚СЂР°РЅСЃР»СЏС†РёСЏ */
html[data-sh-theme="1"] .modal, html[data-perf="1"] .modal { background: rgb(var(--pop)); }
/* 2. РџРѕРґРїРёСЃРё Рё РєРЅРѕРїРєРё РїРѕРІРµСЂС… РІРёРґРµРѕ РІСЃРµРіРґР° С‚С‘РјРЅС‹Рµ СЃРѕ СЃРІРµС‚Р»С‹Рј С‚РµРєСЃС‚РѕРј: РІ СЃРІРµС‚Р»РѕР№ С‚РµРјРµ РѕРЅРё Р±С‹Р»Рё СЃРµСЂС‹РјРё РЅР° СЃРµСЂРѕРј */
.tile:has(> video) :is(.tile-name, .tile-fs, .tile-unwatch, .tile-viewers, .tile-sv, .tile-mic) { background: rgba(8, 8, 14, .62); color: #fff; }
.tile:has(> video) .tile-unwatch:hover { background: rgba(255, 77, 94, .85); }
/* 3. РўРµР»РµС„РѕРЅ: РїР°РЅРµР»СЊ Р·РІРѕРЅРєР° РІ РѕРґРЅСѓ СЃС‚СЂРѕРєСѓ, РёРЅР°С‡Рµ РІС‚РѕСЂР°СЏ СЃС‚СЂРѕРєР° Р·Р°РєСЂС‹РІР°Р»Р° РїР»РёС‚РєРё СЃ РёРјРµРЅР°РјРё */
@media (max-width: 480px) {
  .controls { gap: 3px; padding: 5px; flex-wrap: nowrap; }
  .ctl { width: 40px; height: 40px; border-radius: 12px; }
  .ctl .ic { width: 20px; height: 20px; }
  .ctl.hang { width: 48px; }
}
/* 4. РўРµР»РµС„РѕРЅ: РєРЅРѕРїРєР° В«РћС‚РїСЂР°РІРёС‚СЊВ» РѕСЃС‚Р°С‘С‚СЃСЏ РІ СЂСЏРґСѓ СЃ РѕСЃС‚Р°Р»СЊРЅС‹РјРё, Р° РЅРµ СѓРµР·Р¶Р°РµС‚ РѕРґРЅР° РЅР° РЅРѕРІСѓСЋ СЃС‚СЂРѕРєСѓ */
@media (max-width: 420px) {
  .composer { gap: 2px; }
  .composer .icon-btn { width: 34px; height: 36px; }
  .composer .icon-btn.send { width: 40px; }
}
/* 5. Р­РєСЂР°РЅ РІС…РѕРґР°: РїРѕРґСЃРєР°Р·РєР° РїСЂРѕ РїР°СЂРѕР»СЊ РЅРµ РїСЂРёР»РёРїР°РµС‚ Рє РєРЅРѕРїРєРµ В«Р’РѕР№С‚РёВ» */
#login-forgot { margin: 2px 0 12px; text-align: center; font-size: 12.5px; }
/* Silent Hill: РІСЂРµРјСЏ Сѓ СЃРѕРѕР±С‰РµРЅРёР№ Р±С‹Р»Рѕ РїРѕС‡С‚Рё РЅРµРІРёРґРёРјС‹Рј */
html[data-sh-theme="1"] .msg time, html[data-sh-theme="1"] .msg-gap time { opacity: .85; color: var(--muted); }

/* v38.42: РЅРµС‚ СЃРІСЏР·Рё СЃ СЃРµСЂРІРµСЂРѕРј вЂ” РїР»Р°С€РєР° СЃРІРµСЂС…Сѓ РїРѕ С†РµРЅС‚СЂСѓ (РІРЅРёР·Сѓ РјРµСЃС‚Рѕ РїР»Р°С€РєРё РѕР±РЅРѕРІР»РµРЅРёСЏ Рё РїР°РЅРµР»Рё Р·РІРѕРЅРєР°) */
#net-off { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 210; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; background: rgba(var(--pop), .96); border: 1px solid rgba(255, 176, 32, .55); box-shadow: 0 10px 34px rgba(0, 0, 0, .45); font-size: 13.5px; color: var(--text); max-width: calc(100vw - 32px); animation: pop .18s ease-out; }
#net-off .spin { width: 14px; height: 14px; flex: none; display: inline-block; border-radius: 50%; border: 2px solid rgba(var(--wh),.2); border-top-color: #ffb020; animation: spin .8s linear infinite; }

/* v38.42: РЅР° СѓР·РєРёС… СЌРєСЂР°РЅР°С… РїР°РЅРµР»СЊ СѓС‡Р°СЃС‚РЅРёРєРѕРІ Рё РјРµРЅСЋ РєР°РЅР°Р»РѕРІ РІС‹РµР·Р¶Р°СЋС‚ РїРѕРІРµСЂС… С‡Р°С‚Р°. Р‘РµР· СЂР°Р·РјС‹С‚РёСЏ С„РѕРЅР°
   (Silent Hill, В«РџСЂРѕРёР·РІРѕРґРёС‚РµР»СЊРЅРѕСЃС‚СЊВ») РѕРЅРё РїСЂРѕСЃРІРµС‡РёРІР°Р»Рё, Рё С‚РµРєСЃС‚ С‡Р°С‚Р° РЅР°РєР»Р°РґС‹РІР°Р»СЃСЏ РЅР° СЃРїРёСЃРѕРє вЂ” РґРµР»Р°РµРј РёС… РЅРµРїСЂРѕР·СЂР°С‡РЅС‹РјРё */
@media (max-width: 1180px) { html[data-sh-theme="1"] .panel, html[data-perf="1"] .panel { background: rgb(var(--pop)); } }
@media (max-width: 820px) { html[data-sh-theme="1"] .side, html[data-perf="1"] .side { background: rgb(var(--pop)); } }
/* v38.42: СЃРІРµС‚Р»Р°СЏ С‚РµРјР° вЂ” СЏСЂР»С‹РєРё СЂРѕР»РµР№ СЃРІРµС‚Р»С‹Рµ, Р° С‚РµРєСЃС‚ РЅР° РЅРёС… Р±С‹Р» Р±РµР»С‹Рј Рё РЅРµ С‡РёС‚Р°Р»СЃСЏ. РўРµРєСЃС‚ вЂ” С‚С‘РјРЅС‹Р№ РѕС‚С‚РµРЅРѕРє С†РІРµС‚Р° СЂРѕР»Рё */
:root[data-theme="light"] .role-chip { color: color-mix(in srgb, var(--rc) 45%, #1d2040); text-shadow: none; }

/* 38.44: Р°РІР°С‚Р°СЂРєР° РІ РїР»РёС‚РєРµ Р·РІРѕРЅРєР° РїРѕРґСЃС‚СЂР°РёРІР°РµС‚СЃСЏ РїРѕРґ СЂР°Р·РјРµСЂ РїР»РёС‚РєРё (РЅР° С‚РµР»РµС„РѕРЅРµ Рё СЂСЏРґРѕРј СЃ РґРѕСЃРєРѕР№/РёРіСЂРѕР№/РїСЂРѕСЃРјРѕС‚СЂРѕРј РїР»РёС‚РєРё РјР°Р»РµРЅСЊРєРёРµ) */
/* С‚РѕР»СЊРєРѕ РїРѕ С€РёСЂРёРЅРµ: РІС‹СЃРѕС‚Сѓ РїР»РёС‚РєРё Р·Р°РґР°С‘С‚ СЃРµС‚РєР°, size-РєРѕРЅС‚РµР№РЅРµСЂ Р»РѕРјР°Р» РµС‘ (РїР»РёС‚РєРё РЅР°РµР·Р¶Р°Р»Рё) */
.tile { container-type: inline-size; }
.tile .av.xl { width: min(104px, 30cqw); height: min(104px, 30cqw); font-size: min(44px, 13cqw); }
.strip .tile .av.xl { width: min(48px, 30cqw); height: min(48px, 30cqw); font-size: min(20px, 13cqw); }
.stage.wt-on .tile .av { transform: none; }
@media (max-width: 800px) { .stage.wt-on .tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
/* 38.59: in small tiles (next to a game/board/watch panel) the name label covered the avatar */
@container (max-width: 260px) {
  .tile .av.xl { width: min(104px, 26cqw); height: min(104px, 26cqw); font-size: min(44px, 11cqw); margin-bottom: 16px; }
  .tile .tile-name { left: 6px; bottom: 5px; padding: 2px 7px; font-size: 11px; border-radius: 7px; max-width: calc(100% - 12px); }
  .tile .tile-prio { bottom: 28px; left: 6px; width: 22px; height: 22px; }
}
/* 38.44: РІ СЃРІРµС‚Р»РѕР№ С‚РµРјРµ РїР°РЅРµР»Рё В«РЎРјРѕС‚СЂРёРј РІРјРµСЃС‚РµВ» Рё РёРіСЂ Р±С‹Р»Рё С‚С‘РјРЅС‹РјРё (РїРµСЂРµРјРµРЅРЅР°СЏ --panel РЅРµ Р·Р°РґР°РІР°Р»Р°СЃСЊ) */
:root[data-theme="light"] { --panel: rgba(255, 255, 255, .86); }

/* 38.45: РєРЅРѕРїРєР° В«РѕРєРЅРѕ РїРѕРІРµСЂС…В» РЅР° РїР»РёС‚РєРµ РґРµРјРѕРЅСЃС‚СЂР°С†РёРё */
.tile-pip { position: absolute; right: 50px; top: 10px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--in), .6); backdrop-filter: blur(10px); opacity: 0; transition: opacity .15s; z-index: 2; }
.tile-pip .ic { width: 16px; height: 16px; }
.tile:hover .tile-pip, .tile-pip.on { opacity: 1; }
.tile-pip.on { box-shadow: 0 0 0 2px var(--cyan) inset; }
.tile.has-pip .tile-unwatch { right: 90px; }
.tile:has(> video) .tile-pip { background: rgba(8, 8, 14, .62); color: #fff; }
@media (hover: none) { .tile-pip { opacity: 1; } }

/* 38.48: СЃРѕРІРµС‚С‹ РїРѕ СЃС‚СЂРёРјСѓ РёРіСЂ РІ РЅР°СЃС‚СЂРѕР№РєР°С… РґРµРјРѕРЅСЃС‚СЂР°С†РёРё */
.scr-tips { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--wh), .04); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.scr-tips summary { cursor: pointer; color: var(--text); font-weight: 600; }
.scr-tips ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.scr-tips b { color: var(--text); font-weight: 600; }

/* 38.49: РєР°СЂС‚РѕС‡РєР° РёРіСЂС‹ Р±РµР· РѕР±Р»РѕР¶РєРё вЂ” СЂР°Р·РјС‹С‚Р°СЏ РёРєРѕРЅРєР° РёР· exe С„РѕРЅРѕРј Рё С‡С‘С‚РєР°СЏ СЃРІРµСЂС…Сѓ */
.pcs-gi.ico { background: linear-gradient(160deg, hsl(var(--h) 32% 30%), hsl(calc(var(--h) + 30) 38% 13%)); isolation: isolate; }
.pcs-gi.ico > img.bg { position: absolute; inset: -30%; width: 160%; height: 160%; object-fit: cover; filter: blur(11px) saturate(1.6) brightness(.8); opacity: .8; z-index: -1; }
.pcs-gi.ico > img.fg { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .55)); }
.pcs-gi.ico::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%, rgba(0, 0, 0, .28)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }

/* 38.50: РІРµСЂС‚РёРєР°Р»СЊРЅРѕР№ РѕР±Р»РѕР¶РєРё РЅРµС‚ вЂ” РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅР°СЏ С€Р°РїРєР° РёРіСЂС‹ С†РµР»РёРєРѕРј РїРѕ С†РµРЅС‚СЂСѓ, С„РѕРЅРѕРј РµС‘ СЂР°Р·РјС‹С‚Р°СЏ РєРѕРїРёСЏ */
.gc.wide > img:not(.ex), .pcs-gi.wide > img:not(.ex) { object-fit: contain; }
.gc.wide > img.bg, .pcs-gi.wide > img.bg { object-fit: cover; filter: blur(9px) saturate(1.4) brightness(.65); transform: scale(1.35); }

/* 38.51: РїР»РѕС…Р°СЏ СЃРІСЏР·СЊ Сѓ СѓС‡Р°СЃС‚РЅРёРєР° вЂ” РЅР° РїР»РёС‚РєРµ Рё РІ СЃРїРёСЃРєРµ РєР°РЅР°Р»Р° */
.tile-cq { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(150, 95, 0, .88); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .6); pointer-events: none; }
.tile-cq.q-lost { background: rgba(190, 40, 55, .9); }
.tile-cq .net-ic, .rp-cq .net-ic { width: 14px; height: 14px; }
.tile-cq .net-ic rect { fill: rgba(255, 255, 255, .35); }
.tile-cq.q-poor .net-ic .b1 { fill: #fff; }
@container (max-width: 190px) { .tile-cq { padding: 4px; } .tile-cq span { display: none; } }
.rp-cq { margin-left: auto; display: inline-grid; place-items: center; flex: none; }
.rp-cq .net-ic rect { fill: rgba(var(--wh), .2); }
.rp-cq.q-poor .net-ic .b1 { fill: #ffb020; }
.rp-cq.q-lost .net-ic rect { fill: #ff4d5e; opacity: .55; }

/* 38.51: РѕР±Р»РѕР¶РєР° С‚РµРєСѓС‰РµР№ РёРіСЂС‹ вЂ” РІ СЃРїРёСЃРєРµ СѓС‡Р°СЃС‚РЅРёРєРѕРІ Рё РЅР° РїР»РёС‚РєРµ РІ Р·РІРѕРЅРєРµ */
.gmini { flex: none; width: 26px; height: 35px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--wh), .08); box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .6); }
.gmini img { width: 100%; height: 100%; object-fit: cover; }
.gmini.ico { background: transparent; box-shadow: none; }
.gmini.ico img { width: 22px; height: 22px; object-fit: contain; }
.gmini.sm { width: 18px; height: 18px; border-radius: 4px; }
.gmini.sm.ico img { width: 18px; height: 18px; }
.tile-game { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 64px); padding: 4px 10px 4px 5px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(8, 8, 14, .6); backdrop-filter: blur(8px); pointer-events: none; }
.tile-game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:has(.tile-hand) .tile-game { left: 54px; }
@container (max-width: 190px) { .tile-game { padding: 4px; } .tile-game span { display: none; } }

/* 38.51: РєР°СЂС‚РёРЅРєР° РІ С‡Р°С‚Рµ СЃ РёР·РІРµСЃС‚РЅС‹Рј СЂР°Р·РјРµСЂРѕРј: РјРµСЃС‚Рѕ Р·Р°РЅСЏС‚Рѕ СЃСЂР°Р·Сѓ, РїСЂРѕРїРѕСЂС†РёРё СЃРІРѕРё, РјР°Р»РµРЅСЊРєРёРµ РЅРµ СЂР°СЃС‚СЏРіРёРІР°СЋС‚СЃСЏ */
.msg-img.sized { width: min(var(--w), 420px, 100%, calc(320px * var(--ar))); height: auto; aspect-ratio: var(--ar); max-height: none; object-fit: cover; }
html[data-density="compact"] .msg-img.sized { width: min(var(--w), 420px, 100%, calc(220px * var(--ar))); }

/* 38.52: РїСЂРµРІСЊСЋ СЃС‚СЂРёРјР° РЅР° Р·Р°Р±Р»РѕРєРёСЂРѕРІР°РЅРЅРѕР№ РїР»РёС‚РєРµ */
.tile.locked .lock-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(1.05); pointer-events: none; }
.tile.locked.has-prev .lock-bg { display: none; }
.tile.locked.has-prev .lock-title { text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }

/* ---------- 38.52: «Итоги года» ---------- */
.wr-ov { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(4, 3, 14, .84); backdrop-filter: blur(14px); animation: fade .2s ease-out; --wh-h: 265; }
.wr-phone { position: relative; width: min(430px, 100vw); height: min(840px, 100dvh); border-radius: 30px; overflow: hidden; color: #fff; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
  background: radial-gradient(120% 70% at 15% 0%, hsl(var(--wh-h) 85% 55% / .75), transparent 60%), radial-gradient(90% 60% at 100% 100%, hsl(calc(var(--wh-h) + 60) 80% 45% / .7), transparent 65%), linear-gradient(170deg, hsl(var(--wh-h) 45% 14%), hsl(calc(var(--wh-h) + 30) 50% 8%));
  transition: background .6s; }
.wr-phone::before { content: ''; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 30%; border-radius: 50%; background: radial-gradient(circle, hsl(calc(var(--wh-h) - 40) 90% 60% / .35), transparent 60%); animation: wr-float 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes wr-float { from { transform: translate(-8%, -6%) scale(1); } to { transform: translate(10%, 8%) scale(1.15); } }
.wr-bar { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 5; display: flex; gap: 4px; }
.wr-bar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.wr-bar i.done { background: #fff; }
.wr-bar i.cur::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: wr-prog 8s linear forwards; }
@keyframes wr-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wr-x { position: absolute; top: 24px; right: 12px; z-index: 6; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .25); }
.wr-x .ic { width: 18px; height: 18px; }
.wr-tap { position: absolute; top: 60px; bottom: 0; z-index: 2; cursor: pointer; }
.wr-tap.l { left: 0; width: 30%; } .wr-tap.r { right: 0; width: 70%; }
.wr-body { position: absolute; inset: 0; z-index: 3; padding: 70px 28px 34px; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.wr-body button, .wr-body a { pointer-events: auto; }
.wr-slide { display: flex; flex-direction: column; gap: 12px; animation: wr-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes wr-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wr-slide h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; }
.wr-slide h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.wr-slide p { margin: 0; font-size: 15px; line-height: 1.45; opacity: .85; }
.wr-kick { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; opacity: .75; }
.wr-big { font-size: 86px; line-height: .95; font-weight: 900; letter-spacing: -.02em; background: linear-gradient(120deg, #fff, hsl(calc(var(--wh-h) + 40) 100% 82%)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.wr-fox { display: grid; place-items: center; margin-bottom: 6px; }
.wr-sub { margin-top: 10px; font-size: 13px; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.wr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wr-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.wr-list li i { font-style: normal; font-weight: 800; opacity: .6; width: 14px; }
.wr-list li > span:not(.av):not(.wr-cov) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wr-list li > span small { display: block; font-weight: 500; opacity: .65; font-size: 12px; }
.wr-list li em { font-style: normal; font-weight: 800; }
.wr-emoji { font-size: 76px; line-height: 1; }
.wr-hours { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 12px; }
.wr-hours i { flex: 1; height: calc(6% + var(--v) * 94%); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #fff, hsl(calc(var(--wh-h) + 40) 90% 70% / .6)); }
.wr-hlab { display: flex; justify-content: space-between; font-size: 11px; opacity: .6; }
.wr-emojis { display: flex; gap: 14px; font-size: 46px; }
.wr-meme { margin-top: 6px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .12); display: grid; gap: 10px; }
.wr-meme p { font-size: 17px; opacity: 1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.wr-meme-img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 12px; }
.wr-meme-img.st { max-height: 160px; }
.wr-meme-f { display: flex; justify-content: space-between; font-size: 13px; opacity: .85; }
.wr-cov { position: relative; flex: none; width: 46px; height: 62px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: linear-gradient(160deg, hsl(var(--h) 60% 52%), hsl(calc(var(--h) + 45) 55% 30%)); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.wr-cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wr-cov.sm { width: 38px; height: 51px; font-size: 16px; }
.wr-games { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.wr-games li { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.wr-games li > span:not(.wr-cov) { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-games li > span:not(.wr-cov) i { font-style: normal; opacity: .55; margin-right: 8px; }
.wr-games li em { font-style: normal; font-weight: 800; }
.wr-note { font-size: 14px !important; }
.wr-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin-top: 4px; }
.wr-pod { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 16px 16px 8px 8px; background: rgba(255, 255, 255, .12); position: relative; text-align: center; }
.wr-pod b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-pod small { font-size: 12px; opacity: .75; }
.wr-pod i { font-style: normal; font-weight: 900; font-size: 22px; opacity: .5; }
.wr-pod.p1 { order: 2; padding-top: 22px; background: rgba(255, 215, 90, .22); }
.wr-pod.p2 { order: 1; } .wr-pod.p3 { order: 3; }
.wr-tg { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.wr-tg span { display: grid; font-size: 14px; } .wr-tg small { opacity: .7; }
.wr-slide.final { align-items: center; text-align: center; }
.wr-card { width: 100%; padding: 22px 18px; border-radius: 24px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); display: grid; justify-items: center; gap: 10px; }
.wr-card > b { font-size: 22px; }
.wr-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wr-grid div { padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .18); display: grid; }
.wr-grid div b { font-size: 22px; } .wr-grid div small { opacity: .75; font-size: 12px; }
.wr-fav { display: flex; align-items: center; gap: 10px; text-align: left; }
.wr-fav span { display: grid; font-size: 12px; opacity: .9; } .wr-fav b { font-size: 15px; }
.wr-tag { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; }
.wr-banner { display: flex; align-items: center; gap: 14px; width: calc(100% - 32px); margin: 14px 16px 4px; padding: 14px 16px; border-radius: 18px; text-align: left; color: #fff; cursor: pointer; border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(120deg, #6b3cff, #d1357a 60%, #ff8a3d); box-shadow: 0 14px 34px -14px rgba(160, 60, 255, .7); }
.wr-banner span:nth-child(2) { flex: 1; display: grid; gap: 2px; } .wr-banner small { opacity: .85; font-size: 13px; }
.wr-b-ic { font-size: 28px; } .wr-b-go { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .2); font-weight: 700; }
@media (max-width: 520px) { .wr-phone { border-radius: 0; height: 100dvh; } .wr-big { font-size: 72px; } }

/* ---------- 38.53: Новый год — снег, гирлянда (на ПК); пасхалка и тема «Зимняя ночь» ---------- */
#ny-snow { position: fixed; inset: 0; z-index: 39; pointer-events: none; overflow: hidden; }
#ny-snow i { position: absolute; top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .7); animation-name: ny-fall, ny-sway; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; }
@keyframes ny-fall { from { transform: translateY(-20px); } to { transform: translateY(calc(100vh + 30px)); } }
@keyframes ny-sway { from { margin-left: -14px; } to { margin-left: 14px; } }
:root[data-theme="light"] #ny-snow i { background: #b9c7e8; box-shadow: none; }
.ny-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ny-garland { position: absolute; left: 0; right: 0; top: 0; height: 40px; }
.ny-wire { position: absolute; left: 0; top: 0; height: 40px; color: rgba(var(--wh), .3); overflow: visible; }
.ny-wire .ny-tack { fill: #b8954f; stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.ny-bulb { position: absolute; width: 14px; height: 20px; margin-left: -7px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; transform-origin: 50% 0; animation: ny-swing 3.6s ease-in-out infinite alternate; }
.ny-bulb::before { content: ''; position: absolute; left: 4px; top: 0; width: 6px; height: 5px; border-radius: 1px; background: rgba(var(--wh), .45); }
.ny-bulb i { position: absolute; left: 1px; top: 4px; width: 12px; height: 15px; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; background: color-mix(in srgb, var(--c) 30%, #2a2a36); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .35); transition: background .3s, box-shadow .3s; }
.ny-bulb.on i { background: var(--c); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--c) 70%, transparent), inset 0 -2px 3px rgba(0, 0, 0, .2); animation: ny-twinkle 2.4s ease-in-out infinite alternate; animation-delay: inherit; }
.ny-bulb.tw { animation: ny-tap .45s ease-out; }
.ny-garland.party .ny-bulb.on i { animation: ny-party .22s steps(2) infinite; }
@keyframes ny-swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes ny-twinkle { 0%, 70% { filter: brightness(1); } 100% { filter: brightness(1.35); } }
@keyframes ny-tap { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(14deg) scale(1.25); } 100% { transform: rotate(0) scale(1); } }
@keyframes ny-party { from { filter: brightness(1.6); } to { filter: brightness(.6); } }
@media (max-width: 800px) { .ny-garland { display: none; } }
@media (prefers-reduced-motion: reduce) { .ny-bulb, .ny-bulb.on i { animation: none !important; } }
#ny-flash { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; background: radial-gradient(120% 90% at 50% 30%, rgba(235, 246, 255, .97), rgba(160, 200, 240, .97) 60%, rgba(70, 110, 170, .99)); }
#ny-flash.in { opacity: 1; }
/* ---------- тема «Зимняя ночь» (38.54, winter.js): небо с северным сиянием, лес, иней, свои звуки ---------- */
:root[data-theme="winter"] {
  --bg0: #030a1c; --bg1: #0a1a38; --glass: rgba(14, 32, 64, .46); --glass-strong: rgba(18, 40, 78, .88);
  --text: #e8f1ff; --muted: #93a8c8; --dim: #627a9e;
  --blue: #6cc4ff; --violet: #8f9dff; --cyan: #9ee0ff;
  --grad: linear-gradient(135deg, #3fa9f5 0%, #6c8cff 65%, #a3b6ff 100%);
  --glow1: 108, 140, 255; --glow2: 108, 196, 255; --glow3: 200, 232, 255;
  --in: 4, 12, 30; --pop: 12, 28, 56; --ringc: #0b1a35;
}
:root[data-theme="winter"] #splash { background: radial-gradient(700px 380px at 72% -6%, rgba(60, 255, 180, .22), transparent 65%), radial-gradient(700px 420px at 18% -12%, rgba(120, 120, 255, .26), transparent 65%), linear-gradient(180deg, #02081a, #0c1f42); }
.theme-card[data-theme-id="winter"] .theme-prev { background: radial-gradient(70% 60% at 72% 0%, rgba(60, 255, 180, .45), transparent 70%), radial-gradient(60% 60% at 18% 8%, rgba(120, 120, 255, .45), transparent 70%), linear-gradient(180deg, #02081a, #10264a) !important; }
/* небо */
.wn-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; background: linear-gradient(180deg, #02081a 0%, #061230 45%, #0c1f42 100%); }
.wn-st { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; }
.wn-st.s1 { animation: wn-tw 9s steps(9) infinite alternate; }
.wn-st.s2 { animation: wn-tw 6s steps(6) infinite alternate-reverse; }
@keyframes wn-tw { from { opacity: 1; } to { opacity: .3; } }
.wn-aur { position: absolute; inset: 0; opacity: .78; transition: opacity 1.6s ease, filter 1.6s ease; }
html[data-wn-night="1"] .wn-aur { opacity: 1; }
html.wn-flare .wn-aur { opacity: 1; filter: brightness(1.8) saturate(1.3); }
.wn-aur i { position: absolute; display: block; will-change: transform; }
.wn-aur .a1 { left: -15%; top: -12%; width: 95%; height: 62%; background: radial-gradient(50% 42% at 50% 55%, rgba(60, 255, 180, .46), rgba(60, 230, 190, .14) 50%, transparent 75%); transform: rotate(-12deg); animation: wn-a1 80s steps(160) infinite alternate; }
.wn-aur .a2 { left: 30%; top: -18%; width: 90%; height: 60%; background: radial-gradient(50% 45% at 50% 55%, rgba(120, 120, 255, .42), rgba(170, 110, 255, .13) 50%, transparent 75%); transform: rotate(9deg); animation: wn-a2 110s steps(220) infinite alternate; }
.wn-aur .a3 { left: 5%; top: -4%; width: 80%; height: 46%; background: repeating-linear-gradient(90deg, rgba(140, 255, 210, 0) 0 14px, rgba(140, 255, 210, .22) 20px, rgba(140, 255, 210, 0) 34px); -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 20%, transparent 72%); mask-image: radial-gradient(50% 50% at 50% 50%, #000 20%, transparent 72%); transform: skewX(-18deg) rotate(-6deg); animation: wn-a3 60s steps(120) infinite alternate; }
@keyframes wn-a1 { from { transform: translateX(-5%) rotate(-12deg) scaleY(1); } to { transform: translateX(7%) rotate(-7deg) scaleY(1.18); } }
@keyframes wn-a2 { from { transform: translateX(4%) rotate(9deg) scaleY(1); } to { transform: translateX(-8%) rotate(4deg) scaleY(1.12); } }
@keyframes wn-a3 { from { transform: translateX(-4%) skewX(-18deg) rotate(-6deg); } to { transform: translateX(6%) skewX(-8deg) rotate(-3deg); } }
.wn-forest { position: absolute; left: 0; bottom: 0; width: 100%; height: 26vh; min-height: 150px; }
html[data-wn-lite="1"] .wn-sky * { animation: none !important; }
#ny-snow i.far { box-shadow: none; }
html[data-wn="1"] .modal { box-shadow: inset 0 1px 0 rgba(215, 238, 255, .22), 0 0 0 1px rgba(150, 200, 255, .1), 0 40px 100px -20px rgba(0, 6, 24, .9), 0 0 70px -24px rgba(108, 196, 255, .45); }
/* говорящий — ледяное свечение */
html[data-wn="1"] .tile.speaking { border-color: #bfe6ff; box-shadow: 0 0 0 2px #bfe6ff, 0 0 34px -2px rgba(120, 200, 255, .55), inset 0 0 30px -10px rgba(200, 235, 255, .45); }
html[data-wn="1"] .rp.speaking .av, html[data-wn="1"] .tile.speaking .av, html[data-wn="1"] .mc-av.speaking { animation: wn-ice 1.4s ease-in-out infinite alternate; box-shadow: 0 0 0 2px #e2f3ff, 0 0 12px 3px rgba(120, 200, 255, .6); }
@keyframes wn-ice { from { box-shadow: 0 0 0 2px #e2f3ff, 0 0 8px 1px rgba(120, 200, 255, .45); } to { box-shadow: 0 0 0 2px #ffffff, 0 0 16px 4px rgba(150, 215, 255, .75); } }
html[data-wn-lite="1"] .rp.speaking .av, html[data-wn-lite="1"] .tile.speaking .av, html[data-wn-lite="1"] .mc-av.speaking { animation: none; }
html[data-wn="1"] .prow.speaking .wave i { background: #bfe6ff; }
/* мелочи: курсор-снежинка, снежинка вместо колёсика загрузки, шапка сервера без обложки */
html[data-wn="1"] body { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><g stroke='%23d8efff' stroke-width='1.4' stroke-linecap='round' opacity='.85'><path d='M10 2v16M3 6l14 8M3 14l14-8'/></g><circle cx='10' cy='10' r='2.2' fill='%23ffffff'/></svg>") 10 10, auto; }
html[data-wn="1"] .spin { border: 0 !important; border-radius: 0 !important; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfe6ff' stroke-width='2' stroke-linecap='round'><path d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 4l3 2.5L15 4M9 20l3-2.5 3 2.5M3.6 11.2l3.8.6-1.3 3.6M20.4 12.8l-3.8-.6 1.3-3.6'/></svg>") center / contain no-repeat; animation: spin 2.4s linear infinite !important; }
html[data-wn="1"] .side-head .sh-bg.b0 { background: radial-gradient(180px 90px at 75% 0%, rgba(60, 255, 180, .28), transparent 70%), radial-gradient(160px 80px at 20% 10%, rgba(120, 120, 255, .3), transparent 70%), linear-gradient(180deg, #030a1c, #10264a); }
/* надпись на замёрзшем стекле */
.wn-note { margin: 14px auto; max-width: 72%; text-align: center; font-style: italic; font-size: 13px; color: #cfe6ff; padding: 9px 16px; border-radius: 12px; background: linear-gradient(180deg, rgba(200, 230, 255, .1), rgba(200, 230, 255, .04)); border: 1px solid rgba(200, 230, 255, .16); box-shadow: inset 0 0 18px rgba(200, 230, 255, .08); text-shadow: 0 0 8px rgba(160, 210, 255, .45); }
/* мороз: края экрана мягко затягивает изморозью, по ней вспыхивают искорки, потом тает */
#wn-freeze { position: fixed; inset: 0; z-index: 9300; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
#wn-freeze::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 90px 24px rgba(205, 232, 255, .34), inset 0 0 26px 4px rgba(235, 246, 255, .3); background: radial-gradient(140% 120% at 50% 50%, transparent 58%, rgba(190, 222, 255, .14)); }
#wn-freeze i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(190, 228, 255, .8); transform: scale(var(--s)); opacity: 0; animation: wn-spark 1.6s ease-in-out infinite; }
@keyframes wn-spark { 0%, 100% { opacity: 0; transform: scale(calc(var(--s) * .4)); } 50% { opacity: .9; transform: scale(var(--s)); } }
#wn-freeze.on { opacity: 1; }
#wn-freeze.melt { opacity: 0; transition: opacity 2.8s ease; }
/* во время просмотра стрима или камеры — ничего поверх видео */
html:has(#grid:not([hidden]) .tile video) #ny-snow, html:has(.stage.wt-on #grid:not([hidden])) #ny-snow,
html:has(#grid:not([hidden]) .tile video) #wn-freeze, html:has(.stage.wt-on #grid:not([hidden])) #wn-freeze { display: none !important; }
@media (prefers-reduced-motion: reduce) { .wn-sky *, html[data-wn="1"] .mc-av.speaking, html[data-wn="1"] .tile.speaking .av, html[data-wn="1"] .rp.speaking .av { animation: none !important; } }

/* ---------- 38.58: новый вид Шпиона, Мафии и Телефона (games-ui.js) ---------- */
.gm-box > .gx-spy, .gm-box > .gx-mafia, .gm-box > .gx-pad, .gm-box > .gx-rev, .gm-box > .gx-end, .gm-box > .gx-prog, .gm-box > .gx-seats { width: 100%; }
.gx-spy { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; width: 100%; }
.gx-l { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gx-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gx-h { font-weight: 650; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gx-h small { font-weight: 400; font-size: 12px; color: var(--muted); }
.gx-h .btn { margin-left: auto; }
.gx-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gx-r > .gx-row { justify-content: flex-start; }
.gx-muted { font-size: 13px; color: var(--muted); }
.gx-watch { text-align: center; color: var(--muted); padding: 8px; }
/* карточка роли с переворотом */
.gx-card { width: 200px; aspect-ratio: 3 / 4; perspective: 900px; cursor: pointer; border-radius: 16px; outline-offset: 4px; }
.gx-card.wait { display: grid; place-items: center; background: rgba(var(--wh), .05); border: 1px dashed var(--line-strong); color: var(--muted); cursor: default; }
.gx-card-in { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.gx-card.open .gx-card-in { transform: rotateY(180deg); }
.gx-face { position: absolute; inset: 0; border-radius: 16px; background: #1a1430 center / cover no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.gx-front { transform: rotateY(180deg); }
.gx-back { display: flex; align-items: flex-end; justify-content: center; }
.gx-back span { margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; font-size: 12px; background: rgba(0, 0, 0, .55); color: #fff; }
.gx-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(6, 4, 18, .92)); color: #fff; text-align: center; }
.gx-cap b { display: block; font-size: 19px; line-height: 1.15; }
.gx-cap small { display: block; font-size: 12px; opacity: .8; margin-top: 3px; }
.gx-card.spy .gx-front { box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 77, 94, .6); }
.gx-card.spy .gx-cap b { color: #ff9aa6; }
.gx-keep { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-top: -4px; white-space: nowrap; }
.gx-keep input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
/* таймер-кольцо */
.gx-ring { position: relative; width: 86px; height: 86px; }
.gx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gx-ring circle { fill: none; stroke-width: 3.5; }
.gx-ring .bg { stroke: rgba(var(--wh), .1); }
.gx-ring .fg { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .5s linear, stroke .3s; }
.gx-ring .fg.low { stroke: var(--red); }
.gx-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
/* места для Шпиона */
.gx-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; padding: 2px; }
.gx-loc { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #1a1430; border: 1px solid var(--line); text-align: left; transition: transform .12s, opacity .2s, filter .2s; }
.gx-loc i { position: absolute; inset: 0; background: center / cover no-repeat; }
.gx-loc span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 11px; line-height: 1.15; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.gx-loc:hover { border-color: var(--line-strong); box-shadow: 0 0 0 2px rgba(var(--wh), .18); }
.gx-loc:hover i { filter: brightness(1.12); }
.gx-loc.x { opacity: .35; filter: grayscale(1); }
.gx-loc.x::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #ff4d5e; transform: rotate(-24deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.gx-locs.guess .gx-loc:not(.x):hover { border-color: #ff4d5e; box-shadow: 0 0 0 2px rgba(255, 77, 94, .5); }
/* игроки */
.gx-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gx-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 8px; border-radius: 14px; background: rgba(var(--wh), .05); border: 1px solid var(--line); text-align: center; min-width: 0; transition: transform .12s, border-color .15s, background .15s; }
.gx-seat b { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.gx-seat.pick:hover { border-color: var(--line-strong); background: rgba(var(--wh), .09); }
.gx-seat.sel { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 18%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 35%, transparent); }
.gx-seat.me::before { content: 'ты'; position: absolute; left: 6px; top: 5px; font-size: 10px; color: var(--muted); }
.gx-seat.dead { opacity: .45; filter: grayscale(1); }
.gx-x { position: absolute; top: 4px; right: 7px; color: #ff4d5e; font-style: normal; font-weight: 700; }
.gx-ok { position: absolute; top: 4px; right: 7px; color: var(--green); font-style: normal; font-weight: 700; }
.gx-none { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(var(--wh), .07); }
.gx-role { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: rgba(var(--wh), .08); white-space: nowrap; }
.gx-role.r-mafia { background: rgba(255, 77, 94, .2); color: #ff9aa6; }
.gx-role.r-civ, .gx-role.r-doctor, .gx-role.r-cop { background: rgba(61, 220, 132, .15); color: #8ef0b8; }
/* Мафия: ночь и день */
.gx-mafia { position: relative; border-radius: 16px; padding: 14px; overflow: hidden; isolation: isolate; transition: background-color .8s; }
.gx-mafia::before { content: ''; position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; opacity: .5; transition: opacity .8s; }
.gx-mafia::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.gx-mafia.night::before { background-image: url(/games-art/mafia-night.webp); }
.gx-mafia.night::after { background: linear-gradient(180deg, rgba(6, 6, 24, .45), rgba(6, 6, 24, .85)); }
.gx-mafia.day::before { background-image: url(/games-art/mafia-day.webp); opacity: .45; }
.gx-mafia.day::after { background: linear-gradient(180deg, rgba(20, 16, 40, .35), rgba(20, 16, 40, .85)); }
.gx-phase { font-size: 22px; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.gx-mafia .gx-seat { background: rgba(10, 8, 26, .55); }
.gx-log { font-size: 13px; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); max-height: 132px; overflow-y: auto; }
/* итог */
.gx-end { display: flex; flex-direction: column; gap: 14px; align-items: stretch; padding: 6px 0; }
.gx-end-h { text-align: center; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; animation: gx-pop .5s cubic-bezier(.3, 1.5, .5, 1); }
.gx-end-h b { font-size: 24px; }
.gx-end-h span { color: var(--muted); }
.gx-end.good .gx-end-h { background: linear-gradient(135deg, rgba(61, 220, 132, .2), rgba(34, 184, 255, .14)); border: 1px solid rgba(61, 220, 132, .35); }
.gx-end.bad .gx-end-h { background: linear-gradient(135deg, rgba(255, 77, 94, .22), rgba(165, 91, 255, .14)); border: 1px solid rgba(255, 77, 94, .35); }
@keyframes gx-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.gx-end-cards { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.gx-mini { width: 150px; aspect-ratio: 3 / 4; border-radius: 14px; background: center / cover no-repeat; position: relative; overflow: hidden; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8); }
.gx-mini span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 8px 8px; text-align: center; font-weight: 650; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.gx-who { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gx-who small { color: var(--muted); }
/* Телефон: блокнот */
.gx-pad { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; position: relative; isolation: isolate; overflow: hidden; }
.gx-pad::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 40, .55), rgba(20, 14, 40, .9)), url(/games-art/tel-cover.webp) center / cover; }
.gx-task { font-size: 17px; font-weight: 600; text-align: center; }
.gx-paper { width: min(440px, 100%); padding: 12px 14px; border-radius: 6px 14px 14px 6px; background: #fbf6e9 repeating-linear-gradient(transparent 0 27px, rgba(80, 110, 170, .22) 27px 28px); color: #1f1a2e; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .7), inset 6px 0 0 #e7a3a3; }
.gx-paper input { width: 100%; background: transparent; border: 0; outline: none; color: #1f1a2e; font-size: 17px; font-family: "Segoe Print", "Comic Sans MS", var(--font); padding: 4px 6px; }
.gx-paper input::placeholder { color: rgba(31, 26, 46, .45); }
.gx-paper.show p { margin: 6px 4px; font-size: 20px; font-weight: 650; font-family: "Segoe Print", "Comic Sans MS", var(--font); text-align: center; }
.gx-paper.show img, .gx-paper.draw .gm-canvas { width: 100%; display: block; border-radius: 4px; }
.gx-paper.draw, .gx-paper:has(img) { padding: 8px; background: #fbf6e9; }
.gx-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gx-sz { display: inline-flex; gap: 4px; margin: 0 4px; }
.gx-sz button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(var(--wh), .07); border: 1px solid var(--line); }
.gx-sz button.on { border-color: var(--text); }
.gx-sz i { display: block; border-radius: 50%; background: var(--text); }
.gx-dots { display: flex; align-items: center; gap: 5px; }
.gx-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--wh), .2); }
.gx-dots i.done { background: var(--green); }
.gx-dots i.cur { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.gx-dots span { margin-left: 6px; font-size: 12px; color: var(--muted); }
.gx-sent { font-size: 18px; padding: 18px; }
.gx-prog { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gx-prog > span { opacity: .4; transition: opacity .3s; }
.gx-prog > span.done { opacity: 1; filter: drop-shadow(0 0 6px rgba(61, 220, 132, .7)); }
.gx-prog em { font-style: normal; font-size: 13px; color: var(--muted); margin: 0 6px; }
.gx-rev { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; }
.gx-strip { display: flex; align-items: center; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px; }
.gx-strip .gx-step { width: 130px; flex: none; }
.gx-arr { color: var(--muted); flex: none; }
.gx-step { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; background: #fbf6e9; color: #1f1a2e; }
.gx-step small { color: #7a6f95; font-size: 11px; }
.gx-step p { margin: 0; font-weight: 650; font-family: "Segoe Print", "Comic Sans MS", var(--font); font-size: 13px; overflow-wrap: anywhere; }
.gx-step img { width: 100%; border-radius: 4px; display: block; }
.gx-step.big { width: min(460px, 100%); padding: 12px; animation: gx-pop .35s ease-out; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .8); }
.gx-step.big small { font-size: 13px; }
.gx-step.big p { font-size: 22px; text-align: center; padding: 16px 6px; }
@media (max-width: 760px) {
  .gx-spy { grid-template-columns: 1fr; }
  .gx-card { width: 160px; }
  .gx-locs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .gx-card-in, .gx-end-h, .gx-step.big { transition: none; animation: none; } }/* Шпион «С ведущим»: переключатель режима в лобби и экран, где ведущий загадывает */
.gx-mode { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gx-mode small { color: var(--muted); font-size: 12px; max-width: 420px; }
.gx-setup { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.gx-setup-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.gx-setup-img { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gx-setup-img img { width: 200px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8); }
.gx-up { width: 200px; aspect-ratio: 3 / 4; border-radius: 14px; border: 2px dashed var(--line-strong); display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--muted); background: rgba(var(--wh), .03); line-height: 1.5; padding: 10px; }
.gx-up:hover { border-color: var(--blue); color: var(--text); }
.gx-up small { font-size: 11px; }
.gx-setup-f { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gx-setup-f input#gx-word { width: 100%; font-size: 17px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--in), .6); border: 1px solid var(--line-strong); }
.gx-l > .gx-mini { width: 200px; }
@media (max-width: 760px) { .gx-setup-row { grid-template-columns: 1fr; } .gx-setup-img { align-items: flex-start; } }
/* ---------- 38.60: «Дурак» (durak.js): стол с игроками по кругу, рука веером ---------- */
.gm-box > .dk { width: 100%; }
.dk { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 54px 8px 8px; border-radius: 16px; background: radial-gradient(120% 80% at 50% 40%, #102a20, #070d12 70%); }
/* сукно: овальный стол, картинка растягивается под размер панели */
.dk-felt { position: relative; height: 290px; margin: 0 4px; transition: box-shadow .3s; }
.dk-felt.taking { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 0 2px rgba(255, 77, 94, .45), 0 0 40px -6px rgba(255, 77, 94, .45); }
/* игроки */
.dk-seat { position: absolute; z-index: 2; width: 100px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-align: center; transition: opacity .3s; }
.dk-hold { position: relative; width: 60px; height: 30px; margin-bottom: -6px; }
.dk-hold .dk-c { position: absolute; left: 19px; top: 0; width: 22px; height: 32px; border-width: 1px; border-radius: 3px; transform: rotate(var(--a)); transform-origin: 50% 130%; box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.dk-who { position: relative; z-index: 1; border-radius: 50%; transition: box-shadow .3s; }
.dk-who .av { box-shadow: 0 0 0 3px rgba(4, 14, 10, .9); }
.dk-seat.att .dk-who .av { box-shadow: 0 0 0 3px #ffb020, 0 0 18px rgba(255, 176, 32, .7); }
.dk-seat.def .dk-who .av { box-shadow: 0 0 0 3px #22e6ff, 0 0 18px rgba(34, 230, 255, .75); }
.dk-n { position: absolute; right: -8px; bottom: -4px; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 5px; border-radius: 99px; background: #f4efe4; color: #1d1b2b; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.dk-seat > b { font-size: 12px; max-width: 100%; padding: 1px 8px; border-radius: 99px; background: rgba(4, 10, 14, .72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-seat > small { font-size: 11px; color: rgba(255, 255, 255, .85); white-space: nowrap; text-shadow: 0 1px 4px #000; }
.dk-seat.out { opacity: .5; }
.dk-seat.win { opacity: .75; }
/* карта */
.dk-c { position: relative; display: inline-block; vertical-align: top; flex: none; width: 56px; height: 80px; padding: 0; border: 0; background: none; color: #1d1b2b; font-family: Georgia, "Times New Roman", serif; }
.dk-f { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, #fffdf8, #efe8d8); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .22s cubic-bezier(.2, .9, .3, 1.25), box-shadow .2s, filter .2s; }
.dk-c.red { color: #c8102e; }
.dk-f i:not(.art) { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; font-style: normal; font-weight: 700; font-size: 13px; line-height: 1; }
.dk-f i em { font-style: normal; font-size: 12px; }
.dk-f .tl { left: 4px; top: 4px; }
.dk-f .br { right: 4px; bottom: 4px; transform: rotate(180deg); }
.dk-f b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 400; }
.dk-c.ace .dk-f b { font-size: 38px; }
/* картинки (валет, дама, король): тонкая двойная рамка, буква с засечками и масть */
.dk-c.face .dk-f::before { content: ''; position: absolute; z-index: 2; pointer-events: none; inset: 13% 17%; border: 1px solid currentColor; border-radius: 3px; opacity: .45; box-shadow: inset 0 0 0 2px #fbf7ee, inset 0 0 0 3px rgba(0, 0, 0, .18); }
.dk-c.face .dk-f b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.dk-c.face .dk-f b u { text-decoration: none; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.dk-c.face .dk-f b s { text-decoration: none; font-size: 16px; }.dk-c.back { border: 2px solid #f4efe4; border-radius: 7px; background: #2a1650 url(/games-art/durak-back.webp) center / cover; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .7); }
/* колода с козырем и бито */
.dk-deck { position: absolute; left: 11%; top: 82%; width: 110px; height: 90px; transform: translateY(-50%) rotate(-8deg); }
/* козырь лежит поперёк под колодой и торчит вправо лицом вверх, сверху — стопка рубашек толщиной по числу карт */
.dk-deck .trump { position: absolute; left: 38px; top: 2px; transform: rotate(90deg); }
.dk-stack { position: absolute; left: 0; top: 0; width: 56px; height: 80px; }
.dk-stack .dk-c { position: absolute; left: 0; top: 0; }
.dk-stack .l1 { transform: translate(-2px, -2px); } .dk-stack .l2 { transform: translate(-4px, -4px); } .dk-stack .l3 { transform: translate(-6px, -6px); }

.dk-deck em, .dk-disc em { position: absolute; left: -10px; right: -10px; bottom: -20px; text-align: center; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .85); white-space: nowrap; text-shadow: 0 1px 3px #000; }
.dk-deck em span { font-size: 15px; color: #fff; }
.dk-deck em span.red { color: #ff6b7d; }
.dk-deck.empty { display: grid; place-items: center; width: 70px; }
.dk-ts { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: rgba(255, 253, 248, .94); color: #1d1b2b; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .8); }
.dk-ts.red { color: #c8102e; }
.dk-disc { position: absolute; right: 12%; top: 82%; width: 60px; height: 84px; transform: translateY(-50%) rotate(8deg); }
.dk-disc .dk-c { position: absolute; left: 2px; top: 0; }
.dk-disc .d1 { transform: rotate(-4deg); }
.dk-disc .d2 { transform: rotate(3deg) translate(2px, -2px); }
.dk-disc .d3 { transform: rotate(-1deg) translate(-2px, -4px); }
/* стол: пары «атака — защита» */
.dk-table { position: absolute; left: 22%; right: 22%; top: 27%; bottom: 24%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px 12px; }

.dk-pair { position: relative; width: 70px; height: 98px; }
.dk-pair .dd { position: absolute; left: 13px; top: 17px; transform: rotate(10deg); }
.dk-pair .tgt { cursor: pointer; }
.dk-pair .tgt .dk-f { box-shadow: 0 0 0 3px #22e6ff, 0 0 18px rgba(34, 230, 255, .8); animation: dk-pulse 1.1s ease-in-out infinite alternate; }
@keyframes dk-pulse { to { box-shadow: 0 0 0 3px #22e6ff, 0 0 4px rgba(34, 230, 255, .4); } }
/* подсказка, время на ход, кнопки */
.dk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: 4px; min-height: 40px; }
.dk-say { font-size: 15px; color: #fff; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.dk-say.me { font-weight: 700; color: #7ff3ff; }
.dk-bar::after { content: ''; flex-basis: 100%; order: 2; } .dk-tm { order: 3; width: 220px; max-width: 70%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.dk-tm i { display: block; height: 100%; width: 100%; background: var(--cyan); transition: width .25s linear, background .3s; }
.dk-tm i.low { background: var(--red); }
/* моя рука веером. Поворачивается и стоит на месте кнопка, а двигается только рисунок карты:
   наведение и выбор «вытягивают» карту из веера, и на стыке карт ничего не дрожит */
.dk-mine { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dk-hand { container-type: inline-size; width: 100%; display: flex; justify-content: center; padding: 40px 20px 6px; }
.dk-hand .dk-c { width: 70px; height: 100px; transform: rotate(var(--a, 0deg)) translateY(var(--y, 0px)); transform-origin: 50% 140%; }
.dk-hand .dk-c + .dk-c { margin-left: min(-16px, calc((100cqw - 40px - var(--n) * 70px) / max(var(--n) - 1, 1))); }
.dk-hand .dk-c .dk-f b { font-size: 32px; }
.dk-hand .dk-c.ace .dk-f b { font-size: 46px; }
.dk-hand .dk-c.face .dk-f b u { font-size: 30px; }
.dk-hand .dk-c.face .dk-f b s { font-size: 19px; }
.dk-hand .dk-c.ok { cursor: pointer; }
.dk-hand .dk-c.ok:hover { z-index: 3; }
.dk-hand .dk-c.ok:hover .dk-f { transform: translateY(-20px); box-shadow: 0 16px 24px -10px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(0, 0, 0, .14); }
.dk-hand .dk-c.sel { z-index: 4; }
.dk-hand .dk-c.sel .dk-f { transform: translateY(-46px) scale(1.08); box-shadow: 0 0 0 3px #22e6ff, 0 0 26px rgba(34, 230, 255, .6), 0 20px 28px -10px rgba(0, 0, 0, .85); }
.dk-hand .dk-c.no .dk-f { filter: brightness(.62) saturate(.75); }
.dk-hand .dk-c.tr .dk-f::after { content: ''; position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 2px; height: 3px; border-radius: 2px; background: #e0b84a; }
.dk-hand .dk-c.nw .dk-f { animation: dk-draw .5s cubic-bezier(.2, .8, .3, 1) backwards; }
@keyframes dk-draw { from { transform: translate(-140px, -160px) rotate(-25deg) scale(.6); opacity: 0; } }
.dk-hand .dk-c:focus-visible { outline: none; }
.dk-hand .dk-c:focus-visible .dk-f { box-shadow: 0 0 0 3px var(--blue); }
.dk-me { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 13px; }
.dk-me small { color: #7ff3ff; font-size: 12px; }
.dk-log { font-size: 12px; color: rgba(255, 255, 255, .6); text-align: center; display: flex; flex-direction: column; gap: 1px; }
/* итог */
.dk-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.dk-pl { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(var(--wh), .05); border: 1px solid var(--line); }
.dk-pl b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-pl span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dk-pl.lose { border-color: rgba(255, 77, 94, .5); background: rgba(255, 77, 94, .12); }
.dk-pl.lose span { color: #ff9aa6; }
@media (max-width: 760px) {
  .dk { padding: 50px 2px 8px; }
  .dk-felt { height: 290px; margin: 0; }
  .dk-seat { width: 72px; }
  .dk-hold { transform: scale(.8); margin-bottom: -10px; }
  .dk-seat > small { font-size: 10px; }
  .dk-c { width: 46px; height: 66px; }
  .dk-f b { font-size: 22px; }
  .dk-f i:not(.art) { font-size: 11px; }
  .dk-f i em { font-size: 10px; }
  .dk-pair { width: 60px; height: 84px; }
  .dk-pair .dd { left: 12px; top: 16px; }
  .dk-deck { left: 3%; width: 84px; }
  .dk-deck .trump { left: 24px; top: 0; }
  .dk-disc { display: none; }
  .dk-table { left: 26%; right: 6%; }
  .dk-hand { padding: 40px 8px 8px; }
  .dk-hand .dk-c { width: 62px; height: 88px; }
  .dk-hand .dk-c + .dk-c { margin-left: min(-12px, calc((100cqw - 16px - var(--n) * 62px) / max(var(--n) - 1, 1))); }
  .dk-hand .dk-c .dk-f b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .dk-f, .dk-hand .dk-c.nw .dk-f, .dk-pair .tgt .dk-f { transition: none; animation: none; } }@media (max-width: 760px) { .dk-c.face .dk-f b u { font-size: 20px; } .dk-c.face .dk-f b s { font-size: 11px; } .dk-hand .dk-c.face .dk-f b u { font-size: 27px; } .dk-hand .dk-c.face .dk-f b s { font-size: 14px; } .dk-c.ace .dk-f b { font-size: 32px; } .dk-hand .dk-c.ace .dk-f b { font-size: 40px; } }
.dk-c.face .dk-f b u { font-size: 24px; } .dk-c.face .dk-f b s { font-size: 13px; }
.dk-c.face .dk-f .art { position: absolute; z-index: 1; inset: 13% 17%; border-radius: 3px; background: #f6f0e1 center / cover no-repeat; }
/* 38.62: летящие копии карт (берёт, бито, добор) и показ козыря в начале партии */
.dk-ghost { position: fixed; z-index: 9000; pointer-events: none; }
.dk-ghost > .dk-c { width: 100% !important; height: 100% !important; transform: none !important; margin: 0 !important; }
.dk-intro { position: fixed; z-index: 8000; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, rgba(4, 10, 8, .94) 55%, rgba(4, 10, 8, .7)); color: #fff; animation: dk-fade .3s ease-out; pointer-events: none; }
.dk-intro.out { opacity: 0; transition: opacity .45s; }
.dk-intro > div { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: opacity .35s, transform .35s; }
.dk-intro b { font-size: 20px; text-shadow: 0 2px 10px #000; }
.dk-intro b .red { color: #ff6b7d; }
.dk-intro small { font-size: 13px; opacity: .8; margin-top: -6px; }
.dk-c.big { width: 96px; height: 136px; }
.dk-c.big .dk-f b { font-size: 44px; }
.dk-c.big.face .dk-f b u { font-size: 40px; }
.dk-flip { position: relative; width: 96px; height: 136px; perspective: 700px; }
.dk-flip > .dk-c { position: absolute; inset: 0; backface-visibility: hidden; animation: dk-flip-a 1s .25s cubic-bezier(.3, .7, .2, 1) both; }
.dk-flip > .dk-c.back { animation-name: dk-flip-b; }
@keyframes dk-flip-a { from { transform: rotateY(180deg); } to { transform: rotateY(0); } }
@keyframes dk-flip-b { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
.dk-in2 { opacity: 0; transform: scale(.9); flex-direction: row !important; flex-wrap: wrap; justify-content: center; max-width: 300px; }
.dk-in2 b, .dk-in2 small { flex-basis: 100%; }
.dk-intro.s2 .dk-in1 { opacity: 0; transform: scale(.85) translateY(-20px); }
.dk-intro.s2 .dk-in2 { opacity: 1; transform: none; }
.dk-in2 .dk-c.big { animation: dk-glow 1s ease-in-out infinite alternate; border-radius: 8px; }
@keyframes dk-glow { from { filter: drop-shadow(0 0 2px rgba(255, 200, 80, .4)); } to { filter: drop-shadow(0 0 16px rgba(255, 200, 80, .9)); } }
@keyframes dk-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dk-flip > .dk-c, .dk-in2 .dk-c.big { animation: none; } .dk-flip > .dk-c.back { display: none; } }/* 38.63: броски в игроков за столом (3D-иконки games-art/gfx-*.webp) */
.dk-felt .dk-seat { cursor: pointer; }
.dk-seat.hit .dk-who { animation: gfx-hit .45s; }
@keyframes gfx-hit { 20% { transform: translate(-4px, 2px) rotate(-6deg); } 50% { transform: translate(4px, -2px) rotate(5deg); } 80% { transform: translate(-2px, 1px); } }
.gfx { position: fixed; z-index: 9500; pointer-events: none; }
.gfx.fly { font-size: 34px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.gfx.stamp { font-size: 38px; transform: translate(-50%, -50%); animation: gfx-stamp 2.6s forwards; }
@keyframes gfx-stamp { 0% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1) rotate(-12deg); opacity: 1; } 80% { opacity: 1; } to { opacity: 0; } }
.gfx-menu { position: fixed; z-index: 9600; width: 250px; padding: 10px; border-radius: 14px; background: var(--panel-solid, #1c1838); border: 1px solid var(--line-strong, rgba(255, 255, 255, .2)); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); color: var(--text, #fff); animation: dk-fade .15s; }
.gfx-h { font-size: 12px; color: var(--muted); margin: 0 2px 6px; }
.gfx-its { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.gfx-its button { font-size: 22px; height: 38px; border-radius: 10px; background: rgba(var(--wh), .06); border: 1px solid transparent; }
.gfx-its button:hover { background: rgba(var(--wh), .14); border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .gfx, .gfx * { animation-duration: .01s !important; } }.gfx-ic { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.gfx.fly { width: 48px; height: 48px; font-size: 0; }
.gfx.stamp { width: 56px; height: 56px; font-size: 0; }
.gfx.stamp.cheers { width: 96px; display: flex; gap: 2px; }
.gfx.stamp.cheers .gfx-ic { width: 46px; animation: gfx-clink .6s .1s ease-in-out 2 alternate; }
.gfx.stamp.cheers .gfx-ic:last-child { transform: scaleX(-1); animation-name: gfx-clink2; }
@keyframes gfx-clink { to { transform: rotate(18deg) translateX(6px); } }
@keyframes gfx-clink2 { to { transform: scaleX(-1) rotate(18deg) translateX(6px); } }
.gfx-its button { display: grid; place-items: center; padding: 3px; }
.gfx-its button .gfx-ic { width: 30px; height: 30px; transition: transform .15s; }
.gfx-its button:hover .gfx-ic { transform: scale(1.18) rotate(-8deg); }
.gfx-menu { width: 260px; }
/* 38.66: помидор и яйцо сплющиваются и сползают; букет ложится сбоку; монетка крутится и тает */
.gfx.smash { width: 0; height: 0; }
.gfx.smash span { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; animation: gfx-smash .5s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes gfx-smash { 0% { transform: scale(1.1, .9); } 35% { transform: scale(1.6, .45) translateY(6px); opacity: 1; } 100% { transform: scale(1.9, .3) translateY(8px); opacity: 0; } }
.gfx.hand { width: 58px; height: 58px; transform: translate(-50%, -50%) rotate(-18deg); animation: gfx-hand 3.2s ease-in-out forwards; transform-origin: 50% 90%; }
.gfx.hand.r { transform: translate(-50%, -50%) rotate(18deg); animation-name: gfx-hand-r; }
@keyframes gfx-hand { 0% { opacity: 1; } 15% { transform: translate(-50%, -50%) rotate(-12deg); } 30% { transform: translate(-50%, -50%) rotate(-20deg); } 45% { transform: translate(-50%, -50%) rotate(-14deg); } 85% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-18deg); opacity: 0; } }
@keyframes gfx-hand-r { 0% { opacity: 1; } 15% { transform: translate(-50%, -50%) rotate(12deg); } 30% { transform: translate(-50%, -50%) rotate(20deg); } 45% { transform: translate(-50%, -50%) rotate(14deg); } 85% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(18deg); opacity: 0; } }
.gfx.coin { width: 40px; height: 40px; transform: translate(-50%, -50%); animation: gfx-coin 2.2s ease-out forwards; }
.gfx.coin .gfx-ic { animation: gfx-coin-spin .7s linear 2, gfx-coin-shine .35s .5s ease-in-out 3 alternate; }
@keyframes gfx-coin { 0% { transform: translate(-50%, -50%) scale(.9); } 20% { transform: translate(-50%, -80%) scale(1.15); } 75% { opacity: 1; transform: translate(-50%, -110%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -130%) scale(.9); } }
@keyframes gfx-coin-spin { to { transform: rotateY(360deg); } }
@keyframes gfx-coin-shine { to { filter: brightness(1.45) drop-shadow(0 0 8px rgba(255, 215, 90, .9)); } }/* 38.67: клякса от помидора или яйца — внутри аватарки, капли стекают медленно и с ускорением */
.gfx-splat { position: fixed; z-index: 9400; overflow: hidden; pointer-events: none; transition: opacity .7s; }
.gfx-splat.out { opacity: 0; }
.gfx-splat svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.gfx-splat .sp { transform-origin: 50% 40%; animation: gfx-sp .22s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes gfx-sp { from { transform: scale(.3); opacity: .4; } }
.gfx-splat .dr { transform-box: fill-box; transform-origin: 50% 0; animation: gfx-dr 2.6s cubic-bezier(.55, 0, .75, .4) backwards; }
@keyframes gfx-dr { from { transform: scaleY(.15); opacity: 0; } 12% { opacity: 1; } to { transform: scaleY(1); } }
.gfx-splat.egg svg { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
@media (prefers-reduced-motion: reduce) { .gfx-splat .sp, .gfx-splat .dr { animation: none; } }/* 38.68: стол в стиле Kitsy — овал в перспективе (ближний край бортика толще) из текстуры сукна, тёмный бортик с неоновой линией, фиолетовый полумрак.
   Рисуется стилями (не растянутой картинкой), поэтому держит форму при любой ширине панели */
.dk { background: radial-gradient(ellipse 70% 60% at 50% 35%, #2a1d52, #0b0820 75%); }
.dk-felt { border-radius: 50%; border-style: solid; border-color: transparent; border-width: 9px 14px 24px;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255, 240, 200, .16), rgba(0, 0, 0, 0) 70%) padding-box, linear-gradient(rgba(10, 40, 40, .25), rgba(10, 40, 40, .25)) padding-box, url(/games-art/tex-felt.webp) center / 300px padding-box, linear-gradient(180deg, #1a1530, #2e2748 60%, #120f22) border-box;
  box-shadow: inset 0 0 0 2px rgba(34, 230, 255, .55), inset 0 0 18px rgba(34, 230, 255, .25), inset 0 14px 40px rgba(0, 0, 0, .55), 0 0 26px -6px rgba(165, 91, 255, .6), 0 30px 40px -18px rgba(0, 0, 0, .95); }
.dk-felt.taking { box-shadow: inset 0 0 0 2px rgba(255, 77, 94, .8), inset 0 0 22px rgba(255, 77, 94, .35), inset 0 10px 40px rgba(0, 0, 0, .55), 0 0 30px -4px rgba(255, 77, 94, .55), 0 22px 50px -10px rgba(0, 0, 0, .9); }
@media (max-width: 760px) { .dk-felt { border-width: 7px 10px 16px; } }
/* ---------- 38.69: «Покер» (poker-ui.js) — стол и места общие с «Дураком» ---------- */
.dk.pk .dk-felt { height: 300px; }
.pk-seat { width: 104px; }
.pk-seat.fold .dk-who, .pk-seat.fold > b { opacity: .45; filter: grayscale(.7); }
.pk-seat.out { opacity: .4; }
.pk-seat.win .dk-who .av { box-shadow: 0 0 0 3px #ffd75e, 0 0 20px rgba(255, 215, 94, .8); }
.pk-seat .pk-st { display: flex; justify-content: center; min-height: 18px; }
.pk-seat .pk-act { color: #fff; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.pk-seat.win .pk-act { color: #ffd75e; }
.pk-d { position: absolute; left: -9px; top: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #1d1b2b; background: radial-gradient(circle at 35% 30%, #fff, #d9d4c7); box-shadow: 0 2px 6px rgba(0, 0, 0, .6), inset 0 0 0 2px #b9b2a1; z-index: 2; }
.pk-meinfo .pk-d { position: static; }
.pk-show { display: flex; gap: 2px; margin-bottom: -2px; }
.pk-show .dk-c { width: 34px; height: 48px; }
.pk-show .dk-f b { font-size: 16px; }
.pk-show .dk-f i:not(.art) { font-size: 9px; }
.pk-show .dk-f i em { font-size: 8px; }
.pk-show .dk-c.face .dk-f b u { font-size: 14px; } .pk-show .dk-c.face .dk-f b s { font-size: 8px; }
.pk-show .dk-c.ace .dk-f b { font-size: 22px; }
/* фишки: кружок с белыми «насечками» по краю, стопкой */
.pk-chips { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.pk-stk { position: relative; width: 18px; height: calc(18px + (var(--k, 0)) * 1px); display: inline-block; }
.pk-stk i { position: absolute; left: 0; bottom: calc(var(--i) * 3px); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0 38%, #fff 39% 45%, var(--c) 46% 60%, transparent 61%), repeating-conic-gradient(var(--c) 0 25deg, #f4f1ea 25deg 45deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.pk-chips.sm { font-size: 11px; font-weight: 600; gap: 3px; } .pk-chips.sm .pk-stk, .pk-chips.sm .pk-stk i { width: 13px; height: 13px; } .pk-chips.sm .pk-stk i { bottom: calc(var(--i) * 2px); }
.pk-chips.big { font-size: 0; } .pk-chips.big .pk-stk { margin-right: 6px; }
.pk-stk:has(i:nth-child(2)) { height: 21px; } .pk-stk:has(i:nth-child(3)) { height: 24px; } .pk-stk:has(i:nth-child(4)) { height: 27px; } .pk-stk:has(i:nth-child(5)) { height: 30px; }
.pk-bet { position: absolute; z-index: 1; transform: translate(-50%, -50%); padding: 2px 8px 2px 4px; border-radius: 99px; background: rgba(0, 0, 0, .35); }
/* центр стола: банк и пять карт */
.pk-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pk-pot { display: flex; align-items: flex-end; gap: 4px; color: #fff; font-size: 14px; font-weight: 700; text-shadow: 0 1px 4px #000; min-height: 24px; }
.pk-board { display: flex; gap: 6px; }
.pk-slot { width: 56px; height: 80px; border-radius: 8px; border: 1.5px dashed rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .12); }
.pk-board .dk-c.flip .dk-f { animation: pk-flip .5s cubic-bezier(.3, .7, .3, 1) backwards; }
@keyframes pk-flip { from { transform: rotateY(90deg) translateY(-10px); filter: brightness(.4); } }
.dk-c.hi .dk-f { box-shadow: 0 0 0 2px #ffd75e, 0 0 14px rgba(255, 215, 94, .75), 0 6px 14px -6px rgba(0, 0, 0, .8); }
.pk-win { padding: 6px 14px; border-radius: 12px; background: rgba(8, 6, 20, .82); border: 1px solid rgba(255, 215, 94, .45); color: #fff; font-size: 13px; text-align: center; animation: gx-pop .4s ease-out; max-width: 420px; }
.pk-win b { color: #ffd75e; }
.pk-win small { color: rgba(255, 255, 255, .6); }
/* мои карты и подсказка */
.pk-me { gap: 2px; }
.pk-me .dk-hand { padding-top: 14px; min-height: 0; }
.pk-me .dk-hand .dk-c + .dk-c { margin-left: 8px; }
.pk-hole.gone .dk-c { opacity: .45; filter: grayscale(.6); }
.pk-meinfo { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 13px; }
.pk-plus { color: #ffd75e; font-weight: 700; }
.pk-hintrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.pk-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; }
.pk-hn { padding: 4px 12px; border-radius: 99px; background: rgba(255, 215, 94, .14); border: 1px solid rgba(255, 215, 94, .45); color: #ffe7a1; font-weight: 600; font-size: 13px; }
.pk-dr { padding: 3px 10px; border-radius: 99px; background: rgba(34, 230, 255, .1); border: 1px solid rgba(34, 230, 255, .35); color: #9ff3ff; font-size: 12px; }
/* кнопки хода */
.pk-acts { gap: 8px; }
.pk-raise { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pk-pre { display: flex; gap: 4px; }
.pk-raise input[type=range] { width: 160px; accent-color: #22e6ff; }
.pk-lv { opacity: .7; }
/* шпаргалка */
.pk-cheat { max-width: 560px; }
.pk-cs { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; }
.pk-cs + .pk-cs { margin-top: 2px; }
.pk-cs.on { border-color: rgba(255, 215, 94, .6); background: rgba(255, 215, 94, .08); }
.pk-cs em { font-style: normal; font-size: 11px; font-weight: 600; color: #ffd75e; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 215, 94, .15); }
.pk-cn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-cn small { color: var(--muted); font-size: 12px; }
.pk-cc { display: flex; gap: 2px; }
.pk-cc .dk-c { width: 30px; height: 43px; }
.pk-cc .dk-f b { font-size: 14px; } .pk-cc .dk-f i:not(.art) { font-size: 8px; } .pk-cc .dk-f i em { font-size: 7px; }
.pk-cc .dk-c.face .dk-f b u { font-size: 12px; } .pk-cc .dk-c.face .dk-f b s { font-size: 7px; } .pk-cc .dk-c.ace .dk-f b { font-size: 18px; }
@media (max-width: 760px) {
  .dk.pk .dk-felt { height: 300px; }
  .pk-seat { width: 74px; }
  .pk-board { gap: 3px; }
  .pk-slot, .pk-board .dk-c { width: 40px; height: 58px; }
  .pk-board .dk-f b { font-size: 18px; }
  .pk-show .dk-c { width: 26px; height: 37px; }
  .pk-raise input[type=range] { width: 120px; }
  .pk-pre .btn { padding: 4px 7px; font-size: 11px; }
  .pk-cc .dk-c { width: 24px; height: 35px; }
}
@media (prefers-reduced-motion: reduce) { .pk-board .dk-c.flip .dk-f { animation: none; } }/* 38.69: нижний ряд — подсказка слева, мои карты в центре, мои фишки справа */
.pk-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 2px; }
.pk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; text-align: right; }
.pk-side.r { align-items: flex-start; text-align: left; }
.pk-side .pk-hn { white-space: normal; }
.pk-me .dk-hand { padding: 10px 0 4px; }
.pk-me .dk-hand .dk-c { width: 64px; height: 92px; }
.pk-mid { transform: translate(-50%, -38%); }
.pk-seat .pk-act { max-width: 120px; white-space: nowrap; }
@media (max-width: 760px) {
  .pk-row { grid-template-columns: 1fr; justify-items: center; gap: 6px; }
  .pk-row .pk-me { order: -1; }
  .pk-side, .pk-side.r { align-items: center; text-align: center; }
}.pk-me .dk-hand { container-type: normal; width: auto; justify-content: center; }
@media (max-width: 760px) {
  .dk.pk.dk-n4 .pk-seat, .dk.pk.dk-n5 .pk-seat, .dk.pk.dk-n6 .pk-seat, .dk.pk.dk-n7 .pk-seat { width: 60px; }
  .dk.pk.dk-n4 .pk-seat .av.md, .dk.pk.dk-n5 .pk-seat .av.md, .dk.pk.dk-n6 .pk-seat .av.md, .dk.pk.dk-n7 .pk-seat .av.md { width: 34px; height: 34px; font-size: 15px; }
  .dk.pk.dk-n5 .pk-seat .dk-hold, .dk.pk.dk-n6 .pk-seat .dk-hold, .dk.pk.dk-n7 .pk-seat .dk-hold { transform: scale(.65); margin-bottom: -14px; }
  .dk.pk.dk-n5 .pk-seat .pk-act, .dk.pk.dk-n6 .pk-seat .pk-act, .dk.pk.dk-n7 .pk-seat .pk-act { font-size: 9px; max-width: 64px; }
  .dk.pk .pk-seat > b { font-size: 11px; }
  .dk.pk .pk-bet { padding: 1px 6px 1px 3px; }
  .dk.pk .pk-bet .pk-chips { font-size: 11px; }
}/* 38.70: понятная панель хода — слева Fold и Call/Check, справа отдельный блок ставки */
.pk-bar { gap: 8px; }
.pk-bar .dk-say b { color: #fff; }
.pk-panel { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pk-main { display: flex; gap: 8px; align-items: stretch; }
.pk-main .btn, .pk-go { min-width: 108px; min-height: 48px; font-size: 15px; font-weight: 700; letter-spacing: .02em; border-radius: 12px; }
.pk-main .btn b, .pk-go b { margin-left: 6px; }
.pk-fold { background: rgba(255, 77, 94, .14); border: 1px solid rgba(255, 77, 94, .55); color: #ffb3bb; }
.pk-fold:hover { background: rgba(255, 77, 94, .28); }
.pk-call { background: rgba(61, 220, 132, .16); border: 1px solid rgba(61, 220, 132, .6); color: #b9f5d3; }
.pk-call:hover { background: rgba(61, 220, 132, .28); }
.pk-raise { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "rt range go" "pre pre go"; align-items: center; gap: 6px 12px; padding: 8px 10px 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 215, 94, .35); }
.pk-raise:has(> .pk-go:only-child) { display: flex; padding: 0; border: 0; background: none; }
.pk-rt { grid-area: rt; display: flex; flex-direction: column; line-height: 1.1; }
.pk-rt span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pk-rt b { font-size: 20px; color: #ffd75e; font-variant-numeric: tabular-nums; min-width: 56px; }
.pk-raise input[type=range] { grid-area: range; width: 100%; min-width: 150px; --c1: #ffd75e; accent-color: initial; }
.pk-raise input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 215, 94, .35), 0 2px 8px rgba(0, 0, 0, .5); }
.pk-pre { grid-area: pre; display: flex; gap: 4px; }
.pk-pre .btn { flex: 1; }
.pk-go { grid-area: go; background: linear-gradient(135deg, #ffcf4a, #f0a020); color: #2a1a00; border: 0; box-shadow: 0 6px 18px -6px rgba(255, 190, 60, .7); }
.pk-go:hover { filter: brightness(1.07); }
.pk-force { position: absolute; right: 16px; top: 10px; z-index: 3; opacity: .75; }
.pk-force:hover { opacity: 1; }
.pk-win .btn { margin-top: 6px; }
.pk-b { position: absolute; right: -12px; top: -7px; padding: 1px 5px; border-radius: 6px; font-style: normal; font-size: 9px; font-weight: 800; color: #fff; background: #5b3fd0; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); z-index: 2; }
@media (max-width: 760px) {
  .pk-panel { flex-direction: column; align-items: stretch; width: 100%; }
  .pk-main .btn { flex: 1; min-width: 0; }
  .pk-raise { grid-template-columns: auto 1fr; grid-template-areas: "rt range" "pre pre" "go go"; }
  .pk-raise input[type=range] { min-width: 0; }
  .pk-force { right: 10px; top: 6px; }
}/* 38.70: блок ставки — в одну строку, чтобы панель не вырастала */
.dk.pk .dk-felt { height: 280px; }
.pk-raise { grid-template-columns: auto minmax(110px, 1fr) auto auto; grid-template-areas: "rt range pre go"; padding: 6px 8px 6px 12px; }
.pk-pre .btn { white-space: nowrap; padding: 5px 8px; font-size: 12px; }
.pk-main .btn, .pk-go { min-height: 44px; }
.pk-rt b { font-size: 18px; }
@media (max-width: 760px) { .pk-raise { grid-template-columns: auto 1fr; grid-template-areas: "rt range" "pre pre" "go go"; } }@media (min-width: 761px) {
  .pk-panel { flex-wrap: nowrap; width: 100%; }
  .pk-main .btn { min-width: 86px; padding: 0 12px; }
  .pk-raise { flex: 1 1 auto; min-width: 0; grid-template-columns: auto minmax(70px, 1fr) auto auto; gap: 6px 8px; }
  .pk-rt b { min-width: 44px; }
  .pk-go { min-width: 96px; padding: 0 12px; }
  .pk-pre { gap: 3px; }
  .pk-pre .btn { padding: 5px 6px; }
}.pk-force { top: auto; bottom: 0; right: 0; }
@media (max-width: 760px) { .pk-force { top: auto; bottom: -4px; right: 0; font-size: 11px; } }
