/* Экраны вне игры: загрузка, знакомство, каталог, настройки игры, команды, вход по коду, профиль, своя викторина, админка
   (холст «Библейский квиз — вариант 10»: ряды 1, 2, 9, «Один экран — команды», «Афиша — главная»). */

@keyframes scr-wipev { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scr-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes scr-load { 0% { transform: scaleX(0); } 70% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes scr-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- экраны без нижнего меню ---------- */
body.no-nav .tabbar { display: none; }
body.no-nav .view::after { height: 0; }

/* ---------- общее ---------- */
.s-top { display: flex; align-items: center; gap: 12px; min-height: 42px; margin-top: 2px; }
.s-top > .kicker { margin-left: auto; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-top > .kicker.left { margin-left: 0; text-align: left; flex: 1; }
.s-top > .s-right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.s-sec { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; min-height: 36px; }
.s-sec.set { margin: 14px 0 8px; }
.s-sec h2 { font-size: 28px; line-height: 1.05; }
.s-sec .grow { flex: 1; }
.s-label { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.s-note { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.s-lead { margin: 8px 0 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.s-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--teal); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.s-more svg { width: 16px; height: 16px; }
.s-add {
  margin-left: auto; height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 6px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 800; flex: none;
}
.s-add svg { width: 16px; height: 16px; stroke-width: 2.6; }
.s-add:active { transform: scale(.96); }

/* закреплённый низ: сводка настроек и большая кнопка (холст: высота 128) */
.s-foot {
  position: sticky; bottom: 0; z-index: 5; margin: 18px calc(-1 * var(--gut)) 0;
  padding: 10px var(--gut) calc(28px + var(--safe-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line);
}
.s-sum { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--muted); }

/* ---------- загрузка ---------- */
.boot {
  position: fixed; inset: 0; z-index: 999; overflow: hidden; background: var(--paper); color: var(--ink);
  padding: calc(22px + var(--safe-top)) 20px calc(46px + var(--safe-bottom)); display: flex; flex-direction: column;
}
.bt-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bt-w { margin: auto 0 0; display: flex; flex-direction: column; margin-left: -2px; font-family: var(--cond); font-weight: 800; font-size: 76px; line-height: .92; letter-spacing: -.005em; }
.bt-w .wl, .wordmark .wl { display: flex; height: .92em; overflow: hidden; white-space: nowrap; }
.bt-w .wl > span, .wordmark .wl > span { display: block; animation: up .8s var(--ease) both; }
.bt-w .dot, .wordmark .dot { color: var(--coral); }
.bt-mq { margin: 62px -20px auto; height: 42px; overflow: hidden; background: var(--teal); color: var(--white); animation: bandin .8s var(--ease) .45s both; }
.bt-mt { display: flex; width: max-content; height: 42px; align-items: center; animation: marquee 40s linear infinite; }
.bt-mt > span { display: flex; align-items: center; gap: 14px; padding-right: 14px; white-space: nowrap; font-family: var(--cond); font-weight: 700; font-size: 22px; }
.bt-mt > span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral-t); flex: none; }
.bt-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 60px; animation: rise .6s ease .8s both; }
.bt-row { display: flex; align-items: baseline; gap: 10px; }
.bt-l { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bt-s { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }
.bt-bar { display: block; height: 10px; border-radius: 5px; background: var(--mute); overflow: hidden; }
.bt-bar b { display: block; height: 100%; border-radius: 5px; background: var(--coral); transform-origin: 0 50%; animation: scr-load 2.6s var(--ease) infinite; }
.boot > .card { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); max-width: 360px; margin: 0 auto; }

/* ---------- главная: каталог игр ---------- */
.home { padding-top: 16px; }
.home-top { display: flex; align-items: center; min-height: 38px; }
.home-me { margin-left: auto; display: block; border-radius: 50%; text-decoration: none; }
.home-me:active { transform: scale(.94); }
.ava.me { width: 38px; height: 38px; font-size: 15px; }
.ava.me:not(.has-img) { background: var(--ink) !important; color: var(--paper) !important; font-family: var(--sans); }
.ava.me.xl { width: 84px; height: 84px; font-size: 44px; font-family: var(--cond); }
.wordmark { margin: 12px 0 0 -2px; display: flex; flex-direction: column; font-size: 76px; line-height: .92; font-weight: 800; letter-spacing: -.005em; }
.home .mq { margin-top: 16px; }
.jcard {
  margin-top: 18px; padding: 12px 14px 14px; border-radius: 8px; background: var(--coral); color: var(--ink);
  animation: rise .8s var(--ease) .3s both;
}
.jc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.jc-top b { font-family: var(--cond); font-size: 34px; font-weight: 800; line-height: 1; }
.jc-top span { font-size: 13.5px; font-weight: 600; }
.jc-row { display: flex; gap: 8px; margin-top: 12px; }
.jc-in {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 0; border-radius: 6px; outline: none; background: var(--paper); color: var(--ink);
  font-family: var(--cond); font-size: 34px; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums;
}
.jc-in::placeholder { color: var(--dim); }
.jc-in:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.jc-go { width: 52px; height: 52px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.jc-go svg { width: 22px; height: 22px; stroke-width: 2.4; }
.jc-go:active { transform: scale(.95); }
.cat-sec { margin-top: 20px; }
.cat-sec + .cat-sec { margin-top: 32px; }
.cat-h { display: flex; align-items: flex-end; height: 34px; overflow: hidden; font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 34px; }
.cat-h h2 { margin: 0; font: inherit; min-width: 0; }
.cat-h h2 > span { display: block; animation: up .7s var(--ease) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* каталог: .gtiles/.gtile (не .tiles/.tile — так называются плитки ответов в играх, games.css).
   По три в ряд; неполный последний ряд — по центру */
.gtiles { --gcols: 3; --ggap: 8px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px var(--ggap); }
.gtile {
  width: calc((100% - (var(--gcols) - 1) * var(--ggap)) / var(--gcols)); flex: none;
  display: flex; flex-direction: column; gap: 7px; min-width: 0; text-decoration: none; color: var(--ink); transition: transform .15s ease;
}
.gtile:active { transform: scale(.97); }
.tile-img {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px;
  animation: scr-wipev .7s cubic-bezier(.6, 0, .2, 1) both;
}
.tile-img.bg-coral { background: var(--coral-t); }
.tile-img.bg-teal { background: var(--teal-t); }
.tile-img.bg-must { background: var(--must-t); }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* рамка картинки — поверх неё, иначе картинка закрывает край */
.tile-img::after { content: ''; position: absolute; inset: 0; border: 1.5px solid var(--teal); border-radius: inherit; pointer-events: none; }
.tile-n { position: absolute; left: 7px; top: 4px; color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.1; }
.tile-t { min-height: 34px; font-size: 13.5px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; animation: rise .6s ease both; }
.tile-new .tile-img { display: grid; place-items: center; background: var(--card2); color: var(--teal); }
.tile-new .tile-img svg { width: 34px; height: 34px; stroke-width: 2.2; }
.home.calm .wl > span, .home.calm .tile-img, .home.calm .tile-t, .home.calm .jcard, .home.calm .cat-h h2 > span,
.home.calm .mq { animation: none; }
@media (min-width: 640px) {
  .gtiles { --gcols: 5; --ggap: 12px; row-gap: 18px; } /* 9 · 5 · 5 игр: ряды 5 + 4, 5, 5 */
  .tile-t { font-size: 14.5px; }
}
@media (max-width: 360px) { .tile-t { font-size: 12.5px; } .tile-n { font-size: 19px; } }

/* ---------- игра перед стартом (настройки) ---------- */
.setup { padding-bottom: 0; }
.s-title { margin-top: 10px; }
.s-card { display: flex; gap: 14px; align-items: center; margin-top: 14px; animation: rise .6s ease .2s both; }
.s-cov { width: 92px; height: 92px; flex: none; overflow: hidden; border-radius: 6px; background: var(--coral-t); }
.s-cov img { width: 100%; height: 100%; object-fit: cover; }
.s-desc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s-desc b { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.s-meta { font-size: 14px; font-weight: 600; color: var(--muted); min-height: 1.2em; }
.s-edit { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-size: 14px; font-weight: 700; text-decoration: none; }
.s-edit svg { width: 16px; height: 16px; }
.s-opts { padding-bottom: 4px; }
.s-group { margin-top: 18px; }
.s-hint { margin: 10px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode {
  min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 8px;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left;
  transition: background .25s ease, color .25s ease;
}
.mode-t { display: flex; width: 100%; align-items: center; font-family: var(--cond); font-weight: 800; font-size: 24px; line-height: 1.15; }
.mode-t svg { margin-left: auto; width: 20px; height: 20px; stroke-width: 2.6; opacity: 0; flex: none; }
.mode-d { font-size: 13px; font-weight: 600; line-height: 1.3; }
.mode.on { background: var(--teal); color: var(--white); box-shadow: none; }
.mode.on .mode-t svg { opacity: 1; }
.mode:active { transform: scale(.98); }
.mode-one { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--teal-t); font-size: 15px; font-weight: 700; line-height: 1.35; }
.mode-one svg { width: 22px; height: 22px; flex: none; }
.s-sw { margin-top: 18px; display: flex; flex-direction: column; }
.s-swrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.s-swrow + .s-swrow { box-shadow: 0 -1px 0 var(--line); }
.s-swrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-swrow .t b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.s-swrow .t small { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.s-boards { display: flex; flex-direction: column; gap: 6px; }
.s-board {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-align: left;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
}
.s-board-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-board-t b { font-size: 15.5px; font-weight: 800; }
.s-board-t small { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.s-board svg { width: 20px; height: 20px; stroke-width: 2.6; opacity: 0; flex: none; }
.s-board.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.s-board.on small { color: var(--onink); }
.s-board.on svg { opacity: 1; }
.s-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.s-rules li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; font-weight: 600; line-height: 1.35; }
.s-rules li b { flex: none; width: 26px; font-family: var(--cond); font-size: 24px; font-weight: 800; line-height: 1; color: var(--coral); }
.s-reset { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; height: 40px; color: var(--teal); font-size: 15px; font-weight: 700; }
.s-reset svg { width: 18px; height: 18px; }

/* ---------- команды перед игрой на одном экране ---------- */
.teams-pg {
  position: fixed; left: 0; right: 0; top: var(--vt, 0px); height: var(--vh, 100%); z-index: 60; background: var(--paper); color: var(--ink); overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; animation: fadein .25s ease both;
}
.tm-scroll { flex: 1; padding: calc(16px + var(--safe-top)) var(--gut) 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.teams-pg .s-foot { margin: 0; max-width: 760px; width: 100%; align-self: center; }
@media (min-width: 761px) { .teams-pg .s-foot { box-shadow: none; } }
.tm-title { margin-top: 10px; }
.tm-lead { margin: 10px 0 22px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.tm-seg { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--mute); max-width: 100%; }
.tm-seg button {
  width: 72px; height: 44px; border-radius: 6px; color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 26px;
  transition: background .2s ease, color .2s ease;
}
.tm-seg button.wide { width: auto; padding: 0 14px; font-family: var(--sans); font-size: 15px; }
.tm-seg button.on { background: var(--ink); color: var(--paper); }
.tm-list { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.tm-card { min-height: 84px; display: flex; align-items: center; gap: 14px; padding: 0 6px 0 16px; border-radius: 8px; animation: inA .5s cubic-bezier(.2, .8, .3, 1) backwards; }
.tm-n { font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1; flex: none; }
.tm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.tm-k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tm-name { font-family: var(--cond); font-weight: 800; font-size: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-in {
  width: 100%; height: 40px; margin-top: 2px; padding: 0 8px; border: 0; border-radius: 6px; outline: none;
  background: rgba(255, 255, 255, .85); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 28px;
}
.tm-ed { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: inherit; opacity: .8; }
.tm-ed svg { width: 20px; height: 20px; stroke-width: 2; }
.tm-ed:active { transform: scale(.9); }
.tm-none { margin: 0; padding: 18px 16px; border-radius: 8px; background: var(--teal-t); font-size: 16px; font-weight: 700; line-height: 1.35; }

/* ---------- вход по коду ---------- */
.join-pg { padding-bottom: 24px; }
.jn-title { margin-top: 30px; }
.jn-lead { margin: 14px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.jn-box { position: relative; display: block; margin-top: 20px; }
.jn-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jn-cell {
  position: relative; height: 104px; border-radius: 8px; display: grid; place-items: center; background: var(--card);
  box-shadow: inset 0 0 0 2px var(--ink); transition: box-shadow .2s ease;
}
.jn-cell.cur { box-shadow: inset 0 0 0 3px var(--coral); }
.jn-cell b { font-family: var(--cond); font-weight: 800; font-size: 76px; line-height: 1; animation: pop .35s cubic-bezier(.3, 1.4, .5, 1) both; }
.jn-caret { width: 3px; height: 50px; border-radius: 2px; background: var(--coral); animation: scr-blink 1s steps(1) infinite; }
.jn-in {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0;
  font-size: 16px; color: transparent; caret-color: transparent; background: transparent;
}
.join-pg > .mbtn { margin-top: 20px; transition: background .3s ease, color .3s ease, transform .12s; }
.join-pg > .mbtn.k-mute { background: var(--mute); color: var(--dim); }
.jn-help { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 8px; background: var(--teal-t); }
.jn-help > div { display: flex; gap: 12px; align-items: flex-start; }
.jn-help p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.jn-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--white); }
.jn-ic svg { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- знакомство ---------- */
.guide-pg {
  position: fixed; left: 0; right: 0; top: var(--vt, 0px); height: var(--vh, 100%); z-index: 150; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); color: var(--ink); animation: fadein .3s ease both;
}
.guide-pg.teal { background: var(--teal); color: var(--white); }
.g-page {
  position: relative; min-height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(18px + var(--safe-top)) 0 calc(28px + var(--safe-bottom));
}
.g-top { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 20px; }
.g-top .kicker { letter-spacing: .16em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-skip { margin-left: auto; flex: none; height: 42px; color: inherit; font-size: 15px; font-weight: 700; }
.g-art { margin-top: 12px; overflow: hidden; background: var(--must-t); animation: scr-wipev .9s cubic-bezier(.6, 0, .2, 1) .1s both; }
.g-art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 561px) { .g-art { border-radius: 8px; margin-left: 20px; margin-right: 20px; } }
.g-body { padding: 24px 20px 0; }
.g-body.tight { padding-top: 14px; }
.g-body.code { padding-top: 24px; }
.g-body.name { padding-top: 24px; }
.g-title { margin-left: -2px; }
.g-lead { margin: 18px 4px 0 0; font-size: 18px; font-weight: 600; line-height: 1.4; animation: rise .6s ease .7s both; }
.g-sub { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); animation: rise .6s ease .3s both; }
.g-blocks { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.g-block { min-height: 74px; display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 8px; animation: inA .7s cubic-bezier(.2, .8, .3, 1) both; }
.g-block.coral { background: var(--coral); color: var(--ink); }
.g-block.teal { background: var(--teal); color: var(--white); }
.g-block.must { background: var(--must); color: var(--ink); }
.g-bn { font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: 1; flex: none; }
.g-block b { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.25; }
.g-block svg { width: 24px; height: 24px; stroke-width: 2; opacity: .85; flex: none; }
.g-code-k { margin: 18px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-l); }
.g-code { display: flex; gap: 4px; margin-left: -6px; font-family: var(--cond); font-weight: 800; font-size: 156px; line-height: 132px; color: var(--white); }
.g-code .ln { display: block; height: 132px; overflow: hidden; }
.g-code .ln > span { display: block; animation: up .8s var(--ease) both; }
.g-tips { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.g-tip { display: flex; gap: 14px; align-items: flex-start; animation: rise .6s ease both; }
.g-tip > span:last-child { padding-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.g-tic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--teal); }
.g-tic svg { width: 20px; height: 20px; stroke-width: 2; }
.g-k { margin: 22px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.g-body.name .g-k:first-of-type { margin-top: 26px; }
.g-hint { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.g-room { min-height: 96px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; border-radius: 8px; background: var(--teal); color: var(--white); }
.g-chip {
  height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 5px; border-radius: 22px; max-width: 100%;
  background: var(--paper); color: var(--ink); font-size: 17px; font-weight: 700; animation: tagin .55s cubic-bezier(.2, .8, .3, 1) .6s both;
}
.g-chip > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ava.chip { width: 34px; height: 34px; font-size: 17px; }
.g-others { font-size: 14px; font-weight: 700; }
.g-dots { display: flex; gap: 6px; margin: auto 20px 0; padding-top: 24px; }
.g-dots i { height: 8px; width: 8px; border-radius: 4px; background: var(--line); transition: width .3s ease; }
.g-dots i.on { width: 28px; background: var(--coral); }
.g-dots.dark i { background: rgba(255, 255, 255, .45); }
.g-dots.dark i.on { background: var(--coral); }
.g-foot { padding: 0 20px; margin-top: 40px; }
.g-body.name ~ .g-foot { margin-top: 24px; }
.g-page > .g-foot:last-child { margin-top: auto; padding-top: 24px; }
.g-dots + .g-foot { margin-top: 40px !important; padding-top: 0 !important; }

/* поле имени (знакомство, шторка профиля) */
.nf { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.nf-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); padding: 0; font-family: var(--cond); font-weight: 800; }
.nf-cnt { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); }
/* выбор аватара */
.av-grid { display: grid; gap: 8px; }
/* выбранный — кольцо чернилами через тонкий просвет (видно на любом цвете аватара), подпись ярче; без подложки */
.av-opt {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; color: var(--muted);
  background: transparent; animation: rise .5s ease both; min-width: 0; transition: color .2s ease;
}
.av-opt.on { color: var(--ink); }
.av-grid.shown .av-opt { animation: none; }
.av-c { position: relative; border-radius: 50%; overflow: hidden; display: grid; place-items: center; transition: box-shadow .2s ease; flex: none; }
.av-opt.on .av-c { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.av-c img { width: 100%; height: 100%; object-fit: cover; }
.av-c b { font-family: var(--cond); font-weight: 800; font-size: 34px; }
.av-c svg { width: 28px; height: 28px; stroke-width: 2; }
.av-ph { display: grid; place-items: center; }
.av-l { font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; padding: 0 2px; }
/* шторка «Как вас называть в играх?» */
.sheet.av-sheet h3.av-h { font-size: 34px; margin: 0 0 6px; }
.sheet.av-sheet h3.av-h2 { font-size: 26px; margin: 22px 0 12px; }
.av-note { margin: 14px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.av-foot { margin-top: 24px; }

/* ---------- профиль ---------- */
.prof-top { display: flex; align-items: center; min-height: 38px; }
.prof-help { margin-left: auto; height: 38px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.prof-help svg { width: 18px; height: 18px; stroke-width: 2; }
.prof-me { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.prof-ava { flex: none; border-radius: 50%; animation: pop .5s cubic-bezier(.3, 1.3, .5, 1) .1s both; }
.prof-ava:active { transform: scale(.95); }
.prof-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prof-n { display: block; height: 52px; overflow: hidden; font-family: var(--cond); font-weight: 800; font-size: 56px; line-height: 52px; white-space: nowrap; text-overflow: ellipsis; }
.prof-n > span { display: block; overflow: hidden; text-overflow: ellipsis; animation: up .7s var(--ease) .15s both; }
.prof-edit { align-self: flex-start; color: var(--teal); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.prof-stats { margin-top: 24px; }
.prof-stats .stat:nth-child(2) { flex: 1.3; } /* очки — самое длинное число */
.qz-list, .rm-list { display: flex; flex-direction: column; gap: 6px; }
.qz {
  min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 8px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); animation: rise .5s ease .45s both;
}
.qz:active { background: var(--card2); }
.qz .sq { border-radius: 6px; }
.qz-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qz-t b { font-size: 16px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-t small { font-size: 13px; font-weight: 600; color: var(--muted); }
.qz-play { height: 40px; flex: none; display: flex; align-items: center; padding: 0 14px; border-radius: 6px; background: var(--coral); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 20px; }
.qz-play:active { transform: scale(.95); }
.rm {
  min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); animation: rise .5s ease .55s both;
}
.rm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rm-t b { font-size: 15px; font-weight: 800; line-height: 1.3; }
.rm-t small { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-when { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.rm-live { flex: none; padding: 4px 8px 3px; border-radius: 4px; background: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.prof-set { display: flex; flex-direction: column; }
.ps-row { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 15px; font-weight: 700; }
.ps-row > span { flex: 1; min-width: 0; }
.ps-row.lang { padding: 6px 6px 6px 12px; box-shadow: 0 -1px 0 var(--line); flex-wrap: wrap; }
.ps-lang { flex: none; }
.ps-lang button { flex: 0 0 auto; } /* каждая кнопка — по своей ширине: «Oʻzbekcha» длиннее остальных */
.prof-admin {
  margin-top: 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; color: var(--ink); text-decoration: none;
}
.prof-admin > span { flex: 1; display: flex; flex-direction: column; }
.prof-admin b { font-size: 15px; font-weight: 800; }
.prof-admin small { font-size: 13px; font-weight: 600; color: var(--muted); }
.prof-admin svg { width: 18px; height: 18px; color: var(--muted); }
.qz-title { margin-top: 14px; }
.qz-page .s-sec { margin-top: 10px; }
.qz-how { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 8px; background: var(--teal-t); }
.qz-how > b { font-family: var(--cond); font-size: 24px; font-weight: 800; }
.qz-how > div { display: flex; gap: 12px; align-items: baseline; }
.qz-how > div > span { font-family: var(--cond); font-size: 22px; font-weight: 800; color: var(--teal); flex: none; }
.qz-how p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }

/* ---------- своя викторина ---------- */
.qe { padding-bottom: 0; }
.qe .s-top .kicker.left { margin-left: 0; }
.qe-cnt { font-size: 13px; font-weight: 700; color: var(--muted); }
.qe-title {
  display: block; width: 100%; height: 64px; margin-top: 12px; padding: 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  outline: none; background: transparent; color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 50px;
  text-overflow: ellipsis;
}
.qe-title::placeholder { color: var(--dim); }
.qe-list { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.qe-row {
  min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 6px; text-align: left;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
}
.qe-row b { font-family: var(--cond); font-size: 20px; font-weight: 800; color: var(--muted); flex: none; }
.qe-row span { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qe-row svg { width: 18px; height: 18px; flex: none; }
.qe-q { padding: 14px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); animation: rise .4s ease both; }
.qe-qh { display: flex; align-items: center; margin-bottom: 10px; }
.qe-trash { margin-left: auto; width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.qe-trash svg { width: 18px; height: 18px; stroke-width: 2; }
.qe-qt {
  display: block; width: 100%; min-height: 64px; padding: 0; border: 0; outline: none; resize: none; overflow: hidden;
  background: transparent; color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 28px; line-height: 1.05;
}
.qe-qt::placeholder { color: var(--dim); }
.qe-anss { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.qe-ans { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 6px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.qe-ans.ok { background: var(--teal-t); box-shadow: inset 0 0 0 1.5px var(--teal); }
.qe-lt { width: 34px; height: 34px; flex: none; border-radius: 5px; display: grid; place-items: center; background: var(--mute); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 20px; }
.qe-ans.ok .qe-lt { background: var(--teal); color: var(--white); }
.qe-lt:active { transform: scale(.92); }
.qe-ans input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; padding: 0; background: transparent; color: var(--ink); font-size: 15.5px; font-weight: 700; text-overflow: ellipsis; }
.qe-ans input::placeholder { color: var(--dim); font-weight: 600; }
.qe-okl { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.qe-hint { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.qe-in {
  display: block; width: 100%; height: 42px; margin-top: 6px; padding: 0 12px; border: 0; border-radius: 6px; outline: none;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 15px; font-weight: 600;
  text-overflow: ellipsis;
}
.qe-hint + .qe-in { margin-top: 10px; font-weight: 700; }
.qe-in:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.qe-in::placeholder { color: var(--dim); }
.qe-del { margin: 14px 0 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 40px; color: var(--warn); font-size: 15px; font-weight: 700; }
.qe-del svg { width: 18px; height: 18px; }
.qe-foot {
  position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; margin: 18px calc(-1 * var(--gut)) 0;
  padding: 10px var(--gut) calc(28px + var(--safe-bottom)); background: var(--paper);
}
.qe-foot .mbtn { font-size: 25px; }
.qe-foot .qe-add { flex: 1; }
.qe-foot .qe-save { flex: 1.4; }
.mbtn.center > span { flex: none; }

/* ---------- админка ---------- */
.adm { padding-bottom: 28px; }
.ad-top { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.ad-top .ad-ref { margin-left: auto; }
.ad-top .ad-ref svg { width: 18px; height: 18px; }
.ad-title { margin-top: 8px; }
.ad-tabs { display: flex; gap: 5px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs button {
  flex: none; height: 34px; padding: 0 10px; border-radius: 6px; background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.ad-tabs button.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.seg.ad-period { margin-top: 14px; }
.seg.ad-period button { height: 34px; font-size: 13.5px; }
.ad-box { margin-top: 10px; }
.ad-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-kpi { min-height: 104px; padding: 10px 12px; border-radius: 8px; display: flex; flex-direction: column; animation: rise .5s ease both; min-width: 0; }
.ad-kpi > span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; }
.ad-kpi > b { display: block; font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-kpi > small { margin-top: auto; font-size: 12px; font-weight: 700; line-height: 1.3; }
.ad-sec { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 10px; }
.ad-sec h2 { font-size: 28px; }
.ad-sec span { font-size: 13px; font-weight: 700; color: var(--muted); }
.ad-card { padding: 12px; }
.seg.ad-seg button { height: 32px; font-size: 13px; }
.ad-chart { margin-top: 12px; }
.ad-plotwrap { position: relative; }
.ad-plot { height: 150px; display: flex; align-items: flex-end; gap: 3px; }
.ad-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; padding: 0; }
.ad-col i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--teal); transform-origin: 50% 100%; animation: growy .6s cubic-bezier(.3, 1.1, .5, 1) both; }
.ad-col.we i { background: var(--ink); }
.ad-col.on i { background: var(--coral); }
.ad-tip { position: absolute; top: -6px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.ad-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ad-note { margin: 10px 0 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.ad-rows, .ad-games { display: flex; flex-direction: column; gap: 6px; }
.ad-row, .ad-gtop {
  width: 100%; min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 8px; text-align: left;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
}
.ad-game { border-radius: 8px; animation: rise .45s ease both; transition: opacity .25s ease; }
.ad-game.off { opacity: .55; }
.ad-gtop { cursor: pointer; }
.ad-game.open .ad-gtop { border-radius: 8px 8px 0 0; }
.ad-th { width: 56px; height: 56px; flex: none; overflow: hidden; border-radius: 6px; background: var(--mute); }
.ad-th img { width: 100%; height: 100%; object-fit: cover; }
.ad-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-rt b { font-size: 16px; font-weight: 800; line-height: 1.25; }
.ad-rt small { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.ad-row > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ad-sw { flex: none; display: flex; }
.ad-details { padding: 12px 12px 14px; border-radius: 0 0 8px 8px; background: var(--card2); box-shadow: inset 0 0 0 1.5px var(--line); margin-top: -1.5px; }
.ad-meter { margin-bottom: 10px; }
.ad-mbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--mute); }
.ad-mbar i { display: block; height: 100%; }
.ad-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.ad-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ad-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ad-facts { display: flex; flex-direction: column; padding: 4px 12px; }
.ad-facts.flat { padding: 0; background: none; box-shadow: none; }
.ad-fact { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 8px 0; font-size: 14px; font-weight: 600; }
.ad-fact + .ad-fact { box-shadow: 0 -1px 0 var(--line); }
.ad-fact > span { color: var(--muted); flex: none; max-width: 55%; }
.ad-fact > b { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.ad-bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; font-size: 14px; font-weight: 700; }
.ad-bar-row + .ad-bar-row { box-shadow: 0 -1px 0 var(--line); }
.ad-bar-row b { font-weight: 800; }
.ad-hbar { display: block; height: 8px; border-radius: 4px; background: var(--mute); overflow: hidden; }
.ad-hbar i { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.ad-person { display: flex; flex-direction: column; padding: 9px 0; }
.ad-person + .ad-person { box-shadow: 0 -1px 0 var(--line); }
.ad-person b { font-size: 15px; font-weight: 800; }
.ad-person small { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.ad-sort { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ad-sort .seg { margin-left: auto; }
.ad-log { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.ad-line { padding: 8px 10px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
.ad-line.err { background: #F8E0D8; }
.ad-line.warn { background: var(--must-t); }

/* ---------- широкий экран ---------- */
@media (min-width: 900px) {
  .wordmark { font-size: 96px; }
  .prof-stats .stat { min-height: 110px; }
}

/* крупный заголовок, подогнанный по ширине (bigTitle) */
.disp.fit { line-height: .89; }
.disp.fit > .ln { height: .92em; }
.disp.fit > .ln > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-lead + .rm-list, .s-lead + .qz-list { margin-top: 14px; }

/* Профиль → «О приложении»: ссылки, политика конфиденциальности, лицензии, «Удалить мои данные» */
.prof-links { margin-bottom: 8px; }
.prof-links .ps-row + .ps-row { box-shadow: 0 -1px 0 var(--line); }
.ps-row.lnk { width: 100%; color: var(--ink); text-decoration: none; text-align: left; }
.ps-row.lnk svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ps-row.lnk:active { background: var(--card2); }
.ps-row.del { color: var(--warn); }
.lg-page .s-lead { margin-bottom: 6px; }
.lg-sec { margin-top: 18px; animation: rise .5s ease .2s both; }
.lg-sec h2 { font-size: 24px; line-height: 1.1; margin-bottom: 6px; }
.lg-sec p { font-size: 15px; font-weight: 600; line-height: 1.45; }
.lg-sec p + p { margin-top: 8px; }
.lg-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; font-weight: 800; text-decoration: none; color: var(--teal); }
.lg-link svg { width: 16px; height: 16px; }
.lg-done { padding-top: 40px; }
.lg-done .lg-close { margin-top: 24px; }

/* ---------- вход в аккаунт (шторка) ---------- */
.sheet.lgi-sheet h3 { margin-bottom: 8px; }
.lgi-lead { margin: 0 0 12px; font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ink2); }
.lgi-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--teal-l); font-size: 14px; font-weight: 700; line-height: 1.35; }
.lgi-note svg { width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 1px; }
.lgi-consent { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; cursor: pointer; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.lgi-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lgi-box { flex: none; width: 24px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink); display: grid; place-items: center; color: transparent; transition: background .15s ease; }
.lgi-box svg { width: 16px; height: 16px; stroke-width: 3; }
.lgi-consent.on .lgi-box { background: var(--teal); box-shadow: none; color: var(--white); }
.lgi-consent input:focus-visible + .lgi-box { outline: 2px solid var(--coral); outline-offset: 2px; }
.lgi-consent a { color: var(--teal); font-weight: 800; }
.lgi-consent.need .lgi-box { animation: lgi-shake .4s ease; box-shadow: inset 0 0 0 2px var(--warn); }
@keyframes lgi-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.lgi-body { display: flex; flex-direction: column; gap: 10px; }
.lgi-body.busy { opacity: .55; pointer-events: none; }
.lgi-btns { display: flex; flex-direction: column; gap: 10px; }
.lgi-google { min-height: 44px; display: flex; justify-content: center; }
.lgi-pbtn { min-height: 56px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font-family: var(--cond); font-weight: 800; font-size: 24px; cursor: pointer; }
.lgi-pbtn.apple { background: #000; color: #fff; }
.lgi-step { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink2); }
.lgi-in { width: 100%; height: 56px; padding: 0 16px; border: 0; border-radius: 8px; outline: none; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); font-size: 18px; font-weight: 700; font-family: var(--sans); }
.lgi-in:focus { box-shadow: inset 0 0 0 2px var(--teal); }
.lgi-in.lgi-code { font-family: var(--cond); font-size: 36px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.lgi-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lgi-link { align-self: center; padding: 8px 2px; border: 0; background: none; color: var(--teal); font-size: 14.5px; font-weight: 800; cursor: pointer; }
.lgi-link:disabled { color: var(--dim); cursor: default; }
.lgi-none { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }

/* ---------- профиль: аккаунт ---------- */
.acc-card { padding: 14px 16px; }
.acc-card.guest b { display: block; font-family: var(--cond); font-weight: 800; font-size: 24px; line-height: 1.05; }
.acc-card.guest p { margin: 6px 0 12px; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink2); }
.acc-row { display: flex; align-items: center; gap: 12px; }
.acc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-t b { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-t small { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.acc-out { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--mute); color: var(--ink); font-size: 14.5px; font-weight: 800; cursor: pointer; }
.acc-out svg { width: 18px; height: 18px; }

/* ---------- правовые тексты в шторке ---------- */
.sheet.lg-sheet h3 { font-size: 30px; }
.lg-sheet-body .lg-sec { animation: none; }
.lg-pre { white-space: pre-wrap; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--ink2); margin: 0; }

/* ---------- жалоба и меню игрока (ведущий) ---------- */
.sheet.rp-sheet h3.rp-h { font-size: 32px; margin-bottom: 6px; }
.rp-body { display: flex; flex-direction: column; gap: 8px; }
.rp-k { margin: 10px 0 0; }
.rp-row, .pm-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: var(--card); color: var(--ink); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line);
}
.rp-row .ava { width: 38px; height: 38px; font-size: 17px; flex: none; }
.rp-ic { flex: none; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--coral-t); }
.rp-ic svg { width: 20px; height: 20px; }
.rp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rp-t b { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-t small { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rp-row > svg:last-child { width: 18px; height: 18px; flex: none; color: var(--muted); }
.rp-what { margin: 4px 0 2px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.rp-note { width: 100%; min-height: 88px; padding: 12px 14px; border: 0; border-radius: 8px; resize: vertical; outline: none; background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink); font: 600 16px/1.4 var(--sans); }
.rp-note:focus { box-shadow: inset 0 0 0 2px var(--teal); }
.rp-note-s { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.pm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pm-head .ava { width: 48px; height: 48px; font-size: 21px; }
.pm-head b { font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-list { display: flex; flex-direction: column; gap: 8px; }
.pm-row { font-size: 17px; font-weight: 800; }
.pm-row svg { width: 20px; height: 20px; flex: none; }
.pw-flag { margin-left: 10px; }
.rep-link { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin: 14px auto 0; padding: 8px 10px; border: 0; background: none;
  color: var(--muted); font-size: 14.5px; font-weight: 800; cursor: pointer; }
.rep-link svg { width: 16px; height: 16px; }
.stage.tone-teal .rep-link, .stage.tone-ink .rep-link { color: inherit; opacity: .8; }

/* ---------- профиль: заблокированные игроки, скрытая викторина ---------- */
.bl-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.bl-row + .bl-row { border-top: 1.5px solid var(--line); }
.bl-row .ava { width: 34px; height: 34px; font-size: 15px; flex: none; }
.bl-row b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-un { flex: none; padding: 7px 10px; border: 0; border-radius: 8px; background: var(--mute); color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.qz-hid { display: inline-block; margin-left: 6px; padding: 1px 6px 0; border-radius: 4px; background: var(--coral-t); color: var(--ink); font-size: 12px; font-weight: 800; }

/* ---------- обязательное обновление ---------- */
.upd-page { position: fixed; inset: 0; z-index: 300; overflow: auto; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: calc(32px + var(--safe-top)) max(24px, calc(50% - 260px)) calc(32px + var(--safe-bottom)); }
.upd-page .upd-ic { width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; background: var(--teal); color: var(--white); }
.upd-page .upd-ic svg { width: 38px; height: 38px; }
.upd-page h1 { margin: 6px 0 0; font-family: var(--cond); font-weight: 800; font-size: 54px; line-height: .98; }
.upd-page p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink2); }

/* ---------- админка: жалобы, люди, обновление ---------- */
button.ad-kpi { border: 0; text-align: left; font: inherit; cursor: pointer; }
.ad-tabs button.hot:not(.on) { box-shadow: inset 0 0 0 2px var(--coral); }
.ad-row.off { opacity: .55; }
.ad-tag { flex: none; display: inline-block; padding: 2px 7px 1px; border-radius: 4px; background: var(--mute); color: var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.ad-tag.q { background: var(--must); }
.ad-tag.n { background: var(--teal-l); }
.ad-tag.warn { background: var(--coral-t); }
.ad-reps { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ad-rep { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; animation: rise .4s ease both; }
.ad-rep-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ad-rep-main { display: flex; flex-direction: column; gap: 4px; }
.ad-rep-main > b { font-family: var(--cond); font-weight: 800; font-size: 24px; line-height: 1.08; overflow-wrap: anywhere; }
.ad-rep-main.name { flex-direction: row; align-items: center; gap: 10px; }
.ad-rep-main.name .ava { width: 40px; height: 40px; font-size: 18px; flex: none; }
.ad-q { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ad-q small { font-weight: 800; color: var(--muted); }
.ad-q span { color: var(--muted); }
.ad-q.shown { padding: 6px 8px; border-radius: 6px; background: var(--must-t); }
.ad-more { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ad-rep-note { margin: 0; padding: 6px 10px; border-left: 3px solid var(--coral); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ad-rep-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ad-link { padding: 0; border: 0; background: none; color: var(--teal); font-size: 13px; font-weight: 800; cursor: pointer; text-align: left; }
.ad-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ad-acts.col { flex-direction: column; margin-top: 14px; }
.ad-acts.col .ad-act { height: 50px; font-size: 16px; }
.ad-act { height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 800; cursor: pointer; }
.ad-act.danger { background: var(--warn); color: var(--white); }
.ad-act.mute { background: var(--mute); color: var(--ink); }
.ad-act.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.ad-rep-done { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 800; color: var(--teal); }
.ad-rep-done svg { width: 16px; height: 16px; }
.ad-in { width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 8px; outline: none; background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink); font: 700 16px var(--sans); }
.ad-in:focus { box-shadow: inset 0 0 0 2px var(--teal); }
.ad-in::placeholder { color: var(--dim); font-weight: 600; }
.ad-search { margin-top: 2px; }
.ad-people { margin-top: 12px; }
.ad-plist { display: flex; flex-direction: column; }
.ad-pers { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.ad-pers + .ad-pers { box-shadow: 0 -1px 0 var(--line); }
.ad-pers .ava { width: 38px; height: 38px; font-size: 17px; flex: none; }
.ad-pers .ad-rt b small { font-size: 12px; color: var(--muted); font-weight: 700; }
.ad-pers > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ad-lbl { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13.5px; font-weight: 800; color: var(--ink2); }
.ad-save { flex: 1; min-width: 180px; }
.sheet.ad-sheet .ad-facts { padding: 2px 12px; }
.sheet.ad-sheet .ad-sec { margin-top: 18px; }

/* почта для связи — ссылкой */
.lg-mail { color: var(--teal); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
