/* Layout: одна колонка до 640px. Шапка с вкладками, под ней карточка вопроса, форма ответа и ответы друзей.
   Тема одна, тёмная: чёрный фон, тёмно-оранжевые акценты, белый текст. */
:root {
  --bg: #121212;          /* фон страницы: тёмно-серый, мягче чистого чёрного */
  --surface: #1E1E1E;     /* карточки: на ступень светлее фона */
  --ink: #E8E6E3;         /* основной текст: не чисто белый, меньше режет глаза */
  --muted: #A0968E;       /* второстепенный текст */
  --line: #333131;        /* рамки */
  --soft: #2A2725;        /* подложки, выделение */
  --accent: #F2782C;      /* тёмно-оранжевый: ссылки, рамки, активные элементы */
  --btn: #C4500B;         /* фон главных кнопок, глубже оранжевый */
  --accent-ink: #FFFFFF;  /* текст на оранжевой кнопке */
  --deep: #E8E6E3;
  --funny: #FFB347;
  --spicy: #FF6A3D;
  --err: #FF7A6B;
  --special: #9B7BFF;     /* фиолетовый: особые поля в играх (разворот в Секторе, трамплин в Зигзаге) */
  --special-hi: #CDBEFF;  /* светлый фиолетовый: PERFECT-зона особого сектора */
  --turq: #2EC4B6;        /* бирюзовый: «крутится круг» в Секторе (можно использовать и в других местах) */
  --turq-hi: #A6EEE6;     /* светлый бирюзовый: PERFECT-зона бирюзового сектора */
  --trap: #E8364F;        /* красный: ловушка в Секторе (нажимать нельзя) */
  --trap-dark: #5C1220;   /* тёмно-красные полосы на ловушке */
  --split: #C8E650;       /* лаймовый: раздвоение стрелки в Секторе */
  --split-hi: #F0FAC8;    /* светлый лаймовый: PERFECT-зона лаймового сектора */
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, button { touch-action: manipulation; }
/* Текст, смайлики и значки на сайте не выделяются: иначе Chrome на Android по нажатию на слово открывает снизу
   поиск Google («Поиск по нажатию»), а долгое нажатие — меню телефона. В полях ввода всё как обычно —
   иначе на iPhone в них не напечатать. Меню долгого нажатия убирает ещё и app.js (contextmenu). */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg { -webkit-user-drag: none; }   /* картинку и значок не утащить пальцем */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  padding-block: max(20px, env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.noscript { padding: 16px; text-align: center; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 2px 9px; margin-bottom: -1px; color: var(--muted); font-weight: 500; }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.me { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.me span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12ch; }

/* avatar */
.avatar {
  --c: var(--accent);
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--font-body); line-height: 1;
}
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }

