@font-face { font-family: Onest; src: url(OnestVariable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
/* Облик «Котомодерн»: шалфейно-бирюзовый фон, кремовые плашки, чёрные кнопки, тонкие линии, прямые углы. Шрифт только Onest.
   Правила ux-2: основной текст от 16 px, вспомогательный от 14 px, зоны нажатия от 44 px; вспомогательный текст только на бумаге (плашке), не на зелёном фоне. */
:root {
  --bg: #84baa9; --panel: #f1fbe8; --panel2: #e2f1d8; --panel3: #cfe6c6; --text: #080b09; --muted: rgba(8, 11, 9, .68); --sub: rgba(8, 11, 9, .86); --line: rgba(8, 11, 9, .28);
  --teal: #0097a3; --mint: #6ff0d0; --btn: #000; --btn-text: #f1fbe8; --btn-hover: #1c2a25; --inset: rgba(8, 11, 9, .07);
  --ok: #0b6b49; --okbg: #6ff0d0; --bad: #a3201a; --badbg: #ffd6cf; --warn: #6b4300; --warnbg: #ffe6a3; --media: #0b1411;
  --ease: cubic-bezier(.25, .8, .25, 1); --spring: cubic-bezier(.2, .9, .3, 1.12); --in: cubic-bezier(.5, 0, .75, 0);
  --r: 2px; --bar: 0px; --z: 1; color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1815; --panel: #14241f; --panel2: #101e19; --panel3: #19392f; --text: #dceae2; --muted: rgba(220, 234, 226, .72); --sub: rgba(220, 234, 226, .86); --line: rgba(220, 234, 226, .26);
  --teal: #4795a6; --mint: #9dddbb; --btn: #dceae2; --btn-text: #0b1411; --btn-hover: #fff; --inset: rgba(0, 0, 0, .25);
  --ok: #9dddbb; --okbg: rgba(157, 221, 187, .16); --bad: #ff9b8f; --badbg: rgba(255, 98, 87, .16); --warn: #f2c66d; --warnbg: rgba(242, 176, 69, .16); --media: #060d0b; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 16px/1.5 Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; transition: background .35s var(--ease), color .35s var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--btn); color: var(--btn-text); padding: 12px 16px; z-index: 100; min-height: 44px; display: inline-flex; align-items: center; }
.skip:focus { top: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(56px + env(safe-area-inset-bottom)); }
body.has-bar .wrap { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
body.has-tabs .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { body.has-tabs .wrap { padding-bottom: 56px; } }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); transition: background .35s var(--ease); }
.top .in { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; flex: none; }
.brand .cat { width: 34px; height: 34px; flex: none; display: block; border-radius: 3px; transition: transform .45s var(--spring); }
.brand:hover .cat { transform: rotate(-8deg) scale(1.06); }
.logo { display: inline-block; line-height: 0; }
.logo svg { display: block; height: 100%; width: auto; aspect-ratio: 328.3 / 205.8; }
.brand .logo { height: 30px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { font-weight: 700; }
.who { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme { width: 44px; height: 44px; border: 1px solid var(--line); background: none; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .3s var(--spring); }
.theme:hover { background: var(--inset); }
.theme:active { transform: scale(.9) rotate(20deg); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; } :root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
.acct-box { position: relative; }
.acct { min-height: 44px; border: 1px solid var(--text); background: none; border-radius: var(--r); padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.acct-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--panel); border: 1px solid var(--text); z-index: 30; display: grid; animation: rise .25s var(--spring) both; }
.menu a, .menu button { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; text-decoration: none; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--inset); }
.menu > :last-child { border-bottom: 0; }
.menu .only-phone { display: none; }
.menu .menu-name { font-weight: 800; border-bottom: 1px solid var(--text); overflow-wrap: anywhere; min-height: 48px; padding: 10px 16px; align-items: center; }
.acct-letter { display: none; font-size: 18px; font-weight: 800; }
.guest-box { display: flex; align-items: center; gap: 8px; }
.guest-box .only-phone-box { display: none; position: relative; }
.burger { width: 44px; padding: 0; justify-content: center; }
.burger .bars { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (max-width: 700px) {
  .nav { display: none; }
  .menu .only-phone { display: flex; }
  .acct { width: 44px; padding: 0; justify-content: center; }
  .acct-name, .acct .chev { display: none; }
  .acct-letter { display: inline; }
  .guest-box .only-phone-box { display: block; }
  .top .in { gap: 8px; }
  .brand .logo { height: 26px; }
}

/* ---------- текст ---------- */
h1 { font-size: clamp(26px, 7.5vw, 32px); line-height: 1.1; margin: 22px 0 10px; font-weight: 900; letter-spacing: -.03em; overflow-wrap: anywhere; }
h1.caps { text-transform: uppercase; letter-spacing: -.04em; }
@media (min-width: 700px) { h1 { font-size: 44px; margin-top: 30px; } }
h2 { font-size: 20px; margin: 0 0 10px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
h3 { letter-spacing: -.02em; font-size: 20px; margin: 0 0 4px; font-weight: 800; }
.sub { color: var(--sub); margin: 0 0 20px; font-size: 18px; max-width: 640px; }
.lead { margin: 4px 0 14px; font-size: 16px; }
.muted { color: var(--muted); }
.small, .help { font-size: 14px; }
.help { color: var(--muted); margin-top: 6px; }
.card .help, .sheet .help { color: var(--muted); }
.on-bg { color: var(--sub); }
.note { font-size: 14px; color: var(--muted); font-weight: 600; }
.note.ok { color: var(--ok); } .note.bad { color: var(--bad); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 14px; animation: rise .5s var(--spring) both; }
.card > p { margin: 6px 0 12px; }
.card h2 { text-transform: none; }
a.card { display: block; transition: transform .3s var(--spring), background .2s; text-decoration: none; }
a.card:hover { transform: translateY(-3px); background: var(--panel2); }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* ---------- кнопки и поля ---------- */
.btn { background: none; border: 1px solid var(--text); border-radius: var(--r); padding: 11px 20px; font-weight: 700; min-height: 48px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; text-align: center; line-height: 1.25;
  transition: background .2s var(--ease), color .2s, transform .25s var(--spring), opacity .2s; }
.btn:hover { background: var(--inset); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.done { background: var(--okbg); color: var(--ok); border-color: var(--ok); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
:root[data-theme="dark"] .btn.danger.solid { color: #1b0805; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.big { min-height: 56px; padding: 14px 24px; font-size: 18px; }
.btn.sm { min-height: 44px; padding: 8px 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 10px; margin-top: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { color: var(--text); font-size: 14px; font-weight: 700; }
input[type=text], input[type=number], input[type=search], input[type=password], input[type=url], select, textarea {
  background: transparent; border: 1px solid var(--text); border-radius: var(--r); padding: 10px 14px; min-height: 48px; width: 100%; outline: none; transition: border-color .2s, background .2s; }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--text); outline-offset: 1px; background: var(--inset); }
select { background: var(--panel); }
input.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }
.fields { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

.pill { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: var(--r); background: var(--inset); color: var(--text); transition: background .3s, color .3s; white-space: nowrap; display: inline-block; line-height: 1.4; }
.pill.ok { background: var(--okbg); color: var(--ok); }
.pill.warn { background: var(--warnbg); color: var(--warn); }
.pill.bad { background: var(--badbg); color: var(--bad); }
.pill.wait { background: var(--panel3); color: var(--text); }

.seg { display: inline-flex; background: var(--panel3); border-radius: var(--r); padding: 3px; flex-wrap: wrap; gap: 2px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: var(--r); color: var(--text); min-height: 44px; font-weight: 600; transition: background .2s var(--ease), color .2s; }
.seg button.on { background: var(--btn); color: var(--btn-text); font-weight: 700; }

/* ---------- плашка ---------- */
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px) scale(.96); background: #000; color: #f1fbe8; padding: 13px 22px;
  border-radius: var(--r); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .34s var(--spring); z-index: 80; max-width: calc(92vw / var(--z)); text-align: center; border: 1px solid rgba(241, 251, 232, .35); }
body.has-bar .toast, body.has-tabs .toast { bottom: calc(112px + env(safe-area-inset-bottom)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .toast.bad { color: #1b0805; }

/* ---------- пульт ---------- */
.power { width: 100%; min-height: 80px; border-radius: var(--r); border: 1px solid var(--text); background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px;
  font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-align: left; transition: background .3s var(--ease), transform .25s var(--spring); }
.power:active { transform: scale(.98); }
.power .txt { display: grid; gap: 2px; min-width: 0; }
.power small { display: block; font-weight: 400; font-size: 14px; color: inherit; letter-spacing: 0; }
/* тумблер: дорожка, бегунок и слово «вкл» или «выкл» */
.power .sw { display: flex; align-items: center; gap: 10px; flex: none; }
.power .sw b { min-width: 46px; font-size: 18px; letter-spacing: 0; text-transform: uppercase; }
.power .track { width: 60px; height: 34px; border-radius: 17px; border: 2px solid var(--text); background: var(--panel3); position: relative; flex: none; transition: background .3s var(--ease), border-color .3s; }
.power .thumb { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform .45s var(--spring), background .3s; }
.power.on { background: var(--mint); color: #080b09; }
:root[data-theme="dark"] .power.on { background: var(--panel3); color: var(--text); }
.power.on .track { background: var(--btn); border-color: var(--btn); }
.power.on .thumb { transform: translateX(26px); background: var(--btn-text); }
.pauserow { display: grid; gap: 4px; justify-items: start; margin: 12px 0; }
.pauserow .help { color: var(--sub); margin: 0; }
.ready { background: var(--warnbg); color: var(--warn); border: 1px solid var(--warn); padding: 12px 16px; margin-bottom: 14px; display: grid; gap: 4px; }
.ready a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.ready.good { background: var(--okbg); color: var(--ok); border-color: var(--ok); }
.now { display: grid; gap: 4px; padding: 16px; background: var(--panel2); border: 1px solid var(--text); margin-bottom: 12px; }
.now > small { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.nowrow { display: grid; gap: 12px; align-items: center; }
@media (min-width: 700px) { .nowrow { grid-template-columns: 260px 1fr; gap: 18px; } }
.nowpic { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--media); display: block; }
.ph { background: var(--media); flex: none; }
.ph.still { background: var(--panel3); animation: none !important; }
.nowpic.ph { height: auto; }
.now .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.danger-zone { border: 1px solid var(--bad); background: var(--panel); padding: 16px; margin-top: 22px; }
.danger-zone h2 { color: var(--bad); }

/* ---------- мемы ---------- */
.memes { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .memes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .memes { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .memes { grid-template-columns: repeat(5, 1fr); } }
.meme { background: var(--panel); border: 1px solid var(--line); border-radius: 0; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; min-height: 44px;
  animation: rise .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 28ms); transition: background .2s, transform .3s var(--spring); }
.meme:hover { background: var(--panel2); }
.meme:active { transform: scale(.97); }
.meme .pic { aspect-ratio: 16 / 9; background: var(--media); position: relative; overflow: hidden; margin: 8px 8px 0; }
.meme .pic img, .meme .pic video, .meme .pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.meme .pic video { opacity: 0; transition: opacity .35s var(--ease); }
.meme .pic video.on { opacity: 1; }
.meme .pic .ph { animation: blink 1.4s ease-in-out infinite; background: var(--panel3); }
.meme .pic .ph.still { animation: none; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .meme .pic video { transition: none; } }
.meme:hover .pic img { transform: scale(1.04); }
.meme .pic .tag { position: absolute; right: 6px; bottom: 6px; background: #000; color: #f1fbe8; padding: 1px 8px; font-size: 14px; font-weight: 700; }
.meme .cap { padding: 8px 12px 12px; line-height: 1.3; overflow-wrap: anywhere; display: grid; gap: 2px; font-size: 14px; }
.meme .cap .t { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meme .cap .sub { color: var(--muted); font-weight: 600; font-size: 14px; }
.meme .badge { position: absolute; left: 6px; top: 6px; z-index: 2; background: #000; color: #f1fbe8; padding: 2px 8px; font-size: 14px; font-weight: 800; line-height: 1.4; max-width: calc(100% - 12px); overflow-wrap: anywhere; }
.meme .badge.ok { background: #0f5a1c; } .meme .badge.warn { background: #6b4a00; } .meme .badge.bad { background: #8a1c12; } .meme .badge.wait { background: #333; }
.meme.plain { cursor: default; }
.meme.plain:hover { background: var(--panel); } .meme.plain:active { transform: none; }
.meme .meme-act { margin: 0 12px 12px; }
.memes.cards .meme { align-self: stretch; }
.meme.is-hidden { opacity: .55; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.tools { display: flex; gap: 10px; margin: 0 0 12px; align-items: center; }
.tools .grow { flex: 1; min-width: 0; }
.tools select { width: auto; min-width: 150px; max-width: 52%; background: var(--panel); }
@media (max-width: 520px) { .tools select { min-width: 0; width: 46%; } }
.tools input[type=search] { background: var(--panel); }

/* ---------- окна ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(8, 20, 16, .66); z-index: 50; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s var(--ease); }
.sheet-bg.show { opacity: 1; }
.sheet { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--text); border-radius: var(--r); padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(40px) scale(.98); transition: transform .45s var(--spring); max-height: calc(94dvh / var(--z)); overflow: auto; }
.sheet-bg.show .sheet { transform: none; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } }
.sheet .stage { aspect-ratio: 16 / 10; background: var(--media); overflow: hidden; margin-bottom: 12px; position: relative; }
.sheet .stage > *, .modbox .stage > *, .preview .stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage audio { inset: auto 0 0 0 !important; height: 44px !important; }
.sheet h3 { font-size: 22px; overflow-wrap: anywhere; }
.price-line { font-weight: 700; margin: 10px 0 0; }
.price-line.bad { color: var(--bad); }
.mealine { color: var(--muted); font-size: 14px; margin: 8px 0 0; text-align: center; }

.tsteps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; counter-reset: s; }
.tsteps > li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.tsteps > li::before { content: counter(s); width: 34px; height: 34px; background: var(--btn); color: var(--btn-text); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tsteps b { display: block; margin-bottom: 6px; }
.copybox { display: flex; gap: 8px; flex-wrap: wrap; }
.copybox input { flex: 1; min-width: 180px; font-weight: 700; }
.codebig input { font-size: 26px; line-height: 1.2; text-align: center; letter-spacing: .01em; padding: 12px; }
.waitline { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.waitline::before { content: ""; width: 12px; height: 12px; background: var(--teal); animation: blink 1.2s ease-in-out infinite; flex: none; }
.waitline.got::before { animation: none; background: var(--ok); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- списки ---------- */
.list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.item { background: transparent; border-bottom: 1px solid var(--line); padding: 12px 4px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; animation: rise .4s var(--spring) both; }
.item .grow { flex: 1; min-width: 160px; overflow-wrap: anywhere; }
.item img, .item .ph { width: 64px; height: 40px; object-fit: contain; background: var(--media); flex: none; }
.item .ph { animation: blink 1.4s ease-in-out infinite; }
.item .ph.still { animation: none; background: var(--panel3); border: 1px solid var(--line); }
.item .pill { white-space: normal; }
.item .st { margin-top: 4px; }
.more { margin-top: 8px; }
.dots { min-width: 44px; font-size: 22px; line-height: 1; letter-spacing: .05em; }
.empty { color: var(--text); text-align: center; padding: 20px 12px 28px; }
.empty p { margin: 0 0 14px; }
.empty::before { content: ""; display: block; width: 96px; height: 93px; margin: 0 auto 10px; background: no-repeat center / contain url("img/cat-tumble-96.webp"); background-image: image-set(url("img/cat-tumble-96.webp") 1x, url("img/cat-tumble-192.webp") 2x); }
.empty.peek::before { width: 170px; height: 83px; border-bottom: 3px solid var(--text); background-size: 120px auto; background-position: center bottom; background-image: image-set(url("img/cat-peek-120.webp") 1x, url("img/cat-peek-240.webp") 2x); margin-bottom: 12px; }
.empty.peek { padding-top: 12px; }
.empty.small::before { display: none; }
.empty.small { padding: 14px 8px; }
@keyframes peek { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 60% { opacity: 1; transform: translateY(-3px) scale(1.03); } 100% { transform: none; } }

/* ---------- нижняя полоса зрителя ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 1120px; margin: 0 auto; background: var(--panel); border: 1px solid var(--text); border-bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.bar .in { max-width: 1120px; margin: 0 auto; display: grid; gap: 8px; }
.bar .line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar .bal { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.bar .bal small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 6px; }
.orderline { background: var(--panel2); border: 1px solid var(--line); padding: 8px 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: rise .3s var(--spring) both; }
.orderline.bad { color: var(--bad); }
.orderline.ok { color: var(--ok); }
.orderline::before { content: ""; width: 10px; height: 10px; background: var(--teal); flex: none; animation: blink 1.2s ease-in-out infinite; }
.orderline.ok::before, .orderline.bad::before { animation: none; background: currentColor; }

/* ---------- главная ---------- */
.hero { display: grid; gap: 14px; padding: 22px 0 8px; align-items: center; grid-template-columns: 1fr; justify-items: start; }
.hero .sub { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); max-width: 420px; line-height: 1.2; }
@media (min-width: 800px) { .hero { grid-template-columns: auto 1fr; gap: 36px; padding-top: 30px; } .hero .sub { font-size: 30px; } }
.logo-cat-box { display: block; width: clamp(150px, 44vw, 220px); }
.logo-cat { display: block; width: 100%; height: auto; }
.logo-cat.on-dark { display: none; }
:root[data-theme="dark"] .logo-cat.on-light { display: none; }
:root[data-theme="dark"] .logo-cat.on-dark { display: block; }
.steps { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; grid-template-columns: 1fr; counter-reset: st; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: st; background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; font-weight: 700; font-size: 17px; line-height: 1.3; }
.steps li::before { content: counter(st); font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.srows { display: grid; gap: 0; border: 1px solid var(--line); background: var(--panel); }
.srow { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; min-height: 68px; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .2s; }
.srow:last-child { border-bottom: 0; }
.srow:hover { background: var(--panel2); }
.srow .nm { font-size: 20px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.srow .pr { font-weight: 700; text-align: right; }
.srow .pill { justify-self: start; }
@media (min-width: 700px) { .srow { grid-template-columns: 1fr auto auto; } .srow .pill { justify-self: end; } }
.strip { margin-top: 28px; padding: 16px; background: var(--panel2); border: 1px dashed var(--text); display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.strip b { font-size: 18px; }
h2.sec { margin: 26px 0 12px; font-size: 24px; }

/* ---------- кабинет ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--text); margin: 10px 0 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 18px; min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { font-weight: 800; border-bottom-color: var(--text); }
.tabs a:hover { background: var(--inset); }
@media (max-width: 760px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; background: var(--panel); border-top: 1px solid var(--text); border-bottom: 0; padding: 0 8px env(safe-area-inset-bottom); overflow: visible; }
  .tabs a { flex: 1 1 auto; justify-content: center; padding: 8px 2px; min-height: 60px; border-bottom: 0; border-top: 3px solid transparent; margin: 0; text-align: center; font-size: 14px; }
  .tabs a.on { border-top-color: var(--text); background: var(--panel2); }
}
.t-phone { display: none; }
@media (max-width: 760px) { .t-desk { display: none; } .t-phone { display: inline; } }
a.skipline { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--warn); text-decoration: underline; text-underline-offset: 3px; }
.skipped { margin: 8px 0; }
.modwrap { max-width: 760px; margin: 0 auto; }
.kbd-hint { display: none; }
@media (hover: hover) { .kbd-hint { display: block; } }
.wizard { max-width: 640px; margin: 0 auto; }
.progress { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-weight: 700; }
.progress .track { flex: 1; height: 8px; background: var(--panel3); border: 1px solid var(--line); }
.progress .track i { display: block; height: 100%; background: var(--btn); transition: width .4s var(--ease); }
.wizard .nav2 { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.wizard .nav2 .btn.primary { flex: 1; }
.steps3 { margin: 10px 0 14px; padding-left: 22px; display: grid; gap: 4px; }
.group { margin-bottom: 14px; }
.group .row.save { margin-top: 6px; }
.url { word-break: break-all; font-weight: 700; }

input[type=range] { -webkit-appearance: none; appearance: none; background: none; height: 44px; margin: 0; flex: 1; min-width: 0; padding: 0; border: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--text) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--text); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 2px; background: var(--btn); margin-top: -10px; transition: transform .2s var(--spring); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 2px; background: var(--btn); }
.spots { position: relative; width: 240px; height: 135px; border: 1px solid var(--text); background: var(--panel2); }
.spots button { position: absolute; width: 64px; height: 44px; border: 1px solid var(--text); border-radius: var(--r); background: var(--panel); transition: background .2s, transform .25s var(--spring); }
.spots button.on { background: var(--btn); }
.spots button:active { transform: scale(.9); }
.sp-tl { left: 8px; top: 8px; } .sp-tr { right: 8px; top: 8px; } .sp-bl { left: 8px; bottom: 8px; } .sp-br { right: 8px; bottom: 8px; }
.sp-center { left: 50%; top: 50%; margin: -22px 0 0 -32px; }
.picklist { display: grid; gap: 0; border: 1px solid var(--line); margin-bottom: 12px; }
.picklist button { min-height: 48px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 14px; }
.picklist button:last-child { border-bottom: 0; }
.picklist button.on, .picklist button:hover { background: var(--btn); color: var(--btn-text); }

/* ---------- загрузка и модерация ---------- */
.drop { display: grid; place-items: center; gap: 6px; min-height: 160px; border: 2px dashed var(--text); background: var(--panel); padding: 20px; text-align: center; font-weight: 800; font-size: 20px; width: 100%; transition: background .2s; }
.drop:hover, .drop.over { background: var(--panel2); }
.drop small { font-weight: 400; font-size: 16px; color: var(--muted); }
.preview .stage { aspect-ratio: 16 / 10; background: var(--media); position: relative; overflow: hidden; margin-bottom: 12px; }
.prog { height: 12px; background: var(--panel3); border: 1px solid var(--line); margin: 12px 0; }
.prog i { display: block; height: 100%; width: 0; background: var(--btn); transition: width .2s linear; }
details.ok-files { margin-top: 10px; }
details.ok-files summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.modbox .stage { aspect-ratio: 16 / 10; background: var(--media); overflow: hidden; position: relative; max-height: calc(56vh / var(--z)); width: 100%; }
.modbox { max-width: 760px; margin: 0 auto; }
.modbox .bigbtns.col { grid-template-columns: 1fr; }
ul.plain { list-style: none; padding: 0; margin: 8px 0; }
ul.plain li { padding: 4px 0; font-weight: 600; }
.modbox .bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--text); background: var(--panel); border-radius: var(--r); padding: 10px 14px; min-height: 48px; font-weight: 600; transition: background .2s, transform .25s var(--spring); }
.chip:hover { background: var(--inset); }
.chip:active { transform: scale(.96); }
.undo { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: #000; color: #f1fbe8; padding: 8px 8px 8px 16px; display: flex; align-items: center; gap: 12px; max-width: calc(94vw / var(--z)); }
.out { animation: out .4s var(--in) forwards; }
@keyframes out { 0% { transform: none; } 25% { transform: translateX(-8px); } 100% { opacity: 0; transform: translateX(60px) scale(.97); } }
.role { display: inline-flex; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
a.lk { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Статистика: числа ячейками с линиями, столбики блоками (без библиотек) */
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.stat { padding: 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.stat:nth-child(2n) { border-right: 0; } .stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat b { font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -.03em; }
.stat span { font-size: 14px; color: var(--sub); }
@media (min-width: 761px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { border-bottom: 0; border-right: 1px solid var(--line) !important; } .stat:last-child { border-right: 0 !important; } }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; border-bottom: 2px solid var(--text); padding-top: 18px; }
.bars .col { flex: 1 1 0; max-width: 56px; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bars .col i { display: block; width: 100%; background: var(--text); min-height: 0; transform-origin: bottom; animation: grow .6s var(--spring) both; }
.bars .col .v { font-size: 14px; font-weight: 700; line-height: 1.2; }
.xl { display: flex; justify-content: space-between; font-size: 14px; color: var(--sub); margin-top: 4px; }
.xl.seven span { flex: 1; text-align: center; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.big-num { font-size: 30px; font-weight: 900; letter-spacing: -.03em; }
.badge { display: inline-block; font-size: 14px; font-weight: 800; padding: 4px 10px; border: 1px solid var(--text); background: var(--mint); color: #080b09; border-radius: var(--r); }
.mystats { display: grid; gap: 6px; }
.mystats .stats { grid-template-columns: 1fr 1fr; }
.rank { font-weight: 900; font-size: 18px; min-width: 24px; text-align: center; }

/* ---------- размещение мема ---------- */
.pl-wrap { padding: 44px 0 6px; }
.pl-screen { position: relative; aspect-ratio: 16 / 9; background-color: var(--media); border: 1px solid var(--text); touch-action: none; user-select: none; -webkit-user-select: none; outline-offset: 4px; }
/* сетка поверх картинки эфира и под зонами с мемом (раньше была фоном самого макета) */
.pl-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: linear-gradient(to right, rgba(241, 251, 232, .14) 1px, transparent 1px), linear-gradient(to bottom, rgba(241, 251, 232, .14) 1px, transparent 1px); background-size: 6.25% 11.1111%; }
.pl-live { position: absolute; inset: 0; overflow: hidden; isolation: isolate; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.pl-live.on { opacity: 1; }
.pl-live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s var(--ease); }
.pl-live img.in { opacity: 1; }
.pl-live::after { content: ""; position: absolute; inset: 0; z-index: 3; background: rgba(8, 20, 16, .4); }
.pl-live-note { margin: 6px 0 0; min-height: 21px; opacity: 0; transform: translateY(-3px); transition: opacity .35s var(--ease), transform .4s var(--spring); }
.pl-live-note.on { opacity: 1; transform: none; }
.pl-zone { position: absolute; z-index: 1; overflow: hidden; border: 1px dashed #ff9b8f; background: repeating-linear-gradient(45deg, rgba(255, 120, 100, .5) 0 6px, rgba(255, 120, 100, .14) 6px 12px); pointer-events: none; }
.pl-zone.edit { pointer-events: auto; cursor: move; touch-action: none; }
.pl-zone.ghost { pointer-events: none; }
.pl-zone span { position: absolute; left: 3px; top: 3px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.3; padding: 0 6px; white-space: nowrap; max-width: calc(100% - 6px); overflow: hidden; }
.pl-frame { position: absolute; background: #000; box-shadow: 0 0 0 1px #f1fbe8, 0 0 0 3px rgba(0, 0, 0, .75), 0 2px 10px rgba(0, 0, 0, .4); cursor: grab; touch-action: none; transform-origin: 50% 50%; z-index: 2; }
.pl-frame img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pl-frame.drag { cursor: grabbing; box-shadow: 0 0 0 1px #f1fbe8, 0 8px 22px rgba(0, 0, 0, .5); }
.pl-frame.snap { transition: left .36s var(--spring), top .36s var(--spring), width .3s var(--ease), height .3s var(--ease), transform .34s var(--spring); }
.pl-frame.blocked { box-shadow: 0 0 0 2px #ff9b8f; opacity: .85; }
.pl-handle { position: absolute; left: 50%; top: -44px; width: 44px; height: 44px; margin-left: -22px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; display: grid; place-items: center; }
.pl-handle i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--btn); border: 2px solid #f1fbe8; box-shadow: 0 0 0 1px #000; }
.pl-line { min-height: 24px; margin: 6px 0 4px; font-weight: 700; color: var(--bad); opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .3s var(--spring); }
.pl-line.on { opacity: 1; transform: none; }
.pl-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.pl-row label { font-weight: 700; }
.pl-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 280px; margin: 10px auto 4px; }
.pl-quick .btn { font-size: 20px; padding: 6px; }
.pl-keys { display: none; }
@media (hover: hover) and (min-width: 900px) { .pl-keys { display: block; } }
.pl-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--panel); display: grid; gap: 8px; padding: 10px 0 4px; margin-top: 8px; z-index: 3; }
@media (max-width: 639px) { .sheet.tall { height: 100dvh; max-height: 100dvh; } }
.power.sm { min-height: 56px; padding: 6px 16px; }
#zone-editor .pl-wrap { padding-top: 8px; }
.seg[aria-label="Размер"] { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg[aria-label="Размер"] button { padding: 9px 4px; }
#s-place-on { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; }
#s-place-on .txt { flex: 1 1 auto; min-width: 0; }
#s-place-on .sw { flex: 0 0 auto; }
.power.sm { font-size: 16px; padding: 6px 14px; }
.power.sm .sw b { font-size: 14px; min-width: 34px; }
.ready.soft { background: var(--panel3); color: var(--text); border-color: var(--line); }
.ready .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.item .apic { width: 96px; height: 54px; object-fit: contain; background: var(--media); flex: none; }
.meme .meme-act { margin-top: auto; }
.meme.plain { align-self: stretch; }

.modbox .bigbtns #approve-tw { grid-column: 1 / -1; min-height: 48px; }
.twhint { margin: 10px 0 0; }
.twhint summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.twhint p { margin: 4px 0 8px; }

/* ---------- мини-приложение в Телеграме (/tg/) ---------- */
body.tg { overscroll-behavior: none; --tgbar: 64px; }
.tg-main { max-width: 560px; margin: 0 auto; padding: calc(12px + var(--tg-st, 0px)) 16px calc(var(--tgbar) + 20px + max(env(safe-area-inset-bottom), var(--tg-sb, 0px))); min-height: 100dvh; }
.tg-h { font-size: 24px; margin: 4px 0 12px; line-height: 1.15; }
.tg-wait, .tg-msg { margin-top: 24px; }
.tg-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: max(env(safe-area-inset-bottom), var(--tg-sb, 0px)); }
.tg-tabs button { flex: 1; min-height: var(--tgbar); border: 0; background: none; font-weight: 600; font-size: 15px; white-space: nowrap; position: relative; padding: 0 4px; transition: background .2s var(--ease); }
.tg-tabs button::after { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 3px; background: var(--text); transform: scaleX(0); transition: transform .35s var(--spring); }
.tg-tabs button[aria-current="page"] { font-weight: 800; }
.tg-tabs button[aria-current="page"]::after { transform: scaleX(1); }
.tg-tabs button:active { background: var(--inset); }
body.has-tgtabs .toast { bottom: calc(var(--tgbar) + 16px + max(env(safe-area-inset-bottom), var(--tg-sb, 0px))); }
.tg-main .sheet-bg { z-index: 60; }

.rv { display: flex; flex-direction: column; height: calc(100dvh - var(--tgbar) - 36px - var(--tg-st, 0px) - max(env(safe-area-inset-bottom), var(--tg-sb, 0px))); min-height: 460px; position: relative; }
.rv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rv-left { margin: 0; color: var(--sub); font-weight: 700; }
.deck { position: relative; flex: 1; min-height: 260px; margin: 4px 0 12px; }
.rvcard { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--text); border-radius: 8px; overflow: hidden; will-change: transform; touch-action: none; user-select: none; -webkit-user-select: none; transform-origin: 50% 80%; transition: transform .38s var(--spring), opacity .3s var(--ease); }
.rvcard.next { transform: scale(.94) translateY(14px); pointer-events: none; }
.rvcard.top { cursor: grab; }
.rvcard.dragging { transition: none; cursor: grabbing; }
.rvcard.enter { animation: rvin .45s var(--spring) both; }
@keyframes rvin { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.rvstage { position: relative; flex: 1; min-height: 0; background: var(--media); overflow: hidden; }
.rvstage > video, .rvstage > img, .rvstage .aud { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.rvstage .aud img { width: 100%; height: 100%; object-fit: contain; }
.rvstage .aud audio { display: none; }
.rvcap { padding: 10px 14px 12px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.rvt { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.rvm { margin: 0; color: var(--muted); }
.snd { position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border: 1px solid var(--text); background: var(--panel); color: var(--text); border-radius: 50%; display: grid; place-items: center; padding: 0; z-index: 3; touch-action: manipulation; }
.snd svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snd[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
.stamp { position: absolute; top: 18px; padding: 4px 12px; border: 3px solid currentColor; font-weight: 900; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; opacity: 0; pointer-events: none; z-index: 2; background: var(--panel); transition: opacity .1s linear; }
.stamp[data-dir="right"] { left: 16px; transform: rotate(-9deg); }
.stamp[data-dir="left"] { right: 16px; transform: rotate(9deg); }
.stamp[data-dir="up"] { left: 50%; margin-left: -70px; transform: rotate(-3deg); }
.stamp.ok { color: var(--ok); } .stamp.bad { color: var(--bad); } .stamp.warn { color: var(--warn); }
.rv-btns { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 8px; }
.rv-btns .btn { min-height: 56px; padding: 8px 6px; font-size: 16px; line-height: 1.15; }
.rv-hint { margin: 8px 0 0; text-align: center; color: var(--sub); }
.tray { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--panel); border: 1px solid var(--text); padding: 12px 12px 0; transform: translateY(105%); transition: transform .38s var(--spring); display: grid; gap: 10px; }
.tray.on { transform: none; }
.tray .chips { gap: 6px; }
.tray .chip { min-height: 44px; padding: 8px 12px; font-size: 16px; }
.tray .bar { height: 4px; margin: 0 -12px; background: var(--inset); }
.tray .bar i { display: block; height: 100%; background: var(--text); transform-origin: left; }
.undobar { position: absolute; left: 0; right: 0; bottom: 112px; border-radius: 12px; box-shadow: 0 6px 20px rgb(0 0 0 / .28); z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--btn); color: var(--btn-text); padding: 8px 8px 8px 14px; transform: translateY(14px); opacity: 0; transition: transform .35s var(--spring), opacity .25s var(--ease); }
.undobar.on { transform: none; opacity: 1; }
.undobar .ut { overflow-wrap: anywhere; font-weight: 600; }
.undobar .btn { background: var(--btn-text); color: var(--btn); border-color: var(--btn-text); flex: none; }
@media (prefers-reduced-motion: reduce) { .rvcard, .tray, .undobar, .tg-tabs button::after { transition-duration: .01ms !important; } .rvcard.enter { animation: none; } }
#detail .stage { display: grid; place-items: center; background: var(--inset); border-radius: 8px; overflow: hidden; }
#detail .stage img, #detail .stage video { width: 100%; max-height: 44dvh; object-fit: contain; }

/* ---------- широкие экраны: вся страница крупнее ступенями, колонка около 70% ширины (docs/ux-2.md) ---------- */
/* Слой ОБС (obs.css) и мини-приложение (body.tg) не масштабируются. Мышь и getBoundingClientRect дают координаты окна, поэтому геометрия размещения верна. */
@media (min-width: 1760px) { html:not(:has(body.tg)) { zoom: 1.1; --z: 1.1; } }
@media (min-width: 1920px) { html:not(:has(body.tg)) { zoom: 1.2; --z: 1.2; } }
@media (min-width: 2080px) { html:not(:has(body.tg)) { zoom: 1.3; --z: 1.3; } }
@media (min-width: 2240px) { html:not(:has(body.tg)) { zoom: 1.4; --z: 1.4; } }
@media (min-width: 2400px) { html:not(:has(body.tg)) { zoom: 1.5; --z: 1.5; } }
@media (min-width: 2560px) { html:not(:has(body.tg)) { zoom: 1.6; --z: 1.6; } }
@media (min-width: 2720px) { html:not(:has(body.tg)) { zoom: 1.7; --z: 1.7; } }
@media (min-width: 2880px) { html:not(:has(body.tg)) { zoom: 1.8; --z: 1.8; } }
@media (min-width: 3040px) { html:not(:has(body.tg)) { zoom: 1.9; --z: 1.9; } }
@media (min-width: 3200px) { html:not(:has(body.tg)) { zoom: 2; --z: 2; } }
@media (min-width: 3360px) { html:not(:has(body.tg)) { zoom: 2.1; --z: 2.1; } }
@media (min-width: 3520px) { html:not(:has(body.tg)) { zoom: 2.2; --z: 2.2; } }
@media (min-width: 3680px) { html:not(:has(body.tg)) { zoom: 2.3; --z: 2.3; } }
@media (min-width: 3840px) { html:not(:has(body.tg)) { zoom: 2.4; --z: 2.4; } }

/* ---------- кошелёк на странице стримера: на компьютере рядом с названием, липкий под шапкой сайта ---------- */
.wallet-anchor { position: sticky; top: calc(var(--toph, 61px) + 8px); z-index: 15; height: 0; display: flex; align-items: flex-start; justify-content: flex-end; pointer-events: none; }
.wallet { pointer-events: auto; margin-top: 26px; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; justify-content: flex-end; background: var(--panel); border: 1px solid var(--text); padding: 10px 12px 10px 16px; animation: rise .4s var(--spring) both; }
.wallet .bal { font-size: 24px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.wallet .bal small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 6px; }
.wallet .line { display: contents; }
@media (min-width: 761px) { .head-wallet { padding-right: 300px; } }
a.inlink { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
