:root {
  --black: #000;
  --panel: #1f1f1f;
  --panel2: #2a2a2a;
  --line: #333;
  --text: #fff;
  --muted: #9a9a9a;
  --yellow: #fad258;
  --yellow-line: #fddb6d;
  --gold: #ffc630;
  --orange: #fba007;
  --font-rounded: "SF Pro Rounded", -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  /* лига по умолчанию — Bronze */
  --bar-a: #fefbe9; --bar-b: #ff9a00;
  --lg1: #ee9930; --lg2: #cb6d1f; --lg3: #8c370d; --lg4: #401303;
}
/* Цвета лиг: полоска энергии и свечение внутренних экранов (как в Notcoin) */
body.league-1 { --bar-a: #eff9ff; --bar-b: #4a57a7; --lg1: #505eb1; --lg2: #3b4892; --lg3: #232d61; --lg4: #0d122c; }
body.league-2 { --bar-a: #fffcd2; --bar-b: #f6c35e; --lg1: #eaae01; --lg2: #d89700; --lg3: #8a5d01; --lg4: #332201; }
body.league-3 { --bar-a: #dae3ff; --bar-b: #696c7f; --lg1: #454656; --lg2: #393a48; --lg3: #272832; --lg4: #101115; }
body.league-4 { --bar-a: #9ffeff; --bar-b: #2792e2; --lg1: #0d64a8; --lg2: #074390; --lg3: #072b6a; --lg4: #051433; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--black);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }
.gold { color: var(--gold); }
.chev { opacity: .8; font-size: 1.15em; line-height: 1; }

.coin-icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.coin-icon.big { width: 44px; height: 44px; }
.coin-icon.hero { width: 110px; height: 110px; filter: drop-shadow(0 0 30px rgba(250, 214, 92, .5)); }

/* ===================== Главный экран ===================== */
#home {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  /* Фон как у Notcoin: сверху чёрный, за монетой яркое кремовое свечение, книзу насыщенный оранжевый.
     Цвета сняты с оригинального фона по высоте экрана, нарисовано градиентами. */
  background:
    radial-gradient(ellipse 64% 27% at 50% 53%, #ffeaa8 0%, #ffe7a2 22%, #fbca74 55%, rgba(244,158,53,0) 100%),
    linear-gradient(180deg, #000 0%, #000 11%, #0e0803 15%, #36220f 20%, #734b23 25%, #a86425 33%,
      #e2963e 45%, #f49e35 60%, #f59a29 70%, #f08717 82%, #e26911 92%, #d4500e 100%);
  padding: 16px 15px 0;
}
.home-top { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; }
/* плашка сквада: полупрозрачная с размытием */
.squad-pill {
  width: 100%; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 16px; padding: 10px 12px; font-size: 17px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* баланс: SF Pro Rounded 48/800, монета 40 px */
.balance-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px;
  font-family: var(--font-rounded); font-size: 48px; line-height: 64px; font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums; }
.balance-row .coin-icon.big { width: 40px; height: 40px; }
.balance-row.mid { margin-top: 6px; font-size: 40px; line-height: 48px; }
.place-league { margin-top: 0; display: flex; align-items: center; font-size: 15px; line-height: 20px; font-weight: 600;
  font-family: var(--font-rounded); }
.place-league button { display: flex; align-items: center; gap: 6px; }
.place-league .dot { width: 15px; margin: 0 8px; font-size: 22px; text-align: center; }

.coin-area { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.coin {
  position: relative; width: min(300px, 76vw, 40vh); aspect-ratio: 1; border-radius: 50%;
  transition: transform .1s ease-out; touch-action: none; cursor: pointer;
  /* iPhone: без подсветки нажатия, выделения и меню долгого нажатия */
  -webkit-tap-highlight-color: transparent; outline: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* Без размывающих CSS-фильтров на монете: Safari на iPhone рисует их внутри прямоугольника (квадрат вокруг). */
.coin .coin-face { width: 100%; height: 100%; display: block; pointer-events: none; transition: opacity .2s; }
/* пульсирующее свечение за монетой (как у Notcoin: box-shadow #ffefb3, 3 сек; в Turbo — быстрее) */
.coin-glow {
  position: absolute; left: 50%; top: 50%; width: min(240px, 60vw, 32vh); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 0 100px var(--glow, #ffefb3), inset 0 0 50px var(--glow, #ffefb3);   /* --glow — цвет скина */
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.coin-area.turbo .coin-glow { animation-duration: .65s; box-shadow: 0 0 120px #ffb347, inset 0 0 60px #ffd27a; }
/* энергии меньше одного тапа: монета серая (загорается, как только энергии хватает) */
.coin.sleep .coin-face { filter: brightness(.8) grayscale(1); }
/* скин монеты: фото кругом вместо обычной монеты */
.coin .coin-skin { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
.coin.skinned .coin-face { visibility: hidden; }
.coin.sleep .coin-skin { filter: brightness(.8) grayscale(1); }
.skin-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; }
.sheet-skin { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.skin-preview { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; display: block; margin: 6px auto 12px;
  background: var(--panel2); }
.skin-preview:not([src]) { visibility: hidden; height: 0; margin: 0; }
/* админка: как будет выглядеть главный экран со скином */
.skin-screen { position: relative; width: 168px; aspect-ratio: 9 / 16; margin: 8px auto 12px; border-radius: 18px;
  overflow: hidden; background: #000; border: 2px solid var(--panel2); display: flex; align-items: center; justify-content: center; }
.skin-screen .glow { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 40px var(--glow, #ffefb3), inset 0 0 20px var(--glow, #ffefb3); }
.skin-screen img { position: relative; width: 66%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.skin-screen img:not([src]) { visibility: hidden; }
.coin-area.sleep .coin-glow { display: none; }
/* огненное кольцо вокруг монеты в режиме Turbo */
.coin.turbo::before {
  content: ""; position: absolute; inset: -16%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,110,0,0) 52%, rgba(255,80,0,.85) 62%, rgba(255,190,0,.5) 68%, rgba(255,200,0,0) 76%);
  animation: flame .35s infinite alternate;
}
@keyframes flame { from { transform: scale(.97) rotate(0deg); opacity: .8; } to { transform: scale(1.04) rotate(8deg); opacity: 1; } }

.turbo-badge { position: absolute; top: 4px; font-size: 18px; font-weight: 800; color: #ffb02e; text-shadow: 0 0 12px rgba(255, 120, 0, .8); }

.float {
  position: fixed; z-index: 20; pointer-events: none;
  font-size: 44px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35);
  animation: float-up 1s ease-out forwards;
}
@keyframes float-up { from { opacity: 1; transform: translate(-50%, -60%); } to { opacity: 0; transform: translate(-50%, -190%); } }

/* Ракета: прилетает по дуге (полёт — анимация из app.js), ждёт 10 секунд, покачиваясь, и улетает */
.rocket { position: fixed; left: 0; top: 0; z-index: 15; width: 90px; height: 90px; padding: 0;
  will-change: transform; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rocket-body { display: block; font-size: 64px; line-height: 90px; text-align: center;
  filter: drop-shadow(0 0 16px rgba(255, 150, 0, .9)); }
.rocket.flying .rocket-body { filter: drop-shadow(0 0 18px rgba(255, 110, 0, 1)) drop-shadow(0 8px 26px rgba(255, 200, 0, .7)); }
.rocket.waiting .rocket-body { animation: rocket-wobble 1.2s ease-in-out infinite; }
/* последние 3 секунды — «нервничает»: скоро улетит */
.rocket.leaving-soon .rocket-body { animation-duration: .45s; filter: drop-shadow(0 0 24px rgba(255, 70, 0, 1)); }
@keyframes rocket-wobble {
  0%, 100% { transform: translate(0, 0) rotate(-12deg) scale(1); }
  50%      { transform: translate(6px, -10px) rotate(8deg) scale(1.08); }
}

/* дождь монет во время Turbo */
#coinfall { position: fixed; inset: 0; pointer-events: none; z-index: 12; overflow: hidden; }
#coinfall svg { position: absolute; top: -60px; width: 44px; height: 44px; animation: coin-drop linear forwards; }
@keyframes coin-drop { to { transform: translateY(115vh) rotate(540deg); } }

/* Нижняя панель — размеры и цвета январской версии Notcoin */
.home-bottom { position: relative; z-index: 2; width: 100%; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.energy { display: flex; align-items: center; gap: 4px; min-width: 0; padding-top: 4px; }
.energy-icon { width: 40px; font-size: 34px; line-height: 40px; text-align: center; }
.energy-now { font-family: var(--font-rounded); font-size: 24px; font-weight: 700; line-height: 18px; margin-bottom: 5px;
  font-variant-numeric: tabular-nums; text-shadow: 1px 1px 2px rgba(181,103,12,.25); }
.energy-max { font-size: 13px; line-height: 18px; font-weight: 700; color: rgba(255,255,255,.5); white-space: nowrap; }
.energy-max .slash { font-weight: 400; }
.menu { flex: none; width: 222px; display: flex; overflow: hidden; background: rgba(255,255,255,.3); border-radius: 16px; }
.menu button {
  position: relative; width: 74px; min-width: 74px; padding: 12px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 510; line-height: 12px; text-shadow: 1px 1px 0 rgba(0,0,0,.08);
  transition: background-color .3s ease;
}
.menu button:active { transition-duration: 0s; background-color: #e5e3e352; }
.menu button::after { content: ""; position: absolute; inset-inline-end: 0; top: 50%; height: 34px; width: 1px;
  transform: translateY(-50%); background: rgba(255,255,255,.16); }
.menu button:last-child::after { display: none; }
.menu button span { font-size: 24px; line-height: 24px; height: 24px;
  text-shadow: 1px 1px 2px rgba(181,103,12,.25), .5px .5px 0 rgba(0,0,0,.04); }
.menu button .coin-icon { width: 24px; height: 24px; }
.energy-track { height: 15px; border-radius: 20px; background: rgba(255,255,255,.2); overflow: hidden; }
.energy-fill { height: 100%; width: 100%; border-radius: 14px; background: linear-gradient(270deg, var(--bar-a), var(--bar-b));
  transition: width .33s ease; }

/* ===================== Внутренние страницы ===================== */
.page {
  position: fixed; inset: 0; z-index: 30; overflow-y: auto;
  /* свечение цвета лиги сверху, как фоны лиг Notcoin */
  background: radial-gradient(ellipse 120% 62% at 50% 0%, var(--lg1) 0%, var(--lg2) 22%, var(--lg3) 45%, var(--lg4) 68%, #000 92%) #000;
  padding: 16px 16px calc(110px + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform .22s ease-out; visibility: hidden;
}
.page.open { transform: none; visibility: visible; }
.back { color: var(--muted); font-size: 16px; margin-bottom: 4px; }
.in-telegram .back { display: none; }   /* в Telegram используется системная кнопка «Назад» */
.page-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 8px 0 6px; }
h2 { margin: 6px 0 2px; font-size: 28px; font-weight: 800; }
h3 { margin: 24px 0 10px; font-size: 17px; font-weight: 700; }
.link { color: var(--gold); font-size: 15px; margin-top: 4px; }
.link.center { display: block; margin: 14px auto 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; justify-content: space-between; text-align: start; background: var(--panel); border-radius: 16px; padding: 14px; }
.tile:disabled { opacity: .45; }
.tile-title { font-size: 17px; font-weight: 700; }
.tile-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tile-icon { font-size: 34px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; background: var(--panel); border-radius: 16px; padding: 12px 14px; }
.row:disabled { opacity: .55; }
.row.me { box-shadow: inset 0 0 0 2px var(--gold); }
.row-icon { font-size: 30px; width: 40px; text-align: center; flex: none; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 14px; margin-top: 3px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.row-sub .coin-icon { width: 18px; height: 18px; }
.row-sub b { color: var(--text); }
.row-right { font-weight: 700; color: var(--muted); font-size: 22px; flex: none; }
.row-right.done { color: #3ad46a; }
.sep { opacity: .5; margin: 0 2px; }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #3a2500; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.avatar.big { width: 92px; height: 92px; font-size: 42px; }
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .premium-badge { position: absolute; inset-inline-end: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #a77bff, #5b8cff); color: #fff; font-size: 11px; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 0 0 2px var(--panel); }
.rank.medal { font-size: 24px; }
.premium-count { margin-inline-start: 8px; font-size: 14px; font-weight: 600; color: #b69bff; }
.league-trophy.small { font-size: 64px; }
.rank { width: 34px; text-align: center; color: var(--muted); font-weight: 700; flex: none; }

.bonus-table { background: var(--panel); border-radius: 16px; padding: 6px 14px; margin-top: 10px; }
.bonus-table .tr { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bonus-table .tr:last-child { border-bottom: 0; }
.bonus-table .th { color: var(--muted); }

.sticky-actions { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.btn-yellow { width: 100%; background: linear-gradient(180deg, #fcc93a, #f5a30c); color: #fff; text-shadow: 0 1px 3px rgba(120,60,0,.6); border-radius: 14px; padding: 16px; font-size: 18px; font-weight: 700; }
.btn-yellow:disabled { background: #555; color: #aaa; text-shadow: none; }
.btn-yellow.small { width: auto; padding: 12px 18px; font-size: 16px; }
.btn-dark { width: 100%; background: var(--panel); border-radius: 14px; padding: 16px; font-size: 16px; font-weight: 700; }
.btn-square { width: 58px; flex: none; background: linear-gradient(180deg, #fcc93a, #f5a30c); text-shadow: 0 1px 3px rgba(120,60,0,.6); color: #fff; border-radius: 14px; font-size: 24px; }

.league-hero { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; margin-top: 8px; }
.arrow { font-size: 40px; color: var(--muted); }
.arrow:disabled { opacity: .2; }
.league-trophy { font-size: 96px; line-height: 1.1; }
.league-progress { margin: 14px 0 4px; }
.track { height: 12px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f3c45a, #fffad0); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border-radius: 12px; padding: 4px; margin: 18px 0 12px; }
.segmented button { padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.segmented button.active { background: var(--panel2); color: var(--text); }

.create-squad { display: flex; gap: 8px; margin-top: 14px; }
.create-squad input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 16px; outline: none; }

/* ===================== Нижняя панель (буст) ===================== */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(19,19,20,.6); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  /* как модальные окна Notcoin: полупрозрачное стекло с размытием */
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(48px); backdrop-filter: blur(48px);
  border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center;
  transform: translateY(105%); transition: transform .22s ease-out;
}
.sheet.open { transform: none; }
.sheet-close { position: absolute; inset-inline-end: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); color: var(--muted); }
.sheet-icon { font-size: 76px; line-height: 1.1; }
.sheet-icon .coin-icon { width: 80px; height: 80px; }
.sheet-title { font-size: 28px; font-weight: 800; margin-top: 6px; }
.sheet-text { color: #d0d0d0; margin: 10px 0; line-height: 1.4; white-space: pre-line; }
.sheet-price { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 24px; font-weight: 800; margin: 12px 0 18px; }
.sheet-price .lvl { color: var(--muted); font-size: 18px; font-weight: 600; }

.toast { position: fixed; left: 16px; right: 16px; top: 16px; z-index: 60; background: #2b2b2b; padding: 12px 14px; border-radius: 14px; text-align: center; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.toast.error { background: #5a1d1d; }

/* ===================== Statistics ===================== */
.stat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.stat-row { display: flex; flex-direction: column; align-items: center; background: var(--panel); border-radius: 16px; padding: 16px; }
.stat-row b { font-size: 30px; font-weight: 800; }
.stat-row span { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ad46a; box-shadow: 0 0 8px #3ad46a; }
.task-section { margin: 20px 0 8px; font-size: 17px; font-weight: 700; }

/* ===================== Блокировка ===================== */
.banned { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; flex-direction: column; align-items: center;
          justify-content: center; text-align: center; padding: 24px; gap: 8px; }
.banned-icon { font-size: 80px; }
.banned p { max-width: 320px; line-height: 1.45; }
.balance-row.frozen { filter: saturate(.4) hue-rotate(160deg) brightness(1.1); }

/* текст поверх свечения лиги (как у Notcoin: белый полупрозрачный, ссылки белые) */
.page-head .muted { color: rgba(255,255,255,.75); }
.page-head .link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Языки: кнопка рядом со сквадом, флаги, список; арабский — справа налево ===== */
.top-row { width: 100%; display: flex; gap: 8px; align-items: stretch; }
.top-row .squad-pill { flex: 1; min-width: 0; width: auto; }
.lang-btn { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 16px;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.flag.big { width: 36px; height: 24px; border-radius: 4px; }
.lang-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; margin-top: 4px;
  white-space: normal; color: var(--text); }
.lang-row .row-title { font-size: 16px; letter-spacing: .5px; }
.menu button b { font-weight: inherit; }

/* ===== Админ-панель ===== */
.btn-yellow.wide { width: 100%; margin-bottom: 12px; }
.segmented.three { grid-template-columns: 1fr 1fr 1fr; }
.segmented button:disabled { opacity: .45; }
.admin-row { flex-direction: column; align-items: stretch; gap: 8px; }
.admin-row .admin-top { display: flex; align-items: center; gap: 12px; }
.admin-row .admin-status { font-size: 13px; color: var(--muted); }
.admin-row .admin-status.on { color: #3ad46a; }
.admin-row .admin-actions { display: flex; gap: 8px; }
.admin-row .admin-actions button { flex: 1; padding: 8px 6px; border-radius: 10px; background: var(--panel2); font-weight: 600; font-size: 14px; }
.admin-row .admin-actions button.danger { color: #ff6b6b; }
.form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 90px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field input { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; color: var(--text);
  font-size: 16px; }
.field .segmented { margin: 0; }
.lang-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-checks button { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--panel);
  color: var(--muted); font-weight: 700; font-size: 13px; border: 1px solid transparent; }
.lang-checks button.active { color: var(--text); border-color: var(--gold); }
.muted.small { font-size: 12.5px; line-height: 1.4; }
/* стрелки ‹ › ставит код под направление языка (applyLang); браузеру разворачивать их не даём */
.chev, .row-right, .arrow { unicode-bidi: isolate-override; direction: ltr; }
