/* ============================================================
   Ривер — компоненты: шапка, подвал, карточки, таблицы, окна
   ============================================================ */

/* ---------- верхняя строка ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  height: 36px;
  position: relative;
  z-index: 60;
}
.ticker .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ticker__msg { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 2s infinite; }
.ticker a { text-decoration: none; border-bottom: 1px solid rgba(239, 234, 223, 0.4); }
.ticker a:hover { border-color: var(--paper); }
.ticker__side { opacity: 0.6; white-space: nowrap; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(216, 64, 31, 0.7); } 60% { box-shadow: 0 0 0 7px rgba(216, 64, 31, 0); } }

/* ---------- шапка ---------- */
/* обёртка не должна ограничивать липкую шапку: иначе она «отлипает» на длинных страницах */
#site-header { display: contents; }
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(239, 234, 223, 0.88);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 30px; height: 44px; flex: none; transition: transform 0.6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-10deg) translateY(-2px); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -0.02em; }
.logo__sub { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current='page']::before {
  content: ''; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--accent);
}

.header__right { display: flex; align-items: center; gap: 14px; }

.userchip { position: relative; }
.userchip__btn {
  display: flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line);
  padding: 4px 14px 4px 4px; border-radius: 40px; cursor: pointer; font-weight: 500; font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s;
}
.userchip__btn:hover, .userchip__btn[aria-expanded='true'] { border-color: var(--ink); background: rgba(255, 255, 255, 0.35); }
.userchip__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--paper); border: 1px solid var(--ink); padding: 8px; z-index: 70;
  box-shadow: 8px 8px 0 rgba(20, 18, 14, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.25s var(--ease);
}
.userchip__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.userchip__menu a, .userchip__menu button {
  display: flex; width: 100%; text-align: left; padding: 11px 12px; text-decoration: none; background: none; border: 0;
  cursor: pointer; font-size: 15px; justify-content: space-between; align-items: center;
}
.userchip__menu a:hover, .userchip__menu button:hover { background: var(--paper-2); }
.userchip__menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 0; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: 0.35s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--paper);
  padding: calc(var(--header-h) + 36px + 24px) var(--gut) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
}
.mnav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.6s var(--ease); }
.mnav__links { display: flex; flex-direction: column; gap: 6px; }
.mnav__links a {
  font-family: var(--f-display); font-size: clamp(44px, 12vw, 72px); line-height: 1.05; text-decoration: none; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line); padding: 8px 0;
  display: flex; justify-content: space-between; align-items: baseline;
}
.mnav__links a small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.mnav__links a[aria-current='page'] { color: var(--accent); }
.mnav__foot { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 900px) {
  .nav, .header__right .btn, .header__right .userchip { display: none; }
  .burger { display: block; }
  .logo__sub { display: none; }
  .ticker__side { display: none; }
}

/* ---------- подвал ---------- */
.footer { background: var(--felt); color: var(--paper); position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-block: 88px 64px; position: relative; z-index: 1; }
.footer h5 { font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239, 234, 223, 0.55); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; opacity: 0.88; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__lead { font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; max-width: 14em; }
.footer__lead em { color: #f08a6c; }
.footer__bottom { border-top: 1px solid var(--felt-line); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(239, 234, 223, 0.6); position: relative; z-index: 1; }
.footer__big {
  font-family: var(--f-display); font-style: italic; font-weight: 500; line-height: 0.74;
  font-size: clamp(120px, 27vw, 420px); letter-spacing: -0.04em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 234, 223, 0.2);
  margin-top: -20px; padding-bottom: 0.04em; user-select: none; pointer-events: none;
}
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; padding-block: 64px 40px; gap: 36px 24px; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}

/* ---------- аватар ---------- */
.avatar {
  --s: 40px;
  width: var(--s); height: var(--s); flex: none; border-radius: 4px; object-fit: cover; background: var(--paper-3);
}
.avatar--gen {
  display: inline-grid; place-content: center; background: var(--bg, var(--ink)); color: var(--fg, var(--paper));
  font-family: var(--f-display); font-weight: 600; font-size: calc(var(--s) * 0.52); line-height: 1;
  text-transform: uppercase; user-select: none;
}
.userchip .avatar { --s: 34px; border-radius: 50%; }

