/* ============ PokerSpot · Тренировки — новые компоненты ============
   Поверх дизайн-системы приложения (css/app.css)
   ================================================================= */

.sec-cap {
  font-family: var(--grato); font-weight: 800; font-size: 12px;
  letter-spacing: .16em; color: var(--dim-2); text-transform: uppercase;
  margin: 24px 0 12px;
}
.top-stats { display: flex; gap: 14px; }
.ts-item { text-align: right; }
.ts-item b { display: block; font-family: var(--grato); font-weight: 800; font-size: 17px; }
.ts-item i { font-style: normal; font-size: 11px; color: var(--dim-2); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- серия ---------- */
.streak-card { border-color: rgba(255, 205, 0, .3); }
.streak-card.done { border-color: rgba(255, 205, 0, .6); background: linear-gradient(160deg, #241d06 0%, #0e1930 70%); }
.sc-main { display: flex; align-items: center; gap: 16px; }
.sc-flame { font-size: 40px; line-height: 1; }
.sc-days { font-family: var(--grato); font-weight: 900; font-size: 28px; }
.sc-sub { color: var(--dim); font-size: 13.5px; line-height: 1.4; margin-top: 3px; }
.sc-week { display: flex; gap: 6px; margin: 16px 0 12px; }
.sc-day {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-style: normal;
}
.sc-day b {
  width: 100%; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: rgba(139,151,171,.12); color: var(--dim-2);
}
.sc-day.on b { background: rgba(255,205,0,.18); color: var(--yellow); border: 1px solid rgba(255,205,0,.4); }
.sc-day.today b { background: transparent; border: 1px dashed rgba(94,161,255,.5); }
.sc-day span { font-size: 10px; color: var(--dim-2); }
.sc-foot { display: flex; align-items: center; justify-content: space-between; }
.sc-freeze { font-size: 13px; color: var(--dim); }
.sc-freeze b { color: var(--blue-hi); }
.sc-more { color: var(--blue-hi); font-size: 13.5px; font-weight: 600; }

.streak-big { text-align: center; padding: 26px 20px; }
.sb-num { font-family: var(--grato); font-weight: 900; font-size: 74px; line-height: 1; color: var(--yellow); }
.sb-cap { font-size: 15px; color: var(--dim); margin-top: 4px; }
.sb-best { font-size: 13px; color: var(--dim-2); margin-top: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 14px 0; }
.cal-d {
  font-style: normal; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: rgba(139,151,171,.1); color: var(--dim-2);
}
.cal-d.on { background: rgba(255,205,0,.16); color: var(--yellow); border: 1px solid rgba(255,205,0,.35); }
.cal-d.today { border: 1px dashed rgba(94,161,255,.6); color: var(--blue-hi); }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.row-btns .btn { padding: 14px 12px; font-size: 14.5px; }

/* ---------- раздача дня ---------- */
.daily-card { border-color: rgba(255,205,0,.45); }
.daily-card.done { opacity: .75; border-color: var(--line-dim); }
.dc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dc-date { color: var(--dim); font-size: 13px; }
.dc-title { font-family: var(--grato); font-weight: 800; font-size: 21px; }
.dc-sub { color: var(--dim); font-size: 13.5px; line-height: 1.45; margin-top: 6px; }
.dc-cta { margin-top: 14px; color: var(--blue-hi); font-weight: 700; font-size: 15px; }

/* ---------- лига ---------- */
.league-card { border-color: rgba(94,161,255,.4); }
.lc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.lc-cap { font-size: 11px; letter-spacing: .14em; color: var(--dim-2); font-weight: 700; }
.lc-name { font-family: var(--grato); font-weight: 900; font-size: 26px; margin-top: 4px; }
.lc-place { text-align: right; }
.lc-place b { font-family: var(--grato); font-weight: 900; font-size: 30px; display: block; line-height: 1; }
.lc-place span { font-size: 11px; color: var(--dim-2); }
.lc-place.up b { color: #35e07c; }
.lc-place.down b { color: #ff8d90; }
.lc-bar { height: 6px; border-radius: 6px; background: rgba(139,151,171,.15); margin: 14px 0 10px; overflow: hidden; }
.lc-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2563eb, #5ea1ff); }
.lc-note { font-size: 13.5px; color: var(--dim); line-height: 1.45; }
.lc-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--dim-2); }
.lc-go { color: var(--blue-hi); font-weight: 700; }

.league-strip { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.league-strip::-webkit-scrollbar { display: none; }
.ls {
  flex: none; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px;
  background: rgba(139,151,171,.1); color: var(--dim-2); white-space: nowrap;
}
.ls.done { color: var(--dim); }
.ls.on { background: rgba(59,130,246,.2); color: var(--blue-hi); border: 1px solid var(--line); }
.lg-note { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.lgrow { grid-template-columns: 30px 34px minmax(0,1fr) 96px; }
.lgrow .r-ava { width: 32px; height: 32px; border-radius: 50%; background: #1a2540; display: block; }
.lgrow.up .r-pos { color: #35e07c; }
.lgrow.down .r-pos { color: #ff8d90; }
.lb-div {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 5px 14px; background: rgba(255,255,255,.03);
}
.lb-div.up { color: #35e07c; border-top: 1px solid rgba(34,197,94,.35); border-bottom: 1px solid rgba(34,197,94,.35); }
.lb-div.down { color: #ff8d90; border-top: 1px solid rgba(229,72,77,.3); border-bottom: 1px solid rgba(229,72,77,.3); }

/* ---------- тренажёры ---------- */
.drills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drill { padding: 14px 13px; display: flex; flex-direction: column; gap: 4px; }
.dr-tag { font-size: 20px; color: var(--blue-hi); }
.dr-name { font-family: var(--grato); font-weight: 800; font-size: clamp(14.5px, 4.2vw, 17px); margin-top: 6px; }
.dr-sub { color: var(--dim); font-size: 12.5px; line-height: 1.35; }
.dr-foot { color: var(--dim-2); font-size: 11.5px; margin-top: 8px; }

/* ---------- теория ---------- */
.pos-wheel-wrap { display: flex; justify-content: center; }
.pos-wheel { position: relative; width: 250px; height: 250px; }
.table-oval {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(120% 90% at 50% 0%, #17242f, #0b1119);
  border: 1px solid var(--line-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.to-1 { font-family: var(--grato); font-weight: 900; font-size: 20px; }
.to-2 { color: var(--dim-2); font-size: 11px; letter-spacing: .2em; }
.pos-desc-legacy { display: none; }
.pos-desc { text-align: center; color: var(--dim); font-size: 13.5px; line-height: 1.5; margin-top: 16px; }
.pos-desc b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.tests-note { font-size: 13px; color: var(--dim); margin-bottom: 12px; }

/* ---------- награды ---------- */
.awards-box { margin-top: 24px; }
.ab-cap { font-family: var(--grato); font-weight: 800; font-size: 12px; letter-spacing: .16em; color: var(--dim-2); margin-bottom: 10px; }
.ab-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.ab-row::-webkit-scrollbar { display: none; }
.aw {
  flex: none; width: 84px; text-align: center; padding: 12px 6px; border-radius: 14px;
  background: rgba(139,151,171,.07); border: 1px solid var(--line-dim); opacity: .5;
}
.aw.on { opacity: 1; border-color: rgba(255,205,0,.4); background: rgba(255,205,0,.08); }
.aw b { display: block; font-size: 20px; }
.aw i { font-style: normal; display: block; font-size: 10.5px; color: var(--dim); margin-top: 5px; line-height: 1.25; }

.aw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aw-card { padding: 16px; border-radius: 16px; background: rgba(139,151,171,.07); border: 1px solid var(--line-dim); opacity: .55; }
.aw-card.on { opacity: 1; border-color: rgba(255,205,0,.4); background: rgba(255,205,0,.07); }
.awc-ic { font-size: 26px; }
.awc-n { font-weight: 800; font-size: 15px; margin-top: 8px; }
.awc-h { color: var(--dim); font-size: 12px; margin-top: 4px; line-height: 1.35; }

/* ---------- профиль ---------- */
.ps-head { font-size: 34px; color: var(--blue-hi); }
.chips-card { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.cc-val { font-family: var(--grato); font-weight: 900; font-size: 32px; color: var(--yellow); }
.cc-cap { color: var(--dim); font-size: 14px; }
.empty-stub { text-align: center; color: var(--dim); line-height: 1.55; }
.empty-stub .btn { margin-top: 18px; }

/* ---------- полноэкранный тренажёр ---------- */
.play { position: fixed; inset: 0; z-index: 60; background: #06090f; display: flex; flex-direction: column; }
.play-top {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: #0b1220; border-bottom: 1px solid rgba(255,255,255,.08);
}
.play-back {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dim); color: var(--dim);
}
.play-title { font-weight: 700; font-size: 15px; }
.play-tag {
  margin-left: auto; font-family: var(--grato); font-weight: 800; font-size: 10px;
  letter-spacing: .14em; color: #131313; background: var(--yellow);
  padding: 4px 9px; border-radius: 999px;
}
.play-tag:empty { display: none; }
#playFrame { flex: 1; width: 100%; border: 0; }

/* ---------- тосты и шторка ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 12px); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  max-width: 88vw; padding: 12px 18px; border-radius: 14px;
  background: #16223c; border: 1px solid var(--line); font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.toast.good { border-color: rgba(34,197,94,.5); color: #9af5c0; }
.toast.bad { border-color: rgba(229,72,77,.5); color: #ffb3b5; }

.sheet-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(3,6,12,.7); }
.sheet-body {
  position: relative; width: 100%; max-width: 520px;
  background: linear-gradient(180deg, #101c33, #0a1220);
  border: 1px solid var(--line); border-bottom: none; border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
}
.sheet-grip { width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto 14px; }
.sheet-title { font-family: var(--grato); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.sheet-p { color: var(--dim); font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.demo-info {
  font-size: 12.5px; color: var(--blue-hi); background: rgba(59,130,246,.1);
  border: 1px solid var(--line-dim); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px;
}
.sheet-body .btn { margin-bottom: 9px; }

.demo-fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + 14px); z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(59,130,246,.9); color: #fff; font-size: 18px;
  box-shadow: 0 10px 24px rgba(37,99,235,.45);
}
.play:not(.hidden) ~ .demo-fab { display: none; }

/* ---------- инлайновые иконки вместо эмодзи ---------- */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }
.sc-flame { width: 40px; height: 40px; color: var(--dim-2); }
.sc-flame .ic { width: 100%; height: 100%; }
.sc-flame.lit { color: var(--yellow); filter: drop-shadow(0 0 12px rgba(255,205,0,.45)); }
.sc-freeze .ic { color: var(--blue-hi); width: 13px; height: 13px; }
.aw b .ic, .awc-ic .ic { width: 22px; height: 22px; }
.aw.on b .ic, .aw-card.on .awc-ic .ic { color: var(--yellow); }
.aw b .ic, .aw-card .awc-ic .ic { color: var(--dim-2); }
.info-row .i-ico .ic { width: 22px; height: 22px; }
.back-fab .ic, .play-back svg, .demo-fab svg { width: 20px; height: 20px; }
.streak-val { display: flex; align-items: center; gap: 8px; }
.streak-val .ic { width: 24px; height: 24px; color: var(--yellow); }

/* в приложении .back-fab плавающая; внутри заголовка она должна быть в потоке */
.with-back .back-fab { position: static; flex: none; }

/* строки-описания: значение и подпись — разными строками */
.info-row .i-val, .info-row .i-cap { display: block; }

/* ---------- отступ снизу от реальной высоты навигации ---------- */
.screen { padding-bottom: calc(var(--nav-real, 92px) + 30px) !important; }
.demo-fab { bottom: calc(var(--nav-real, 92px) + 14px); }
#toast-root { bottom: calc(var(--nav-real, 92px) + 12px); }

/* ---------- колесо позиций: не упирается в края карточки ----------
   в app.css уже есть `.pos-wheel .seat` — переопределяем той же специфичностью */
.pos-wheel-wrap { padding: 6px 0 2px; }
.pos-wheel { width: min(258px, 68vw); height: min(258px, 68vw); }
.table-oval { inset: 29%; }
/* размер мест оставляем родной (52px, центрируется через margin: -26px) */

/* ---------- уроки по уровням ---------- */
.lvl-row { display: flex; gap: 8px; margin-bottom: 10px; }
.lvl {
  flex: 1; padding: 10px 6px; border-radius: 13px; font-size: 13.5px; font-weight: 700;
  background: rgba(139,151,171,.08); border: 1px solid var(--line-dim); color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.lvl i { font-style: normal; font-size: 11px; color: var(--dim-2); font-weight: 600; }
.lvl.on { background: rgba(59,130,246,.2); border-color: var(--line); color: var(--text); }
.lvl.on i { color: var(--blue-hi); }
.lvl-hint { font-size: 12.5px; color: var(--dim-2); margin-bottom: 12px; }

.les-list { border: 1px solid var(--line-dim); border-radius: var(--radius); overflow: hidden; background: rgba(14,25,48,.5); }
.les {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 13px 15px; color: var(--text);
}
.les + .les { border-top: 1px solid rgba(70,122,231,.18); }
.les:active { background: rgba(59,130,246,.1); }
.les-b { flex: 1; min-width: 0; }
.les-t { display: block; font-weight: 700; font-size: 15px; }
.les-s { display: block; color: var(--dim); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.les-new {
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--blue-hi); background: rgba(59,130,246,.18); border-radius: 999px;
  padding: 2px 7px; margin-left: 7px; vertical-align: middle; text-transform: uppercase;
}
.les-drill {
  flex: none; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #131313; background: var(--yellow); border-radius: 999px; padding: 4px 9px;
}
.les-go { flex: none; color: var(--dim-2); transform: rotate(180deg); }
.les-go .ic { width: 18px; height: 18px; }
.grp-cap {
  font-family: var(--grato); font-weight: 800; font-size: 11px; letter-spacing: .14em;
  color: var(--dim-2); text-transform: uppercase; margin: 18px 0 8px;
}

/* ---------- таблица дня ---------- */
.day-head { text-align: center; }
.dh-date { font-size: 12.5px; color: var(--dim-2); }
.dh-me { font-size: 16px; margin-top: 8px; }
.dh-me b { font-family: var(--grato); font-weight: 900; font-size: 24px; color: var(--blue-hi); }
.day-note { font-size: 12.5px; color: var(--dim-2); line-height: 1.5; margin-top: 14px; }

/* ---------- карточки тренажёров: одинаковая высота и низ по одной линии ---------- */
.drills { align-items: stretch; }
.drill { height: 100%; }
.dr-sub { min-height: 2.7em; }
.dr-foot { margin-top: auto; }

/* ---------- позиция: описание + сетка диапазона ---------- */
.pos-card { margin-top: 14px; }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pc-short { font-family: var(--grato); font-weight: 900; font-size: 30px; line-height: 1; }
.pc-full { color: var(--dim-2); font-size: 12.5px; margin-top: 4px; }
.pc-pct { text-align: right; }
.pc-pct b { display: block; font-family: var(--grato); font-weight: 900; font-size: 26px; color: var(--blue-hi); line-height: 1; }
.pc-pct span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim-2); }
.pc-after {
  margin-top: 12px; font-size: 12.5px; color: var(--blue-hi);
  background: rgba(59,130,246,.1); border: 1px solid var(--line-dim);
  border-radius: 10px; padding: 8px 11px;
}
.pc-text { font-size: 13.5px; color: var(--dim); line-height: 1.55; margin-top: 12px; }
.pc-cap {
  font-family: var(--grato); font-weight: 800; font-size: 10.5px; letter-spacing: .14em;
  color: var(--dim-2); margin: 16px 0 8px;
}
.rg { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; }
.rc {
  font-style: normal; aspect-ratio: 1; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(6px, 1.7vw, 8.5px); font-weight: 700; line-height: 1;
  background: rgba(139,151,171,.09); color: var(--dim-2);
}
.rc.on { background: rgba(0,51,255,.55); color: #fff; }
.rc.p.on { background: rgba(255,205,0,.75); color: #131313; }
.rc.s.on { background: rgba(59,130,246,.75); color: #fff; }
.rg-legend { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 11px; color: var(--dim-2); flex-wrap: wrap; }
.rg-legend .rc { width: 12px; height: 12px; aspect-ratio: auto; display: inline-block; vertical-align: -2px; }
.rg-hint { flex-basis: 100%; font-size: 12.5px; line-height: 1.45; }

/* ---------- урок ---------- */
.lesson-card { padding: 22px 20px; }
.lsn-lvl { font-family: var(--grato); font-weight: 800; font-size: 10.5px; letter-spacing: .14em; color: var(--dim-2); text-transform: uppercase; }
.lsn-t { font-family: var(--grato); font-weight: 900; font-size: 25px; line-height: 1.12; margin: 8px 0 6px; }
.lsn-s { color: var(--blue-hi); font-size: 13.5px; margin-bottom: 14px; }
.lsn-p { font-size: 14.5px; line-height: 1.62; color: #cdd6e4; }
.lsn-p + .lsn-p { margin-top: 12px; }
.les-h { font-size: 26px; }

/* ---------- магазин мерча ---------- */
.chips-pill {
  display: flex; align-items: center; gap: 7px; flex: none;
  background: rgba(255,205,0,.1); border: 1px solid rgba(255,205,0,.35);
  border-radius: 999px; padding: 7px 13px 7px 9px;
}
.cp-ic {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--yellow) 0 25%, #6b5600 0 50%, var(--yellow) 0 75%, #6b5600 0);
  border: 1.5px solid rgba(255,205,0,.7);
}
.chips-pill b { font-family: var(--grato); font-weight: 800; font-size: 15px; color: var(--yellow); }
.cp-cap { font-size: 10.5px; color: var(--dim-2); letter-spacing: .06em; text-transform: uppercase; }

.shop-card { border-color: rgba(255,205,0,.4); }
.sh-top { margin-bottom: 12px; }
.sh-title { font-family: var(--grato); font-weight: 800; font-size: 21px; }
.sh-sub { color: var(--dim); font-size: 13.5px; margin-top: 6px; line-height: 1.45; }
.sh-cta { margin-top: 12px; color: var(--yellow); font-weight: 700; font-size: 14.5px; }

.shop-note { font-size: 13px; color: var(--dim); line-height: 1.5; margin-bottom: 16px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc {
  position: relative; padding: 14px 13px; border-radius: 16px;
  background: linear-gradient(160deg, var(--card), #0c1526);
  border: 1px solid var(--line-dim);
  display: flex; flex-direction: column;
}
.mc.owned { border-color: rgba(34,197,94,.5); background: linear-gradient(160deg, #0d2418, #0a1a12); }
.mc.locked { opacity: .62; }
.mc-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(59,130,246,.2); color: var(--blue-hi); border-radius: 999px; padding: 3px 7px;
}
.mc-tag.hot { background: rgba(255,205,0,.9); color: #131313; }
.mc-art { color: var(--yellow); margin-bottom: 8px; }
.mc-art .ic { width: 26px; height: 26px; }
.mc.locked .mc-art { color: var(--dim-2); }
.mc-n { font-weight: 800; font-size: 15px; }
.mc-s { color: var(--dim); font-size: 12px; line-height: 1.35; margin-top: 4px; }
.mc-buy {
  margin-top: 12px; width: 100%; padding: 9px 8px; border-radius: 11px;
  font-family: var(--grato); font-weight: 800; font-size: 12.5px;
  background: rgba(255,205,0,.14); color: var(--yellow); border: 1px solid rgba(255,205,0,.4);
}
.mc.locked .mc-buy { background: rgba(139,151,171,.1); color: var(--dim-2); border-color: var(--line-dim); }
.mc.owned .mc-buy { background: rgba(34,197,94,.16); color: #35e07c; border-color: rgba(34,197,94,.45); }

/* ---------- главная: врезка тренировок ---------- */
.train-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-color: rgba(255,205,0,.45);
}
.train-hero.done { border-color: rgba(34,197,94,.45); }
.th-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.th-flame { width: 34px; height: 34px; flex: none; color: var(--dim-2); }
.th-flame .ic { width: 100%; height: 100%; }
.th-flame.lit { color: var(--yellow); filter: drop-shadow(0 0 10px rgba(255,205,0,.45)); }
.th-t { font-family: var(--grato); font-weight: 800; font-size: 18px; }
.th-s { color: var(--dim); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.th-r {
  flex: none; font-weight: 800; font-size: 14px; color: var(--blue-hi);
  background: rgba(59,130,246,.16); border: 1px solid var(--line-dim);
  border-radius: 999px; padding: 8px 14px;
}
.train-hero.done .th-r { color: #35e07c; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.4); }
.lh-badge { margin-bottom: 4px; }
.lh-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.lh-row.dim { color: var(--dim); font-size: 12.5px; font-weight: 500; margin-top: -6px; }
.card-art .art-sub { font-size: 15px; }

/* заголовок раздела и пилюля чипсов не должны распирать экран */
.screen-top { gap: 10px; }
.screen-top .h-page { min-width: 0; }
.chips-pill { flex: none; }
@media (max-width: 385px) {
  .screen-top .h-page { font-size: 28px; }
  .cp-cap { display: none; }
  .chips-pill { padding: 7px 11px 7px 8px; }
}

/* карточки магазина: кнопка всегда внизу, высота по строке */
.shop-grid { align-items: stretch; }
.mc { height: 100%; }
.mc-s { flex: 1; }
.mc-buy { margin-top: 12px; }

/* врезка на главной: заголовок не ломается, текст не наезжает на кнопку */
.th-t { white-space: nowrap; }
.th-l { flex: 1; }
.th-s { margin-top: 4px; }
@media (max-width: 385px) {
  .th-t { font-size: 16.5px; }
  .th-r { padding: 7px 11px; font-size: 13px; }
}

/* ---------- раздел «Серия» в магазине ---------- */
.streak-shop { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.ss-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: 16px; background: linear-gradient(160deg, var(--card), #0c1526);
  border: 1px solid rgba(94,161,255,.3);
}
.ss-item.full, .ss-item.off { opacity: .6; border-color: var(--line-dim); }
.ss-ic { flex: none; color: var(--blue-hi); }
.ss-ic .ic { width: 24px; height: 24px; }
.ss-b { flex: 1; min-width: 0; }
.ss-n { font-weight: 800; font-size: 15px; }
.ss-s { color: var(--dim); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.ss-buy { flex: none; width: auto; margin-top: 0; padding: 9px 14px; }
.ss-item.full .ss-buy, .ss-item.off .ss-buy { background: rgba(139,151,171,.1); color: var(--dim-2); border-color: var(--line-dim); }

/* ---------- клубный рейтинг: врезка про лигу тренировок ---------- */
.league-hint { margin-top: 16px; border-color: rgba(94,161,255,.35); }
.lh-t { font-family: var(--grato); font-weight: 800; font-size: 18px; }
.lh-s { color: var(--dim); font-size: 13px; margin-top: 6px; line-height: 1.45; }
.lh-c { color: var(--blue-hi); font-weight: 700; font-size: 14px; margin-top: 10px; }

/* ---------- мой QR ---------- */
.qr-card { text-align: center; padding: 26px 20px; }
.qr-box {
  width: min(230px, 62vw); aspect-ratio: 1; margin: 0 auto 18px;
  display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px;
  background: #fff; padding: 10px; border-radius: 14px;
}
.qr-box i { background: transparent; border-radius: 1px; }
.qr-box i.on { background: #0b1220; }
.qr-name { font-family: var(--grato); font-weight: 900; font-size: 26px; }
.qr-sub { color: var(--dim); font-size: 13.5px; margin-top: 6px; }

/* ---------- профиль: прогресс теории ---------- */
.theory-card { margin-top: 14px; }
.tc-top { display: flex; justify-content: space-between; align-items: baseline; }
.tc-cap { font-family: var(--grato); font-weight: 800; font-size: 10.5px; letter-spacing: .14em; color: var(--dim-2); }
.tc-pct { font-family: var(--grato); font-weight: 800; font-size: 18px; color: var(--blue-hi); }
.tc-bar { height: 8px; border-radius: 8px; background: rgba(139,151,171,.15); margin: 10px 0; overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2563eb, #5ea1ff); }
.tc-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--dim); gap: 10px; }
.tc-go { color: var(--blue-hi); font-weight: 700; flex: none; }

/* строка клубного рейтинга: имя и статус — в столбик, не внахлёст */
.lb-row > span > .r-name, .lb-row > span > .r-status { display: block; }
.lb-row > span:nth-child(3) { min-width: 0; overflow: hidden; }
.lb-row .r-name { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* ---------- нижняя панель: копия боевого приложения ---------- */
#bottom-nav .nav-inner { height: 56px; display: flex; align-items: center; justify-content: space-around; }
#bottom-nav .nav-item {
  position: relative; flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .2s;
}
#bottom-nav .nav-item:active { opacity: .6; }
.nav-ico { width: 20px; height: 20px; opacity: .4; filter: grayscale(1) brightness(.75); transition: all .2s; }
#bottom-nav .nav-item.active .nav-ico { opacity: 1; filter: brightness(1.25); transform: scale(1.1); }
#bottom-nav .nav-label { font-size: 10px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.4); transition: color .2s; }
#bottom-nav .nav-item.active .nav-label { color: #fff; }
#bottom-nav .nav-qr { flex: none; transform: translateY(-14px); }
#bottom-nav .qr-circle {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #151C26; border: 1.5px solid rgba(255,255,255,.05);
  transition: transform .2s;
}
#bottom-nav .nav-qr:active .qr-circle { transform: scale(.95); }
#bottom-nav .qr-circle img { width: 100%; height: 100%; transform: scale(1.3); }
#bottom-nav .nav-qr .nav-label { margin-top: 8px; }

/* цена в меню клуба */
.mn-price { flex: none; font-family: var(--grato); font-weight: 800; font-size: 16px; color: var(--yellow); }
.info-row .i-ico:empty { flex: 0 0 0; }

/* QR в этом билде не используется — кнопка остаётся для точности копии, но не нажимается */
#bottom-nav .nav-qr { pointer-events: none; }

/* длинный заголовок магазина не должен ломаться некрасиво */
.sh-title { font-size: clamp(18px, 5.2vw, 21px); line-height: 1.15; }

/* ---------- тренажёр диапазонов открытия ---------- */
.op { align-items: flex-start; }
.op-bar { display: block; height: 4px; border-radius: 4px; background: rgba(139,151,171,.15); margin-top: 8px; overflow: hidden; }
.op-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #5ea1ff); }
.op-cap { display: block; font-size: 11px; color: var(--dim-2); margin-top: 5px; }

.od-h { font-size: 24px; }
.od-bar { height: 4px; border-radius: 4px; background: rgba(139,151,171,.15); overflow: hidden; }
.od-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #5ea1ff); transition: width .3s; }
.od-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin: 8px 0 14px; }

.od-table { text-align: center; padding: 20px 16px 22px; }
.od-pos { margin-bottom: 18px; }
.od-tag {
  display: inline-block; font-family: var(--grato); font-weight: 800; font-size: 15px;
  letter-spacing: .06em; color: var(--blue-hi);
  background: rgba(59,130,246,.16); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 16px;
}
.od-sub { display: block; font-size: 12px; color: var(--dim-2); margin-top: 8px; }
.od-cards { display: flex; gap: 12px; justify-content: center; }
.pcard {
  position: relative; width: 78px; height: 110px; border-radius: 12px;
  background: linear-gradient(160deg, #fff, #e9edf3);
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pcard .pc-r { position: absolute; top: 7px; left: 9px; font-family: var(--grato); font-weight: 800; font-size: 24px; line-height: 1; }
.pcard.red .pc-r { color: #ec473a; }
.pcard.black .pc-r { color: #0b1220; }
.pcard .pc-s { width: 38px; height: 38px; object-fit: contain; }
.od-code { font-family: var(--grato); font-weight: 800; font-size: 18px; color: var(--dim); margin-top: 14px; letter-spacing: .04em; }

.od-ask { text-align: center; font-size: 15.5px; font-weight: 600; margin: 16px 0 12px; }
.od-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.od-b {
  padding: 16px 10px; border-radius: 16px; font-family: var(--grato); font-weight: 800; font-size: 17px;
  background: linear-gradient(180deg, var(--card), #0c1526); border: 1px solid var(--line-dim); color: var(--text);
}
.od-b.open { border-color: rgba(94,161,255,.5); color: var(--blue-hi); }
.od-b.good { border-color: rgba(34,197,94,.7); background: linear-gradient(180deg, #0d2418, #0a1a12); color: #35e07c; }
.od-b.bad { border-color: rgba(236,71,58,.55); background: linear-gradient(180deg, #241114, #180c0e); color: #ff9195; opacity: .8; }
.od-b:disabled { cursor: default; }

.od-fb { margin-top: 12px; }
.od-fb.ok { border-color: rgba(34,197,94,.45); }
.od-fb.no { border-color: rgba(236,71,58,.4); }
.odf-h { font-family: var(--grato); font-weight: 800; font-size: 18px; }
.od-fb.ok .odf-h { color: #35e07c; }
.od-fb.no .odf-h { color: #ff9195; }
.odf-t { font-size: 13.5px; color: var(--dim); line-height: 1.5; margin: 8px 0 14px; }
.odf-t b { color: var(--text); font-family: var(--grato); }

.od-res { text-align: center; padding: 26px 20px; }
.odr-big { font-family: var(--grato); font-weight: 900; font-size: 44px; color: var(--blue-hi); }
.odr-cap { font-size: 15px; color: var(--dim); margin-top: 6px; }
.odr-cap2 { font-size: 13px; color: var(--dim-2); margin-top: 14px; line-height: 1.5; }
.drill-screen .card + .btn { margin-top: 16px; }

/* ---------- позиции: фишка дилера и объяснение ---------- */
.pos-wrap { margin-bottom: 20px; }
.dealer-note { margin-bottom: 14px; }
.dealer-note b { display: block; font-family: var(--grato); font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.dealer-note { font-size: 13px; color: var(--dim); line-height: 1.5; }

.dealer-chip {
  position: absolute; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--grato); font-weight: 900; font-size: 12px; color: #131313;
  background: #fff; border: 2px solid var(--yellow);
  box-shadow: 0 0 14px rgba(255,205,0,.5); z-index: 3;
}
.move-btn {
  width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px;
  background: rgba(255,205,0,.12); border: 1px solid rgba(255,205,0,.4);
  color: var(--yellow); font-weight: 700; font-size: 14px;
}
.move-btn:active { background: rgba(255,205,0,.22); }

.dealer-steps { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ds { display: flex; gap: 11px; align-items: flex-start; }
.ds i {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-style: normal;
  font-family: var(--grato); font-weight: 800; font-size: 11px;
  background: rgba(59,130,246,.18); color: var(--blue-hi); border: 1px solid var(--line-dim);
}
.ds:first-child i { background: #fff; color: #131313; border-color: var(--yellow); }
.ds span { font-size: 12.5px; color: var(--dim); line-height: 1.45; padding-top: 3px; }
.ds b { color: var(--text); font-weight: 600; }

.pc-seat {
  margin-top: 12px; font-size: 12.5px; color: var(--yellow);
  background: rgba(255,205,0,.1); border: 1px solid rgba(255,205,0,.28);
  border-radius: 10px; padding: 8px 11px;
}

/* вкладка «Позиции» в одном ряду с уровнями */
.lvl-row { flex-wrap: wrap; }
.lvl { min-width: 0; padding: 10px 4px; font-size: 12.5px; }
.pos-chip.on { background: rgba(255,205,0,.16); border-color: rgba(255,205,0,.45); color: var(--text); }
.pos-chip.on i { color: var(--yellow); }
.pos-wrap { margin-bottom: 0; }

/* фишка и места двигаются плавно, кнопка блокируется на время хода */
.dealer-chip { will-change: left, top, transform; }
.pos-wheel .seat { will-change: transform, opacity; }
.move-btn { transition: opacity .2s, background .2s; }
.move-btn.busy, .move-btn:disabled { opacity: .5; cursor: default; }

/* сетка диапазона: крупнее шрифт */
.rc { font-size: clamp(9px, 2.5vw, 11px); border-radius: 4px; font-weight: 700; }
.pc-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-dim); }
.pc-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.pc-short2 { font-family: var(--grato); font-weight: 900; font-size: 26px; }
.pc-pct2 { font-family: var(--grato); font-weight: 900; font-size: 20px; color: var(--blue-hi); }
.pos-brief { margin-top: 14px; }
.pc-go { margin-top: 12px; color: var(--blue-hi); font-weight: 700; font-size: 14px; }
.pos-hint { font-size: 12.5px; color: var(--dim-2); text-align: center; margin-top: 12px; }

/* ---------- реплики персонажей ---------- */
.ps-char {
  /* над основной кнопкой, чтобы не перекрывать действие */
  position: fixed; left: 12px; right: 12px; top: 78px; z-index: 70;
  display: none; align-items: flex-start; gap: 8px; pointer-events: none;
  max-width: 520px; margin: 0 auto;
}
.ps-char.on { display: flex; }
.ps-char .pc-head { width: 48px; height: 48px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.ps-char .pc-bubble {
  position: relative; flex: 1; min-width: 0;
  background: rgba(12, 18, 30, .96); border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: 9px 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.55);
}
.ps-char .pc-bubble::before {
  content: ''; position: absolute; left: -6px; top: 22px;
  width: 12px; height: 12px; transform: rotate(45deg);
  background: rgba(12, 18, 30, .96);
  border-left: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15);
}
.ps-char .pc-name {
  display: block; font-family: var(--grato), sans-serif; font-weight: 800;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px;
}
.ps-char .pc-line { display: block; font-size: 12.5px; line-height: 1.35; color: #e8edf5; }
.ps-char .pc-streak {
  display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #131313;
  background: #ffcd00; border-radius: 999px; padding: 2px 8px;
}

/* ---------- визуальные блоки уроков ---------- */
.lsn-blocks { margin-top: 4px; }
.lb-h {
  font-family: var(--grato); font-weight: 800; font-size: 16px;
  margin: 20px 0 10px; color: var(--text);
}
.lb-box {
  background: rgba(255,255,255,.035); border: 1px solid var(--line-dim);
  border-radius: 16px; padding: 14px; margin: 14px 0; text-align: center;
}
.lb-cards { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.lb-cards .pcard { width: 54px; height: 76px; border-radius: 9px; }
.lb-cards .pcard .pc-r { font-size: 17px; top: 5px; left: 6px; }
.lb-cards .pcard .pc-s { width: 26px; height: 26px; }
.lb-cards.sm .pcard { width: 44px; height: 62px; }
.lb-cards.sm .pcard .pc-r { font-size: 14px; top: 4px; left: 5px; }
.lb-cards.sm .pcard .pc-s { width: 21px; height: 21px; }
.lb-cards.xs { gap: 4px; }
.lb-cards.xs .pcard { width: 30px; height: 42px; border-radius: 6px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.lb-cards.xs .pcard .pc-r { font-size: 10px; top: 2px; left: 3px; }
.lb-cards.xs .pcard .pc-s { width: 14px; height: 14px; }
.lb-cap { font-size: 12.5px; color: var(--dim); margin-top: 10px; line-height: 1.45; }
.lb-lab {
  font-family: var(--grato); font-weight: 800; font-size: 9.5px; letter-spacing: .14em;
  color: var(--dim-2); margin-bottom: 8px;
}
.lb-lab.you { color: var(--blue-hi); margin-top: 14px; }
.lb-table { background: radial-gradient(120% 90% at 50% 0%, #17242f, #0b1119); }

.lb-note {
  display: flex; flex-direction: column; gap: 5px; margin: 14px 0;
  background: rgba(255,205,0,.08); border: 1px solid rgba(255,205,0,.3);
  border-radius: 14px; padding: 12px 14px;
}
.lb-note b { font-family: var(--grato); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.lb-note span { font-size: 13.5px; line-height: 1.5; color: #dfe6ef; }

.lb-steps { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.lb-step { display: flex; gap: 11px; align-items: flex-start; }
.lb-step i {
  flex: none; width: 24px; height: 24px; border-radius: 50%; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--grato); font-weight: 800; font-size: 11px;
  background: var(--blue-soft); color: var(--blue-hi); border: 1px solid var(--line-dim);
}
.lb-step span { font-size: 13.5px; line-height: 1.5; color: #cdd6e4; padding-top: 2px; }

.lb-formula {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: rgba(0,51,255,.1); border: 1px solid rgba(94,161,255,.3);
  border-radius: 14px; padding: 14px; margin: 14px 0;
}
.lb-formula .f-num, .lb-formula .f-den { font-family: var(--grato); font-weight: 800; font-size: 14px; text-align: center; }
.lb-formula .f-num { color: var(--blue-hi); }
.lb-formula .f-bar { width: 78%; height: 2px; background: rgba(255,255,255,.3); border-radius: 2px; }
.lb-formula .f-res { margin-top: 8px; font-family: var(--grato); font-weight: 900; font-size: 17px; color: #fff; }

.lb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.lb-col { border-radius: 14px; padding: 12px; border: 1px solid var(--line-dim); }
.lb-col b { display: block; font-family: var(--grato); font-weight: 800; font-size: 12.5px; margin-bottom: 6px; }
.lb-col span { font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.lb-col.ok { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.35); }
.lb-col.ok b { color: #35e07c; }
.lb-col.no { background: rgba(236,71,58,.07); border-color: rgba(236,71,58,.3); }
.lb-col.no b { color: #ff9195; }

.lb-bars { display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.lb-bar { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; }
.lb-bar span { font-size: 12.5px; color: var(--dim); }
.lb-bar i { height: 8px; border-radius: 6px; background: rgba(139,151,171,.15); display: block; overflow: hidden; }
.lb-bar i b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2563eb, #5ea1ff); }
.lb-bar u { text-decoration: none; font-family: var(--grato); font-weight: 800; font-size: 13px; text-align: right; }

.lb-combos { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.cmb-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-dim);
  border-radius: 13px; padding: 10px 11px;
}
.cmb-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cmb-l i {
  flex: none; width: 22px; height: 22px; border-radius: 6px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--grato); font-weight: 800; font-size: 11px;
  background: rgba(255,205,0,.14); color: var(--yellow);
}
.cmb-l b { display: block; font-size: 13.5px; font-weight: 700; }
.cmb-l u { display: block; text-decoration: none; font-size: 11px; color: var(--dim-2); margin-top: 2px; line-height: 1.3; }
@media (max-width: 380px) {
  .cmb-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lb-cards.xs .pcard { width: 27px; height: 38px; }
}


/* ---------- реплика: белый бабл, крупная голова ---------- */
.ps-char .pc-head { width: 84px; height: 84px; }
.ps-char .pc-bubble {
  background: #fff; border: none; color: #131313;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
.ps-char .pc-bubble::before { background: #fff; border: none; }
.ps-char .pc-line { color: #131313; font-weight: 500; }
.ps-char .pc-streak { background: #131313; color: #ffcd00; }

/* тестовая кнопка вызова реплики (в превью-сборке) */
.ps-char-test {
  position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 65;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.45);
}
.ps-char-test svg { width: 18px; height: 18px; }
.ps-char-test:active { background: rgba(255,255,255,.18); color: #fff; }

/* уровень и значок «новый» не слипаются */
.lsn-lvl { display: flex; align-items: center; gap: 8px; }
.lsn-lvl .les-new { margin-left: 0; }

/* маркированный список (словарь) */
.lb-list { display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.lb-li {
  font-size: 13.5px; line-height: 1.5; color: #cdd6e4;
  padding-left: 15px; position: relative;
}
.lb-li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue-hi);
}
.lb-li b { color: var(--text); font-weight: 700; }

/* примеры рук в уроке позиции */
.pc-ex { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pc-ex-i { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pc-ex-c { display: flex; gap: 3px; }
.pc-ex-c .mini { font-style: normal; }
.pc-ex u { text-decoration: none; font-family: var(--grato); font-weight: 800; font-size: 11px; color: var(--dim-2); }

/* таблица комбинаций: пять карт всегда в одну строку */
.lb-combos .cmb-row { flex-direction: column; align-items: stretch; gap: 10px; }
.lb-combos .lb-cards.xs { flex-wrap: nowrap; justify-content: flex-start; gap: 5px; }
.lb-combos .lb-cards.xs .pcard { width: 100%; max-width: 46px; height: auto; aspect-ratio: 0.71; }
.cmb-legend { font-size: 12px; color: var(--dim); line-height: 1.45; margin-bottom: 4px; }
.cmb-legend b { color: #e8edf5; font-weight: 600; }
.pcard.kicker { opacity: .62; filter: grayscale(.35); }
.pcard.in-combo { box-shadow: 0 4px 12px rgba(0,0,0,.4), 0 0 0 2px rgba(255,205,0,.55); }

/* ---------- номера в кружках: контрастные ---------- */
.lb-step i, .ds i, .cmb-l i {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
  font-size: 12.5px !important;
  width: 26px; height: 26px;
  box-shadow: 0 2px 8px rgba(0,51,255,.4);
}
.ds:first-child i { background: #fff !important; color: #131313 !important; border-color: var(--yellow) !important; }
.cmb-l i { background: var(--yellow) !important; color: #131313 !important; border-radius: 7px; }
.lvl i { font-size: 11.5px; }

/* совсем узкие экраны: пять карт всё равно в одну строку */
@media (max-width: 340px) {
  .lb-combos .lb-cards.xs { gap: 4px; }
  .lb-combos .lb-cards.xs .pcard { max-width: 40px; }
  .lb-combos .cmb-row { padding: 9px; }
}

/* любой ряд карт в уроке — всегда одной строкой, карты ужимаются под ширину */
.lb-cards { flex-wrap: nowrap; }
.lb-cards .pcard { flex: 0 1 auto; min-width: 0; }
.lb-box .lb-cards { justify-content: center; }
.lb-cards.sm .pcard { width: 100%; max-width: 44px; height: auto; aspect-ratio: 0.71; }
.lb-cards:not(.sm):not(.xs) .pcard { width: 100%; max-width: 54px; height: auto; aspect-ratio: 0.71; }

/* в app.css есть `.card + .card { margin-top: 14px }` — в сетках это сдвигает
   вторую карточку вниз, поэтому внутри гридов отступ снимаем */
.drills .card + .card,
.shop-grid .card + .card,
.res-grid .card + .card,
.stat-grid .card + .card,
.aw-grid .card + .card { margin-top: 0; }

/* ---------- серия: сегодня, огонь, золотая серия ---------- */
.sc-flame { color: var(--dim-2); transition: color .3s, filter .3s; }
.sc-flame.lit { color: #ff8a3c; filter: drop-shadow(0 0 12px rgba(255,138,60,.5)); }
.sc-flame.gold { color: var(--yellow); filter: drop-shadow(0 0 16px rgba(255,205,0,.6)); }
.streak-card.gold { border-color: rgba(255,205,0,.65); background: linear-gradient(160deg, #2a2208 0%, #0e1930 72%); }
.sc-days { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sc-gold {
  font-family: var(--inter); font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #131313; background: var(--yellow);
  border-radius: 999px; padding: 3px 9px;
}

.sc-week { gap: 5px; }
.sc-day b { font-size: 13px; }
.sc-day.on b { background: rgba(94,161,255,.18); color: var(--blue-hi); border: 1px solid rgba(94,161,255,.4); }
.sc-day.gold b { background: rgba(255,205,0,.22); color: var(--yellow); border: 1px solid rgba(255,205,0,.55); }
.sc-day.today b {
  background: rgba(255,255,255,.06); border: 2px solid var(--blue-hi); color: var(--blue-hi);
  box-shadow: 0 0 12px rgba(94,161,255,.35);
}
.sc-day.today span { color: var(--blue-hi); font-weight: 700; font-size: 9px; }
.sc-day.future b { background: rgba(139,151,171,.06); border: 1px dashed rgba(139,151,171,.25); }
.sc-day.off b { color: var(--dim-2); }

.sb-num.gold { color: var(--yellow); text-shadow: 0 0 30px rgba(255,205,0,.4); }
.cal-d.gold { background: rgba(255,205,0,.2); color: var(--yellow); border: 1px solid rgba(255,205,0,.5); }
.cal-d.on { background: rgba(94,161,255,.16); color: var(--blue-hi); border: 1px solid rgba(94,161,255,.35); }
.cal-d.today { border: 2px solid var(--blue-hi); color: var(--blue-hi); background: rgba(255,255,255,.05); }

/* ---------- крупность и контраст: мелкий текст в тренировках ---------- */
/* --dim-2 (#5b6779) на тёмном фоне почти не читался — поднимаем, но только
   на экранах тренировок, копии главной и профиля не трогаем */
.screen.train { --dim-2: #94a2b6; --dim: #b6c1d1; }

/* карточка комбинации: название и описание */
.cmb-l i { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
.cmb-l b { font-size: 15px; }
.cmb-l u { font-size: 13px; color: var(--dim); margin-top: 3px; line-height: 1.4; }
.cmb-legend { font-size: 13px; line-height: 1.5; }

/* блоки уроков — читаемый корпус */
.lb-cap { font-size: 13.5px; }
.lb-lab { font-size: 11px; }
.lb-note b { font-size: 12.5px; }
.lb-note span, .lb-step span { font-size: 14.5px; color: #e2e9f3; }
.lb-col span, .lb-bar span { font-size: 13.5px; }
.lb-col b { font-size: 13.5px; }
.lb-formula .f-num, .lb-formula .f-den { font-size: 15px; }
.pc-ex u { font-size: 12.5px; }

/* номинал и масть растут вместе с картой */
/* номинал и масть растут вместе с картой */
.lb-cards .pcard .pc-r { font-size: clamp(12px, 3.9vw, 19px); top: 4px; left: 5px; }
.lb-cards .pcard .pc-s { width: clamp(17px, 6.2vw, 30px); height: clamp(17px, 6.2vw, 30px); }
.lb-cards.sm .pcard { max-width: 52px; }
.lb-cards.sm .pcard .pc-r { font-size: clamp(11px, 3.6vw, 17px); }
.lb-cards.sm .pcard .pc-s { width: clamp(16px, 5.6vw, 26px); height: clamp(16px, 5.6vw, 26px); }
.lb-combos .lb-cards.xs .pcard { max-width: 58px; }
.lb-combos .lb-cards.xs .pcard .pc-r { font-size: clamp(11px, 4.2vw, 18px); top: 3px; left: 5px; }
.lb-combos .lb-cards.xs .pcard .pc-s { width: clamp(15px, 6vw, 26px); height: clamp(15px, 6vw, 26px); }
/* кикеры глушим, но так, чтобы номинал оставался читаемым */
.lb-combos .pcard.kicker { opacity: .68; filter: grayscale(.3); }

/* сегодняшний день: рамка «сегодня» + статус внутри */
.sc-day.today.on b { border: 2px solid var(--blue-hi); background: rgba(94,161,255,.22); }
.sc-day.today.gold b { border: 2px solid var(--yellow); background: rgba(255,205,0,.25); color: var(--yellow); }
.sc-day.today.off b { border: 2px dashed rgba(94,161,255,.6); }

/* ---------- тесты «База» ---------- */
.qz-stage { padding: 16px 14px; }
.qz-combo { display: flex; flex-direction: column; gap: 4px; }
.qz-row { text-align: center; }
.qz-row .lb-lab { margin-bottom: 7px; }
.qz-row + .qz-row { margin-top: 14px; }
.qz-legend { margin-top: 12px; font-size: 12.5px; color: var(--dim); line-height: 1.45; text-align: center; }
.qz-wheel { margin: 4px auto 0; }
.qz-wheel .seat {
  font-family: var(--grato); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.qz-wheel .seat.hot { background: rgba(0,51,255,.35); border-color: var(--blue-hi); color: #fff; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.qz-o {
  padding: 14px 10px; border-radius: 14px; font-size: 14.5px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dim); color: var(--text);
  transition: transform .12s, background .15s;
}
.qz-o:active { transform: scale(.97); }
.qz-o.good { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.55); color: #35e07c; }
.qz-o.bad { background: rgba(236,71,58,.16); border-color: rgba(236,71,58,.5); color: #ff9195; }
.od-stack { margin-top: 8px; font-size: 12.5px; color: var(--dim); text-align: center; }

/* мини-карта в примерах диапазона: без своих размеров картинка масти
   растягивалась на всю ширину — задаём карточку явно */
.pc-ex-c .mini {
  position: relative; flex: none; width: 34px; height: 47px;
  border-radius: 7px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.45);
  display: block; font-style: normal;
}
.pc-ex-c .mini {
  font-family: var(--grato); font-weight: 800; font-size: 14px; line-height: 1;
  color: #131313; padding: 5px 0 0 5px;
}
.pc-ex-c .mini.red { color: var(--red); }
.pc-ex-c .mini img { position: absolute; right: 4px; bottom: 4px; width: 17px; height: 17px; }
.pc-ex { gap: 14px; }
.pc-ex-c { gap: 4px; }

/* мелкие подписи: ниже 10px не опускаемся */
.sc-day.today span, .sc-day span { font-size: 10px; }
.mc-tag { font-size: 10px; }
.les-new { font-size: 10px; }
/* активные ячейки сетки: белый текст должен читаться */
.rc.on { background: rgba(0,51,255,.78); }
.rc.s.on { background: rgba(59,130,246,.85); }

/* магазин не должен липнуть к списку уроков */
.shop-card { margin-top: 22px; padding: 18px 16px 20px; }
.les-list + .shop-card, .drills + .shop-card { margin-top: 26px; }
/* активные ячейки диапазона: белый текст на брендовом синем читался на грани */
.rc.on { background: #2b6bff; }
/* одномастные — светлый синий с тёмным текстом: белый на нём не читался */
.rc.s.on { background: #5ea1ff; color: #0b1220; }