/* cards, forms, buttons */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card.narrow { max-width: 440px; width: 100%; margin: 6vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.card h1 { font: 600 26px/1.2 var(--font-display); text-wrap: balance; }
.card p.lead { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
input[type="email"], input[type="password"], input[type="text"], textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; line-height: 1.45;
}
textarea { resize: vertical; min-height: 96px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn { font-weight: 500; padding: 10px 16px; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.btn:hover:not(:disabled) { background: var(--soft); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: var(--btn); filter: brightness(1.12); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 8px 2px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.link.quiet { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.row.between { justify-content: space-between; }
.msg { font-size: 14px; min-height: 1.4em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--accent); }
.msg small { display: block; font: 400 12px var(--font-mono); color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.count { font: 400 12px var(--font-mono); color: var(--muted); }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 10px; }
.segment button { border: 0; background: transparent; border-radius: 7px; min-height: 40px; color: var(--muted); font-weight: 500; }
.segment button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }

/* colour picker */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { --c: var(--accent); width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; background: var(--c); padding: 0; box-shadow: 0 0 0 2px var(--surface) inset; }
.swatch[aria-checked="true"] { border-color: var(--ink); }

/* question */
.qcard { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.qhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.tag { --c: var(--deep); font: 500 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 2px 10px; }
.tag.cat-funny { --c: var(--funny); }
.tag.cat-spicy { --c: var(--spicy); }
.date { display: inline-block; font: 400 12.5px var(--font-mono); color: var(--muted); }
.date::first-letter { text-transform: uppercase; }
.qtext { font: 500 26px/1.3 var(--font-display); letter-spacing: -0.005em; text-wrap: balance; overflow-wrap: anywhere; }

/* answers */
.sect { display: flex; flex-direction: column; gap: 12px; }
.sect > h2 { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 4px; font-size: 14px; }
.chip.pending { background: transparent; border-style: dashed; color: var(--muted); }
.locked { border: 1px dashed var(--line); border-radius: 10px; padding: 16px 18px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.ans { display: flex; flex-direction: column; gap: 8px; }
.ans-head { display: flex; align-items: center; gap: 10px; }
.ans-name { font-weight: 600; }
.ans-time { margin-left: auto; font: 400 12px var(--font-mono); color: var(--muted); }
.ans-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.ans.mine { border-color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 28px 18px; }

/* reactions */
.reacts { display: flex; flex-wrap: wrap; gap: 6px; }
.react {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; min-width: 44px; justify-content: center;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; line-height: 1;
}
.react:hover:not(:disabled) { background: var(--soft); }
.react[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.react .n { font: 500 12.5px var(--font-mono); color: var(--muted); }
.react[aria-pressed="true"] .n { color: var(--accent); }
.react:disabled { opacity: 0.6; cursor: progress; }
.received { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.received.muted { font-size: 13.5px; }
.got { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.got > span:first-child { font-size: 16px; }

/* comments */
.comments { display: flex; flex-direction: column; gap: 8px; }
.cmt-toggle { align-self: flex-start; padding: 6px 0; min-height: 36px; font-size: 14px; text-decoration: none; }
.cmt-toggle:hover { text-decoration: underline; }
.cmt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cmt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.cmt-main { min-width: 0; }
.cmt-head { display: flex; gap: 8px; align-items: baseline; }
.cmt-name { font-weight: 600; font-size: 14px; }
.cmt-time { font: 400 11.5px var(--font-mono); color: var(--muted); }
.cmt-body { font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-form { display: flex; gap: 8px; }
.cmt-form input { flex: 1; min-width: 0; }
.cmt-form .btn { min-height: 42px; padding: 8px 14px; }
.x { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; border-radius: 6px; }
.x:hover { color: var(--err); background: var(--soft); }

/* streaks and stats */
.streak-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font: 500 13px var(--font-mono); color: var(--ink); min-height: 30px; }
.streak-chip:hover { background: var(--soft); }
.streak-hint { font-size: 14px; color: var(--funny); }
.streak-card { display: flex; align-items: center; gap: 18px; }
.streak-big { display: flex; align-items: baseline; gap: 4px; font-size: 30px; flex: none; }
.streak-num { font: 600 44px/1 var(--font-display); }
.streak-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.streak-title { font: 600 20px/1.25 var(--font-display); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.tile-n { font: 600 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.tile-l { font-size: 13px; color: var(--muted); }
.table-wrap { padding: 4px 0; overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 10px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.board thead th { font: 500 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.board th[scope="row"], .board thead th:first-child { text-align: left; }
.board tbody tr:last-child th, .board tbody tr:last-child td { border-bottom: 0; }
.board .me-row { background: var(--soft); }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who-name { display: flex; flex-direction: column; font-weight: 600; }
.who-sub { font: 400 11.5px var(--font-body); color: var(--muted); }
.small { font-size: 13px; }
.comments .msg:empty { display: none; }

/* archive */
details.day { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
details.day > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
details.day > summary::-webkit-details-marker { display: none; }
details.day > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
details.day[open] > summary { border-bottom: 1px solid var(--line); }
.day-q { font: 500 18px/1.35 var(--font-display); overflow-wrap: anywhere; }
.day-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.day-body .ans { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day-body .ans:last-child { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 480px) {
  .qtext { font-size: 23px; }
  .qcard { padding: 18px; }
  .tabs { gap: 14px; }
  .tab { font-size: 15px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me span.name { display: none; }
  .board th, .board td { padding: 10px 8px; }
  .board .col-best { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* form spacing */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack.tight { gap: 12px; }
.row.actions { padding-top: 6px; }

/* emoji avatars */
.avatar.emoji { font-size: 17px; }
.avatar.sm.emoji { font-size: 13px; }
.preview .avatar { width: 44px; height: 44px; font-size: 18px; }
.preview .avatar.emoji { font-size: 26px; }
.emojis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 300px; }
.emoji-opt { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 21px; line-height: 1; padding: 0; }
.emoji-opt.letter { font: 600 16px var(--font-body); color: var(--ink); }
.emoji-opt:hover { background: var(--soft); }
.emoji-opt[aria-checked="true"] { border: 2px solid var(--accent); background: var(--soft); }

/* reaction picker */
.reacts { position: relative; align-items: center; }
.react.add { color: var(--muted); gap: 1px; padding: 4px 10px; }
.react.add .plus { font: 600 14px var(--font-body); color: var(--accent); }
.react.add[aria-expanded="true"] { border-color: var(--accent); background: var(--soft); }
.react.static { cursor: default; }
.picker {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
  display: grid; grid-template-columns: repeat(5, 44px); gap: 4px; padding: 8px;
  background: var(--surface); border: 1px solid var(--accent); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.pick { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; font-size: 24px; line-height: 1; padding: 0; }
.pick:hover { background: var(--soft); }
.pick[aria-pressed="true"] { background: var(--soft); box-shadow: inset 0 0 0 2px var(--accent); }
.reacts.small { gap: 4px; margin-top: 4px; }
.reacts.small .react { min-height: 28px; min-width: 36px; padding: 2px 8px; font-size: 14px; }
.reacts.small .react .n { font-size: 11.5px; }

/* ===== быстрые улучшения из исследования ===== */

/* зоны нажатия не меньше 44px */
.react { min-height: 44px; min-width: 48px; }
.reacts.small .react { min-height: 36px; min-width: 40px; }
.x { width: 44px; height: 44px; }
.link, .cmt-toggle { min-height: 44px; }
.streak-chip { min-height: 36px; }
.swatch { width: 40px; height: 40px; }
.emoji-opt { height: 48px; }

/* нижняя панель навигации на телефоне */
.bottom-nav { display: none; }
@media (max-width: 640px) {
  .tabs { display: none; }
  .wrap.has-bottom-nav { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  }
  .bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 56px; border: 0; background: none; color: var(--muted); border-radius: 12px; font-size: 11.5px; font-weight: 500;
  }
  .bn-item .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bn-item[aria-current="page"] { color: var(--accent); }
  .bn-item[aria-current="page"] .ico svg { stroke-width: 2.3; }
  .bn-item:active { background: var(--soft); }
}

/* подсказка про двойной тап */
.hint-line { font-size: 13px; color: var(--muted); margin-top: -6px; }

/* двойной тап: сердце посреди карточки */
.ans { position: relative; }
.burst {
  position: absolute; left: 50%; top: 45%; font-size: 72px; line-height: 1; pointer-events: none; z-index: 5;
  transform: translate(-50%, -50%) scale(0); animation: burst 0.8s ease-out forwards;
}
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(0.95); }
  70% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(1); opacity: 0; }
}

/* реакция: эмодзи вылетает, счётчик подпрыгивает */
.fly { position: absolute; font-size: 22px; pointer-events: none; transform: translate(-50%, 0); animation: fly 0.7s ease-out forwards; z-index: 6; }
@keyframes fly {
  0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -48px) scale(1.6); opacity: 0; }
}
.react.bump { animation: bump 0.35s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* короткий ряд реакций и «ещё» */
.picker { grid-template-columns: repeat(4, 44px); }
.picker.full { grid-template-columns: repeat(5, 44px); }
.pick.more { font: 600 14px var(--font-body); color: var(--accent); letter-spacing: 1px; }

/* экран-празднование */
.celebrate {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(8, 8, 8, 0.78); animation: fade 0.2s ease-out;
}
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-card {
  position: relative; max-width: 360px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--accent); border-radius: 18px; padding: 28px 22px 22px;
  animation: pop 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
.cel-emoji { font-size: 56px; line-height: 1; }
.celebrate.big .cel-emoji { font-size: 72px; }
.cel-title { font: 600 26px/1.2 var(--font-display); }
.cel-streak { font: 500 16px var(--font-body); color: var(--accent); }
.cel-card .btn { width: 100%; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .burst, .fly, .react.bump, .celebrate, .cel-card { animation: none !important; }
}

.picker.up { top: auto; bottom: calc(100% + 6px); }

/* кнопка «поставить реакцию»: минималистичная, серый контурный смайлик */
.react.add { border-color: transparent; background: transparent; color: var(--muted); padding: 4px 8px; min-width: 44px; }
.react.add:hover:not(:disabled), .react.add[aria-expanded="true"] { background: var(--soft); border-color: transparent; color: var(--ink); }
.react.add .ico { display: inline-flex; }
.react.add .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reacts.small .react.add .ico svg { width: 19px; height: 19px; }

/* реакции: компактнее и спокойнее — без обводки, вместо счётчика аватарки поставивших */
.reacts { gap: 6px; }
.react {
  min-height: 30px; min-width: 0; padding: 3px 8px 3px 7px; gap: 5px; font-size: 14px;
  border: 0; background: rgba(255, 255, 255, 0.06); border-radius: 999px;
}
.react:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.react[aria-pressed="true"] { border: 0; background: rgba(255, 255, 255, 0.14); }
.react .emo { font-size: 15px; line-height: 1; }
.astack { display: inline-flex; align-items: center; }
.astack .avatar { width: 18px; height: 18px; font-size: 9px; box-shadow: 0 0 0 1.5px var(--surface); }
.astack .avatar.emoji { font-size: 11px; }
.astack .avatar + .avatar { margin-left: -5px; }
.astack .more-n { margin-left: 4px; font: 500 11px var(--font-mono); color: var(--muted); }
.react.add { min-height: 30px; padding: 3px 6px; background: transparent; }
.react.add .ico svg { width: 20px; height: 20px; }
.reacts.small { gap: 4px; }
.reacts.small .react { min-height: 26px; min-width: 0; padding: 2px 7px 2px 6px; font-size: 12.5px; }
.reacts.small .react .emo { font-size: 13px; }
.reacts.small .astack .avatar { width: 16px; height: 16px; font-size: 8px; }
.reacts.small .react.add .ico svg { width: 17px; height: 17px; }

/* карточки ответов компактнее */
.card.ans { padding: 14px 16px; gap: 6px; }
.ans .comments { gap: 4px; }
.cmt-toggle { min-height: 32px; padding: 2px 0; }
.ans .ans-body + .menu-anchor + .reacts, .ans .ans-body + .reacts { margin-top: 2px; }

/* свой ответ: нажатие открывает меню действий */
.tappable { cursor: pointer; }
.tappable .ans-body:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.menu-anchor { position: relative; height: 0; }
.menu {
  position: absolute; left: 0; top: 4px; z-index: 25; min-width: 220px; max-width: calc(100vw - 64px);
  display: flex; flex-direction: column; padding: 6px;
  background: #262422; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  animation: pop 0.16s ease-out; cursor: default;
}
.menu-meta { font: 400 11.5px var(--font-mono); color: var(--muted); padding: 6px 10px 4px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); font-size: 15px; text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, 0.07); }
.menu-item.danger { color: var(--err); }
.mi-ico { width: 22px; text-align: center; font-size: 16px; }
.menu.confirm { gap: 10px; padding: 14px; max-width: 300px; }
.menu-q { font-size: 14.5px; }
.btn.danger { background: #A8301F; border-color: #A8301F; color: #fff; font-weight: 600; }
.btn.danger:hover:not(:disabled) { background: #A8301F; filter: brightness(1.12); }

/* всплывающее сообщение */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: #2E2B28; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); transition: opacity 0.35s ease;
}
.toast.out { opacity: 0; }
.toast { pointer-events: none; } /* подсказка не мешает нажимать то, что под ней */
@media (max-width: 640px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }

/* ===== новый стиль как на скриншоте: большие скруглённые карточки, мягкие плитки, строки со стрелками ===== */
:root { --tile: #262422; --tile-open: #2D2A27; --gold: #F2C46D; }
.card { border-radius: 20px; padding: 18px; border-color: #2A2827; }
.card.narrow { border-radius: 22px; }
.qcard { padding: 20px; gap: 12px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.tile { background: var(--tile); border: 0; border-radius: 16px; padding: 14px 16px; gap: 6px; }
.tile-l { order: -1; font-size: 13.5px; color: var(--muted); }
.tile-n { font: 600 26px/1.1 var(--font-body); }
.tile-n.big { font: 600 34px/1.1 var(--font-body); }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-color { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--font-body); min-height: 40px; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.locked { border-radius: 20px; background: var(--surface); border: 1px solid #2A2827; }
.empty { border-radius: 20px; }
.board th, .board td { border-bottom-color: #2A2827; }
.table-wrap { border-radius: 20px; }
.streak-card { border-radius: 20px; }

/* архив — карточки-аккордеоны со стрелкой */
details.day { border-radius: 20px; border-color: #2A2827; }
details.day > summary { position: relative; padding: 16px 48px 16px 18px; border-radius: 20px; }
details.day > summary::after {
  content: ""; position: absolute; right: 20px; top: 24px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s;
}
details.day[open] > summary::after { transform: rotate(-135deg); top: 28px; }
details.day[open] > summary { border-bottom: 0; background: var(--tile); border-radius: 16px; margin: 6px 6px 0; }
.day-body { padding: 12px 18px 18px; }

/* гороскоп */
.horo { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.horo-head { display: flex; gap: 16px; align-items: center; }
.const { flex: none; border-radius: 16px; box-shadow: 0 0 0 1px #2E2B29; }
.horo-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.horo-date { font-size: 14px; color: var(--muted); }
.horo-sign { display: flex; align-items: center; gap: 10px; font: 600 28px/1.15 var(--font-body); }
.horo-glyph { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--btn); color: #fff; font-size: 22px; line-height: 1; }
.horo-list { display: flex; flex-direction: column; gap: 6px; }
.horo-item { border-radius: 16px; transition: background 0.15s; }
.horo-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 12px; border: 0; background: transparent; border-radius: 16px; text-align: left; color: var(--ink);
}
.horo-row:hover { background: rgba(255, 255, 255, 0.04); }
.horo-item.open .horo-row { background: var(--tile); }
.horo-title { font: 600 18px var(--font-body); min-width: 0; }
.cat-ico svg { width: 24px; height: 24px; display: block; stroke: #C9B8A8; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stars { display: inline-flex; gap: 3px; font-size: 15px; line-height: 1; }
.stars .on { color: var(--gold); }
.stars .off { color: #5A5450; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform 0.2s; justify-self: center; }
.horo-item.open .chev { transform: rotate(-135deg); margin-top: 4px; }
.horo-text { margin: 6px 0 4px; padding: 14px 16px; background: var(--tile); border-radius: 16px; font-size: 16px; line-height: 1.55; }
.horo-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 22px; }
.horo-empty-art { font-size: 44px; }
.horo-empty-title { font: 600 22px/1.25 var(--font-body); }

/* выбор знака зодиака */
.zodiacs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.zod {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; min-height: 76px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink);
}
.zod:hover { background: var(--soft); }
.zod[aria-checked="true"] { border: 2px solid var(--accent); background: var(--soft); }
.zod-g { font-size: 22px; line-height: 1.1; color: var(--accent); }
.zod-n { font-size: 13.5px; font-weight: 600; }
.zod-d { font: 400 10.5px var(--font-mono); color: var(--muted); }
@media (min-width: 560px) { .zodiacs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* пять вкладок внизу */
@media (max-width: 640px) {
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .bn-item { font-size: 10.5px; }
}
@media (max-width: 380px) {
  .horo-sign { font-size: 24px; }
  .horo-title { font-size: 16px; }
  .horo-row { grid-template-columns: 24px minmax(0, 1fr) auto 14px; gap: 9px; padding: 10px; }
  .stars { font-size: 13px; gap: 2px; }
}
@media (max-width: 440px) {
  .horo { padding: 14px; }
  .horo-row { grid-template-columns: 22px minmax(0, 1fr) auto 12px; gap: 9px; padding: 10px; }
  .horo-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stars { font-size: 13px; gap: 1px; }
  .cat-ico svg { width: 22px; height: 22px; }
  .horo-sign { font-size: 24px; }
  .horo-head { gap: 12px; }
  .horo-head .const { width: 80px; height: 80px; }
}

/* игра «Впиши слово» */
.tag.cat-fill { --c: var(--accent); }
mark.fill-ans {
  background: rgba(242, 120, 44, 0.16); color: var(--accent); font-weight: 600;
  padding: 0 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
mark.fill-ans.empty { background: transparent; color: transparent; font-weight: 400; letter-spacing: 1px; padding: 0 2px; border: 0; border-bottom: 2px dashed var(--muted); border-radius: 0; text-align: left; }
/* пустой пропуск: только точки снизу (подчёркивания прозрачные — держат ширину; рамку от общего .empty убираем) */
.qtext mark.fill-ans { font-weight: 600; }
.day-q mark.fill-ans.empty { border-bottom-width: 1.5px; }
#answer[type="text"] { min-height: 48px; font-size: 16px; }
.sect-title { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 8px; }

/* смахивание между вкладками: новый экран въезжает сбоку */
.slide-left > :not(header):not(.bottom-nav) { animation: slideFromRight 0.24s ease-out; }
.slide-right > :not(header):not(.bottom-nav) { animation: slideFromLeft 0.24s ease-out; }
@keyframes slideFromRight { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideFromLeft { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
html, body { overflow-x: hidden; }

/* ===== комментарии: иконка в строке с реакциями, меню по нажатию, стрелка отправки ===== */
.act-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.act-row .reacts { flex: 1; min-width: 0; }
.act-spacer { flex: 1; }
.cmt-btn {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; min-width: 40px; padding: 4px 8px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 13px var(--font-body);
}
.cmt-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linejoin: round; }
.cmt-btn:hover, .cmt-btn[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.cmt-preview {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 2px 0; min-height: 28px;
  color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmt-preview:hover { color: var(--ink); }
.cmt-pname { color: var(--ink); font-weight: 600; }
.cmt { grid-template-columns: 22px minmax(0, 1fr); }
.cmt-col { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmt-main { cursor: pointer; border-radius: 8px; }
.cmt-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmt-form { position: relative; display: block; }
.cmt-form input { width: 100%; padding-right: 50px; min-height: 44px; border-radius: 22px; }
.send {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: var(--btn); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.send svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.send:disabled { background: var(--soft); color: var(--muted); cursor: default; }

/* знаки зодиака без дат */
.zod { min-height: 62px; justify-content: center; }

/* таблица участников помещается без прокрутки */
.table-wrap { overflow-x: visible; padding: 2px 0; }
.board { table-layout: fixed; }
.board th, .board td { padding: 10px 8px; }
.board thead th { white-space: normal; line-height: 1.25; vertical-align: bottom; font-size: 10.5px; letter-spacing: 0.04em; }
.board th[scope="row"] { overflow: hidden; }
.board thead th:not(:first-child), .board td { width: 64px; }
.board thead th.col-best, .board td.col-best { width: 60px; }
.who { display: flex; min-width: 0; gap: 8px; }
.who-name { min-width: 0; }
.who-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 480px) {
  .board thead th:not(:first-child), .board td { width: 52px; }
  .board th, .board td { padding: 9px 5px; }
  .board th[scope="row"], .board thead th:first-child { padding-left: 10px; }
  .board td:last-child, .board thead th:last-child { padding-right: 10px; }
}

/* строка действий без реакций и без комментариев не занимает место */
.act-row:has(> .act-spacer):has(> .cmt-btn[hidden]) { display: none; }
.cmt-btn[hidden] { display: none !important; }

/* ===== спокойнее и плавнее ===== */
/* свой ответ без оранжевой рамки */
.ans.mine, .card.ans.mine { border-color: #2A2827; }
/* «Слово»: твой вариант в верхней карточке */
.fill-top .qtext { margin: 0; }
/* Вопрос дня: мой ответ вписан в карточку вопроса снизу, отделён тонкой линией */
.q-top .qtext { margin: 0; }
.q-top > .ans-body { border-top: 1px solid var(--line); padding-top: 12px; }
.saved-line { font-size: 13px; color: var(--muted); }
/* мягкая подсветка карточки после сохранения */
.glow { animation: glow 1.2s ease-out; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(242, 120, 44, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(242, 120, 44, 0); } }
/* кнопка «✓ Сохранено» */
.btn.primary.ok, .btn.primary.ok:disabled { background: #2F7D4F; border-color: #2F7D4F; opacity: 1; transition: background 0.2s; }
/* ответы друзей появляются по очереди */
.rise { animation: rise 0.36s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* реакция: лёгкое увеличение без «вылета» */
.react.bump { animation: bumpSoft 0.28s ease-out; }
@keyframes bumpSoft { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
.burst { font-size: 54px; }
/* смена вкладок по нажатию — мягкое появление */
.slide-fade > :not(header):not(.bottom-nav) { animation: fadeIn 0.22s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* комментарии и поле плавно раскрываются */
.cmt-list, .cmt-form { animation: fadeIn 0.2s ease-out; }

/* гороскоп: категория и предсказание в одной карточке, плавное раскрытие */
.horo-item { overflow: hidden; }
.horo-item.open { background: var(--tile); }
.horo-item.open .horo-row { background: transparent; }
.horo-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.horo-item.open .horo-panel { grid-template-rows: 1fr; }
.horo-panel-in { overflow: hidden; min-height: 0; }
.horo-text {
  margin: 0 14px; padding: 12px 2px 16px; background: transparent; border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; transition: opacity 0.25s ease;
}
.horo-item.open .horo-text { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .glow, .rise, .react.bump, .slide-fade > *, .cmt-list, .cmt-form { animation: none !important; }
  .horo-panel, .horo-text { transition: none !important; }
}

/* ссылка на архив внизу «Вопроса» и «Слова», и «назад» в архиве */
.past-link { display: flex; justify-content: center; padding: 4px 0 8px; }
.past-link .link, .back-link { text-decoration: none; }
.back-row { margin: -4px 0 -2px; }

/* ===== игра «Сектор» ===== */
.game-sect { gap: 14px; }
.sector { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 12px 20px; background: var(--surface); border-radius: 20px; }
/* Светящаяся рамка Сектора: --glow от 0 до 1 (разгорается с попаданиями), вспышка — цветом особого сектора */
@property --sg-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sector-glow, .sector-flash { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; }
.sector-glow { --gc: var(--accent); opacity: var(--glow, 0); transition: opacity 0.6s ease; }
.sector-flash { --gc: var(--fc, var(--special)); opacity: 0; }
.sector-glow, .sector-flash { box-shadow: 0 0 30px -3px var(--gc), inset 0 0 22px -7px var(--gc); }
.sector-glow::before, .sector-flash::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--sg-a), var(--gc), transparent 22%, var(--gc) 50%, transparent 72%, var(--gc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.sector-flash::before { background: var(--gc); }
.sector.playing .sector-glow::before { animation: sgSpin 5s linear infinite; }
@keyframes sgSpin { to { --sg-a: 360deg; } }
.sector > .sector-field, .sector > .sector-panel { position: relative; z-index: 1; }

.sector-field {
  position: relative; width: 100%; max-width: 360px; display: flex; justify-content: center;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  outline: none; border-radius: 50%;
}
.sector.playing .sector-field { cursor: pointer; }
/* во время игры любое касание — нажатие: без прокрутки, зума и выделения текста */
html.sector-on, html.sector-on body { touch-action: none; overscroll-behavior: none; }
html.sector-on .wrap { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
/* пока идёт игра, меню и шапка не нажимаются (касание по ним считается нажатием в игре) */
html.sector-on .bottom-nav, html.sector-on nav.tabs, html.sector-on header .me, html.sector-on #board { pointer-events: none; opacity: 0.35; transition: opacity 0.2s; }
#board { transition: opacity 0.2s; }
.bottom-nav, nav.tabs, header .me { transition: opacity 0.2s; }
.sector-field:focus-visible { box-shadow: 0 0 0 3px var(--soft); }
.sector-canvas { display: block; }
.sector-hub { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.sector-score { font: 600 44px/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.sector-score.bump { animation: bumpSoft 0.22s ease-out; }
.sector-hint { font: 500 13px var(--font-mono); color: var(--muted); min-height: 16px; margin-top: 4px; }
.sector.over .sector-score { color: var(--err); }
/* В Секторе счёт рисуется на холсте (ровно по центру и крутится с кругом); этот текст — только для экранного диктора */
.sector-score.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sector-hint.low { position: absolute; left: 0; right: 0; top: 50%; margin: 30px 0 0; text-align: center; }
.sector-pop {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: 46px; text-align: center; pointer-events: none;
  font: 600 13px var(--font-mono); letter-spacing: 0.08em; color: var(--accent); opacity: 0;
}
.sector-pop.show { animation: popUp 0.7s ease-out; }
@keyframes popUp { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.sector-panel { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-height: 128px; width: 100%; max-width: 360px; }
.sector-lead { margin: 0; font-size: 17px; color: var(--ink); }
.sector-best, .sector-tip { margin: 0; color: var(--muted); font-size: 14px; }
.sector-play { min-width: 180px; margin-top: 6px; }
.sector-over { margin: 0; font: 600 20px var(--font-mono); letter-spacing: 0.12em; color: var(--ink); }
.sector-new { margin: 0; font: 600 13px var(--font-mono); letter-spacing: 0.1em; color: var(--accent); }
.sector-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 2px; }
.sector-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; background: var(--soft); border-radius: 12px; }
.sector-stat .n { font: 600 22px var(--font-mono); color: var(--ink); }
.sector-stat .l { font-size: 12px; color: var(--muted); }
.sector-warn { margin: 0; font-size: 13px; color: var(--err); }
.lb .col-rank { width: 40px; text-align: center; }
.lb-score { font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sector-score.bump, .sector-pop.show, .sector-glow::before { animation: none !important; } }

/* вопрос дня — оранжевым, чтобы сразу бросался в глаза */
.qtext.q-accent { color: var(--accent); }

/* карточка «Приложение на телефоне» в профиле */
.install-title { margin: 0; font-weight: 600; }
.install-card .muted { margin: 0; }

/* всплывающая подсказка «можно установить как приложение» */
.install-hint {
  position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  max-width: 460px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  animation: ihIn 0.28s ease-out;
}
@media (max-width: 640px) { .install-hint { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
.install-hint.out { opacity: 0; transform: translateY(10px); transition: opacity 0.2s, transform 0.2s; }
@keyframes ihIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ih-row { display: flex; gap: 12px; align-items: flex-start; }
.ih-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.ih-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ih-title { margin: 0; font-weight: 600; color: var(--ink); }
.ih-sub { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.ih-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .install-hint { animation: none; } .install-hint.out { transition: none; } }

/* баллы */
.sector-points { margin: 0; font: 500 13px var(--font-mono); color: var(--muted); }
.sector-points.got { color: var(--accent); }
.points-card { display: flex; align-items: center; gap: 16px; }
.points-big { font: 600 34px/1 var(--font-mono); color: var(--accent); white-space: nowrap; }
.points-rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.points-rules b { color: var(--ink); font-weight: 600; }

/* уведомления */
.push-card .muted { margin: 0; }
.push-state { margin: 0; font: 500 13px var(--font-mono); color: var(--muted); }
.push-state.on { color: #6FCF97; }
.ih-bell { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--soft); border-radius: 12px; }

/* переключатель «Вопрос дня / Слово дня» */
.day-switch { margin-bottom: 2px; }

/* ===== казино ===== */
.casino { display: flex; flex-direction: column; gap: 14px; }
.casino-bal { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.casino-bal-n { font: 600 26px var(--font-mono); color: var(--accent); }
.casino-seg { grid-template-columns: repeat(3, 1fr); }
.casino-game { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.casino-betrow { display: flex; flex-direction: column; gap: 6px; }
.casino-betline { display: flex; gap: 6px; align-items: center; }
.casino-bet-in { flex: 1; min-width: 0; font: 600 18px var(--font-mono); padding: 10px 12px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.casino-q { min-width: 52px; padding: 8px 10px; font: 600 14px var(--font-mono); }
.casino-res { margin: 0; font: 500 15px var(--font-mono); color: var(--muted); text-align: center; }
.casino-res.win { color: var(--accent); }
.casino-res.lose { color: var(--err); }
.casino-note { margin: 0; text-align: center; }
/* пустая строка результата не занимает место (до первой игры под кнопками нет пустоты) */
.casino-res:empty { display: none; }
.casino-hist .empty { margin: 0; }
.casino-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.casino-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; background: var(--surface); border-radius: 12px; font-size: 14px; }
.casino-row-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.casino-row-t { font: 400 12px var(--font-mono); color: var(--muted); opacity: 0.75; }
.casino-row-d.refund { color: var(--muted); font-weight: 500; }
.casino-row.fresh { animation: rowFresh 1.6s ease-out; }
@keyframes rowFresh { 0% { background: rgba(242, 120, 44, 0.32); } 100% { background: var(--surface); } }
@media (prefers-reduced-motion: reduce) { .casino-row.fresh { animation: none; box-shadow: inset 3px 0 0 var(--accent); } }
.casino-row-d { font: 600 14px var(--font-mono); white-space: nowrap; }
.casino-row-d.win { color: var(--accent); }
.casino-row-d.lose { color: var(--err); }

/* Дабл */
.dbl-window { position: relative; height: 72px; overflow: hidden; border-radius: 14px; background: var(--bg); }
.dbl-strip { position: absolute; top: 8px; left: 0; display: flex; gap: 6px; will-change: transform; }
.dbl-tile { flex: none; width: 58px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font: 600 18px var(--font-mono); color: #fff; }
.dbl-tile.red, .dbl-dot.red, .dbl-pick.red { background: var(--btn); } /* «красное» в цвете сайта */
.dbl-tile.black, .dbl-dot.black, .dbl-pick.black { background: #2B2B2B; }
.dbl-tile.green, .dbl-dot.green, .dbl-pick.green { background: #1E8E4E; }
.dbl-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 10px var(--accent); border-radius: 2px; }
.dbl-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dbl-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; border: 0; min-height: 58px; }
.dbl-pick.black { border: 1px solid #444; }
.dbl-pick:disabled { opacity: 0.45; }
.dbl-pick-l { font-weight: 600; }
.dbl-pick-x { font: 500 13px var(--font-mono); opacity: 0.85; }
.dbl-hist { display: flex; flex-wrap: wrap; gap: 6px; }
.dbl-dot { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 600 12px var(--font-mono); color: #fff; }

/* Сапёр */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: 100%; max-width: 300px; margin: 0 auto; }
.mine-cell { aspect-ratio: 1; min-height: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--tile); font-size: 24px; display: flex; align-items: center; justify-content: center; padding: 0; transition: transform 0.12s, background 0.2s; }
.mine-cell:not(:disabled):active { transform: scale(0.94); }
.mine-cell:disabled { opacity: 1; cursor: default; }
.mine-cell.safe { background: rgba(242, 120, 44, 0.10); border-color: rgba(242, 120, 44, 0.45); }
.mine-cell .gem { width: 62%; height: 62%; display: flex; }
.mine-cell .gem svg { width: 100%; height: 100%; }
.mine-cell.bomb { background: rgba(196, 80, 11, 0.30); border-color: rgba(196, 80, 11, 0.6); }
.mine-cell.boom { background: var(--btn); border-color: var(--accent); }
.mines-info { display: flex; justify-content: space-between; font: 600 16px var(--font-mono); }
.mines-setup { display: flex; flex-direction: column; gap: 6px; }
/* мины: «Мины [−][ 3 ][+] [Начать]» в одну строку */
.mines-row { display: flex; align-items: center; gap: 8px; }
.mines-row .lbl { flex: none; }
.mines-step { display: flex; align-items: center; gap: 4px; flex: none; }
.mines-stepbtn { min-width: 38px; padding: 6px 0; font: 600 18px/1 var(--font-mono); }
.mines-in { width: 50px; flex: none; text-align: center; padding: 10px 2px; -moz-appearance: textfield; appearance: textfield; }
.mines-in::-webkit-outer-spin-button, .mines-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mines-in.bad { border-color: var(--err); color: var(--err); }
.mines-go { flex: 1; min-width: 0; padding-left: 8px; padding-right: 8px; }
.mines-hint { min-height: 18px; }
.mines-n { font: 600 15px var(--font-mono); }
.mines-cash { width: 100%; }

/* Краш */
.crash-stage { position: relative; border-radius: 14px; background: var(--bg); overflow: hidden; }
.crash-canvas { display: block; }
.crash-mult { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 44px var(--font-mono); color: var(--ink); pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.crash-mult.win { color: var(--accent); }
.crash-mult.lose { color: var(--err); }
.crash-btn { width: 100%; min-height: 52px; font-size: 17px; }
.crash-btn.cash { background: var(--btn); border-color: var(--btn); display: flex; align-items: center; justify-content: center; gap: 0.35em; }
/* число в «Забрать»: цифры одной ширины, по центру своей коробки — слово и монета не прыгают */
.crash-num { display: inline-block; text-align: center; font-variant-numeric: tabular-nums; }
.crash-hist { display: flex; flex-wrap: wrap; gap: 6px; }
.crash-chip { padding: 4px 9px; border-radius: 999px; font: 600 12px var(--font-mono); background: var(--soft); color: var(--muted); }
.crash-chip.hi { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .mine-cell { transition: none; } }
/* цветные кнопки Дабла не темнеют после нажатия (на телефоне наведение «залипает») */
.dbl-pick.red:hover:not(:disabled) { background: var(--btn); filter: brightness(1.1); }
.dbl-pick.green:hover:not(:disabled) { background: #1E8E4E; filter: brightness(1.1); }
.dbl-pick.black:hover:not(:disabled) { background: #2B2B2B; filter: brightness(1.2); }

/* Краш: после выигрыша — бейдж «забрал на ×…», множитель догоняет до взрыва */
.crash-mult.rising { color: var(--ink); }
.crash-mult.after { color: var(--muted); font-size: 36px; }


/* ----- Ферма: поле 4×4, серебро ----- */
html.sector-on .game-switch { pointer-events: none; opacity: 0.35; }
.farm { display: flex; flex-direction: column; gap: 14px; }
.farm.busy .farm-plot, .farm.busy .farm-actions .btn, .farm.busy .farm-sheet button { pointer-events: none; }
.farm-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.farm-head-l, .farm-head-r { display: flex; flex-direction: column; gap: 2px; }
.farm-head-r { align-items: flex-end; }
.farm-bal { display: inline-flex; align-items: center; gap: 8px; font: 600 26px var(--font-mono); color: #DDE2E7; font-variant-numeric: tabular-nums; }
.farm-cells { font: 600 18px var(--font-mono); font-variant-numeric: tabular-nums; }
.farm-coin { display: inline-block; flex: none; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, #C9CED4 45%, #868D95); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.farm-coin.lg { width: 20px; height: 20px; }
.farm-amt { display: inline-flex; align-items: center; gap: 5px; font: 600 15px var(--font-mono); font-variant-numeric: tabular-nums; vertical-align: -2px; }
.farm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.farm-actions .btn { padding: 8px 10px; font-size: 14px; line-height: 1.25; }
.farm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.farm-plot {
  position: relative; aspect-ratio: 1; min-width: 0; padding: 6px 4px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink); border: 1px solid #3A2D23;
  background: repeating-linear-gradient(0deg, #2E231B 0 8px, #281E17 8px 16px);
}
.farm-plot:active:not(.is-locked) { transform: scale(0.97); }
.farm-plot.is-empty { border-style: dashed; border-color: #5A4738; }
.farm-plot.is-locked { background: #191817; border-color: #262423; }
.farm-plot.is-next { background: #1C1A19; border: 1px dashed var(--accent); }
.farm-plot.is-ready { border: 2px solid var(--accent); box-shadow: 0 0 0 3px rgba(242, 120, 44, 0.14); }
.farm-art { display: block; width: 62%; height: 62%; }
.farm-art svg { display: block; }
.farm-plot.is-ready .farm-art { animation: farmBob 1.8s ease-in-out infinite; }
.farm-time { font: 500 12px/1.2 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.farm-time.ready { color: var(--accent); font-weight: 600; }
.farm-lock { display: block; width: 30%; height: 30%; color: #45413E; }
.farm-plot.is-next .farm-lock { color: var(--accent); width: 26%; height: 26%; }
.farm-price { font-size: 12px; gap: 3px; }
.farm-price .farm-coin { width: 9px; height: 9px; }
.farm-plus { font: 400 28px/1 var(--font-body); color: #7A6656; }
.farm-float {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%); pointer-events: none;
  font: 700 15px var(--font-mono); color: var(--accent); text-shadow: 0 1px 3px #000;
  animation: farmFloat 1s ease-out forwards;
}
.farm-err { color: var(--err); font-size: 14px; }
.farm-note { text-align: center; }
.farm-msg { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* окно снизу: выбор семян, покупка клетки, растущее растение */
.farm-back { position: fixed; inset: 0; z-index: 58; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.6); animation: farmFade 0.15s ease-out; }
.farm-sheet {
  width: 100%; max-width: 640px; max-height: 84vh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px max(18px, env(safe-area-inset-bottom, 0px));
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  animation: farmUp 0.2s ease-out;
}
.farm-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.farm-sheet h2 { font: 600 19px/1.25 var(--font-display); }
.farm-x { flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 28px; line-height: 1; }
.farm-sheet .btn { width: 100%; }
.farm-seed-head, .farm-seed { display: grid; grid-template-columns: 32px minmax(0, 1fr) 46px 54px 52px; gap: 6px; align-items: center; }
.farm-seed-head { padding: 0 10px; font-size: 11px; line-height: 1.2; color: var(--muted); text-align: right; }
.farm-seed { min-height: 56px; padding: 8px 10px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.farm-seed:hover:not(:disabled) { border-color: var(--accent); }
.farm-seed:disabled { opacity: 0.45; cursor: not-allowed; }
.farm-seed .farm-art { width: 32px; height: 32px; }
.farm-seed-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.farm-seed-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.farm-seed-num { font: 500 14px var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.farm-seed-num.gain { color: var(--accent); }
.farm-info { display: flex; gap: 12px; align-items: center; }
.farm-info .farm-art { flex: none; width: 56px; height: 56px; }
.farm-info p { margin: 3px 0; }
.farm-time-big { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@keyframes farmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes farmFloat { 0% { opacity: 0; transform: translate(-50%, 6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
@keyframes farmUp { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes farmFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .farm-plot.is-ready .farm-art, .farm-float, .farm-back, .farm-sheet { animation: none !important; } .farm-plot:active { transform: none; } }

/* ===== игра «Зигзаг» ===== */
.game-switch { grid-template-columns: repeat(4, 1fr); }
.game-switch button { padding: 0 4px; font-size: 14px; }
.game-switch .seg-badge { margin-left: 3px; padding: 1px 3px; font-size: 9px; }
.zz-field {
  position: relative; width: 100%; max-width: 420px; display: flex; justify-content: center; overflow: hidden;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  outline: none; border-radius: 14px;
}
.sector.playing .zz-field { cursor: pointer; }
.zz-field:focus-visible { box-shadow: 0 0 0 3px var(--soft); }
.zz-canvas { display: block; }
.zz-score { position: absolute; top: 12px; left: 0; right: 0; text-align: center; pointer-events: none; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75); }
.zz-hint { position: absolute; top: 62px; left: 0; right: 0; text-align: center; pointer-events: none; }
.zz-note { text-align: center; }

/* ===== Переключатели (Вопрос/Слово, игры в казино, разделы «Игры», неделя/всё время) — заметнее =====
   Выбранный пункт — оранжевая плашка, остальные — светлый текст на рамке: сразу видно, что можно переключать. */
.segment { background: #2A2624; border: 1px solid #45392F; border-radius: 12px; }
.segment button { color: #D8D1CB; font-weight: 500; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.segment button:hover:not([aria-pressed="true"]):not(:disabled) { background: rgba(242, 120, 44, 0.1); color: var(--ink); }
.segment button[aria-pressed="true"] { background: var(--btn); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(196, 80, 11, 0.35); }
.segment button:disabled { opacity: 0.45; }
.seg-badge {
  display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 6px; vertical-align: 1px;
  font: 600 10px/1.4 var(--font-mono); letter-spacing: 0.02em; text-transform: uppercase;
  background: rgba(242, 120, 44, 0.18); color: var(--accent);
}
.segment button[aria-pressed="true"] .seg-badge { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* «Зигзаг»: счётчик монет за партию и рейтинг */
.zz-gems {
  position: absolute; top: 14px; right: 12px; pointer-events: none; padding: 3px 10px; border-radius: 999px;
  background: rgba(18, 18, 18, 0.6); font: 600 15px var(--font-mono); color: var(--accent); font-variant-numeric: tabular-nums;
}
.zz-gems.bump { animation: bumpSoft 0.22s ease-out; }
html.sector-on #zz-board { pointer-events: none; opacity: 0.35; transition: opacity 0.2s; }
#zz-board { transition: opacity 0.2s; }
@media (prefers-reduced-motion: reduce) { .zz-gems.bump { animation: none !important; } }

/* ===== Профиль: серия дней и монеты — две маленькие карточки рядом ===== */
.me-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 12px 16px; }
.me-card-l { font-size: 13px; color: var(--muted); }
.me-card-n { font: 600 26px/1.15 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.me-card-n.coins { font-size: 22px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; }

/* ===== Профиль: компактные настройки ===== */
.name-row { display: flex; align-items: center; gap: 12px; }
.name-row input { flex: 1; min-width: 0; }
.set-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.set-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 74px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.set-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(242, 120, 44, 0.25); }
.set-vis { height: 32px; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.set-vis .avatar { width: 32px; height: 32px; font-size: 15px; }
.set-vis .avatar.emoji { font-size: 20px; }
.set-rainbow {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(#D6457A, #D9622B, #B8860B, #3C8D2F, #12806F, #2F6FDE, #8A4FD6, #D6457A);
}
.set-rainbow i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface); }
.set-l { max-width: 100%; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* окошко выбора поверх профиля: открывается под кнопками, ничего не сдвигает */
.set-wrap { position: relative; }
/* кнопки остаются над затемнением: можно сразу переключиться на другой выбор или закрыть тем же нажатием */
.set-wrap .set-row { position: relative; z-index: 46; }
.set-back { position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, 0.35); }
.set-back[hidden], .set-pop[hidden] { display: none; }
.set-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 45;
  max-height: 62vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid #3A3532;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); animation: setPop 0.14s ease-out;
}
.set-pop-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.set-x { width: 36px; height: 36px; margin-right: -6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 24px; line-height: 1; }
.set-pop .emojis { max-width: none; }
@keyframes setPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .set-pop { animation: none; } }
/* «Любой цвет»: радужный круг, внутри — выбранный оттенок; поверх лежит невидимое поле палитры */
.swatch.any { background: conic-gradient(#D6457A, #D9622B, #E8C42E, #3C8D2F, #12806F, #2F6FDE, #8A4FD6, #D6457A); }
.swatch.any.set { background: radial-gradient(circle, var(--c) 50%, transparent 52%), conic-gradient(#D6457A, #D9622B, #E8C42E, #3C8D2F, #12806F, #2F6FDE, #8A4FD6, #D6457A); }
/* в окошке: цвета по 6 в ряд — 6 готовых, затем 5 готовых и радужный круг */
.set-pop .swatches { display: grid; grid-template-columns: repeat(6, 36px); justify-content: space-between; gap: 10px 0; }
.set-pop .swatch { width: 36px; height: 36px; }
/* смайликов много — список листается внутри окошка */
.set-pop .emojis { grid-template-columns: repeat(6, minmax(0, 1fr)); max-height: 236px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 2px 0; }
.set-pop .emoji-opt { height: 40px; font-size: 22px; }

/* своя палитра: квадрат «насыщенность × яркость» и полоска оттенка */
.mix { display: flex; flex-direction: column; gap: 12px; }
.mix-area {
  --h: 0; position: relative; height: 150px; border-radius: 12px; touch-action: none; cursor: crosshair; outline: none;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, hsl(calc(var(--h) * 1deg), 100%, 50%));
}
.mix-area:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.mix-thumb { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5); }
.mix-hue {
  -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 4px 0; border-radius: 9px; outline: none; cursor: pointer;
  background: linear-gradient(to right, hsl(0, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%), hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(360, 100%, 50%));
}
.mix-hue::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--surface); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); }
.mix-hue::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--surface); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); }
.mix-hue::-moz-range-track { background: transparent; }
.mix-hue:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.mix-row { display: flex; align-items: center; gap: 10px; }
.mix-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); }
.mix-code { flex: 1; font: 600 15px var(--font-mono); color: var(--ink); }
.mix-ok { min-width: 110px; }
/* в профиле пустая строка для сообщений не занимает место */
form.card .msg:empty, .push-card .msg:empty { display: none; }

/* Участники: колонка монет */
.board .col-coins { color: var(--accent); font-family: var(--font-mono); }
.board thead .col-coins { color: var(--muted); }
.board thead th.col-coins, .board td.col-coins { width: 76px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .board thead th.col-coins, .board td.col-coins { width: 64px; }
  .board td.col-coins { font-size: 13px; }
}

/* уведомления: компактная карточка — заголовок и состояние в одну строку, кнопки ниже */
.push-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.push-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.push-state.long { font: 400 14px/1.45 var(--font-body); }
.push-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.push-btns .btn { min-height: 40px; padding: 8px 12px; }
.push-card .msg { margin: 0; }
/* на широком экране всё в одну строку: «Уведомления  Включены ✓   [Проверить] [Выключить]» */
@media (min-width: 560px) {
  .push-card.short { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .push-card.short .push-head { flex: 1 1 auto; justify-content: flex-start; }
  .push-card.short .push-btns { grid-auto-columns: auto; }
  .push-card.short .msg { flex-basis: 100%; }
}

/* монета сайта (картинка задаётся в coin.js) — вместо смайлика 🪙, одинаковая на всех телефонах */
.coin {
  display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; flex: none;
  background: var(--coin-img) center / contain no-repeat;
}
/* на оранжевой кнопке монете нужна лёгкая тень, иначе сливается с фоном */
.btn.primary .coin { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.5)); }

/* ===== свои значки вместо смайликов (картинки в icons.js) ===== */
.ic { display: inline-flex; width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }
.ic-line { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.flame { width: 1.2em; height: 1.2em; vertical-align: -0.24em; margin: 0 -0.06em; }
.mi-ico { display: inline-flex; align-items: center; justify-content: center; }
.mi-ico .ic { width: 18px; height: 18px; }
.zod-g .ic { width: 24px; height: 24px; }
.set-vis.zod-g .ic { width: 26px; height: 26px; }
.horo-glyph .ic { width: 22px; height: 22px; }
.horo-glyph .ic-line { stroke-width: 2; }
.ic.cel-emoji { width: 60px; height: 60px; margin: 0 auto; }
.celebrate.big .ic.cel-emoji { width: 76px; height: 76px; }
.mine-cell .ic-mine { width: 66%; height: 66%; }
/* на оранжевой клетке взрыва мина тёмная, иначе шипы сливаются с фоном */
.mine-cell.boom .ic-mine path, .mine-cell.boom .ic-mine circle { stroke: #1A1716; }
/* медали рейтинга: кружок с номером места */
.medal { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font: 600 12px/1 var(--font-mono); }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #FFE7AE, #F2B33D 58%, #B9800F); color: #3D2604; }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #F6F4F1, #BDB6B0 58%, #8A837E); color: #2B2724; }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #F7BE93, #D9783A 58%, #9C4A16); color: #351604; }

/* ===== переключатель «Вопрос / Слово / Выбор» и «Выбор дня» ===== */
.segment.three { grid-template-columns: repeat(3, 1fr); }
.poll-card { gap: 14px; }
.poll-card .qtext { margin: 0; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.po {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--soft); color: var(--ink); font: 500 16px/1.3 var(--font-body); text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.po:not(:disabled):active { transform: scale(0.985); }
.po:hover:not(:disabled) { border-color: #4A3F37; }
.po:disabled { cursor: default; opacity: 1; }
.po-text { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* после выбора: полоска с долей голосов, справа аватарки и проценты */
.po-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(242, 120, 44, 0.12); border-radius: 0; transition: width 0.5s ease; }
.po.mine { border-color: var(--accent); }
.po.mine .po-bar { background: rgba(242, 120, 44, 0.26); }
.po-side { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.po-pct { font: 500 14px var(--font-mono); color: var(--muted); min-width: 3.2ch; text-align: right; }
.po.mine .po-pct { color: var(--accent); }
.poll-opts.reveal .po-bar { animation: po-grow 0.6s ease both; }
@keyframes po-grow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.poll-foot { margin: 0; }
@media (prefers-reduced-motion: reduce) { .po-bar { transition: none; } .poll-opts.reveal .po-bar { animation: none; } }

/* «Свой вопрос»: форма, мои предложения и очередь на проверку */
.sug-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px 4px 10px; border-radius: 999px;
  border: 1px solid rgba(242, 120, 44, 0.45); background: rgba(242, 120, 44, 0.1); color: var(--accent);
  font: 500 13px/1.2 var(--font-body); white-space: nowrap;
}
.sug-btn:hover { background: rgba(242, 120, 44, 0.18); }
.sug-btn .ic { width: 14px; height: 14px; }
.sug-btn .ic-line { stroke-width: 2.2; }
.sug-btn .seg-badge { margin-left: 2px; }
.sug-badge[hidden] { display: none; }
.sug-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 380px) { .sug-opts { grid-template-columns: 1fr; } }
.sug-preview { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.sug-ptext { font: 500 18px/1.4 var(--font-display); overflow-wrap: anywhere; }
.sug-rules { margin: 0; padding: 0 4px 0 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.card.sug-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.sug-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sug-kind, .sug-date { font: 500 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.sug-st { font: 600 11px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.sug-st.st-pending { background: rgba(242, 120, 44, 0.16); color: var(--accent); }
.sug-st.st-approved { background: rgba(47, 125, 79, 0.25); color: #7DD3A0; }
.sug-st.st-rejected { background: var(--soft); color: var(--muted); }
.sug-text { margin: 0; overflow-wrap: anywhere; }
.sug-optline, .sug-note { margin: 0; font-size: 13px; color: var(--muted); }
.sug-with { color: var(--accent); }
/* «Показывать автора»: переключатель (выбранный — оранжевый) */
.sug-author { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sw-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); box-sizing: border-box; transition: background 0.18s, border-color 0.18s; }
.sw-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #9A938D; transition: transform 0.18s, background 0.18s; }
.sug-author[aria-checked="true"] .sw-track { background: var(--accent); border-color: var(--accent); }
.sug-author[aria-checked="true"] .sw-knob { transform: translateX(16px); background: #fff; }
.sug-author-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sug-author-l { font-size: 15px; font-weight: 500; }
.sug-author-h { font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .sw-track, .sw-knob { transition: none; } }
/* автор под вопросом дня */
.q-author { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.q-author-l { font: 500 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.q-author-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 500 14px var(--font-body); cursor: pointer; }
.q-author-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-item textarea { min-height: 52px; }
/* поля предложений не растягиваются рукой — высота сама подстраивается под текст */
textarea.ta-auto { resize: none; overflow: hidden; }
.sug-item .msg:empty { display: none; }

/* ===== Коллекционные карточки (cards.js, collection.js) ===== */
.segment.four { grid-template-columns: repeat(4, 1fr); }
.who-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }

/* цвета редкостей — одни на карточку, плитку и точку */
.r-common    { --kc-line: #6E6964; --kc-band: #8F8983; --kc-hi: #2C2927; --kc-lo: #1E1C1B; --kc-glow: rgba(0, 0, 0, 0); --kc-pill: rgba(143, 137, 131, 0.18); --kc-text: #C9C2BC; --kc-sub: #A0968E; --kc-band-ink: #1A1817; --kc-dot: #8F8983; }
.r-uncommon  { --kc-line: #3FB97F; --kc-band: #3FB97F; --kc-hi: #1F3A2C; --kc-lo: #15211B; --kc-glow: rgba(63, 185, 127, 0.16); --kc-pill: rgba(63, 185, 127, 0.2); --kc-text: #6FDCA6; --kc-sub: #9DB8A9; --kc-band-ink: #0F1A14; --kc-dot: #3FB97F; }
.r-rare      { --kc-line: #4C95F5; --kc-band: #4C95F5; --kc-hi: #1E3150; --kc-lo: #141B28; --kc-glow: rgba(76, 149, 245, 0.2); --kc-pill: rgba(76, 149, 245, 0.22); --kc-text: #8DBDFB; --kc-sub: #9AAAC4; --kc-band-ink: #0E1626; --kc-dot: #4C95F5; }
.r-epic      { --kc-line: #9B7BFF; --kc-band: #9B7BFF; --kc-hi: #33285A; --kc-lo: #1C1729; --kc-glow: rgba(155, 123, 255, 0.26); --kc-pill: rgba(155, 123, 255, 0.24); --kc-text: #C3B2FF; --kc-sub: #ADA3C8; --kc-band-ink: #17112B; --kc-dot: #9B7BFF; }
.r-legendary { --kc-line: #F5B04A; --kc-band: linear-gradient(90deg, #FFE08A, #F5A33F 50%, #F2782C); --kc-hi: #4A3216; --kc-lo: #23190F; --kc-glow: rgba(242, 150, 60, 0.34); --kc-pill: rgba(255, 199, 107, 0.2); --kc-text: #FFD58A; --kc-sub: #D9B98F; --kc-band-ink: #2A1608; --kc-dot: linear-gradient(140deg, #FFE08A, #F2782C); }

/* пак (23.11): не редкость, а упаковка — перелив из всех пяти цветов редкостей */
.r-pack      { --kc-line: #CFC6E0; --kc-grad: linear-gradient(135deg, #A9A39D, #3FB97F 27%, #4C95F5 50%, #9B7BFF 73%, #F5B04A); --kc-band: linear-gradient(90deg, #A9A39D, #3FB97F 27%, #4C95F5 50%, #9B7BFF 73%, #F5B04A); --kc-hi: #2B2A31; --kc-lo: #18171B; --kc-glow: rgba(255, 255, 255, 0.12); --kc-pill: rgba(255, 255, 255, 0.12); --kc-text: #F2ECE6; --kc-sub: #B8B0A8; --kc-band-ink: #121212; --kc-dot: linear-gradient(140deg, #3FB97F, #4C95F5 40%, #9B7BFF 70%, #F5B04A); }
/* рамка плиток пака — тоже переливом (фон рамки — градиент, внутри — обычный тёмный фон) */
.kt-pic.r-pack { border-color: transparent; background: radial-gradient(circle at 50% 45%, var(--kc-hi), var(--kc-lo) 78%) padding-box, var(--kc-grad) border-box; }
.mk-tl.r-pack { border-color: transparent; background: var(--surface) padding-box, var(--kc-grad) border-box; }
.kt-pic.r-pack .kc-art, .mk-tl.r-pack .mk-tl-art .kc-art { width: 46%; }
.mk-pic.r-pack .kc-art { width: 50%; }
/* сам пак: упаковка с бликом */
.kpk { position: relative; display: block; flex: none; width: 150px; aspect-ratio: 142 / 216; overflow: hidden; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); }
.kpk .kc-art { display: block; width: 100%; height: 100%; }
.kpk-shine { position: absolute; top: 5%; left: 0; width: 38%; height: 90%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)); pointer-events: none; animation: kcShine 5.2s linear infinite; }
.kpk-md { width: 76px; }
.kpk-xs { width: 30px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
.kpk-xs .kpk-shine { display: none; }
.kpk-md .kpk-shine { animation-duration: 6s; }

/* карточка «во всю карту» */
.kc { position: relative; width: 240px; height: 336px; border-radius: 18px; box-sizing: border-box; border: 1.5px solid var(--kc-line); background: radial-gradient(circle at 50% 40%, var(--kc-hi) 0%, var(--kc-lo) 62%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 26px var(--kc-glow); color: #F2ECE6; text-align: center; }
.kc-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 0; }
.kc-pill { padding: 4px 9px; border-radius: 999px; background: var(--kc-pill); font: 600 11px/1 var(--font-body); color: var(--kc-text); }
.kc-no { font: 500 11px/1 var(--font-mono); color: var(--kc-sub); }
.kc-mid { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.kc-art { display: inline-flex; }
.kc-art svg { display: block; width: 100%; height: 100%; }
.kc .kc-mid .kc-art { width: 150px; height: 150px; }
.kc-name { font: 600 22px/1.15 var(--font-display); padding: 0 14px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* размер подгоняет fitName в cards.js */
.kc-legendary .kc-name { color: #FFE7B8; }
.kc-band { flex: none; height: 26px; background: var(--kc-band); color: var(--kc-band-ink); display: flex; align-items: center; justify-content: center; font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.kc-shine { position: absolute; z-index: 2; top: -20%; left: 0; width: 34%; height: 140%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 244, 214, 0.26), rgba(255, 255, 255, 0)); pointer-events: none; animation: kcShine 4.4s linear infinite; }
/* Блик повёрнут, поэтому его края выступают вбок: от −200% до 400% он целиком за карточкой — не видно, где он появляется и где кончается.
   Скорость ровная (linear): у краёв он не тормозит. */
@keyframes kcShine { 0% { transform: translateX(-200%) rotate(18deg); } 40%, 100% { transform: translateX(400%) rotate(18deg); } }

/* ===== Анимации карточек =====
   Два слоя. 1) Редкость — вся карточка: обычная — ничего, необычная — свечение «дышит», редкая — по рамке бежит огонёк,
   эпическая — внутри плывёт туманность и поднимаются искры, легендарная — переливается золотая рамка, мерцают звёздочки, проходит блик.
   2) Рисунок — у каждой карточки (кроме обычных) своё движение: классы am-* в cards.js.
   Всё работает только внутри .kc (крупно, витрина, открытие); плитки альбома и Лавки — неподвижные.
   Двигаются только transform и opacity (дёшево для телефона); при «уменьшить движение» всё стоит. */
.kc { --k: 1; }
.kc.kc-md { --k: 0.45; }
.kc-top, .kc-mid, .kc-name, .kc-band { position: relative; z-index: 1; }
.kc-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.kc-fx i { position: absolute; display: block; opacity: 0; }

/* необычная: свечение вокруг то сильнее, то слабее */
.kc.kc-uncommon { animation: kcBreath 4.2s ease-in-out infinite; }
@keyframes kcBreath { 0%, 100% { box-shadow: 0 0 12px rgba(63, 185, 127, 0.08); } 50% { box-shadow: 0 0 34px rgba(63, 185, 127, 0.42), inset 0 0 26px rgba(63, 185, 127, 0.16); } }

/* редкая: огонёк с хвостом бежит по рамке; легендарная: вся рамка переливается золотом */
@property --kc-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.kc.kc-rare::before, .kc.kc-legendary::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 2px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.kc.kc-rare::before { background: conic-gradient(from var(--kc-a), transparent 0 60%, rgba(141, 189, 251, 0.55) 80%, #EAF3FF 88%, transparent 93%); animation: kcRun 4.6s linear infinite; }
.kc.kc-legendary::before { background: conic-gradient(from var(--kc-a), #F2782C, #FFE08A 14%, #FFFBEA 22%, #F5A33F 34%, #F2782C 50%, #FFE08A 64%, #FFFBEA 72%, #F5A33F 84%, #F2782C); animation: kcRun 6s linear infinite; }
@keyframes kcRun { to { --kc-a: 360deg; } }
.kc.kc-legendary { animation: kcGold 3.6s ease-in-out infinite; }
@keyframes kcGold { 0%, 100% { box-shadow: 0 0 22px rgba(242, 150, 60, 0.3); } 50% { box-shadow: 0 0 46px rgba(255, 190, 90, 0.58); } }

/* эпическая: медленно вращается фиолетовая туманность, снизу поднимаются искры */
.kc-epic .kc-fx::before { content: ''; position: absolute; left: -50%; top: -30%; width: 200%; height: 160%;
  background: radial-gradient(circle at 40% 43%, rgba(155, 123, 255, 0.36), rgba(155, 123, 255, 0) 17%), radial-gradient(circle at 60% 58%, rgba(118, 86, 240, 0.34), rgba(118, 86, 240, 0) 15%), radial-gradient(circle at 58% 38%, rgba(214, 200, 255, 0.18), rgba(214, 200, 255, 0) 11%);
  animation: kcHaze 14s linear infinite; }
@keyframes kcHaze { to { transform: rotate(360deg); } }
.kc-epic .kc-fx i { top: 76%; width: calc(4px * var(--k) + 1px); height: calc(4px * var(--k) + 1px); border-radius: 50%; background: #E2D8FF; box-shadow: 0 0 calc(7px * var(--k)) #9B7BFF; animation: kcRise 4.2s ease-out infinite; }
.kc-epic .kc-fx i:nth-child(1) { left: 20%; animation-delay: 0s; }
.kc-epic .kc-fx i:nth-child(2) { left: 34%; animation-delay: -2.9s; animation-duration: 4.8s; }
.kc-epic .kc-fx i:nth-child(3) { left: 49%; animation-delay: -1.4s; animation-duration: 3.8s; }
.kc-epic .kc-fx i:nth-child(4) { left: 63%; animation-delay: -3.6s; }
.kc-epic .kc-fx i:nth-child(5) { left: 76%; animation-delay: -0.7s; animation-duration: 4.6s; }
.kc-epic .kc-fx i:nth-child(6) { left: 86%; animation-delay: -2.2s; animation-duration: 3.6s; }
@keyframes kcRise { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 15% { opacity: 1; } 70% { opacity: 0.8; } 100% { opacity: 0; transform: translate(calc(-10px * var(--k)), calc(-150px * var(--k))) scale(1); } }

/* легендарная: четырёхлучевые звёздочки вспыхивают по очереди */
.kc-legendary .kc-fx i { width: calc(var(--s) * var(--k)); height: calc(var(--s) * var(--k)); margin: calc(var(--s) * var(--k) / -2) 0 0 calc(var(--s) * var(--k) / -2); background: #FFF3CC;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 3px #FFC75A); animation: kcTwinkle 3.4s ease-in-out infinite; }
.kc-legendary .kc-fx i:nth-child(1) { --s: 14px; left: 13%; top: 27%; }
.kc-legendary .kc-fx i:nth-child(2) { --s: 18px; left: 86%; top: 22%; animation-delay: -2.5s; }
.kc-legendary .kc-fx i:nth-child(3) { --s: 11px; left: 17%; top: 64%; animation-delay: -1.6s; }
.kc-legendary .kc-fx i:nth-child(4) { --s: 15px; left: 83%; top: 60%; animation-delay: -0.8s; }
.kc-legendary .kc-fx i:nth-child(5) { --s: 12px; left: 50%; top: 12%; animation-delay: -2.1s; }
@keyframes kcTwinkle { 0%, 55%, 100% { opacity: 0; transform: scale(0.2) rotate(0); } 70% { opacity: 1; transform: scale(1) rotate(45deg); } 85% { opacity: 0; transform: scale(0.3) rotate(90deg); } }

/* --- свои движения рисунков --- */
/* Ракета летит: покачивается вперёд-назад, пламя дрожит, след бежит, звёзды мигают */
.kc .am-rocket { animation: amFly 1.6s ease-in-out infinite alternate; }
@keyframes amFly { from { transform: translate(-0.3px, 0.35px); } to { transform: translate(0.5px, -0.6px); } }
.kc .am-flame { transform-box: fill-box; transform-origin: 50% 0; animation: amFlame 0.3s ease-in-out infinite alternate; }
@keyframes amFlame { from { transform: scale(0.85, 0.7); } to { transform: scale(1.1, 1.3); } }
.kc .am-trail { animation: amTrail 0.9s linear infinite; }
@keyframes amTrail { to { stroke-dashoffset: 4.6; } }
.kc .am-tw { animation: amTw 2.4s ease-in-out infinite; }
.kc .am-tw.am-tw2 { animation-delay: -0.8s; }
.kc .am-tw.am-tw3 { animation-delay: -1.6s; }
@keyframes amTw { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
/* Колокольчик звенит раз в несколько секунд: качается, язычок догоняет, дуги вспыхивают */
.kc .am-bell { transform-box: view-box; transform-origin: 12px 3.2px; animation: amRing 3.6s ease-in-out infinite; }
@keyframes amRing { 0%, 34%, 100% { transform: rotate(0); } 4% { transform: rotate(16deg); } 10% { transform: rotate(-13deg); } 16% { transform: rotate(9deg); } 22% { transform: rotate(-6deg); } 28% { transform: rotate(3deg); } }
.kc .am-clap { animation: amClap 3.6s ease-in-out infinite; }
@keyframes amClap { 0%, 36%, 100% { transform: translateX(0); } 6% { transform: translateX(-1.1px); } 12% { transform: translateX(1px); } 18% { transform: translateX(-0.7px); } 24% { transform: translateX(0.5px); } 30% { transform: translateX(-0.2px); } }
.kc .am-waves { transform-box: fill-box; transform-origin: center; animation: amWaves 3.6s ease-out infinite; }
@keyframes amWaves { 0%, 34%, 100% { opacity: 0.3; transform: scale(1); } 5%, 22% { opacity: 1; transform: scale(1.12); } }
/* Облачко «печатает…»: точки подпрыгивают по очереди */
.kc .am-float { animation: amFloat 4s ease-in-out infinite; }
@keyframes amFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6px); } }
.kc .am-dot { animation: amType 1.4s ease-in-out infinite; }
.kc .am-dot.am-dot2 { animation-delay: 0.18s; }
.kc .am-dot.am-dot3 { animation-delay: 0.36s; }
@keyframes amType { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 25% { transform: translateY(-1.5px); opacity: 1; } }
/* Серебро: монета (толщина 1,5 из 24) делает полный оборот. Лицо сжимается (scaleX = cos угла) и сдвигается,
   рядом проступает ребро (полоса шириной толщина × sin угла и задний край), лицо темнеет, когда отворачивается.
   Кадры посчитаны заранее; на 90° и 270° сторона меняется мгновенно (два кадра подряд). */
.kc .am-spin, .kc .am-cap, .kc .am-band { transform-box: view-box; transform-origin: 12px 12px; animation: amSpin 4.8s linear infinite; }
.kc .am-cap { animation-name: amCap; }
.kc .am-band { animation-name: amBand; }
.kc .am-shade { animation: amShade 4.8s linear infinite; }
.kc .am-edge { animation: amEdge 4.8s linear infinite; }
@keyframes amSpin {
  0%, 55% { transform: translateX(0) scaleX(1); }
  56.11% { transform: translateX(0.011px) scaleX(1); }
  57.22% { transform: translateX(0.042px) scaleX(0.998); }
  58.33% { transform: translateX(0.092px) scaleX(0.992); }
  59.44% { transform: translateX(0.16px) scaleX(0.977); }
  60.56% { transform: translateX(0.243px) scaleX(0.946); }
  61.67% { transform: translateX(0.337px) scaleX(0.894); }
  62.78% { transform: translateX(0.436px) scaleX(0.814); }
  63.89% { transform: translateX(0.534px) scaleX(0.702); }
  65% { transform: translateX(0.624px) scaleX(0.556); }
  66.11% { transform: translateX(0.695px) scaleX(0.376); }
  67.22% { transform: translateX(0.739px) scaleX(0.169); }
  68.05% { transform: translateX(0.75px) scaleX(0.002); }
  68.06% { transform: translateX(-0.75px) scaleX(-0.002); }
  68.33% { transform: translateX(-0.749px) scaleX(-0.058); }
  69.44% { transform: translateX(-0.717px) scaleX(-0.291); }
  70.56% { transform: translateX(-0.643px) scaleX(-0.515); }
  71.67% { transform: translateX(-0.526px) scaleX(-0.712); }
  72.78% { transform: translateX(-0.374px) scaleX(-0.867); }
  73.89% { transform: translateX(-0.194px) scaleX(-0.966); }
  75% { transform: translateX(0px) scaleX(-1); }
  76.11% { transform: translateX(0.194px) scaleX(-0.966); }
  77.22% { transform: translateX(0.374px) scaleX(-0.867); }
  78.33% { transform: translateX(0.526px) scaleX(-0.712); }
  79.44% { transform: translateX(0.643px) scaleX(-0.515); }
  80.56% { transform: translateX(0.717px) scaleX(-0.291); }
  81.67% { transform: translateX(0.749px) scaleX(-0.058); }
  81.95% { transform: translateX(0.75px) scaleX(-0.002); }
  81.96% { transform: translateX(-0.75px) scaleX(0.002); }
  82.78% { transform: translateX(-0.739px) scaleX(0.169); }
  83.89% { transform: translateX(-0.695px) scaleX(0.376); }
  85% { transform: translateX(-0.624px) scaleX(0.556); }
  86.11% { transform: translateX(-0.534px) scaleX(0.702); }
  87.22% { transform: translateX(-0.436px) scaleX(0.814); }
  88.33% { transform: translateX(-0.337px) scaleX(0.894); }
  89.44% { transform: translateX(-0.243px) scaleX(0.946); }
  90.56% { transform: translateX(-0.16px) scaleX(0.977); }
  91.67% { transform: translateX(-0.092px) scaleX(0.992); }
  92.78% { transform: translateX(-0.042px) scaleX(0.998); }
  93.89% { transform: translateX(-0.011px) scaleX(1); }
  95%, 100% { transform: translateX(0) scaleX(1); }
}
@keyframes amCap {
  0%, 55% { transform: translateX(0) scaleX(1); }
  56.11% { transform: translateX(-0.011px) scaleX(1); }
  57.22% { transform: translateX(-0.042px) scaleX(0.998); }
  58.33% { transform: translateX(-0.092px) scaleX(0.992); }
  59.44% { transform: translateX(-0.16px) scaleX(0.977); }
  60.56% { transform: translateX(-0.243px) scaleX(0.946); }
  61.67% { transform: translateX(-0.337px) scaleX(0.894); }
  62.78% { transform: translateX(-0.436px) scaleX(0.814); }
  63.89% { transform: translateX(-0.534px) scaleX(0.702); }
  65% { transform: translateX(-0.624px) scaleX(0.556); }
  66.11% { transform: translateX(-0.695px) scaleX(0.376); }
  67.22% { transform: translateX(-0.739px) scaleX(0.169); }
  68.05% { transform: translateX(-0.75px) scaleX(0.002); }
  68.06% { transform: translateX(0.75px) scaleX(0.002); }
  68.33% { transform: translateX(0.749px) scaleX(0.058); }
  69.44% { transform: translateX(0.717px) scaleX(0.291); }
  70.56% { transform: translateX(0.643px) scaleX(0.515); }
  71.67% { transform: translateX(0.526px) scaleX(0.712); }
  72.78% { transform: translateX(0.374px) scaleX(0.867); }
  73.89% { transform: translateX(0.194px) scaleX(0.966); }
  75% { transform: translateX(0px) scaleX(1); }
  76.11% { transform: translateX(-0.194px) scaleX(0.966); }
  77.22% { transform: translateX(-0.374px) scaleX(0.867); }
  78.33% { transform: translateX(-0.526px) scaleX(0.712); }
  79.44% { transform: translateX(-0.643px) scaleX(0.515); }
  80.56% { transform: translateX(-0.717px) scaleX(0.291); }
  81.67% { transform: translateX(-0.749px) scaleX(0.058); }
  81.95% { transform: translateX(-0.75px) scaleX(0.002); }
  81.96% { transform: translateX(0.75px) scaleX(0.002); }
  82.78% { transform: translateX(0.739px) scaleX(0.169); }
  83.89% { transform: translateX(0.695px) scaleX(0.376); }
  85% { transform: translateX(0.624px) scaleX(0.556); }
  86.11% { transform: translateX(0.534px) scaleX(0.702); }
  87.22% { transform: translateX(0.436px) scaleX(0.814); }
  88.33% { transform: translateX(0.337px) scaleX(0.894); }
  89.44% { transform: translateX(0.243px) scaleX(0.946); }
  90.56% { transform: translateX(0.16px) scaleX(0.977); }
  91.67% { transform: translateX(0.092px) scaleX(0.992); }
  92.78% { transform: translateX(0.042px) scaleX(0.998); }
  93.89% { transform: translateX(0.011px) scaleX(1); }
  95%, 100% { transform: translateX(0) scaleX(1); }
}
@keyframes amBand {
  0%, 55% { transform: scaleX(0); }
  56.11% { transform: scaleX(0.021); }
  57.22% { transform: scaleX(0.084); }
  58.33% { transform: scaleX(0.185); }
  59.44% { transform: scaleX(0.321); }
  60.56% { transform: scaleX(0.486); }
  61.67% { transform: scaleX(0.673); }
  62.78% { transform: scaleX(0.872); }
  63.89% { transform: scaleX(1.069); }
  65% { transform: scaleX(1.247); }
  66.11% { transform: scaleX(1.39); }
  67.22% { transform: scaleX(1.479); }
  68.05% { transform: scaleX(1.5); }
  68.06% { transform: scaleX(1.5); }
  68.33% { transform: scaleX(1.497); }
  69.44% { transform: scaleX(1.435); }
  70.56% { transform: scaleX(1.286); }
  71.67% { transform: scaleX(1.053); }
  72.78% { transform: scaleX(0.747); }
  73.89% { transform: scaleX(0.388); }
  75% { transform: scaleX(0); }
  76.11% { transform: scaleX(0.388); }
  77.22% { transform: scaleX(0.747); }
  78.33% { transform: scaleX(1.053); }
  79.44% { transform: scaleX(1.286); }
  80.56% { transform: scaleX(1.435); }
  81.67% { transform: scaleX(1.497); }
  81.95% { transform: scaleX(1.5); }
  81.96% { transform: scaleX(1.5); }
  82.78% { transform: scaleX(1.479); }
  83.89% { transform: scaleX(1.39); }
  85% { transform: scaleX(1.247); }
  86.11% { transform: scaleX(1.069); }
  87.22% { transform: scaleX(0.872); }
  88.33% { transform: scaleX(0.673); }
  89.44% { transform: scaleX(0.486); }
  90.56% { transform: scaleX(0.321); }
  91.67% { transform: scaleX(0.185); }
  92.78% { transform: scaleX(0.084); }
  93.89% { transform: scaleX(0.021); }
  95%, 100% { transform: scaleX(0); }
}
@keyframes amShade {
  0%, 55% { opacity: 0; }
  56.11% { opacity: 0; }
  57.22% { opacity: 0.001; }
  58.33% { opacity: 0.003; }
  59.44% { opacity: 0.01; }
  60.56% { opacity: 0.024; }
  61.67% { opacity: 0.048; }
  62.78% { opacity: 0.084; }
  63.89% { opacity: 0.134; }
  65% { opacity: 0.2; }
  66.11% { opacity: 0.281; }
  67.22% { opacity: 0.374; }
  68.05% { opacity: 0.45; }
  68.06% { opacity: 0.45; }
  68.33% { opacity: 0.424; }
  69.44% { opacity: 0.319; }
  70.56% { opacity: 0.218; }
  71.67% { opacity: 0.129; }
  72.78% { opacity: 0.06; }
  73.89% { opacity: 0.015; }
  75% { opacity: 0; }
  76.11% { opacity: 0.015; }
  77.22% { opacity: 0.06; }
  78.33% { opacity: 0.129; }
  79.44% { opacity: 0.218; }
  80.56% { opacity: 0.319; }
  81.67% { opacity: 0.424; }
  81.95% { opacity: 0.45; }
  81.96% { opacity: 0.45; }
  82.78% { opacity: 0.374; }
  83.89% { opacity: 0.281; }
  85% { opacity: 0.2; }
  86.11% { opacity: 0.134; }
  87.22% { opacity: 0.084; }
  88.33% { opacity: 0.048; }
  89.44% { opacity: 0.024; }
  90.56% { opacity: 0.01; }
  91.67% { opacity: 0.003; }
  92.78% { opacity: 0.001; }
  93.89% { opacity: 0; }
  95%, 100% { opacity: 0; }
}
@keyframes amEdge {
  0%, 55% { opacity: 0; }
  55.3%, 94.7% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
/* Бронза: медаль тихо покачивается на ленте */
.kc .am-sway { transform-box: view-box; transform-origin: 12px 1.8px; animation: amSway 3.4s ease-in-out infinite alternate; }
@keyframes amSway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
/* Кубок подпрыгивает, потом по нему пробегает блик */
.kc .am-hop { animation: amHop 4.4s ease-in-out infinite; }
@keyframes amHop { 0%, 18%, 100% { transform: translateY(0); } 6% { transform: translateY(-1.4px); } 12% { transform: translateY(0); } 15% { transform: translateY(-0.4px); } }
.kc .am-glint { animation: amGlint 4.4s ease-in-out infinite; }
@keyframes amGlint { 0%, 20% { transform: translateX(-4px); } 46%, 100% { transform: translateX(26px); } }
/* 30 дней: огонь колышется */
.kc .am-fire { transform-box: fill-box; transform-origin: 50% 100%; animation: amFire 1.5s ease-in-out infinite; }
@keyframes amFire { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(0.97, 1.07) skewX(-3deg); } 50% { transform: scale(1.03, 0.95) skewX(1.5deg); } 75% { transform: scale(0.98, 1.05) skewX(3deg); } }
/* Первое место: медаль качается сильнее бронзы, на ней вспыхивает звёздочка */
.kc .am-swing { transform-box: view-box; transform-origin: 12px 1.8px; animation: amSwing 2.4s ease-in-out infinite alternate; }
@keyframes amSwing { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.kc .am-star { transform-box: fill-box; transform-origin: center; animation: amStar 4.8s ease-in-out infinite; }
@keyframes amStar { 0%, 40%, 100% { opacity: 0; transform: scale(0.2) rotate(0); } 50% { opacity: 1; transform: scale(1.25) rotate(45deg); } 60% { opacity: 0; transform: scale(0.2) rotate(90deg); } }
/* ×10: линия графика рисуется заново, в конце вспыхивает точка */
.kc .am-draw { stroke-dasharray: 1 1.1; animation: amDraw 3.6s ease-in-out infinite; }
@keyframes amDraw { 0% { stroke-dashoffset: 1.05; opacity: 1; } 40% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.kc .am-pop { transform-box: fill-box; transform-origin: center; animation: amPop 3.6s ease-out infinite; }
@keyframes amPop { 0%, 36% { transform: scale(0); opacity: 0; } 44% { transform: scale(1.35); opacity: 1; } 52%, 86% { transform: scale(1); opacity: 1; } 96%, 100% { transform: scale(0); opacity: 0; } }
.kc .am-pop.am-burst { animation-name: amBurst; }
@keyframes amBurst { 0%, 38% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.7); opacity: 1; } 62%, 86% { transform: scale(1); opacity: 0.8; } 96%, 100% { transform: scale(0); opacity: 0; } }
/* Трамплин: шарик разгоняется по фиолетовой дорожке, отрывается не у края, летит по пунктирному полукругу (у краёв быстрее, наверху медленнее),
   приземляется с отскоком и пропадает. Кадры — точки того же полукруга, что нарисован пунктиром. */
.kc .am-jump { animation: amJump 3.2s linear infinite; }
@keyframes amJump {
  0% { transform: translate(-9.4px, 5.5px); opacity: 0; }
  6% { transform: translate(-9.4px, 5.5px); opacity: 1; animation-timing-function: ease-in; }
  17% { transform: translate(-5.5px, 5.5px); }
  18.78% { transform: translate(-5.315px, 4.086px); }
  20.56% { transform: translate(-4.801px, 2.816px); }
  22.33% { transform: translate(-4.061px, 1.791px); }
  24.11% { transform: translate(-3.225px, 1.044px); }
  25.89% { transform: translate(-2.402px, 0.552px); }
  27.67% { transform: translate(-1.663px, 0.257px); }
  29.44% { transform: translate(-1.03px, 0.097px); }
  31.22% { transform: translate(-0.489px, 0.022px); }
  33% { transform: translate(0px, 0px); }
  34.78% { transform: translate(0.489px, 0.022px); }
  36.56% { transform: translate(1.03px, 0.097px); }
  38.33% { transform: translate(1.663px, 0.257px); }
  40.11% { transform: translate(2.402px, 0.552px); }
  41.89% { transform: translate(3.225px, 1.044px); }
  43.67% { transform: translate(4.061px, 1.791px); }
  45.44% { transform: translate(4.801px, 2.816px); }
  47.22% { transform: translate(5.315px, 4.086px); }
  49% { transform: translate(5.5px, 5.5px); animation-timing-function: ease-out; }
  53% { transform: translate(6.2px, 4.5px); animation-timing-function: ease-in; }
  57% { transform: translate(6.8px, 5.5px); opacity: 1; }
  68%, 100% { transform: translate(7.7px, 5.5px); opacity: 0; }
}
/* Разворот: стрелка делает оборот и крутится обратно, кусок кольца переезжает на другую сторону и назад */
.kc .am-rev { transform-box: view-box; transform-origin: 12px 12px; animation: amRev 5s ease-in-out infinite; }
@keyframes amRev { 0%, 10% { transform: rotate(0); } 40%, 60% { transform: rotate(360deg); } 90%, 100% { transform: rotate(0); } }
.kc .am-flipseg { transform-box: view-box; transform-origin: 12px 12px; animation: amSeg 5s ease-in-out infinite; }
@keyframes amSeg { 0%, 10% { transform: rotate(0); } 40%, 60% { transform: rotate(180deg); } 90%, 100% { transform: rotate(0); } }
/* Солнце дня: лучи медленно вращаются, вокруг дышит тёплый ореол */
.kc .am-rays { transform-box: view-box; transform-origin: 12px 12px; animation: amRays 24s linear infinite; }
@keyframes amRays { to { transform: rotate(360deg); } }
.kc .am-halo { transform-box: view-box; transform-origin: 12px 12px; animation: amHalo 3.6s ease-in-out infinite; }
@keyframes amHalo { 0%, 100% { opacity: 0.25; transform: scale(0.82); } 50% { opacity: 0.8; transform: scale(1.04); } }
/* на витрине — поменьше: без редкости сверху и полоски снизу, номер копии — маленько в правом верхнем углу (рисунок не сдвигает) */
.kc.kc-md { width: 100%; height: auto; aspect-ratio: 5 / 7; border-radius: 12px; }
.kc-md .kc-pill, .kc-md .kc-band { display: none; }
.kc-md .kc-top { position: absolute; top: 0; right: 0; padding: 7px 8px 0; }
.kc-md .kc-no { font-size: 9.5px; }
.kc-md .kc-mid .kc-art { width: 62%; height: auto; aspect-ratio: 1; }
.kc-md .kc-name { font-size: 13px; padding: 0 6px 10px; }
/* рубашка */
.kc.kc-back { border: 1.5px solid rgba(242, 120, 44, 0.6); background: radial-gradient(circle at 50% 45%, #33241A 0%, #161210 70%); box-shadow: 0 0 30px var(--glow, rgba(0, 0, 0, 0)); transition: box-shadow 0.4s; }
.kc-back .kc-mid .kc-art { width: 112px; height: 112px; }
.kc-back-name { padding-bottom: 26px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; color: #D9B98F; }

/* вкладка */
.coll { display: flex; flex-direction: column; gap: 22px; }
.coll-deck { display: flex; flex-direction: column; gap: 12px; }
.coll-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.coll-got { font-weight: 600; font-size: 15px; }
.coll-series, .coll-left { font: 500 12px/1.2 var(--font-mono); color: var(--muted); }
.coll-bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.coll-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.kd-dots { display: inline-flex; gap: 6px; align-items: center; }
.kd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--kc-dot); flex: none; }
.kd-dot.off { opacity: 0.18; }
.coll-open { width: 100%; min-height: 48px; font-size: 15px; }
.coll-deck .msg:empty { display: none; }
.shelves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shelf { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.shelf-empty { aspect-ratio: 5 / 7; border-radius: 12px; border: 1.5px dashed #3A3634; background: #171615; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.coll-gh { display: flex; justify-content: space-between; align-items: center; }
.coll-gh h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--font-body); color: var(--ink); text-transform: none; letter-spacing: 0; }
.coll-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.kt { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.kt-pic { position: relative; width: 100%; aspect-ratio: 5 / 7; box-sizing: border-box; border-radius: 12px; border: 2px solid var(--kc-line); background: radial-gradient(circle at 50% 45%, var(--kc-hi), var(--kc-lo) 78%); display: flex; align-items: center; justify-content: center; }
.kt-pic .kc-art { width: 62%; }
.kt-count { position: absolute; top: 5px; right: 5px; padding: 2px 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font: 600 10px/1.2 var(--font-mono); color: #F2ECE6; }
.kt-name { font-size: 11.5px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.kt-miss { cursor: default; }
.kt-miss .kt-pic { border: 1.5px solid #3A3634; background: radial-gradient(circle at 50% 45%, #252220, #181615 78%); }
.kt-miss .kt-pic .kc-art { filter: grayscale(1); opacity: 0.3; }
.kt-miss .kt-name { color: var(--muted); }

/* окно поверх страницы: карточка крупно, витрина друга */
body.kc-lock { overflow: hidden; }
.kc-overlay { position: fixed; inset: 0; z-index: 56; display: flex; align-items: center; justify-content: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 10, 10, 0.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; animation: farmFade 0.15s ease-out; }
.kc-overlay [hidden], .kr [hidden] { display: none !important; }
.kc-sheet { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(100%, 340px); margin: auto; }
.kc-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #F2ECE6; font-size: 24px; line-height: 1; }
.kc-copies { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.kc-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13px var(--font-mono); }
.kc-chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.kc-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.kc-actions .btn { width: 100%; }
.kc-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.kc-sheet .msg:empty { display: none; }
/* переплавка: предупреждение и кнопка «зажми на 5 секунд» */
/* предупреждение всплывает над кнопкой (поверх «Продать»/«На витрину»), чтобы кнопка не прыгала под пальцем */
.kc-melt { position: relative; width: 100%; }
.kc-warn { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 2; margin: 0; padding: 10px 12px; border-radius: 8px; background: #3A1812; border: 1px solid rgba(232, 54, 79, 0.6); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); color: #FFC9BF; font-size: 14px; line-height: 1.35; text-align: center; animation: fadeIn 0.2s ease-out; }
.btn.kc-hold { position: relative; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.btn.kc-hold.danger { touch-action: none; }
.kc-hold-bar { position: absolute; inset: 0; background: #E8364F; transform: scaleX(0); transform-origin: left center; pointer-events: none; transition: transform 0.25s ease-out; }
.kc-hold.holding .kc-hold-bar { transition: none; }
.kc-hold-label { position: relative; pointer-events: none; }
.kc-hold.nudge { animation: kcNudge 0.35s ease-in-out; }
@keyframes kcNudge { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.kc-warn-hint { display: block; margin-top: 6px; color: #fff; font-weight: 600; }
.kc-warn-hint:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .kc-hold.nudge { animation: none; } .kc-warn { animation: none; } }
.kc-friend { padding: 22px 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.kc-friend .shelves { width: 100%; }
.kc-friend-name { margin: 0; font: 600 22px/1.2 var(--font-display); }

/* открытие карточки: фон меняет цвет по нажатиям, в конце карточка переворачивается */
.kr { position: fixed; inset: 0; z-index: 57; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; background: #0B0B0B; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.kr-l { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.kr-l.on { opacity: 1; }
.kr-l1 { background: radial-gradient(circle at 50% 42%, #4A4643 0%, #1A1918 70%); }
.kr-l2 { background: radial-gradient(circle at 50% 42%, #2E7A55 0%, #0E1C15 72%); }
.kr-l3 { background: radial-gradient(circle at 50% 42%, #2F63B0 0%, #0D1524 72%); }
.kr-l4 { background: radial-gradient(circle at 50% 42%, #6A4FD0 0%, #150F27 72%); }
.kr-l5 { background: radial-gradient(circle at 50% 42%, #E39A2E 0%, #38220E 70%); }
.kr-stage { position: relative; z-index: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; border-radius: 18px; }
.kr-flip { position: relative; width: 240px; height: 336px; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.kr-flip.flipped { transform: rotateY(180deg); }
.kr-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kr-front { transform: rotateY(180deg); }
.kr-face .kc { width: 100%; height: 100%; }
.kr-wait .kc-back { animation: krPulse 1.1s ease-in-out infinite; }
@keyframes krPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.97); } }
.kr-shake { animation: krShake 0.42s ease-out; }
@keyframes krShake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-7px) rotate(-2.5deg); } 40% { transform: translateX(7px) rotate(2.5deg); } 60% { transform: translateX(-4px) rotate(-1deg); } 80% { transform: translateX(4px) rotate(1deg); } }
.kr-result { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 300px); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.kr-result.on { opacity: 1; transform: none; pointer-events: auto; }
.kr-title { margin: 0; font: 600 22px/1.2 var(--font-display); color: #F2ECE6; text-align: center; }
.kr-sub { margin: 0 0 6px; font-size: 13.5px; color: rgba(242, 236, 230, 0.8); text-align: center; }
.kr-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.kr-btns .btn { width: 100%; }
.kr-spark { position: absolute; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #FFF6DA 0%, rgba(255, 210, 120, 0.7) 35%, rgba(255, 210, 120, 0) 70%); pointer-events: none; opacity: 0; animation: krSpark 1.8s ease-out forwards; }
@keyframes krSpark { 0% { opacity: 0; transform: scale(0.2); } 25% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(0.4) translateY(-30px); } }
/* открытие пака: пак лежит поверх рубашки; первое нажатие — верх отрывается и улетает, упаковка уезжает вниз */
.kr-cover { position: absolute; z-index: 2; left: 50%; top: 50%; width: 250px; height: 380px; margin: -190px 0 0 -125px; pointer-events: none; }
.kr-cover-top, .kr-cover-body { position: absolute; inset: 0; display: flex; justify-content: center; transition: transform 0.55s cubic-bezier(0.3, 0, 0.6, 1), opacity 0.5s; }
.kr-cover .kpk { width: 250px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6)); }
.kr-cover-top { clip-path: inset(0 0 79.6% 0); }
.kr-cover-body { clip-path: inset(20.4% 0 0 0); }
.kr-cover.torn .kr-cover-top { transform: translate(60px, -170px) rotate(24deg); opacity: 0; transition-duration: 0.45s; }
.kr-cover.torn .kr-cover-body { transform: translateY(150px) scale(0.92); opacity: 0; transition-delay: 0.12s; }
.kr-wait .kr-cover { animation: krPulse 1.1s ease-in-out infinite; }
.kr-pk .kr-stage { overflow: visible; }
@media (max-height: 680px) { .kr-flip { width: 200px; height: 280px; } .kr .kc-mid .kc-art { width: 120px; height: 120px; } }
@media (max-height: 680px) { .kr-cover { width: 210px; height: 320px; margin: -160px 0 0 -105px; } .kr-cover .kpk { width: 210px; } }
@media (prefers-reduced-motion: reduce) {
  .kr-l, .kr-flip, .kr-result { transition: none; }
  .kr-shake, .kr-wait .kc-back, .kc-shine, .kr-spark, .kpk-shine, .kr-wait .kr-cover, .ko-fan, .ka-tile.ka-arrive, .ka-tile.ka-arrive::after { animation: none; }
  .kr-cover-top, .kr-cover-body, .ko-fan .kpk { transition: none; }
  .kc, .kc::before, .kc-fx::before, .kc-fx i { animation: none !important; }
  .kc.kc-rare::before { display: none; }
}

/* перетаскивание карточек: зажал — карточка «поднялась» и едет за пальцем */
.kt, .shelf { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body.kc-dragging { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.kc-lifting { opacity: 0.35; transform: scale(0.96); transition: opacity 0.15s, transform 0.15s; }
.kc-ghost { position: fixed; left: 0; top: 0; z-index: 59; width: 78px; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); }
.kc-ghost .kt-pic { width: 78px; }
[data-drop].drop-over { outline: 2px solid var(--accent); outline-offset: 3px; }
.shelf[data-drop] { border-radius: 12px; }
.kc-dropbar { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 58; max-width: 420px; margin: 0 auto; padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(30, 30, 30, 0.97); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); animation: farmFade 0.15s ease-out; }
.kc-drop { position: relative; height: 96px; border-radius: 10px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 1.5px dashed #4A4542; color: var(--muted); font-size: 24px; line-height: 1; }
.kc-drop[class*="r-"] { border: 2px solid var(--kc-line); background: radial-gradient(circle at 50% 45%, var(--kc-hi), var(--kc-lo) 80%); }
.kc-drop .kc-art { width: 46px; }
.kc-drop.drop-over { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .kc-lifting { transition: none; } }
/* ряд копий над пальцем: ведёшь на нужную, потом дальше — на полки */
.kc-picker { position: fixed; z-index: 59; display: flex; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(30, 30, 30, 0.97); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); animation: farmFade 0.12s ease-out; pointer-events: auto; }
.kc-pick { width: 50px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 10px; padding: 3px; transition: transform 0.1s, background 0.1s; }
.kc-pick .kt-pic { width: 100%; border-width: 1.5px; border-radius: 8px; }
.kc-pick .kc-art { width: 64%; }
.kc-pick-no { font: 600 11px/1 var(--font-mono); color: var(--muted); }
.kc-pick.on { background: var(--soft); transform: translateY(-4px) scale(1.06); }
.kc-pick.on .kc-pick-no { color: var(--accent); }
.kc-ghost .kt-count { top: auto; bottom: 5px; right: 50%; transform: translateX(50%); }

/* ===== Лавка (вкладка «Коллекция» → «Лавка») ===== */
.coll-switch { margin-bottom: -8px; }
.mk-head { display: flex; flex-direction: column; gap: 12px; }
.mk-pick-grid { width: 100%; }
.mk-list { display: flex; flex-direction: column; gap: 8px; }
.mk-lot { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mk-lot:hover { background: var(--soft); }
.mk-pic { width: 52px; border-width: 1.5px; border-radius: 8px; }
.mk-pic .kc-art { width: 66%; }
.mk-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-name { font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.mk-no { font: 500 11.5px/1.2 var(--font-mono); color: var(--muted); }
.mk-who { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.mk-who-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-price { font-weight: 600; font-size: 15px; white-space: nowrap; }
/* окна лавки */
.mk-face { width: 150px; }
.mk-title { margin: 0; font: 600 19px/1.3 var(--font-display); text-align: center; text-wrap: balance; }
.mk-form { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.mk-row { display: grid; grid-template-columns: minmax(0, 1fr) 138px; align-items: center; gap: 10px; }
.mk-row label { font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.mk-row label small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.mk-in { position: relative; display: block; }
.mk-in input[type="text"] { box-sizing: border-box; padding-right: 36px; font: 600 16px var(--font-mono); text-align: right; }
.mk-coin { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); display: inline-flex; pointer-events: none; }
.mk-hint { margin: 0; font-size: 13px; color: var(--muted); }
.mk-hint.err { color: var(--err); }
.mk-meta { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.mk-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.mk-meta-row > span:first-child { color: var(--muted); flex: none; }
.mk-meta-row > span:last-child { text-align: right; min-width: 0; }
.mk-meta .mk-who { color: var(--ink); font-size: 14px; }
/* в коллекции: все копии этой карточки сейчас в лавке */
.kt-away .kt-pic { border-style: dashed; }
.kt-away .kt-pic .kc-art, .kt-away .kt-name { opacity: 0.45; }
.kt-tag { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); font: 600 9.5px/1.2 var(--font-mono); color: #F2ECE6; white-space: nowrap; }
/* Сектор: пропуск и дуэль */
.sector-pop.miss { color: var(--err); }
.sector-pop.good { color: #E8A06A; }
.sector-opp { margin: 0; font: 500 15px var(--font-mono); color: var(--muted); min-height: 20px; }

/* ===== Дуэли в «Секторе» ===== */
html.sector-on #duel-sect { pointer-events: none; opacity: 0.35; }
.duel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.duel-head h2 { margin: 0; }
.duel-list { display: flex; flex-direction: column; gap: 8px; }
.duel-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.duel-row.incoming { border-color: var(--accent); }
.duel-row .msg { grid-column: 1 / -1; margin: 0; }
.duel-row .msg:empty { display: none; }
.duel-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.duel-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-line { font-size: 13px; color: var(--muted); }
.duel-row.win .duel-line { color: var(--ok, #3FB97F); }
.duel-row.lose .duel-line { color: var(--err); }
.duel-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.duel-form { display: flex; flex-direction: column; gap: 10px; }
.duel-label { margin: 0; font-size: 13px; color: var(--muted); }
.duel-people { display: flex; flex-wrap: wrap; gap: 8px; }
.duel-chip { cursor: pointer; color: var(--ink); font: inherit; font-size: 14px; }
.duel-chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(242, 120, 44, 0.16); }
.duel-stake { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.duel-stake-in { position: relative; display: block; width: 130px; }
.duel-stake-in input { box-sizing: border-box; width: 100%; padding-right: 36px; font: 600 16px var(--font-mono); text-align: right; }
.duel-coin { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); display: inline-flex; pointer-events: none; }
.duel-quick { display: flex; gap: 6px; }
.btn.small { padding: 6px 10px; font-size: 13px; min-height: 0; }
.duel-go { align-self: stretch; }
.duel-screen { gap: 12px; }
.duel-top { display: flex; flex-direction: column; gap: 6px; }
.duel-vs { display: flex; align-items: center; gap: 10px; }
.duel-vs-l { color: var(--muted); font-size: 14px; }
.duel-bank { font: 500 13px var(--font-mono); color: var(--muted); }
.duel-lobby { display: flex; flex-direction: column; gap: 12px; }
.duel-big { margin: 0; font: 600 18px/1.35 var(--font-display); }
.duel-rules { margin: 0; }
.duel-ready-row { display: flex; flex-wrap: wrap; gap: 8px; }
.duel-ready { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.duel-ready.on { border-color: var(--accent); color: var(--ink); }
.duel-ready-btn { min-width: 140px; }
.duel-lobby .duel-acts { justify-content: flex-start; }
.duel-result { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.duel-title { margin: 0; font: 600 22px var(--font-mono); letter-spacing: 0.12em; color: var(--ink); }
.duel-result.win .duel-title { color: var(--accent); }
.duel-result.lose .duel-title { color: var(--err); }
.duel-score { margin: 0; font: 500 15px var(--font-mono); color: var(--ink); }
.duel-money { margin: 2px 0 0; font-weight: 600; }
.sector.won .sector-glow { opacity: 1; }

/* ===== «Дурак» (китайский дурак) =====
   Карты — светлые, как настоящие: красные масти тёмно-красные (не путать с --trap — это ловушка Сектора).
   Особые карты (2, 7, 8, 10) — с оранжевой точкой в углу. Рубашка — в цвет кнопок сайта. */
.dk { gap: 12px; }
.dk-avs { display: inline-flex; }
.dk-avs .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.dk-avs .avatar:first-child { margin-left: 0; }
.dk-fold > summary { padding: 12px 16px; cursor: pointer; font-weight: 500; }
.dk-history .duel-list { padding: 4px 12px 12px; }
.dk-rules-list { margin: 0; padding: 12px 18px 14px 34px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.dk-stake { display: block; margin: -4px 0 10px; }
.dk-alone { margin: -4px 0 10px; font-size: 13px; }
.dk-watching { margin: 6px 0 2px; font-size: 13px; text-align: center; }
/* над столом: банк слева, «Выйти» справа; предупреждение всплывает под кнопкой и ничего не сдвигает */
.dk-gamebar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 0 2px; }
.dk-bank { font: 500 12.5px var(--font-mono); color: var(--muted); }
.dk-quit { min-height: 32px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; }
.dk-quit[aria-expanded="true"] { color: var(--text); border-color: var(--muted); }
.dk-quit-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(290px, 100%);
  padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.dk-quit-pop p { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.dk-quit-acts { display: flex; justify-content: flex-end; gap: 8px; }
.dk-seats { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-seat { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.dk-seat.on { border-color: var(--accent); }
.dk-seat-tag { font: 500 11.5px var(--font-mono); color: var(--muted); }
.dk-seat-tag.on, .dk-seat.on .dk-seat-tag { color: var(--accent); }
.dk-bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.dk-bar > i { display: block; height: 100%; width: 100%; background: var(--accent); transition: width 0.25s linear; }
.dk-bar.sm { height: 2px; }
.dk-sub { margin: 4px 0 0; font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-choose { display: flex; flex-direction: column; gap: 10px; }
.dk-me .dk-pick { gap: 6px; }
.dk-me.choosing .dk-slots.mine.dim { opacity: 1; }
.dk-me.choosing .dk-pick { padding-top: 2px; }

/* карта */
.dk-card {
  --w: 46px; --h: 64px;
  position: relative; flex: none; width: var(--w); height: var(--h); padding: 0; border-radius: 7px;
  background: #F4EFE6; color: #1C1B1A; border: 1px solid #D9D1C4; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.dk-card.red { color: #C8323C; }
.dk-card .dk-r { position: absolute; top: 3px; left: 5px; font: 600 15px/1 var(--font-mono); }
.dk-card .dk-s { font-size: 26px; line-height: 1; margin-top: 10px; }
.dk-card.sp::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dk-card.sm { --w: 28px; --h: 40px; border-radius: 5px; }
.dk-card.sm .dk-r { top: 2px; left: 3px; font-size: 11px; }
.dk-card.sm .dk-s { font-size: 15px; margin-top: 8px; }
.dk-card.sm.sp::after { top: 3px; right: 3px; width: 4px; height: 4px; }
.dk-card.back {
  background: repeating-linear-gradient(45deg, #C4500B 0 4px, #A9450A 4px 8px);
  border: 2px solid #F4EFE6; color: #fff;
}
.dk-card.back .dk-n { font: 600 13px var(--font-mono); background: rgba(18, 18, 18, 0.72); border-radius: 6px; padding: 1px 5px; }
.dk-card.ghost { background: transparent; border: 1px dashed var(--line); box-shadow: none; }
button.dk-card { cursor: pointer; }
.dk-card.can { box-shadow: 0 0 0 2px rgba(242, 120, 44, 0.7), 0 2px 6px rgba(0, 0, 0, 0.35); }
.dk-card.no { opacity: 0.45; }
.dk-card.sel { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--accent), 0 6px 14px rgba(0, 0, 0, 0.45); }
.dk-card.back.can { box-shadow: 0 0 0 3px var(--accent), 0 2px 6px rgba(0, 0, 0, 0.35); }

/* стол: соперники по кругу (игра идёт по часовой), в середине колода · стопка · бита, внизу — я */
.dk-table { display: flex; flex-direction: column; gap: 12px; }
.dk-ring {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "tl top tr" "l mid r"; gap: 10px 8px; align-items: center; justify-items: center;
}
.dk-ring.n1 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "mid"; }
.dk-ring.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tl tr" "mid mid"; }
.dk-opp {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 7px; max-width: 100%; min-width: 0;
  border-radius: 12px; border: 1px solid transparent; transition: border-color 0.2s, opacity 0.2s;
}
.dk-ring.n4 { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "tl tl tr tr" "l mid mid r"; }
.dk-ring.n4 .at-tl { justify-self: end; margin-right: 18px; }
.dk-ring.n4 .at-tr { justify-self: start; margin-left: 18px; }
.dk-ring.n4 .at-l, .dk-ring.n4 .at-r { align-self: end; }
.dk-opp.turn { border-color: var(--accent); box-shadow: 0 0 12px rgba(242, 120, 44, 0.3); }
.dk-opp.out { opacity: 0.5; }
.dk-opp-head { display: flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; }
.dk-opp-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dk-fan { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.dk-fan-pic { position: relative; width: 15px; height: 13px; }
.dk-fan-pic i {
  position: absolute; left: 4px; bottom: 0; width: 8px; height: 11px; box-sizing: border-box; border-radius: 2px; transform-origin: 50% 100%;
  background: repeating-linear-gradient(45deg, #C4500B 0 2px, #A9450A 2px 4px); border: 1px solid #F4EFE6;
}
.dk-fan b { font: 600 11px var(--font-mono); color: var(--muted); }
.dk-opp .dk-fan { position: relative; display: block; width: 58px; height: 38px; margin: 1px 0 3px; }
.dk-opp .dk-fan-pic { position: absolute; inset: 0; width: auto; height: auto; }
.dk-opp .dk-fan-pic i {
  left: 50%; bottom: 0; width: 23px; height: 32px; margin-left: -11.5px; border-radius: 4px; border-width: 1.5px; transform-origin: 50% 92%;
  background: repeating-linear-gradient(45deg, #C4500B 0 3px, #A9450A 3px 6px); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.dk-opp .dk-fan b {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); z-index: 1;
  font: 700 13px/1.25 var(--font-mono); color: #fff; background: rgba(18, 18, 18, 0.8); border-radius: 7px; padding: 0 6px;
}
.dk-ring.n1 .dk-opp .dk-fan, .dk-ring.n2 .dk-opp .dk-fan { width: 70px; height: 46px; }
.dk-ring.n1 .dk-opp .dk-fan-pic i, .dk-ring.n2 .dk-opp .dk-fan-pic i { width: 28px; height: 39px; margin-left: -14px; }
.dk-ring.n1 .dk-opp .dk-fan b, .dk-ring.n2 .dk-opp .dk-fan b { font-size: 14px; }
.dk-opp .dk-slots.dim { opacity: 0.7; gap: 2px; }
.dk-opp .dk-slots.dim .dk-slot { width: 18px; height: 30px; }
.dk-opp .dk-slots.dim .dk-card.sm { --w: 18px; --h: 25px; border-radius: 3px; border-width: 1px; }
.dk-opp .dk-slots.dim .dk-slot .dk-card.top { top: 5px; }
.dk-opp .dk-slots.dim .dk-card.sm .dk-r { font-size: 8.5px; top: 1px; left: 2px; }
.dk-opp .dk-slots.dim .dk-card.sm .dk-s { font-size: 10px; margin-top: 6px; }
.dk-opp .dk-slots.dim .dk-card.sm.sp::after { width: 3px; height: 3px; top: 2px; right: 2px; }
.dk-opp .dk-slots.dim .dk-slot.vacant::before { inset: 0 0 5px; border-radius: 3px; }
.dk-opp-tag { font: 500 11px var(--font-mono); color: var(--accent); }
.dk-opp .dk-bar { width: 100%; }
.dk-opp .dk-card.sm { --w: 24px; --h: 34px; }
.dk-opp .dk-card.sm .dk-r { font-size: 10px; left: 2px; }
.dk-opp .dk-card.sm .dk-s { font-size: 13px; margin-top: 7px; }
.dk-slots { display: flex; gap: 3px; }
.dk-slots.mine { gap: 8px; }
.dk-slot { position: relative; width: 28px; height: 46px; }
.dk-opp .dk-slot { width: 24px; height: 40px; }
.dk-slot .dk-card { position: absolute; left: 0; top: 0; }
.dk-slot .dk-card.top { top: 6px; }
.dk-slots.mine .dk-slot { width: 46px; height: 74px; }
.dk-slots.mine .dk-slot .dk-card.top { top: 10px; }
.dk-slots.mine.dim { gap: 4px; opacity: 0.45; }
.dk-slots.mine.dim .dk-slot { width: 28px; height: 46px; }
.dk-slots.mine.dim .dk-slot .dk-card.top { top: 6px; }
.dk-slot.vacant::before { content: ''; position: absolute; inset: 0 0 6px; border: 1px dashed var(--line); border-radius: 5px; }
.dk-slots.mine .dk-slot.vacant::before { inset: 0 0 10px; border-radius: 7px; }
.dk-slots.mine.dim .dk-slot.vacant::before { inset: 0 0 6px; border-radius: 5px; }

.dk-mid { grid-area: mid; position: relative; display: flex; align-items: center; justify-content: space-evenly; gap: 6px; padding: 12px 0; width: 100%; }
.dk-ring.n1 .dk-mid, .dk-ring.n2 .dk-mid { max-width: 340px; padding: 18px 0; }
.dk-deck, .dk-bita { position: relative; width: 28px; height: 40px; flex: none; }
.dk-deck .dk-card, .dk-bita .dk-card { position: absolute; left: 0; top: 0; --w: 28px; --h: 40px; border-width: 1.5px; }
.dk-deck .l1 { transform: translate(-2px, -2px); }
.dk-deck .l2 { transform: translate(-4px, -4px); }
.dk-deck .dk-n { font-size: 11.5px; padding: 0 4px; }
.dk-bita .dk-card { filter: brightness(0.7) saturate(0.6); }
/* пустые колода и бита ничем не обозначены (место остаётся — туда летят карты) */
.dk-pile { position: relative; width: 56px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; }
.dk-pile .dk-card { position: absolute; left: 5px; top: 4px; }
.dk-pile .dk-card.blank { background: #E6DFD3; }
.dk-pile .dk-card.u1 { transform: rotate(-7deg); }
.dk-pile .dk-card.u2 { transform: rotate(5deg) translate(1px, 1px); }
.dk-pile .dk-card.landed { transform: rotate(4deg); }

/* середина стола крупнее и стол занимает свободную высоту экрана (ряды расходятся, а не жмутся) */
/* стол — во всю высоту экрана до нижнего меню; моя рамка выросла (много карт) — круг сжимается, а не уезжает рамка */
.dk-table { min-height: min(calc(100vh - 275px), 760px); min-height: min(calc(100svh - 275px), 760px); }
.dk-ring { flex: 1 1 auto; align-content: space-evenly; position: relative; isolation: isolate; }
.dk-ring::before {
  content: ''; position: absolute; inset: -6px -8px; z-index: -1; border-radius: 26px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(242, 120, 44, 0.08), rgba(242, 120, 44, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%23ffffff' fill-opacity='0.035' font-family='Georgia,serif' font-size='15' text-anchor='middle'%3E%3Ctext x='18' y='24'%3E%E2%99%A0%3C/text%3E%3Ctext x='54' y='24'%3E%E2%99%A5%3C/text%3E%3Ctext x='36' y='60' transform='rotate(180 36 55)'%3E%E2%99%A6%3C/text%3E%3Ctext x='0' y='60'%3E%E2%99%A3%3C/text%3E%3Ctext x='72' y='60'%3E%E2%99%A3%3C/text%3E%3C/g%3E%3C/svg%3E"),
    rgba(255, 255, 255, 0.015);
}
.dk-pile { width: 78px; height: 104px; }
.dk-pile .dk-card { --w: 64px; --h: 90px; left: 7px; top: 7px; border-radius: 8px; }
.dk-pile .dk-card .dk-r { font-size: 18px; top: 5px; left: 7px; }
.dk-pile .dk-card .dk-s { font-size: 38px; margin-top: 14px; }
.dk-pile .dk-card.sp::after { width: 8px; height: 8px; top: 7px; right: 7px; }
.dk-deck, .dk-bita, .dk-deck .dk-card, .dk-bita .dk-card { --w: 46px; --h: 64px; width: 46px; height: 64px; }
.dk-deck .dk-n { font-size: 15px; padding: 1px 6px; }
.dk-ring.n3 .dk-pile, .dk-ring.n4 .dk-pile { width: 66px; height: 88px; }
.dk-ring.n3 .dk-pile .dk-card, .dk-ring.n4 .dk-pile .dk-card { --w: 54px; --h: 76px; left: 6px; top: 6px; }
.dk-ring.n3 .dk-pile .dk-card .dk-r, .dk-ring.n4 .dk-pile .dk-card .dk-r { font-size: 16px; }
.dk-ring.n3 .dk-pile .dk-card .dk-s, .dk-ring.n4 .dk-pile .dk-card .dk-s { font-size: 31px; margin-top: 12px; }
.dk-ring.n3 .dk-deck, .dk-ring.n3 .dk-bita, .dk-ring.n3 .dk-deck .dk-card, .dk-ring.n3 .dk-bita .dk-card,
.dk-ring.n4 .dk-deck, .dk-ring.n4 .dk-bita, .dk-ring.n4 .dk-deck .dk-card, .dk-ring.n4 .dk-bita .dk-card { --w: 32px; --h: 46px; width: 32px; height: 46px; }
.dk-ring.n3 .dk-deck .dk-n, .dk-ring.n4 .dk-deck .dk-n { font-size: 12px; padding: 0 4px; }
/* соперник подтвердил выбор — его открытые карты «падают» на закрытые */
.dk-card.drop { animation: dkDrop 0.45s cubic-bezier(.25, .8, .35, 1.1) both; }
.dk-slot .dk-card.drop:nth-child(2) { animation-delay: 0s; }
.dk-slot:nth-child(2) .dk-card.drop { animation-delay: 0.08s; }
.dk-slot:nth-child(3) .dk-card.drop { animation-delay: 0.16s; }
/* соперников мало — места много: их карты крупнее */
.dk-ring.n1 .dk-opp .dk-card.sm, .dk-ring.n2 .dk-opp .dk-card.sm { --w: 30px; --h: 42px; }
.dk-ring.n1 .dk-opp .dk-slot, .dk-ring.n2 .dk-opp .dk-slot { width: 30px; height: 49px; }
.dk-ring.n1 .dk-opp .dk-slot .dk-card.top, .dk-ring.n2 .dk-opp .dk-slot .dk-card.top { top: 7px; }
.dk-ring.n1 .dk-opp .dk-card.sm .dk-s, .dk-ring.n2 .dk-opp .dk-card.sm .dk-s { font-size: 16px; margin-top: 8px; }
.dk-ring.n1 .dk-opp .dk-slots.dim .dk-card.sm, .dk-ring.n2 .dk-opp .dk-slots.dim .dk-card.sm { --w: 22px; --h: 31px; }
.dk-ring.n1 .dk-opp .dk-slots.dim .dk-slot, .dk-ring.n2 .dk-opp .dk-slots.dim .dk-slot { width: 22px; height: 37px; }
.dk-ring.n1 .dk-opp .dk-slots.dim .dk-slot .dk-card.top, .dk-ring.n2 .dk-opp .dk-slots.dim .dk-slot .dk-card.top { top: 6px; }
.dk-ring.n1 .dk-opp .dk-slots.dim .dk-card.sm .dk-r, .dk-ring.n2 .dk-opp .dk-slots.dim .dk-card.sm .dk-r { font-size: 10px; }
.dk-ring.n1 .dk-opp .dk-slots.dim .dk-card.sm .dk-s, .dk-ring.n2 .dk-opp .dk-slots.dim .dk-card.sm .dk-s { font-size: 12px; margin-top: 7px; }

.dk-me { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
/* свой ход: рамка светится ровно (без пульса), над рамкой — оранжевая надпись; место под надпись есть всегда */
.dk-me.turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(242, 120, 44, 0.28); }
.dk-me.turn.pop { animation: dkGlowIn 0.4s ease-out; }
.dk-me-wrap { display: flex; flex-direction: column; gap: 4px; }
.dk-turn-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 2px 0 6px; visibility: hidden; }
.dk-turn-lbl { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.dk-turn-line .dk-acts { flex-wrap: nowrap; }
.dk-turn-line .btn { min-height: 0; height: 38px; padding: 0 20px; }
.dk-turn-line.on { visibility: visible; }
.dk-turn-line.pop { animation: dkIn 0.35s ease-out; }
.dk-turn-t { font: 700 18px var(--font-display); color: var(--accent); letter-spacing: 0.01em; }
.dk-turn-line.wait .dk-turn-t, .dk-turn-line.wait .dk-turn-left { color: var(--muted); }
.dk-turn-left { font: 500 13px var(--font-mono); color: var(--accent); opacity: 0.8; }
.dk-bar.off { visibility: hidden; }
.dk-me-done { text-align: center; font: 600 17px var(--font-display); color: var(--accent); padding: 2px 0; }
.dk-me.out .dk-slots.mine { display: none; }
.dk-left { font: 500 13px var(--font-mono); color: var(--muted); }
.dk-choose-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dk-hand { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
/* рука слева, мои карты на столе (в тени) справа — в одном ряду, без пустого места */
.dk-me-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dk-me-row .dk-hand { flex: 1; min-width: 0; }
.dk-me-row .dk-slots { flex: none; }
.dk-hand.many { gap: 4px; }
.dk-hand.many .dk-card { --w: 40px; --h: 56px; }
.dk-hand.many .dk-card .dk-s { font-size: 22px; }
.dk-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-me .msg:empty, .dk-choose .msg:empty, .duel-lobby .msg:empty, .dk-result .msg:empty { display: none; }

.dk-anim .dk-turn-line { visibility: hidden; }
.dk-anim .dk-me-wrap button { pointer-events: none; }
/* летящие карты, переворот, «Бита!» — слой поверх страницы */
.dk-fx { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.dk-flying { position: absolute; margin: 0; will-change: transform; }
.dk-flip { width: 46px; height: 64px; perspective: 500px; }
.dk-flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.dk-flip-in > .dk-card { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.dk-flip-face { transform: rotateY(180deg); }
.dk-flash { position: absolute; font: 800 28px var(--font-display); color: var(--accent); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); white-space: nowrap; }

/* итог */
.dk-result { display: flex; flex-direction: column; gap: 12px; }
.dk-result .duel-title { text-align: center; }
.dk-result .duel-title.win { color: var(--accent); }
.dk-result .duel-title.lose { color: var(--err); }
.dk-places { display: flex; flex-direction: column; gap: 6px; }
.dk-pl { display: grid; grid-template-columns: 52px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.dk-pl.me { border-color: var(--accent); }
.dk-pl-n { font: 500 13px var(--font-mono); color: var(--muted); }
.dk-pl-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-pl-money { font: 600 14px var(--font-mono); }
.dk-pl-money.plus { color: var(--ok, #3FB97F); }
.dk-pl-money.minus { color: var(--err); }
@keyframes dkDrop { from { opacity: 0; transform: translateY(-14px) scale(1.35); } to { opacity: 1; transform: none; } }
@keyframes dkIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes dkGlowIn { from { box-shadow: 0 0 0 0 rgba(242, 120, 44, 0); border-color: var(--line); } }
@media (prefers-reduced-motion: reduce) { .dk-card, .dk-bar > i { transition: none; } .dk-turn-line, .dk-me.turn, .dk-card.drop { animation: none; } }
/* «Дурак»: тестовая комната с ботами (только админ) */
.dk-test-row { display: flex; flex-direction: column; gap: 6px; }
.dk-test-chip { align-self: flex-start; padding: 6px 14px; }
.dk-seat-x { width: 24px; height: 24px; font-size: 17px; margin-right: -4px; }

/* «Покер»: столы на 2–6 человек. Карты и полёты — общие с «Дураком» (.dk-card, .dk-fx). */
.pk-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pk-level { justify-content: center; padding: 8px 2px; font: 600 13px var(--font-mono); white-space: nowrap; letter-spacing: -0.02em; }
.pk-amt { width: 150px; }
.pk-sit { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.pk-sit .msg:empty { display: none; }
.pk-net { font: 600 14px var(--font-mono); white-space: nowrap; }
.pk-net.plus { color: var(--ok, #3FB97F); }
.pk-net.minus { color: var(--err); }
.pk-hist-ico { width: 30px; text-align: center; color: var(--muted); font-size: 18px; }
.pk-bar-acts { display: flex; gap: 6px; flex: none; }
.pk-bar-acts .dk-quit { white-space: nowrap; padding: 4px 12px; }
.pk-blinds { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pk-top-pop { display: flex; flex-direction: column; gap: 8px; }
.pk-top-pop .msg { margin: 0; }
.pk-top-pop .msg:empty { display: none; }
.pk-out { gap: 10px; }
.pk-note { margin: -2px 0 0; }
.pk-note[hidden] { display: none; }
.pk-out .duel-big { font-size: 17px; }

/* круг игроков: сверху и по бокам соперники, в середине общие карты и банк */
.pk-ring {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px; grid-template-areas: "tl top tr" "l mid r";
  gap: 8px 4px; align-items: center; justify-items: center; align-content: space-evenly;
  flex: 1 1 auto; position: relative; isolation: isolate;
}
.pk-ring::before {
  content: ''; position: absolute; inset: -6px -8px; z-index: -1; border-radius: 26px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(242, 120, 44, 0.08), rgba(242, 120, 44, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%23ffffff' fill-opacity='0.035' font-family='Georgia,serif' font-size='15' text-anchor='middle'%3E%3Ctext x='18' y='24'%3E%E2%99%A0%3C/text%3E%3Ctext x='54' y='24'%3E%E2%99%A5%3C/text%3E%3Ctext x='36' y='60' transform='rotate(180 36 55)'%3E%E2%99%A6%3C/text%3E%3Ctext x='0' y='60'%3E%E2%99%A3%3C/text%3E%3Ctext x='72' y='60'%3E%E2%99%A3%3C/text%3E%3C/g%3E%3C/svg%3E"),
    rgba(255, 255, 255, 0.015);
}
.pk-ring.n0 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mid"; }
.pk-ring.n1 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "mid"; }
.pk-ring.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tl tr" "mid mid"; }
.pk-ring.n6 { grid-template-areas: "tl top tr" "l mid r" "bot bot bot"; }
.pk-ring.n3 .at-l, .pk-ring.n3 .at-r { align-self: start; }
.pk-opp {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; box-sizing: border-box;
  padding: 6px 3px 5px; border-radius: 12px; border: 1px solid transparent; transition: border-color 0.2s, opacity 0.2s;
}
.pk-ring.n1 .pk-opp, .pk-ring.n2 .pk-opp { width: 150px; }
.pk-opp.turn { border-color: var(--accent); box-shadow: 0 0 12px rgba(242, 120, 44, 0.3); }
.pk-opp.folded { opacity: 0.45; }
.pk-opp.won, .pk-me.won { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(242, 120, 44, 0.35); }
.pk-opp .dk-opp-head { gap: 4px; justify-content: center; width: 100%; }
.pk-x { position: absolute; top: -8px; right: -6px; z-index: 2; width: 22px; height: 22px; font-size: 15px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.pk-ring .at-top { width: 140px; }
.pk-d {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%;
  background: #F4EFE6; color: #1C1B1A; font: 700 10px/1 var(--font-mono); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.pk-hole { display: inline-flex; gap: 3px; min-height: 31px; align-items: center; }
.pk-hole .dk-card.sm { --w: 22px; --h: 31px; border-radius: 4px; }
.pk-hole .dk-card.sm .dk-r { font-size: 10px; top: 2px; left: 2px; }
.pk-hole .dk-card.sm .dk-s { font-size: 12px; margin-top: 8px; }
.pk-hole .dk-card.back.sm { border-width: 1.5px; }
.pk-ring.n1 .pk-hole, .pk-ring.n2 .pk-hole { min-height: 42px; }
.pk-ring.n1 .pk-hole .dk-card.sm, .pk-ring.n2 .pk-hole .dk-card.sm { --w: 30px; --h: 42px; border-radius: 5px; }
.pk-ring.n1 .pk-hole .dk-card.sm .dk-r, .pk-ring.n2 .pk-hole .dk-card.sm .dk-r { font-size: 12px; top: 3px; left: 3px; }
.pk-ring.n1 .pk-hole .dk-card.sm .dk-s, .pk-ring.n2 .pk-hole .dk-card.sm .dk-s { font-size: 16px; margin-top: 9px; }
.pk-hole.folded { opacity: 0.45; }
.pk-stack { display: inline-flex; align-items: center; gap: 3px; font: 600 12.5px var(--font-mono); color: var(--ink); white-space: nowrap; }
.pk-stack.big { font-size: 18px; }
.pk-tag { font: 500 11px/14px var(--font-mono); color: var(--muted); min-height: 14px; white-space: nowrap; }
.pk-tag.win { color: var(--accent); font: 700 13px/14px var(--font-mono); }
.pk-tag.hot { color: var(--accent); }
/* ставка игрока — только подпись суммы (фишки сразу уезжают в банк) */
.pk-bet {
  font: 600 11.5px/16px var(--font-mono); color: #fff; white-space: nowrap; min-height: 18px; box-sizing: border-box;
  background: rgba(242, 120, 44, 0.2); border: 1px solid rgba(242, 120, 44, 0.65); border-radius: 999px; padding: 0 7px;
}
.pk-bet.none { visibility: hidden; }
.pk-bar { height: 3px; width: 100%; border-radius: 2px; background: var(--line); overflow: hidden; visibility: hidden; }
.pk-bar.on { visibility: visible; }
.pk-bar.sm { height: 2px; }
.pk-bar > i { display: block; height: 100%; width: 100%; background: var(--accent); transition: width 0.25s linear; }

.pk-mid { grid-area: mid; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; width: 100%; min-width: 0; }
.pk-board { display: flex; gap: 4px; justify-content: center; }
.pk-slot { position: relative; width: 36px; height: 50px; flex: none; }
.pk-slot .dk-card { --w: 36px; --h: 50px; position: absolute; left: 0; top: 0; border-radius: 6px; }
.pk-slot .dk-card .dk-r { font-size: 13px; top: 3px; left: 4px; }
.pk-slot .dk-card .dk-s { font-size: 20px; margin-top: 10px; }
.pk-ring.n0 .pk-slot, .pk-ring.n1 .pk-slot, .pk-ring.n2 .pk-slot { width: 50px; height: 70px; }
.pk-ring.n0 .pk-slot .dk-card, .pk-ring.n1 .pk-slot .dk-card, .pk-ring.n2 .pk-slot .dk-card { --w: 50px; --h: 70px; border-radius: 7px; }
.pk-ring.n0 .pk-slot .dk-card .dk-r, .pk-ring.n1 .pk-slot .dk-card .dk-r, .pk-ring.n2 .pk-slot .dk-card .dk-r { font-size: 16px; top: 4px; left: 5px; }
.pk-ring.n0 .pk-slot .dk-card .dk-s, .pk-ring.n1 .pk-slot .dk-card .dk-s, .pk-ring.n2 .pk-slot .dk-card .dk-s { font-size: 28px; margin-top: 12px; }
/* над общими картами: колода слева, банк кучей фишек посередине (на вскрытии — выигравшая комбинация), бита справа.
   Ряд шириной с общие карты и постоянной высоты — куча растёт вверх, карты не сдвигаются. */
.pk-felt { display: inline-flex; flex-direction: column; align-items: stretch; gap: 8px; }
.pk-mid-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 74px; padding-right: 6px; }
.pk-deck { position: relative; width: 26px; height: 36px; flex: none; margin: 0 4px 4px 4px; }
.pk-deck .dk-card, .pk-bita .dk-card { position: absolute; left: 0; top: 0; --w: 26px; --h: 36px; border-radius: 4px; border-width: 1.5px; }
.pk-deck .l1 { transform: translate(-2px, -2px); }
.pk-deck .l2 { transform: translate(-4px, -4px); }
.pk-bita { position: relative; width: 34px; height: 44px; flex: none; }
.pk-bita .dk-card { left: 4px; top: 4px; }
.pk-pot {
  flex: 1 1 auto; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  font: 600 14px var(--font-mono); color: var(--ink);
}
.pk-pot-n { line-height: 16px; white-space: nowrap; }
.pk-pot.win, .pk-pot.wait { justify-content: center; text-align: center; padding-bottom: 6px; box-sizing: border-box; }
.pk-pot.win { color: var(--accent); font: 600 16px/1.15 var(--font-display); }
.pk-pot.wait { color: var(--muted); font: 500 13px var(--font-mono); }
.pk-alone { font-size: 11px; opacity: 0.85; }
.pk-why { margin: 2px 0 0; font-size: 13px; text-align: center; }
/* куча фишек: стопки по 5 и меньше, до 4 в ряд; передний ряд чуть ниже и сдвинут — как горка */
.pk-pile { display: flex; flex-direction: column; align-items: center; }
.pk-pile-row { display: flex; align-items: flex-end; gap: 1px; }
.pk-pile-row.front { margin-top: -12px; transform: translateX(8px); }
.pk-pile-col { display: flex; flex-direction: column-reverse; }
.pk-pile .pk-chip { width: 16px; height: 16px; }
.pk-pile .pk-chip:not(:first-child) { margin-bottom: -12px; }
.pk-ghost { visibility: hidden; }
.pk-chip {
  display: block; flex: none; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box;
  background: radial-gradient(circle, #F4EFE6 0 26%, #F2782C 28% 100%); border: 2px dashed #F4EFE6; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
/* фишки четырёх цветов: оранжевая, светлая, красная, тёмная */
.pk-chip.c2 { background: radial-gradient(circle, #F2782C 0 26%, #F4EFE6 28% 100%); border-color: #F2782C; }
.pk-chip.c3 { background: radial-gradient(circle, #F4EFE6 0 26%, #C8323C 28% 100%); border-color: #F4EFE6; }
.pk-chip.c4 { background: radial-gradient(circle, #F4EFE6 0 26%, #2F3542 28% 100%); border-color: #F4EFE6; }

/* я: две карты, фишки, ставка, кнопки (кнопки есть всегда — рамка не прыгает) */
.pk-me { position: relative; gap: 10px; }
.pk-me-row { display: flex; align-items: center; gap: 14px; }
.pk-hole.big { gap: 6px; min-height: 78px; min-width: 118px; }
.pk-hole.big .dk-card { --w: 56px; --h: 78px; border-radius: 8px; }
.pk-hole.big .dk-card .dk-r { font-size: 18px; top: 5px; left: 6px; }
.pk-hole.big .dk-card .dk-s { font-size: 34px; margin-top: 14px; }
.pk-wait { font-size: 13px; color: var(--muted); }
.pk-me-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.pk-me-top, .pk-me-bot { display: flex; align-items: center; gap: 8px; min-height: 22px; }
/* лучшая комбинация: её карты приподняты и обведены, название — в моей рамке (строка есть всегда — рамка не прыгает) */
.pk-combo { min-height: 18px; font: 600 16px/18px var(--font-display); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-combo.off { color: var(--muted); }
.pk-table .dk-card.pk-hit { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(242, 120, 44, 0.6); }
.pk-table .pk-hole .dk-card.sm.pk-hit { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--accent), 0 0 9px rgba(242, 120, 44, 0.55); }
.pk-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; visibility: hidden; }
.pk-acts.on { visibility: visible; }
.pk-acts .btn { min-height: 44px; padding: 0 6px; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-acts .btn.two { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.1; }
.pk-acts .btn.two small { font: 600 12px var(--font-mono); opacity: 0.85; }
.pk-raise {
  position: absolute; left: 10px; right: 10px; bottom: 66px; z-index: 20; display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.pk-raise-top { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pk-raise-field { flex: 1 1 auto; width: auto; max-width: 190px; }
.pk-raise-field input { width: 100%; text-align: center; padding-left: 36px; font-size: 18px; }
.pk-raise-field input.bad { border-color: #C8323C; }
.pk-step { flex: none; width: 44px; min-height: 40px; padding: 0; font: 600 20px/1 var(--font-mono); }
.pk-raise-quick { display: flex; gap: 6px; justify-content: center; }
.pk-raise-quick .btn { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.pk-raise input[type="range"] { width: 100%; height: 30px; accent-color: var(--accent); }
.pk-raise-go { min-height: 44px; }
@media (max-width: 370px) {
  .pk-ring { grid-template-columns: 84px minmax(0, 1fr) 84px; }
  .pk-opp { width: 84px; }
  .pk-slot { width: 33px; height: 46px; }
  .pk-slot .dk-card { --w: 33px; --h: 46px; }
  .pk-board { gap: 3px; }
}

/* выбор карточной игры («Карты» → «Китайский дурак» / «Покер») */
.game-switch-wrap { position: relative; z-index: 45; }
.cards-pick {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: min(240px, 70vw); display: flex; flex-direction: column; gap: 4px;
  padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.cards-pick button {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 8px; background: none;
  color: var(--ink); font: 500 15px var(--font-body); text-align: left;
}
.cards-pick button:hover { background: var(--soft); }
.cards-pick button[aria-pressed="true"] { background: rgba(242, 120, 44, 0.16); color: var(--accent); }
.cards-pick .ico { width: 22px; text-align: center; font-size: 17px; }

/* ===== Коллекция: блок открытия, альбом, компактная витрина, панель снизу, шансы, результат (20.11) ===== */
/* блок открытия: серия, рубашка с подсветкой, кнопка с ценой */
.ko { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; text-align: center; }
.ko-title { margin: 0; font: 600 20px/1.2 var(--font-display); color: var(--ink); text-transform: none; letter-spacing: 0; }
.ko-pack { width: 104px; margin: 4px 0 2px; filter: drop-shadow(0 0 16px rgba(242, 120, 44, 0.38)); animation: koFloat 3.4s ease-in-out infinite; }
.ko-pack .kc.kc-back { border-color: rgba(242, 120, 44, 0.8); }
.ko-pack .kc-back .kc-mid .kc-art { width: 58%; height: auto; aspect-ratio: 1; }
.ko-pack .kc-back-name { padding-bottom: 13px; font-size: 8.5px; letter-spacing: 0.24em; }
.ko-pack.empty { opacity: 0.35; animation: none; filter: none; }
.ko-sub { margin: 0; font-size: 14px; color: var(--muted); }
.ko-open { width: 100%; min-height: 48px; font-size: 16px; }
.ko-meta { margin: 0; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); }
.ko-odds { min-height: 0; margin-top: -4px; padding: 4px 6px; font: 500 13px/1.4 var(--font-body); color: var(--accent); }
.ko .msg:empty { display: none; }
@keyframes koFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-5px) rotate(1.5deg); } }
/* колода опустела: подарок-паки веером и «Забрать»; без подарка — «Скоро новая коллекция» */
.ko-fan { position: relative; display: flex; justify-content: center; height: 130px; margin: 6px 0 0; animation: koFloat 3.4s ease-in-out infinite; }
.ko-fan .kpk { margin: 0 -12px; transform-origin: 50% 90%; transition: transform 0.5s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.5s; }
.ko-fan.n2 .kpk:nth-child(1) { transform: rotate(-9deg); }
.ko-fan.n2 .kpk:nth-child(2) { transform: rotate(9deg); }
.ko-fan.n3 .kpk:nth-child(1) { transform: rotate(-14deg) translateY(6px); }
.ko-fan.n3 .kpk:nth-child(2) { z-index: 1; transform: translateY(-4px); }
.ko-fan.n3 .kpk:nth-child(3) { transform: rotate(14deg) translateY(6px); }
.ko-fan.go { animation: none; }
.ko-fan.go .kpk { opacity: 0; transform: translateY(150px) scale(0.6) !important; }
.ko-fan.go .kpk:nth-child(2) { transition-delay: 0.06s; }
.ko-fan.go .kpk:nth-child(3) { transition-delay: 0.12s; }
.ko-gift-n { margin: 2px 0 0; font: 600 18px/1.2 var(--font-display); color: var(--ink); }
.ko-next { display: flex; align-items: center; justify-content: center; width: 96px; aspect-ratio: 5 / 7; margin: 4px 0 2px; box-sizing: border-box; border-radius: 12px; border: 1.5px dashed #4A4542; background: #171615; }
.ko-next span { font: 600 44px/1 var(--font-display); color: #5A544F; }

/* пак в альбоме — плитка после легендарной (как новая редкость); после «Забрать» — подсветка, куда легли паки */
.ka-tile.r-pack { border-color: transparent; background: radial-gradient(circle at 50% 42%, var(--kc-hi), var(--kc-lo) 75%) padding-box, var(--kc-grad) border-box; }
.ka-tile.r-pack .ka-art .kc-art { width: 40%; aspect-ratio: 142 / 216; }
.ka-tile.ka-arrive { animation: kaPop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s backwards; }
.ka-tile.ka-arrive::after { content: ''; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid var(--accent); opacity: 0; pointer-events: none; animation: kaRing 1.3s ease-out 0.6s 3; }
@keyframes kaPop { from { transform: scale(0.82); opacity: 0.3; } to { transform: none; opacity: 1; } }
@keyframes kaRing { 0% { opacity: 0; transform: scale(0.96); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.06); } }
.kb-sheet > .kpk { width: 92px; margin-top: 2px; }
/* режим проверки паков (только админ): плашка сверху и ссылка внизу Коллекции */
.kpv { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed rgba(242, 120, 44, 0.7); background: rgba(242, 120, 44, 0.08); }
.kpv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpv-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpv-t b { font: 600 15px/1.2 var(--font-body); color: var(--ink); }
.kpv-t span { font-size: 12.5px; color: var(--muted); }
.btn.kpv-exit { flex: none; min-height: 38px; padding: 0 16px; }
.kpv-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.kpv-row > span { margin-right: 2px; }
.kpv-chip { min-width: 38px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--font-mono); }
.kpv-chip.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.kpv-row .kpv-chip:not(:only-child) { font-family: var(--font-body); }
/* покупка паков: первая неделя — на месте колоды (таймер), вторая — полоса над блоком коллекции */
.ko-buy .ko-fan { height: 124px; }
.ko-timer { display: inline-flex; gap: 6px; align-items: baseline; }
.ko-left { font: 600 14px/1.2 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.kps { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid transparent; background: var(--surface) padding-box, linear-gradient(135deg, #A9A39D, #3FB97F 27%, #4C95F5 50%, #9B7BFF 73%, #F5B04A) border-box; }
.kps-row { display: flex; align-items: center; gap: 12px; }
.kps-pic { flex: none; display: flex; padding: 2px 4px; border: 0; background: none; cursor: pointer; }
.kps-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kps-t b { font: 600 15px/1.2 var(--font-body); color: var(--ink); }
.kps-t > span { font-size: 12.5px; color: var(--muted); }
.kps-t .ko-left { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.btn.kps-buy { flex: none; min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.kps .msg:empty { display: none; }
.kpv-link { align-self: center; min-height: 0; padding: 6px; font: 500 13px/1.4 var(--font-body); color: var(--muted); }
.kx-list.kx-compact { gap: 4px; }
.kx-compact .kx-row { padding: 6px 10px; gap: 8px; }
.kx-compact .kx-name { font-size: 13px; }
.kx-compact .kx-cards { font-size: 11.5px; }
.kx-compact .kx-pct { font-size: 14px; }

/* альбом: 3 колонки, редкость и название внутри плитки */
.ka { gap: 12px; }
.ka-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ka-head h2 { margin: 0; font: 600 18px/1.2 var(--font-body); color: var(--ink); text-transform: none; letter-spacing: 0; }
.ka-count { font: 500 15px var(--font-mono); color: var(--muted); }
.ka-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ka-filter { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px var(--font-body); }
.ka-filter[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.ka-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ka-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; aspect-ratio: 5 / 6;
  padding: 8px 6px 9px; box-sizing: border-box; border-radius: 14px; border: 1.5px solid var(--kc-line);
  background: radial-gradient(circle at 50% 42%, var(--kc-hi), var(--kc-lo) 75%); color: #F2ECE6; font: inherit; cursor: pointer;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.ka-rar { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font: 500 10.5px/1.1 var(--font-body); color: var(--kc-text); white-space: nowrap; overflow: hidden; }
.ka-rar .kd-dot { width: 7px; height: 7px; }
.ka-art { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.ka-art .kc-art { width: 56%; height: auto; aspect-ratio: 1; }
.ka-name { font: 600 12.5px/1.2 var(--font-body); text-align: center; overflow-wrap: anywhere; }
.ka-badge { position: absolute; right: 7px; bottom: 30px; padding: 2px 6px; border-radius: 999px; background: var(--kc-line); color: var(--kc-band-ink); font: 700 10.5px/1.2 var(--font-mono); }
.ka-new { position: absolute; top: -7px; right: -4px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 10px/1.3 var(--font-body); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
/* нет карточки — тёмный силуэт рисунка, рамка без цвета */
.ka-tile.miss { cursor: default; border-color: #34302E; background: radial-gradient(circle at 50% 42%, #22201E, #161514 75%); }
.ka-tile.miss .ka-art .kc-art { filter: brightness(0) invert(1); opacity: 0.11; }
.ka-tile.miss .ka-name { color: var(--muted); font-weight: 500; }
.ka-tile.miss .ka-rar { color: var(--muted); }
.ka-empty { grid-column: 1 / -1; margin: 0; }
.ka-tile.kc-lifting { opacity: 0.35; transform: scale(0.96); }

/* витрина ниже альбома — компактно */
.kw { gap: 10px; }
.kw-hint { font: 500 12px var(--font-mono); color: var(--muted); }
.kw .shelves { grid-template-columns: repeat(3, 92px); justify-content: start; }
.kw .shelf-empty { font-size: 11.5px; }

/* панель снизу (карточка, шансы) */
.kc-overlay.kc-bottom { align-items: flex-end; padding: 0; }
.kb-sheet {
  width: 100%; max-width: 480px; margin: auto auto 0; gap: 12px; box-sizing: border-box;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  animation: kbUp 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kb-grip { width: 40px; height: 4px; border-radius: 2px; background: #4A4542; flex: none; }
.kb-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; }
.kb-sheet > .kc:not(.kc-md) { width: 176px; height: 246px; border-radius: 15px; flex: none; }
.kb-sheet > .kc:not(.kc-md) .kc-mid .kc-art { width: 104px; height: 104px; }
.kb-sheet > .kc:not(.kc-md) .kc-name { font-size: 18px; padding-bottom: 10px; }
.kb-sheet > .kc:not(.kc-md) .kc-band { height: 22px; }
.kb-info { margin: -2px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.kb-title { margin: 0; font: 600 18px/1.2 var(--font-display); }
.kb-note { margin: 0; width: 100%; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
@keyframes kbUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* «Что может выпасть» */
.kx-list { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.kx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.kx-row.off { opacity: 0.45; }
.kx-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kx-name { font-weight: 600; font-size: 14px; }
.kx-cards { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kx-left { font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.kx-pct { min-width: 48px; text-align: right; font: 600 15px var(--font-mono); }

/* результат открытия */
.kr-badge { position: relative; z-index: 1; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--kc-line); background: var(--kc-pill); color: var(--kc-text); font: 700 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; animation: fadeIn 0.3s ease-out; }
.kr-sub .kd-dot { width: 8px; height: 8px; vertical-align: middle; }
.kr-prog { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 2px 0 6px; }
.kr-prog-t { font-weight: 600; font-size: 15px; color: #F2ECE6; }
.kr-prog .coll-bar { width: 100%; }
.kr-prog .coll-bar > span { transition: width 0.7s ease-out 0.2s; }
.kr-btns .btn.kr-ghost { background: transparent; border-color: rgba(242, 236, 230, 0.55); color: #F2ECE6; }
.kr-btns .btn.kr-again { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); color: #F2ECE6; }
.kr-btns .btn.kr-again:not(:disabled) { background: transparent; border-color: var(--accent); color: #FFB27A; font-weight: 600; }

/* моя витрина в Профиле */
.me-shelf { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; cursor: pointer; }
.me-shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.me-shelf-n { font: 500 12px var(--font-mono); color: var(--muted); }
.me-shelf .shelves { width: 100%; }
.me-shelf-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .ko-pack, .kb-sheet, .kr-badge { animation: none; } .kr-prog .coll-bar > span { transition: none; } }

/* Лавка: «Рынок / Продать / Мои сделки», страница карточки, заявки (20.11) */
.mk-tabs { margin-top: 2px; }
.mk-tabs button, .mk-dtabs button { font-size: 14px; white-space: nowrap; padding: 0 4px; }
.mk-tabs .seg-badge, .mk-dtabs .seg-badge { margin-left: 4px; }
.mk-tile > small { margin-top: -2px; font: 500 11.5px var(--font-body); color: #FFB27A; }
.mk-rars { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px -16px 0; padding: 0 16px; }
.mk-rars::-webkit-scrollbar { display: none; }
.mk-rar { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px var(--font-body); }
.mk-rar[aria-pressed="true"] { border-color: var(--accent); background: rgba(242, 120, 44, 0.12); color: var(--ink); }
.mk-sum { margin: 0; font: 500 12.5px/1.45 var(--font-mono); color: var(--muted); }
.mk-empty { padding: 18px 0; }
.mk-tag { display: inline-flex; width: fit-content; padding: 2px 8px; border-radius: 999px; background: rgba(63, 185, 127, 0.14); color: #7FD9A9; font: 500 11.5px/1.4 var(--font-body); }
.mk-tag-me { background: rgba(242, 120, 44, 0.14); color: #FFB27A; }
.mk-plus { color: #7FD9A9; }
.mk-neg { color: var(--err); }
.mk-hist { cursor: default; }
.mk-hist:hover { background: var(--surface); }
.mk-bal { font-size: 13px; color: var(--ink); }
.mk-bidtag { background: rgba(196, 80, 11, 0.92); }

/* панели лавки */
.mk-sheet { gap: 14px; }
.mk-chead { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding-right: 30px; box-sizing: border-box; }
.mk-pic-lg { width: 84px; border-width: 2px; border-radius: 12px; }
.mk-pic-lg .kc-art { width: 64%; }
.mk-chead-t { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.mk-sub { font-size: 13.5px; color: var(--muted); }
.mk-rar-t { color: var(--kc-text); }
.mk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.mk-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-align: center; }
.mk-tile > span:first-child { font-size: 12.5px; color: var(--muted); }
.mk-tile > :nth-child(2) { font: 700 19px/1.2 var(--font-mono); color: var(--ink); }
.mk-tile > b { color: var(--muted); }
.mk-block { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mk-h { margin: 0; font: 600 15px var(--font-body); }
.mk-offers { display: flex; flex-direction: column; gap: 6px; }
.mk-offer { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: inherit; text-align: left; }
.mk-offer[aria-checked="true"] { border-color: var(--accent); background: rgba(242, 120, 44, 0.08); }
.mk-offer-me { grid-template-columns: auto minmax(0, 1fr) auto; border-style: dashed; }
.mk-radio { width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--muted); }
.mk-offer[aria-checked="true"] .mk-radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.mk-offer-no { font: 600 14px var(--font-mono); }
.mk-offer .mk-who { font-size: 13px; }
.mk-bids { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.mk-bid { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; box-sizing: border-box; border-radius: 10px; border: 1px solid transparent; background: var(--bg); color: var(--muted); font: 400 14px var(--font-body); }
.mk-bid > :last-child { color: var(--ink); font-weight: 600; }
button.mk-bid { width: 100%; border-color: rgba(242, 120, 44, 0.4); color: #FFB27A; text-align: left; }
.mk-own { margin-top: -4px; }
.mk-link { align-self: center; font-size: 14px; }
.mk-link:disabled { color: var(--muted); text-decoration: none; }
.mk-back { background: transparent; border-color: transparent; color: var(--muted); }
.mk-any { align-self: flex-start; margin-top: -8px; text-align: left; }
.mk-cross { width: 100%; color: #FFB27A; text-align: left; }
.mk-sheet .mk-form, .kb-sheet .mk-form { width: 100%; }

/* Мини-профиль: нажал на имя или аватарку (people.js) */
:where(.person) { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.person:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ans-who { gap: 10px; }
.ans-who .ans-name { text-align: left; }
.cmt-who { width: 22px; height: 22px; border-radius: 50%; }
.dk-who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.dk-pl .dk-who { grid-column: 2 / 4; gap: 8px; }
.dk-pl .dk-who .dk-pl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.dk-opp-head { padding: 0; border: 0; background: none; }
.mk-offer .person.mk-who { justify-self: start; }
body.pf-lock { overflow: hidden; }
.pf-overlay { z-index: 58; }
.pf { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(100%, 320px); margin: auto; box-sizing: border-box;
  padding: 18px 14px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); animation: pfIn 0.18s ease-out; }
@keyframes pfIn { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.pf .pf-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; background: none; color: var(--muted); }
.pf-head { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.avatar.pf-av { width: 64px; height: 64px; font-size: 27px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.avatar.pf-av.emoji { font-size: 34px; }
.pf-name { margin: 3px 0 0; font: 600 20px/1.2 var(--font-display); overflow-wrap: anywhere; }
.pf-me { margin-top: -3px; font: 500 12px var(--font-mono); color: var(--muted); }
.pf-meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.pf-zod { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.pf-zod .const { flex: none; }
.pf-streak { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.pf-dot { opacity: 0.6; }
.pf-today { margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: var(--soft); font-size: 12.5px; color: var(--muted); }
.pf-today.on { background: rgba(63, 185, 127, 0.15); color: #7FD9A9; }
.pf-sect { display: flex; flex-direction: column; gap: 8px; }
.pf-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pf-sh h3 { margin: 0; font: 600 14px var(--font-body); }
.pf-sh span { font: 500 12px var(--font-mono); color: var(--muted); }
.pf-shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-shelves .shelf-empty { font-size: 11.5px; }
.pf-wait { text-align: center; }
.pf-zoom { display: flex; justify-content: center; padding-top: 8px; }
.pf .kb-info { align-self: center; }

/* Лавка → Рынок: мини-квадратики, сортировка и фильтр (20.11, по мотивам маркета Standoff 2) */
/* Рынок: над плитками «Коллекция ▾» (окошко под кнопкой) и сортировки «Цена», «Редкость» (нажатием) */
.mk-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mk-popwrap { position: relative; display: inline-flex; }
.mk-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13px var(--font-body); white-space: nowrap; }
.mk-chip-ic { color: var(--muted); font-size: 12px; line-height: 1; }
.mk-popbtn.on, .mk-popbtn.open { border-color: var(--accent); }
.mk-popbtn.on { background: rgba(242, 120, 44, 0.12); }
.mk-sorter.on { background: var(--btn); border-color: var(--btn); color: #fff; }   /* ширина та же, что выключенной — ряд не прыгает */
.mk-sorter.on .mk-chip-ic { color: #fff; }
.mk-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 212px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.mk-pop-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 500 14px var(--font-body); text-align: left; white-space: nowrap; }
.mk-pop-row:active { background: rgba(255, 255, 255, 0.05); }
.mk-pop-row[aria-checked="true"] { background: rgba(242, 120, 44, 0.08); }
.mk-pop-row small { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 12px; }
.mk-pop-row .mk-radio { flex: none; }
.mk-pop-row[aria-checked="true"] .mk-radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.mk-ctrl .mk-sum { flex: 1; min-width: 0; text-align: right; font-size: 11.5px; }
.mk-none { text-align: left; margin-top: -4px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-tl { display: flex; flex-direction: column; min-width: 0; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--kc-line) 55%, transparent);
  background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mk-tl:active { transform: scale(0.98); }
.mk-tl-art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 0.82;
  background: radial-gradient(circle at 50% 46%, var(--kc-hi), var(--kc-lo) 78%); }
.mk-tl-art .kc-art { width: 56%; height: auto; filter: drop-shadow(0 4px 10px var(--kc-glow)); }
.mk-tl-name { padding: 3px 6px; background: var(--kc-band); color: var(--kc-band-ink); font: 700 11.5px/1.3 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tl-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 5px 6px 6px; }
.mk-tl-n { font: 600 11.5px var(--font-mono); color: var(--muted); white-space: nowrap; }
.mk-tl-foot.none .mk-tl-n, .mk-tl-foot.none .mk-tl-price { color: var(--muted); font-weight: 500; }
.mk-tl-price { display: inline-flex; align-items: center; gap: 2px; font: 700 12px/1.2 var(--font-mono); color: var(--ink); white-space: nowrap; }
.mk-tl-price img, .mk-tl-price svg { width: 11px; height: 11px; }
/* панель «Сортировка» */
.mk-radios { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.mk-radio-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 14px var(--font-body); text-align: left; }
.mk-radio-row[aria-checked="true"] { border-color: var(--accent); background: rgba(242, 120, 44, 0.08); }
.mk-radio-row[aria-checked="true"] .mk-radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.mk-radio-t { flex: 1; min-width: 0; }
.mk-radio-row small { font: 500 11.5px var(--font-mono); color: var(--muted); }
.mk-ser-ic { display: inline-flex; width: 22px; height: 22px; }
.mk-ser-ic .kc-art { width: 22px; height: 22px; }
.mk-rars.mk-rars-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; width: 100%; }
.mk-sheet .mk-h { align-self: flex-start; }
.mk-sort-acts { flex-direction: row; }
.mk-sort-acts .btn { flex: 1; }
.mk-offer-me .mk-mine { color: #FFB27A; }
.mk-own-note { margin-top: -6px; }

/* джокер («Верю — не верю»): «Дж» и звезда */
.dk-card.joker { color: #C4500B; }
.dk-card.joker .dk-r { letter-spacing: -0.04em; }

/* «Верю — не верю». Стол, карты и полёты — общие с «Дураком» (.dk-ring, .dk-opp, .dk-me, .dk-card, .dk-fx). */
.bf-deck-box { display: flex; flex-direction: column; gap: 8px; }
.bf-ranks { display: grid; grid-template-columns: repeat(var(--c, 7), minmax(0, 1fr)); gap: 5px; }
.bf-chip {
  min-height: 36px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 14px var(--font-mono); -webkit-tap-highlight-color: transparent;
}
.bf-chip[aria-checked="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.bf-deck-sum { margin: 0; font-size: 13px; }
/* ползунки «Колода» (две ручки) и «Джокеры»: своя дорожка, поверх — прозрачные input[type=range], у которых нажимаются только ручки */
.bf-sl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
.bf-sl-val { font: 600 14px var(--font-mono); color: var(--accent); }
.bf-slider { padding: 0 2px; }
.bf-range { position: relative; height: 34px; }
.bf-track { position: absolute; left: 14px; right: 14px; top: 15px; height: 4px; border-radius: 2px; background: var(--line); }
.bf-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.bf-range input {
  position: absolute; left: 0; top: 0; width: 100%; height: 34px; margin: 0; padding: 0; z-index: 3;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.bf-range input:focus { outline: none; }
.bf-range input::-webkit-slider-runnable-track { height: 34px; background: none; }
.bf-range input::-moz-range-track { height: 34px; background: none; }
.bf-range input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab; margin-top: 3px;
  width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.bf-range input::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.bf-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(242, 120, 44, 0.45); }
.bf-ticks { position: relative; height: 22px; margin: 0 14px; }
.bf-ticks span {
  position: absolute; top: 0; transform: translateX(-50%); min-width: 22px; text-align: center; padding: 2px 0;
  font: 500 12px var(--font-mono); color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bf-ticks span.on { color: var(--ink); }
.bf-need { margin: 0; font-size: 13px; }

.dk-opp-tag.none { visibility: hidden; }
.bf-mid { flex-direction: column; justify-content: center; gap: 8px; padding: 8px 0; }
.bf-claim { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-height: 50px; justify-content: center; max-width: 100%; min-width: 0; }
.bf-claim b { font: 800 27px/1.1 var(--font-display); color: var(--accent); white-space: nowrap; }
.dk-ring.n3 .bf-claim b, .dk-ring.n5 .bf-claim b { font-size: 24px; }
.bf-claim span { font: 500 12px var(--font-mono); color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-claim.new b { font-size: 19px; color: var(--ink); opacity: 0.85; }
.bf-pile { position: relative; width: 66px; height: 84px; flex: none; }
.bf-pile .dk-card { position: absolute; left: 50%; top: 50%; --w: 50px; --h: 70px; margin: -35px 0 0 -25px; }
.bf-pile .dk-card.u { filter: brightness(0.85); }
.bf-pile.is-empty::before { content: ''; position: absolute; left: 50%; top: 50%; width: 50px; height: 70px; margin: -35px 0 0 -25px; border: 1px dashed var(--line); border-radius: 7px; }
/* общее число карт в стопке — крупно, прямо на стопке */
.bf-pile-n {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; min-width: 30px; text-align: center;
  font: 700 18px/1.3 var(--font-mono); color: #fff; background: rgba(18, 18, 18, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px; padding: 1px 7px;
}
/* бита — сбоку, в углу стола: по умолчанию внизу слева; втроём и вчетвером (сверху слева свободно) — вверху слева */
/* боковые колонки одной ширины — середина (и стопка) ровно по центру стола */
.dk-ring.bf-ring.n3, .dk-ring.bf-ring.n5 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.dk-ring.bf-ring.n4 { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 1fr); }
/* впятером боковые соперники чуть выше — внизу слева остаётся место для биты */
.dk-ring.bf-ring.n5 .at-l, .dk-ring.bf-ring.n5 .at-r { align-self: start; }
.dk-ring.bf-ring > .bf-bita { position: absolute; left: 14px; bottom: 10px; z-index: 0; }
.dk-ring.bf-ring.n3 > .bf-bita, .dk-ring.bf-ring.n4 > .bf-bita { bottom: auto; top: 16px; }
.dk-ring.bf-ring .bf-bita, .dk-ring.bf-ring .bf-bita .dk-card { --w: 28px; --h: 38px; width: 28px; height: 38px; }
/* «+2 карты» над стопкой, когда кто-то кладёт */
.dk-flash.bf-plus { font-size: 34px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 18px rgba(242, 120, 44, 0.55); }
.bf-opp.last .dk-opp-tag { font: 700 13px var(--font-mono); }
.dk-ring.n4 .bf-pile .dk-card, .dk-ring.n5 .bf-pile .dk-card { --w: 46px; --h: 64px; margin: -32px 0 0 -23px; }

/* рука: карты идут внахлёст, если не помещаются; больше 9 карт — несколько рядов */
.bf-hand { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.bf-hrow { container-type: inline-size; display: flex; justify-content: center; }
.bf-hrow > .dk-card + .dk-card { margin-left: min(5px, calc((100cqw - var(--k) * var(--w)) / (var(--k) - 1))); }
.bf-hand.rows { gap: 4px; }
.bf-hand.rows .dk-card { --w: 40px; --h: 54px; }
.bf-hand.rows .dk-card .dk-r { font-size: 14px; }
.bf-hand.rows .dk-card .dk-s { font-size: 20px; margin-top: 9px; }
.bf-hand.rows .dk-card.sel { transform: translateY(-6px); }
/* кнопки хода: ширина по тексту, свободное место делится поровну — на 360 px «Не верю» не обрезается */
.bf-acts { display: flex; gap: 8px; min-height: 44px; align-items: center; }
.bf-acts .btn { flex: 1 1 auto; min-width: 0; padding: 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-hint { flex: 1; text-align: center; color: var(--muted); font-size: 14px; }
.bf-empty-hand { margin: 4px 0 0; text-align: center; font-size: 14px; }

/* проверка: открытые карты над стопкой и «Правда!» / «Враньё!» */
.bf-reveal {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px 8px;
  border-radius: 14px; background: rgba(18, 18, 18, 0.94); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.bf-reveal-cards { display: flex; }
.bf-reveal-cards .dk-card + .dk-card { margin-left: -10px; }
.bf-verdict { font: 800 22px var(--font-display); }
.bf-reveal.truth .bf-verdict { color: var(--ok, #3FB97F); }
.bf-reveal.lie .bf-verdict { color: var(--err); }

/* «Участники» в Профиле: видно 5 строк и половину шестой (высоту ставит fitMembers), остальное — прокруткой; шапка остаётся сверху */
.members-wrap { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.members-wrap thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); box-shadow: 0 1px 0 #2A2827; }

/* Карты: наблюдаю за игрой — внизу первый игрок (как соперник: веер и карты на столе) */
.dk-watch { display: flex; justify-content: center; }
.dk-watch .dk-opp { min-width: 48%; }
/* две кнопки у стола («Сесть» и «Наблюдать») — отдельной строкой под названием, чтобы оно не сжималось */
.duel-row.two .duel-acts { grid-column: 1 / -1; flex-wrap: nowrap; }
.duel-row.two .duel-acts .btn { flex: 1 1 0; }
.dk-quit { white-space: nowrap; }

/* ===== Вход и регистрация: галочка «16+», капча, ссылки на правила; удаление аккаунта ===== */
.check-row { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; cursor: pointer; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.check-row a, .legal-links a { color: var(--accent); text-underline-offset: 3px; }
.captcha { min-height: 65px; }
.captcha.msg { min-height: 0; }
.legal-links { font-size: 13px; margin: 0; }
.del-acc { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.del-acc-open { align-self: flex-start; }
.del-acc-title { font-weight: 600; color: var(--err); margin: 0; }