/* ---------- теги ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid currentColor; border-radius: 2px; line-height: 1.3; white-space: nowrap;
}
.tag--accent { color: var(--accent-deep); }
.tag--ok { color: var(--ok); }
.tag--muted { color: var(--muted); }
.tag--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- билет (ближайший турнир) ---------- */
.ticket-wrap { position: relative; filter: drop-shadow(0 22px 28px rgba(20, 18, 14, 0.22)); transform: rotate(2deg); transition: transform 0.7s var(--ease); }
.ticket-wrap:hover { transform: rotate(0.5deg) translateY(-4px); }
.ticket {
  --r: 14px; --y: 66%;
  background: var(--felt); color: var(--paper); padding: 30px 30px 26px; position: relative;
  -webkit-mask: radial-gradient(circle var(--r) at 0 var(--y), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--r) at 100% var(--y), #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--r) at 0 var(--y), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--r) at 100% var(--y), #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket::before { /* линия отрыва */
  content: ''; position: absolute; left: 22px; right: 22px; top: var(--y); border-top: 1.5px dashed rgba(239, 234, 223, 0.35);
}
.ticket__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.ticket__date { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.ticket__day { font-family: var(--f-display); font-size: 112px; line-height: 0.76; font-weight: 500; letter-spacing: -0.04em; color: #f6e9d8; }
.ticket__mon { font-family: var(--f-display); font-style: italic; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.ticket__mon small { display: block; font-family: var(--f-mono); font-style: normal; font-size: 12px; letter-spacing: 0.1em; opacity: 0.65; margin-top: 6px; text-transform: uppercase; }
.ticket h3 { font-size: 30px; margin-bottom: 8px; }
.ticket__meta { font-size: 14.5px; opacity: 0.8; }
.ticket__bottom { margin-top: calc(var(--y) - 40% + 34px); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket__price { font-family: var(--f-display); font-size: 38px; line-height: 1; }
.ticket__price small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; display: block; opacity: 0.6; margin-bottom: 6px; text-transform: uppercase; }

.stamp { position: absolute; width: 118px; height: 118px; left: -60px; top: -58px; z-index: 2; pointer-events: none; }
.ticket__top { padding-left: 38px; }
.stamp svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp__c { position: absolute; inset: 0; display: grid; place-content: center; }
.stamp__c svg { width: 34px; height: 34px; animation: none; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ряд турнира ---------- */
.trow {
  display: grid; grid-template-columns: 112px minmax(0, 1.6fr) minmax(0, 1.1fr) 150px auto; gap: 28px; align-items: center;
  padding: 28px 12px; border-top: 1px solid var(--line); position: relative; transition: background 0.35s;
}
.trow:last-child { border-bottom: 1px solid var(--line); }
.trow::before { content: ''; position: absolute; inset: 0; background: var(--paper-2); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: -1; }
.trow:hover::before { transform: scaleY(1); }
.trow__date { display: flex; align-items: baseline; gap: 8px; }
.trow__day { font-family: var(--f-display); font-size: 62px; font-weight: 500; line-height: 0.85; letter-spacing: -0.03em; }
.trow__mon { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); line-height: 1.3; }
.trow__title { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; margin-bottom: 6px; }
.trow__sub { font-size: 14.5px; color: var(--muted); }
.trow__place { font-size: 15px; }
.trow__place b { font-weight: 500; display: block; }
.trow__price { font-family: var(--f-display); font-size: 28px; line-height: 1; margin-top: 8px; }
.trow__price small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-right: 8px; text-transform: uppercase; }
.trow__action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 190px; }

.seats { width: 100%; }
.seats__txt { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; margin-bottom: 8px; letter-spacing: 0.04em; }
.seats__bar {
  height: 10px; background: var(--ink); opacity: 0.14;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, #0000 5px 8px);
  mask: repeating-linear-gradient(90deg, #000 0 5px, #0000 5px 8px);
}
.seats__fill { position: relative; margin-top: -10px; height: 10px; width: var(--w, 0%); background: var(--accent);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, #0000 5px 8px); mask: repeating-linear-gradient(90deg, #000 0 5px, #0000 5px 8px);
  transition: width 1.2s var(--ease-out);
}
.seats.is-full .seats__fill { background: var(--ink); }

@media (max-width: 1060px) {
  .trow { grid-template-columns: 96px 1fr; gap: 14px 22px; padding-block: 24px; }
  .trow__place, .trow .seats, .trow__action { grid-column: 2; }
  .trow__action { align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .trow__day { font-size: 52px; }
}

/* ---------- таблица рейтинга ---------- */
.lrow {
  display: grid; grid-template-columns: 76px minmax(0, 2fr) 90px 90px minmax(150px, 1.2fr); gap: 20px; align-items: center;
  padding: 16px 12px; border-top: 1px solid var(--line); text-decoration: none; position: relative; transition: background 0.25s, padding 0.35s var(--ease);
}
a.lrow:hover { background: var(--paper-2); padding-left: 22px; }
.lrow--head { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); border-top: 0; padding-block: 10px; }
.lrow__rank { font-family: var(--f-display); font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.lrow__rank.is-top { color: var(--accent); }
.lrow__who { display: flex; align-items: center; gap: 14px; min-width: 0; font-weight: 500; }
.lrow__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__who .tag { margin-left: 4px; }
.lrow__n { font-family: var(--f-mono); font-size: 15px; color: var(--ink-2); text-align: right; }
.lrow__pts { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.lrow__bar { flex: 1; height: 3px; background: var(--line); position: relative; max-width: 120px; }
.lrow__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); transition: width 1.1s var(--ease-out); }
.lrow__pts b { font-family: var(--f-display); font-size: 30px; font-weight: 500; min-width: 3ch; text-align: right; line-height: 1; }
.lrow.is-me { background: rgba(216, 64, 31, 0.08); }
.lrow.is-me .lrow__bar i { background: var(--accent); }

@media (max-width: 760px) {
  .lrow { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; padding-inline: 4px; }
  .lrow > .lrow__n { display: none; }
  .lrow__bar { display: none; }
  .lrow__rank { font-size: 30px; }
  .lrow--head { display: none; }
}

/* ---------- на тёмном (felt) ---------- */
.section--felt .lrow { border-color: var(--felt-line); }
.section--felt .lrow--head { color: rgba(239, 234, 223, 0.5); }
.section--felt a.lrow:hover { background: var(--felt-2); }
.section--felt .lrow__n { color: rgba(239, 234, 223, 0.7); }
.section--felt .lrow__bar { background: var(--felt-line); }
.section--felt .lrow__bar i { background: var(--paper); }
.section--felt .lrow__rank.is-top { color: #f08a6c; }
.section--felt .btn--ghost { --b-fg: var(--paper); --b-bd: rgba(239, 234, 223, 0.5); }

/* ---------- аккордеон ---------- */
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__q {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 26px 0;
  font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 500;
}
.acc__q:hover { color: var(--accent-deep); }
.acc__icon { position: relative; width: 22px; height: 22px; flex: none; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { color: var(--ink-2); max-width: 40em; padding-bottom: 28px; margin: 0; }

/* ---------- вкладки ---------- */
.tabs { display: inline-flex; position: relative; gap: clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; cursor: pointer; padding: 14px 0; font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px);
  color: var(--muted); font-weight: 500; transition: color 0.25s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs__bar { position: absolute; bottom: -1px; height: 3px; background: var(--accent); transition: left 0.5s var(--ease), width 0.5s var(--ease); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 40px; background: none; cursor: pointer; font-size: 14.5px; transition: 0.25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- игральная карта ---------- */
.pcard {
  --w: 92px; width: var(--w); aspect-ratio: 5 / 7; background: #f8f4ea; color: var(--ink); border-radius: 7px; position: relative; flex: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 10px 22px -8px rgba(20, 18, 14, 0.35); border: 1px solid rgba(20, 18, 14, 0.14);
  font-family: var(--f-display); font-weight: 600;
}
.pcard.is-red { color: var(--accent); }
.pcard__r { position: absolute; left: 9%; top: 6%; font-size: calc(var(--w) * 0.34); line-height: 1; letter-spacing: -0.04em; }
.pcard__s { position: absolute; left: 9%; top: calc(var(--w) * 0.4 + 6%); width: calc(var(--w) * 0.2); height: calc(var(--w) * 0.2); fill: currentColor; }
.pcard__big { position: absolute; right: 9%; bottom: 7%; width: 44%; height: auto; aspect-ratio: 1; fill: currentColor; }
.pcard--mini { --w: 42px; border-radius: 4px; }
.pcard--mini .pcard__s, .pcard--mini .pcard__big { display: none; }
.pcard--mini .pcard__r { left: 12%; top: 8%; }

/* ---------- окна ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 18, 14, 0.5); z-index: 200; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(2px); }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); z-index: 210;
  transform: translateX(104%); transition: transform 0.55s var(--ease); display: flex; flex-direction: column; border-left: 1px solid var(--ink);
}
.drawer.is-open { transform: none; }
.drawer__head { padding: 26px 32px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.drawer__head h3 { font-size: 34px; }
.drawer__body { padding: 28px 32px; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 18px 32px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; background: var(--paper-2); }
.xbtn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; position: relative; flex: none; transition: 0.25s; }
.xbtn:hover { border-color: var(--ink); transform: rotate(90deg); }
.xbtn::before, .xbtn::after { content: ''; position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.xbtn::after { transform: rotate(-45deg); }

.modal {
  position: fixed; left: 50%; top: 50%; z-index: 220; width: min(480px, calc(100% - 32px)); background: var(--paper); border: 1px solid var(--ink);
  padding: 32px; box-shadow: 10px 10px 0 var(--ink); transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: 0.35s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal h3 { margin-bottom: 12px; }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }

/* ---------- уведомления ---------- */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast {
  background: var(--ink); color: var(--paper); padding: 14px 20px; font-size: 15px; border-radius: 2px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 14px 30px -10px rgba(20, 18, 14, 0.5); animation: toast-in 0.5s var(--ease-out); max-width: 480px;
}
.toast i { width: 8px; height: 8px; border-radius: 50%; background: #6fcf97; flex: none; }
.toast.is-error i { background: var(--accent); }
.toast.is-out { animation: toast-out 0.35s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- демо-режим ---------- */
.demo-flag {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  background: var(--paper); border: 1px solid var(--ink); padding: 8px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 4px 4px 0 var(--ink);
}
.demo-flag b { color: var(--accent); font-weight: 500; }
.demo-flag button { background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; padding: 0; font: inherit; }
@media (max-width: 720px) { .demo-flag { display: none; } }

/* ---------- состояния ---------- */
.empty { padding: 56px 0; text-align: center; color: var(--muted); }
.empty h4 { color: var(--ink); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 2px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-row { height: 96px; margin-bottom: 10px; }
