/* Эээкзамен — «Учебная часть», «Что дальше», охота на паразита, карта паразитов. Плоско: тени только у всплывающих окон. */

/* ---------- Учебная часть ---------- */
.dk { max-width: 1200px; margin: 0 auto; padding: 40px 32px 100px; }
.dk-wait { padding: 60px 0; color: var(--ink2); }
.dk .kicker { display: block; }
.dk-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 26px; }
.dk-talk { width: 112px; border-radius: 50%; aspect-ratio: 1; }
.dk-talk img { aspect-ratio: 1; object-position: 50% 18%; }
.dk-say { font: 400 clamp(26px, 3.2vw, 40px)/1.08 var(--serif); letter-spacing: -.04em; margin-top: 8px; min-height: 2.16em; max-width: 860px; }
.dk-say .caret { display: inline-block; width: 2px; height: .9em; background: var(--ink); margin-left: 3px; vertical-align: -2px; animation: dkBlink 1s steps(2) infinite; }
@keyframes dkBlink { 50% { opacity: 0; } }

.dk-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; }
.dk-main, .dk-offer { border-radius: var(--r); background: var(--mint); padding: 28px 30px; display: grid; gap: 10px; align-content: start; }
.dk-main h2, .dk-offer h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -.05em; }
.dk-main p, .dk-offer p { font-size: 16px; line-height: 1.4; color: var(--ink2); max-width: 560px; }
.dk-main-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dk-main-done { background: var(--mint3); }
.dk-days { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 3px; margin-top: 10px; max-width: 520px; }
.dk-days i { height: 8px; border-radius: 99px; background: rgba(43,43,41,.12); }
.dk-days i.done { background: var(--teal); }
.dk-days i.cur { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--teal); }
.dk-offer { background: var(--paper2); }
.dk-offer .plans { margin: 8px 0 0; }

.dk-card { border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(43,43,41,.14); padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.dk-card small { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.dk-card .pill { justify-self: start; margin-top: 6px; max-width: 100%; }
.dk-big { font: 400 30px/1.05 var(--serif); letter-spacing: -.04em; }
.dk-rank { grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 18px; }
.dk-ring { position: relative; width: 120px; height: 120px; }
.dk-ring-svg { width: 120px; height: 120px; }
.dk-ring img { position: absolute; inset: 22px; width: 76px; height: 76px; object-fit: contain; }
.dk-rank .kicker { margin-bottom: 4px; }

.dk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.dk-word { font: 400 40px/1 var(--serif); letter-spacing: -.04em; color: var(--wine); overflow-wrap: anywhere; }
.dk-parasite { background: #fff; }
.dk-last-r { display: flex; gap: 14px; align-items: center; min-width: 0; }
.dk-last-r > div { display: grid; gap: 3px; min-width: 0; }
.dk-last-r b { font-weight: 500; font-size: 16px; }
.dk-mark { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 400 26px/1 var(--serif); background: var(--mint); }
.dk-mark.m5 { background: var(--yellow); } .dk-mark.m3 { background: #ead7c4; } .dk-mark.m2 { background: #efc9bf; }
.dk-status b { font: 400 24px/1.1 var(--serif); letter-spacing: -.03em; }
.dk-status-trial { background: var(--mint3); box-shadow: none; }
.dk-status .acc-link { justify-self: start; font-size: 14px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.dk-h { font-size: 30px; margin: 40px 0 14px; }
.dk-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dk-q { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 18px; border-radius: var(--r); background: var(--paper2); transition: background .2s, transform .15s; min-width: 0; }
.dk-q:hover { background: var(--mint3); transform: translateY(-2px); }
.dk-q b { font: 400 44px/1 var(--serif); letter-spacing: -.05em; margin-bottom: 6px; }
.dk-q b i { font-style: normal; font-size: 16px; letter-spacing: 0; color: var(--ink2); margin-left: 2px; }
.dk-q span { font-weight: 500; font-size: 15px; }
.dk-q small { font-size: 13px; color: var(--ink2); }
.dk-q:focus-visible, .nx-o:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.dk-diary { margin-top: 40px; }
.dk-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.dk-heat { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 4px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dk-heat::-webkit-scrollbar { display: none; }
.dk-heat i, .dk-heat-leg i { width: 14px; height: 14px; border-radius: 3px; background: var(--paper2); box-shadow: inset 0 0 0 1px rgba(43,43,41,.06); }
.dk-heat i.l1, .dk-heat-leg i.l1 { background: var(--mint); }
.dk-heat i.l2, .dk-heat-leg i.l2 { background: var(--mint2); }
.dk-heat i.l3, .dk-heat-leg i.l3 { background: var(--teal); }
.dk-heat i.fut { opacity: .35; }
.dk-heat-leg { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); }
.dk-heat-leg span { margin: 0 4px; }
.dk-foot { margin-top: 30px; font-size: 14px; color: var(--ink2); }
.dk-foot a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Что дальше ---------- */
.nx { max-width: 1040px; margin: 0 auto 90px; padding: 0 0; }
.nx-h { font-size: 40px; margin-bottom: 16px; }
.nx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nx-o { display: grid; gap: 6px; text-align: left; padding: 20px 22px; border-radius: var(--r); background: var(--paper2); transition: background .2s, transform .15s; min-width: 0; }
.nx-o:hover { background: var(--mint3); transform: translateY(-2px); }
.nx-o b { font: 400 24px/1.1 var(--serif); letter-spacing: -.035em; }
.nx-o span { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.nx-o::after { content: "→"; font-size: 18px; color: var(--teal); margin-top: 4px; }
.nx-first { grid-column: 1 / -1; background: var(--ink); color: var(--paper); }
.nx-first:hover { background: #000; }
.nx-first b { font-size: 30px; }
.nx-first span { color: rgba(251,250,246,.75); }
.nx-first::after { color: var(--mint); }
.nx-cmp { display: grid; gap: 10px; padding: 22px; border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(43,43,41,.14); margin: 8px 0; }
.nx-cmp-h { font: 400 30px/1.05 var(--serif); letter-spacing: -.04em; }
.nx-cmp small { font-size: 14px; color: var(--ink2); }
.nx-bars { display: grid; gap: 6px; }
.nx-bars div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.nx-bars i { display: block; height: 14px; width: 0; border-radius: 99px; background: rgba(43,43,41,.22); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.nx-bars .now i { background: var(--teal); }
.nx-bars .now.down i { background: var(--wine); }
.nx-bars em { font: 400 22px/1 var(--serif); font-style: normal; color: var(--ink); text-align: right; }
.nx-bonus { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--r); background: var(--mint); margin-bottom: 8px; }
.nx-bonus img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.nx-bonus b { display: block; font: 400 26px/1.08 var(--serif); letter-spacing: -.04em; }
.nx-bonus span { display: block; font-size: 14px; color: var(--ink2); margin-top: 6px; }
.nx .dk-offer { margin: 8px 0; }

/* ---------- Охота на паразита (всплывающее окно — тень можно) ---------- */
.dk-drill { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(43,43,41,.25); overflow: auto; }
.dk-drill::backdrop { background: rgba(43,43,41,.45); }
.dk-dr-in { position: relative; padding: 26px 26px 24px; display: grid; gap: 16px; }
.dk-x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; box-shadow: inset 0 0 0 1px rgba(43,43,41,.14); }
.dk-dr-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 44px; }
.dk-dr-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.dk-dr-head h3 { font-size: 32px; line-height: 1.02; margin-top: 4px; }
.dk-dr-task { font: 400 24px/1.15 var(--serif); letter-spacing: -.03em; padding: 16px 18px; border-radius: var(--r); background: var(--mint3); }
.dk-dr-note { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.dk-dr-in > .pill, .dk-dr-b .pill { width: 100%; }
.dk-dr-b { display: grid; gap: 8px; }
.dk-dr-ring { position: relative; width: 150px; height: 150px; margin: 4px auto; }
.dk-dr-ring svg { width: 150px; height: 150px; }
.dk-dr-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 56px/1 var(--serif); letter-spacing: -.05em; }
.dk-dr-wait { font: 400 24px/1.2 var(--serif); text-align: center; padding: 20px 0 0; }
.dk-dr-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dk-dr-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--teal); animation: dkSlide 1.2s ease-in-out infinite; }
@keyframes dkSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.dk-dr-err { padding: 14px 16px; border-radius: var(--r); background: #f6e3de; color: var(--wine); font-size: 15px; }
.dk-dr-res { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--mint); }
.dk-dr-res.bad { background: #f6e3de; }
.dk-dr-res > b { font: 400 72px/.9 var(--serif); letter-spacing: -.06em; }
.dk-dr-res strong { display: block; font: 400 24px/1.1 var(--serif); letter-spacing: -.03em; }
.dk-dr-res span { display: block; font-size: 14px; color: var(--ink2); margin-top: 4px; }
.dk-dr-words { font-size: 16px; line-height: 1.9; padding: 14px 16px; border-radius: var(--r); background: var(--paper2); }
.dk-dr-words mark { background: var(--wine); color: #fff; border-radius: 3px; padding: 1px 4px; }
.dk-dr-words u { text-decoration: none; background: var(--yellow); border-radius: 3px; padding: 1px 4px; }

/* ---------- Карта паразитов в листе: слова-кнопки и подсказка комиссии ---------- */
.speech-hint { font-size: 13px; color: var(--ink2); margin: 0 0 8px; }
.speech button.f, .speech button.m { font: inherit; color: inherit; line-height: 1.3; cursor: pointer; vertical-align: baseline; display: inline; }
.speech button.f { padding: 1px 4px; }
.speech button.f:hover { background: #ecc85a; }
.speech button.m { padding: 0 1px; border-radius: 0; }
.speech button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.wtip { position: absolute; z-index: 130; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; width: min(340px, calc(100vw - 16px)); padding: 14px 40px 14px 14px; border-radius: 12px;
  background: var(--paper); color: var(--ink); box-shadow: 0 12px 32px rgba(43,43,41,.2), 0 0 0 1px rgba(43,43,41,.08); font: 400 14px/1.42 var(--sans); }
.wtip[hidden] { display: none; }
.wtip img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.wtip b { display: block; font: 400 22px/1.1 var(--serif); letter-spacing: -.03em; }
.wtip b i { font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-style: normal; vertical-align: 3px; margin-left: 4px; }
.wtip p { margin: 4px 0 0; color: var(--ink2); }
.wtip .wtip-who { font-weight: 500; color: var(--ink); margin-top: 6px; }
.wtip small { display: block; margin-top: 6px; font-size: 12px; color: var(--mute); }
.wtip-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink2); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .dk-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dk-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dk { padding: 24px 16px 80px; }
  .dk-hero { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
  .dk-talk { width: 72px; }
  .dk-say { font-size: 22px; min-height: 0; }
  .dk-main, .dk-offer { padding: 22px 18px; }
  .dk-main-b .pill { width: 100%; white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; text-align: center; }
  .dk-grid { grid-template-columns: 1fr; }
  .dk-rank { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .dk-big { font-size: 24px; overflow-wrap: anywhere; }
  .dk-ring, .dk-ring-svg { width: 96px; height: 96px; }
  .dk-ring img { inset: 18px; width: 60px; height: 60px; }
  .dk-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-q { padding: 14px; }
  .dk-q b { font-size: 36px; }
  .dk-card .pill { white-space: normal; height: auto; min-height: 40px; padding: 10px 18px; text-align: left; }
  .nx { padding: 0 16px; }
  .nx-h { font-size: 32px; }
  .nx-list { grid-template-columns: 1fr; }
  .nx-first b { font-size: 26px; }
  .nx-bonus { grid-template-columns: 56px minmax(0, 1fr); }
  .nx-bonus img { width: 56px; height: 56px; }
  .nx-bonus .pill { grid-column: 1 / -1; width: 100%; white-space: normal; height: auto; min-height: 52px; }
  .nx-bonus b { font-size: 22px; }
  .nx-bars div { grid-template-columns: 84px minmax(0, 1fr) 36px; }
  .dk-dr-in { padding: 20px 16px 18px; }
  .dk-dr-head h3 { font-size: 26px; }
  .dk-dr-task { font-size: 20px; }
}
#result .actions { margin-bottom: 36px; }

/* ---------- Канцелярия комиссии: печати, подпись, живые мелочи (без теней) ---------- */
.seal { display: inline-grid; place-items: center; align-content: center; gap: 2px; text-align: center; width: var(--s, 104px); height: var(--s, 104px); padding: 10px; border-radius: 50%;
  border: 3px double currentColor; color: var(--wine); font: 600 10px/1.15 var(--sans); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-12deg); opacity: .9; flex: none; }
.seal b { display: block; font: 400 34px/.85 var(--serif); letter-spacing: -.04em; text-transform: none; }
.seal-teal { color: var(--teal); }
.seal-gold { color: var(--gold); }
.press { animation: sealPress .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes sealPress { 0% { transform: rotate(-12deg) scale(2.3); opacity: 0; } 60% { opacity: .95; } 100% { transform: rotate(-12deg) scale(1); opacity: .9; } }
.wiggle { display: inline-block; }
.wiggle:hover { animation: wig .5s ease; }
@keyframes wig { 20% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .press, .wiggle:hover, .dk-ban::after { animation: none !important; } }

/* курс дня: бумага билета, скотч и печать «день N» */
.dk-main { position: relative; background: #f6f0e1 url(img/ticket-paper.webp) center / cover; }
.dk-main-done { background: var(--mint3); }
.dk-main h2, .dk-main > p { padding-right: 120px; }
.dk-main .seal { position: absolute; right: 26px; top: 22px; }
.dk-main .dk-sign { position: absolute; right: 22px; bottom: 16px; width: 120px; opacity: .75; pointer-events: none; }
.dk-parasite .kicker { color: var(--wine); }
.dk-parasite { overflow: visible; }
.dk-q { position: relative; }
.dk-q:hover { transform: translateY(-2px) rotate(-1deg); }
.dk-heat i.today { box-shadow: inset 0 0 0 2px var(--wine); }

/* «Что дальше»: печать «лучше», скотч на главном шаге, приглашение на бумаге с подписью */
.nx-cmp { position: relative; }
.nx-cmp .seal { position: absolute; right: 22px; top: 50%; margin-top: -52px; }
.nx-cmp.has-seal { padding-right: 150px; }
.nx-first { position: relative; }
.nx-bonus { position: relative; background: #f6f0e1 url(img/ticket-paper.webp) center / cover; }
.nx-bonus .nx-sign { display: block; width: 120px; margin-top: 8px; opacity: .8; }

/* охота: «запрещённое слово» и печать результата */
.dk-ban { position: relative; display: inline-block; padding: 2px 8px; font: 400 26px/1.2 var(--serif); color: var(--wine); }
.dk-ban::after { content: ""; position: absolute; inset: -6px -10px; border: 3px solid var(--wine); border-radius: 99px; background: linear-gradient(to top right, transparent calc(50% - 2px), var(--wine) calc(50% - 1px), var(--wine) calc(50% + 1px), transparent calc(50% + 2px)); opacity: .85; animation: banPulse 1.6s ease-in-out infinite; }
@keyframes banPulse { 50% { transform: scale(1.06); } }
.dk-dr-target { text-align: center; padding: 6px 0 2px; }
.dk-dr-res { position: relative; overflow: visible; }
.dk-dr-res .seal, .dk-dr-res .dk-dr-stamp { position: absolute; right: -6px; top: -26px; }
.dk-dr-stamp { width: 112px; height: 112px; object-fit: contain; transform: rotate(-12deg); }
.dk-dr-res.has-seal { padding-right: 120px; }
.dk-dr-say { font: 400 20px/1.25 var(--serif); letter-spacing: -.02em; min-height: 1.25em; }
.dk-dr-head .talk { width: 64px; height: 64px; border-radius: 50%; }
.dk-dr-head .talk img { aspect-ratio: 1; object-position: 50% 15%; }

@media (max-width: 640px) {
  .dk-main h2, .dk-main > p { padding-right: 84px; }
  .dk-main .seal { --s: 76px; right: 14px; top: 16px; font-size: 8px; padding: 6px; }
  .dk-main .seal b { font-size: 24px; }
  .dk-main .dk-sign { display: none; }
  .nx-cmp.has-seal { padding-right: 22px; padding-top: 70px; }
  .nx-cmp .seal { --s: 84px; top: 14px; margin-top: 0; right: 14px; font-size: 8px; }
  .nx-cmp .seal b { font-size: 26px; }
  .dk-dr-res.has-seal { padding-right: 96px; }
  .dk-dr-stamp { width: 92px; height: 92px; }
  .dk-dr-res .seal { --s: 84px; font-size: 8px; }
}
.dk-big { display: block; }

/* ---------- Лобби «Учебной части» (05.10): бумага, белые карточки с тонкой линией, один акцент на блок ---------- */
.lb { --card: #fff; --hair: rgba(43,43,41,.12); padding-top: 28px; }
.lb .kicker { color: var(--mute); }
.lb h1, .lb h2, .lb p, .lb small { text-wrap: pretty; }
.lb-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 300px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.lb-hero-t { display: grid; gap: 10px; align-content: center; padding: 34px 36px; min-width: 0; }
.lb-hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.05em; }
.lb-status { font-size: 15px; line-height: 1.4; color: var(--ink2); min-height: 1.4em; }
.lb-say { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--hair); }
.lb-talk { width: 56px; aspect-ratio: 1; border-radius: 50%; }
.lb-talk img { aspect-ratio: 1; object-position: 50% 18%; }
.lb-say p { display: grid; gap: 2px; font: 400 18px/1.3 var(--serif); letter-spacing: -.015em; min-height: 3.6em; }
.lb-say p b { font: 500 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.lb-say .caret { display: inline-block; width: 2px; height: .9em; background: var(--ink); margin-left: 2px; vertical-align: -2px; animation: dkBlink 1s steps(2) infinite; }
.lb-hero-art { background: #efe9dc url(img/lobby-hall.webp) 70% 50% / cover no-repeat; min-height: 220px; }

.lb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.lb-card { position: relative; display: grid; gap: 8px; align-content: start; min-width: 0; padding: 20px 22px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
.lb-stats .lb-card { min-height: 176px; }
.lb-card small { font-size: 13.5px; line-height: 1.4; color: var(--ink2); }
.lb-card .dk-big { font-size: 26px; }
.lb-card .acc-link { justify-self: start; font-size: 14px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.lb-candle { display: flex; align-items: center; gap: 10px; }
.lb-candle img { width: 40px; height: 52px; object-fit: contain; }
.lb-dots { display: flex; gap: 5px; }
.lb-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(43,43,41,.18); }
.lb-dots i.on { background: var(--gold); box-shadow: none; }
.lb-dots i.today:not(.on) { box-shadow: inset 0 0 0 1.5px var(--gold); }
.lb-rank { grid-template-columns: 1fr; gap: 8px; }
.lb-rank .dk-ring, .lb-rank .dk-ring-svg { width: 56px; height: 56px; }
.lb-rank .dk-ring img { inset: 11px; width: 34px; height: 34px; }
.lb-rank > div:last-child { display: grid; gap: 4px; min-width: 0; }
/* Звание — один термин: не переносим и не рвём; шрифт ужимается под карточку. */
.lb-rank .dk-big { white-space: nowrap; font-size: clamp(20px, 1.9vw, 26px); }
.lb-card .dk-big, .lb-h, .lb-hero h1, .lb-gt b, .pg-big, .nx-h { text-wrap: balance; }
.lb-gs, .lb-row small, .pg-items b, .pg-q small, .lb-pn small { white-space: nowrap; }
.lb-wreath { position: relative; width: 72px; height: 72px; }
.lb-wreath img[data-hide] { position: absolute; inset: 0; width: 72px; height: 72px; object-fit: contain; pointer-events: none; }
.lb-wava { position: absolute; left: 16px; top: 13px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.lb-wava.lb-ini { display: grid; }
#lbLeader b { font-weight: 500; font-size: 15px; }
.skel-t { border-radius: 6px; background: var(--paper2); color: transparent; }

.lb-h { font-size: 30px; margin: 44px 0 14px; }
.lb-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lb-game { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 10px 16px; min-height: 196px; padding: 20px; text-align: left; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); transition: box-shadow .2s, transform .15s; }
.lb-game:not([disabled]):hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.lb-game:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.lb-gi img { width: 64px; height: 64px; object-fit: contain; }
.lb-gi .lb-gp { border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--mint); }
.lb-gt { display: grid; gap: 4px; align-content: start; min-width: 0; }
.lb-gt b { font: 400 22px/1.12 var(--serif); letter-spacing: -.03em; }
.lb-gt small { font-size: 13.5px; line-height: 1.4; color: var(--ink2); }
.lb-gs { grid-column: 1 / -1; justify-self: start; align-self: end; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--paper2); color: var(--ink2); }
.lb-game.done .lb-gs { background: var(--mint3); color: var(--teal-d); }
.lb-game.locked { opacity: .78; }
.lb-game.locked .lb-gs { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.lb-game[disabled] { cursor: default; }

.lb-bottom { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; margin-top: 44px; }
.lb-feed ul { list-style: none; padding: 0; margin: 0; display: grid; align-content: start; min-height: calc(8 * 52px); }
.lb-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 52px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.lb-row:last-child { border-bottom: 0; }
.lb-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row b { font-weight: 500; }
.lb-row small { font-size: 12px; color: var(--mute); white-space: nowrap; }
.lb-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.lb-ini { display: grid; place-items: center; background: var(--mint3); color: var(--teal-d); font: 400 16px/1 var(--serif); }
.lb-row.skel i { width: 34px; height: 34px; border-radius: 50%; background: var(--paper2); }
.lb-row.skel span { height: 12px; border-radius: 6px; background: var(--paper2); width: 70%; }
.lb-empty { padding: 20px 0; color: var(--ink2); font-size: 15px; }
.lb-pod { position: relative; aspect-ratio: 1400 / 510; margin-top: 18px; background: url(img/podium.webp) center / 100% 100% no-repeat; }
.lb-pod.skel { background: var(--paper2); border-radius: 8px; }
.lb-pw { position: absolute; width: 13.2%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.lb-pw1 { left: 50%; top: 47.5%; } .lb-pw2 { left: 17.5%; top: 56.5%; } .lb-pw3 { left: 82.8%; top: 66%; width: 12%; }
.lb-pava { display: grid; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.lb-pava.lb-ini { font-size: clamp(14px, 2vw, 22px); }
.lb-pod-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; min-height: 40px; text-align: center; }
.lb-pn { display: grid; gap: 2px; min-width: 0; }
.lb-pn b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pn.first b { color: var(--gold); }
.lb-pn small { font-size: 12px; color: var(--ink2); }
.lb-me { font-size: 13.5px; color: var(--ink2); margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(43,43,41,.12); min-height: 1.4em; }
.lb-pod-note { font-size: 13.5px; color: var(--ink2); margin-top: 10px; }
.lb .dk-diary { margin-top: 44px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); border-radius: 12px; }

/* Скелет до ответа /api/me (html.boot-desk ставит boot.js по подсказке «вошёл»): лендинг не мелькает. */
html.boot-desk #home { display: none !important; }
html.boot-desk #desk { display: block; }
.lb-skel .sk { border-radius: 12px; }
.lb-skel .sk-hero { height: 300px; }
.lb-skel .lb-stats .sk { min-height: 176px; }
.lb-skel .sk-q { height: 126px; margin-top: 10px; }
.lb-skel .sk-h { height: 34px; width: 280px; margin: 44px 0 14px; border-radius: 6px; background: var(--paper2); box-shadow: none; }
.lb-skel .lb-games .sk { min-height: 196px; }
.skel i, .skel span, .lb-pod.skel, .skel-t, .pg-q.skel { background-color: #ebe9e1; background-image: linear-gradient(90deg, transparent 0, rgba(255,255,255,.6) 50%, transparent 100%); background-size: 200% 100%; background-repeat: no-repeat; animation: skShine 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .skel i, .skel span, .lb-pod.skel, .skel-t, .pg-q.skel { animation: none; } }

@media (max-width: 1080px) {
  .lb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lb { padding: 16px 16px 80px; }
  .lb-hero { grid-template-columns: 1fr; min-height: 0; }
  .lb-hero-art { order: -1; min-height: 0; aspect-ratio: 16 / 7; }
  .lb-hero-t { padding: 20px 18px 22px; }
  .lb-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lb-stats .lb-card { min-height: 168px; padding: 16px; }
  .lb-card .dk-big { font-size: 21px; overflow-wrap: normal; }
  .lb-rank .dk-big { font-size: 19px; }
  .lb-games { grid-template-columns: 1fr; gap: 8px; }
  .lb-game { min-height: 150px; grid-template-columns: 52px minmax(0, 1fr); padding: 16px; }
  .lb-gi img { width: 52px; height: 52px; }
  .lb-gt b { font-size: 20px; }
  .lb-h { font-size: 26px; margin-top: 34px; }
  .lb-skel .sk-hero { height: 420px; }
  .lb-row { height: auto; min-height: 60px; padding: 9px 0; grid-template-columns: 34px minmax(0, 1fr); row-gap: 2px; align-items: start; }
  .lb-row span { white-space: normal; line-height: 1.35; }
  .lb-row small { grid-column: 2; }
  .lb-feed ul { min-height: calc(8 * 74px); }
  .lb-skel .lb-stats .sk { min-height: 168px; }
  .lb-skel .lb-games .sk { min-height: 150px; }
  .lb-skel .sk-q { height: 282px; }
  .lb-pava { width: 44px; height: 44px; } }

/* ---------- Прогресс после экзамена (05.10): баллы, место, звание, серия, задания ---------- */
.pg { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; }
.pg > div, .pg-card { border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(43,43,41,.12); }
.pg-pts { display: grid; gap: 6px; align-content: start; padding: 22px 24px; }
.pg-num { font: 400 72px/.95 var(--serif); letter-spacing: -.05em; color: var(--teal-d); font-variant-numeric: tabular-nums; min-width: 3ch; }
.pg-pts > small { font-size: 14px; color: var(--ink2); margin-top: -4px; }
.pg-items { list-style: none; padding: 0; margin: 8px 0 0; display: grid; }
.pg-items li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(43,43,41,.08); font-size: 14px; }
.pg-items b { font-weight: 500; color: var(--teal-d); font-variant-numeric: tabular-nums; }
.pg-say { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 10px; }
.pg-say img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.pg-say p { font: 400 16px/1.32 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.pg-say p b { display: block; font: 500 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.pg-side { display: grid; gap: 10px; background: none !important; box-shadow: none !important; }
.pg-card { display: grid; gap: 4px; align-content: start; padding: 16px 20px; min-width: 0; }
.pg-big { font: 400 26px/1.08 var(--serif); letter-spacing: -.035em; }
.pg-card em { font-style: normal; font-size: 13px; font-weight: 500; }
.pg-card em.up { color: var(--teal-d); }
.pg-rank, .pg-streak { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; }
.pg-rank img, .pg-streak img { width: 52px; height: 52px; object-fit: contain; }
.pg-rank > div, .pg-streak > div { display: grid; gap: 4px; min-width: 0; }
.pg-rank b, .pg-streak b { font: 400 20px/1.1 var(--serif); letter-spacing: -.03em; }
.pg-card small { font-size: 13px; color: var(--ink2); line-height: 1.38; text-wrap: pretty; }
.pg-bar { display: block; height: 6px; border-radius: 99px; background: var(--paper2); overflow: hidden; }
.pg-bar em { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.pg-quests { grid-column: 1 / -1; padding: 18px 22px; }
.pg-quests ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pg-q { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 14px; line-height: 1.3; }
.pg-q img { width: 40px; height: 40px; object-fit: contain; }
.pg-q small { font-size: 12px; font-weight: 500; color: var(--mute); }
.pg-q.done { background: #fff; box-shadow: inset 0 0 0 1px rgba(56,116,120,.35); }
.pg-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px double var(--teal); color: var(--teal); font: 600 15px/1 var(--sans); transform: rotate(-10deg); }
.pg-q.just .pg-check { animation: pgStamp .45s .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pgStamp { from { opacity: 0; transform: rotate(-10deg) scale(2.2); } }
.pg-guest { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; }
.pg-guest img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.pg-guest b { display: block; font: 400 22px/1.1 var(--serif); letter-spacing: -.03em; }
.pg-guest span { display: block; font-size: 14px; color: var(--ink2); margin-top: 4px; text-wrap: pretty; }
.nx-cta { display: grid; gap: 4px; width: 100%; margin-top: 10px; padding: 20px 24px; border-radius: 12px; background: var(--ink); color: var(--paper); text-align: left; transition: background .2s, transform .15s; }
.nx-cta:hover { background: #000; transform: translateY(-2px); }
.nx-cta small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.nx-cta b { font: 400 28px/1.1 var(--serif); letter-spacing: -.035em; }
.nx-cta b::after { content: " →"; color: var(--mint); }
.nx-sec { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 8px; }
.nx-s { font-size: 14px; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(43,43,41,.3); padding: 6px 0; }
.nx-s:hover { color: var(--ink); }
.nx-cta:focus-visible, .nx-s:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 760px) {
  .pg { grid-template-columns: 1fr; }
  .pg-num { font-size: 60px; }
  .pg-quests ul { grid-template-columns: 1fr; }
  .pg-quests { padding: 16px; }
  .pg-guest { grid-template-columns: 48px minmax(0, 1fr); }
  .pg-guest .pill { grid-column: 1 / -1; }
  .nx-cta b { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .pg-q.just .pg-check { animation: none; } }

.lb-quests { margin-top: 10px; }
.lb-quests ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pg-q.skel { background: var(--paper2); }
@media (max-width: 760px) { .lb-quests ul { grid-template-columns: 1fr; } }

.lb .dk-big { overflow-wrap: normal; }

/* ---------- Лига недели ---------- */
.lb-league { margin-top: 10px; min-height: 320px; }
.lg-skel { height: 290px; border-radius: 8px; background: #ebe9e1; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.lg-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.lg-emb { width: 96px; height: 96px; object-fit: contain; }
.lg-head > div { display: grid; gap: 4px; min-width: 0; }
.lg-title { font: 400 34px/1.05 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.lg-rules { font-size: 13.5px; line-height: 1.45; color: var(--ink2); margin-top: 14px; text-wrap: pretty; }
.lg-table { list-style: none; padding: 0; margin: 0; max-height: 290px; overflow-y: auto; display: grid; align-content: start; scrollbar-width: thin; }
.lg-table li { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14px; }
.lg-table li i { font-style: normal; font-size: 12px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.lg-table li .lb-ava { width: 28px; height: 28px; font-size: 13px; }
.lg-table li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-table li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.lg-table li.lg-up i { color: var(--teal-d); } .lg-table li.lg-down i { color: var(--wine); }
.lg-table li.lg-cut { margin-top: 6px; box-shadow: 0 -1px 0 rgba(43,43,41,.12); border-radius: 0 0 8px 8px; }
.lg-table li.me { background: var(--mint3); }
.lg-empty { display: grid; justify-items: center; gap: 12px; padding: 20px 0; }
.lg-empty img { width: 120px; height: 120px; object-fit: contain; opacity: .7; }
.lg-last { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(43,43,41,.12); }
.lg-last .seal { --s: 84px; }
.lg-last p { font: 400 19px/1.3 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
@media (max-width: 760px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-head { grid-template-columns: 72px minmax(0, 1fr); }
  .lg-emb { width: 72px; height: 72px; }
  .lg-title { font-size: 28px; }
  .lb-league { min-height: 0; }
}
.nx-boss { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; margin-bottom: 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(43,43,41,.12); }
.nx-boss img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.nx-boss > div { display: grid; gap: 3px; min-width: 0; }
.nx-boss b { font: 400 22px/1.15 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.nx-boss small { font-size: 13.5px; color: var(--ink2); text-wrap: pretty; }
.nx-boss.ok { box-shadow: inset 0 0 0 1px rgba(56,116,120,.4); }
.nx-boss .seal { --s: 92px; font-size: 9px; }
@media (max-width: 640px) { .pf-gram { grid-template-columns: 1fr 1fr; } .nx-boss { grid-template-columns: 52px minmax(0, 1fr); } .nx-boss img { width: 52px; height: 52px; } .nx-boss .seal { display: none; } }
.lb-dots i.fz { box-shadow: inset 0 0 0 1.5px var(--teal); background: repeating-linear-gradient(45deg, transparent 0 2px, rgba(56,116,120,.25) 2px 3px); }
.lb-fz { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--teal-d); white-space: nowrap; }
.lb-fz-i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--mint3); color: var(--teal-d); font: 600 11px/1 var(--sans); }
.lb-ref { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 10px; }
.lb-ref img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.lb-ref > div { display: grid; gap: 3px; min-width: 0; }
.lb-ref b { font: 400 20px/1.2 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.lb-ref .pill { white-space: nowrap; }
.nx .lb-ref { margin: 0 0 10px; }
@media (max-width: 640px) { .lb-ref { grid-template-columns: 48px minmax(0, 1fr); } .lb-ref img { width: 48px; height: 48px; } .lb-ref .pill { grid-column: 1 / -1; } .lb-ref b { font-size: 18px; } }
.nx-push { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 10px; padding: 16px 20px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(43,43,41,.12); }
.nx-push img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.nx-push b { font: 400 19px/1.3 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
.nx-push-b { display: flex; gap: 8px; }
@media (max-width: 640px) { .nx-push { grid-template-columns: 48px minmax(0, 1fr); } .nx-push img { width: 48px; height: 48px; } .nx-push-b { grid-column: 1 / -1; } .nx-push-b .pill { flex: 1; } }
.nx-push > div { display: grid; gap: 4px; min-width: 0; } .nx-push .kicker { display: block; }
.lb-ink { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; margin-top: 10px; align-items: start; }
.lb-ink-h { display: grid; gap: 4px; }
.lb-ink-h .dk-big small { font: 400 15px/1 var(--sans); color: var(--ink2); }
.lb-ink-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lb-shop { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(43,43,41,.12); color: var(--ink); }
.lb-shop:not([disabled]):hover { box-shadow: inset 0 0 0 1px var(--ink); }
.lb-shop[disabled] { opacity: .55; cursor: default; }
.lb-shop b { font: 400 18px/1.15 var(--serif); letter-spacing: -.02em; }
.lb-shop small { font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.lb-shop span { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--mint3); color: var(--teal-d); white-space: nowrap; }
.lb-bosspick:not([hidden]) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lb-bosspick button { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; text-align: left; align-items: center; padding: 8px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(43,43,41,.12); background: #fff; }
.lb-bosspick button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.lb-bosspick img { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.lb-bosspick b { font-weight: 500; font-size: 14px; }
.lb-bosspick small { font-size: 11.5px; color: var(--ink2); line-height: 1.3; }
@media (max-width: 760px) { .lb-ink { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .lb-ink-shop { grid-template-columns: 1fr; } }
.lb-events { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--ink2); min-height: 2.8em; align-content: start; }
.lb-events span { position: relative; padding-left: 14px; text-wrap: pretty; }
.lb-events span::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.lb-ev-hot { font-weight: 600; color: var(--wine); }

/* ---------- Рубеж серии: праздничный экран ---------- */
.ms-dlg { margin: auto; border: 0; padding: 0; border-radius: 18px; background: var(--paper); max-width: min(480px, calc(100vw - 32px)); width: 100%; }
.ms-dlg::backdrop { background: rgba(28,42,43,.45); }
.ms { position: relative; display: grid; justify-items: center; gap: 10px; padding: 34px 28px 26px; text-align: center; }
.ms-candle { width: 96px; height: 96px; object-fit: contain; }
.ms-num { font: 400 120px/.9 var(--serif); letter-spacing: -.05em; color: var(--ink); display: grid; }
.ms-num small { font: 600 14px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d); margin-top: 6px; }
.ms-seal { position: absolute; right: 22px; top: 26px; --s: 96px; }
.ms-h { font-size: 32px; line-height: 1.05; text-wrap: balance; }
.ms-say { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; margin-top: 4px; }
.ms-say img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.ms-say p { font: 400 18px/1.32 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
.ms-ink { font-size: 14px; font-weight: 500; color: var(--teal-d); padding: 6px 14px; border-radius: 99px; background: var(--mint3); }
.ms-b { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 420px) { .ms-seal { --s: 76px; right: 12px; top: 14px; } .ms-num { font-size: 96px; } .ms-b .pill { flex: 1; } }
.lb-back { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 10px; box-shadow: inset 0 0 0 1px rgba(56,116,120,.4); }
.lb-back img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.lb-back > div { display: grid; gap: 4px; min-width: 0; }
.lb-back b { font: 400 22px/1.15 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
@media (max-width: 640px) { .lb-back { grid-template-columns: 52px minmax(0, 1fr); } .lb-back img { width: 52px; height: 52px; } .lb-back .pill { grid-column: 1 / -1; } }
.nx-ghost { position: relative; display: grid; gap: 12px; padding: 18px 20px; margin-bottom: 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(43,43,41,.12); }
.nx-ghost.rec { box-shadow: inset 0 0 0 1px rgba(56,116,120,.45); padding-right: 130px; }
.gh-h { display: grid; gap: 3px; }
.gh-h b { font: 400 24px/1.1 var(--serif); letter-spacing: -.03em; }
.gh-rows { display: grid; gap: 6px; }
.gh-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px 20px 48px; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink2); }
.gh-row em, .gh-row b { font: 400 24px/1 var(--serif); font-style: normal; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.gh-row b { color: var(--ink); } .gh-row b.up { color: var(--teal-d); } .gh-row b.down { color: var(--wine); }
.gh-arrow { font-style: normal; color: var(--mute); text-align: center; }
.nx-ghost .seal { position: absolute; right: 20px; top: 50%; margin-top: -48px; --s: 96px; }
@media (max-width: 640px) { .nx-ghost.rec { padding-right: 20px; } .nx-ghost .seal { position: static; margin: 0; justify-self: end; --s: 80px; } }
.lb-mentor { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 10px; }
.lb-mentor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.lb-mentor > div { display: grid; gap: 4px; min-width: 0; }
.lb-mentor b { font: 400 20px/1.25 var(--serif); letter-spacing: -.02em; text-wrap: pretty; }
@media (max-width: 640px) { .lb-mentor { grid-template-columns: 48px minmax(0, 1fr); } .lb-mentor img { width: 48px; height: 48px; } .lb-mentor .pill { grid-column: 1 / -1; } }

/* ---------- Альбом крылатых фраз: карточки ---------- */
.qc { position: relative; display: grid; gap: 10px; align-content: start; margin: 0; padding: 18px 18px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(43,43,41,.12); min-height: 220px; }
.qc img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.qc-r { position: absolute; right: 14px; top: 14px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.qc blockquote { margin: 0; font: italic 400 19px/1.3 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
.qc figcaption { display: grid; gap: 2px; font-size: 13px; font-weight: 500; }
.qc figcaption small { font-weight: 400; font-size: 11.5px; color: var(--ink2); line-height: 1.35; }
.qc-rare { box-shadow: inset 0 0 0 1.5px rgba(56,116,120,.55); } .qc-rare .qc-r { color: var(--teal-d); }
.qc-legend { box-shadow: inset 0 0 0 2px #b88a3a, inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(184,138,58,.45); background: #fffdf6; } .qc-legend .qc-r { color: #9a7128; }
.qc-locked { align-content: center; justify-items: center; text-align: center; background: var(--paper2); box-shadow: none; }
.qc-locked img { filter: grayscale(1); opacity: .35; }
.qc-locked p { font-size: 13px; color: var(--mute); }
.qc-locked small { font-size: 12px; color: var(--mute); }
.qc-share { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,43,41,.2); color: var(--ink2); }
.qc-share:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 12px 0 26px; }
.nx-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 16px 20px; margin-bottom: 10px; border-radius: 12px; background: var(--paper2); }
.nx-card > div { display: grid; gap: 4px; justify-items: start; }
.nx-card b { font: 400 22px/1.15 var(--serif); letter-spacing: -.03em; }
.nx-card .acc-link { font-size: 14px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .nx-card { grid-template-columns: 1fr; } }
.lb-events a { color: var(--teal-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(56,116,120,.4); }

/* ================= Лобби в три зоны (05.10, вечер): «Сегодня» · «Мой прогресс» · «Аудитория» ================= */
.z { --hair: rgba(43,43,41,.12); }
/* Спокойная шапка: приветствие одной строкой (имя не рвётся), одна строка комиссии, три фишки. */
.z-head { display: grid; gap: 12px; justify-items: start; padding: 8px 0 6px; }
.z-head h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.z-name { white-space: nowrap; }
.z-sub { display: flex; align-items: center; gap: 10px; margin: 0; max-width: 82ch; font-size: 15.5px; line-height: 1.4; color: var(--ink2); }
.z-sub img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--mint); }
.z-sub b { font-weight: 600; color: var(--ink); }
.z-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.z-chips li { display: inline-flex; align-items: baseline; gap: 8px; min-width: 128px; padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; white-space: nowrap; }
.z-chips span { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.z-chips b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.z-h { display: flex; align-items: baseline; gap: 12px; font-size: 30px; margin: 48px 0 16px; }
.z-h span { font: 600 12px/1 var(--sans); letter-spacing: .1em; color: var(--teal); padding: 6px 8px; border-radius: 6px; background: var(--mint3); transform: translateY(-4px); }
.z-card { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding: 20px 22px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.z-card > .kicker, .z .dk-card-h .kicker { color: var(--mute); }
.z .lb-card, .z .dk-diary { border-radius: 14px; }
.sk-in { border-radius: 14px; background: #ebe9e1 linear-gradient(90deg, transparent 0, rgba(255,255,255,.6) 50%, transparent 100%) no-repeat; background-size: 200% 100%; animation: skShine 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sk-in { animation: none; } }

/* A. Сегодня */
.z-today { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.z-today-side { display: grid; gap: 12px; align-content: start; }
.z-daily { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; min-height: 318px; height: 100%; padding: 28px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.z-daily.sk-in { box-shadow: none; }
.z-daily::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--teal); }
.z-daily.done::before { background: var(--gold); }
.z-boss { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 12px; }
.z-daily-t { display: grid; gap: 10px; align-content: center; min-width: 0; }
.z-daily-t > b { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.z-rule { display: inline-flex; gap: 8px; align-items: baseline; justify-self: start; font-size: 14px; line-height: 1.4; color: var(--ink2); padding: 8px 12px; border-radius: 10px; background: var(--mint3); text-wrap: pretty; }
.z-rule i { font-style: normal; color: var(--gold); }
.z-daily-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.z-done { font-weight: 600; color: var(--teal-d); }
.z-rings ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.z-rings li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--ink2); }
.z-rings li.done span { color: var(--ink); }
.z-rings.sk-in { height: 176px; }
.ch-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ch-ring svg { position: absolute; inset: 0; }
.ch-ring img { width: 58%; height: 58%; object-fit: contain; }
.z-check { position: absolute; top: 46px; left: calc(50% + 18px); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font: 600 13px/1 var(--sans); box-shadow: 0 0 0 3px #fff; }
.z-streak { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.z-streak > img { width: 56px; height: 72px; object-fit: contain; }
.z-streak > div { display: grid; gap: 8px; min-width: 0; }
.z-streak > div > b:not(.lb-fz-i) { font: 400 34px/1 var(--serif); letter-spacing: -.04em; }
.z-streak b small { font: 400 14px/1 var(--sans); letter-spacing: 0; color: var(--ink2); }
.z-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 300px; }
.z-day { display: grid; justify-items: center; gap: 4px; }
.z-day i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(43,43,41,.18); }
.z-day.on i { background: var(--gold); box-shadow: none; }
.z-day.fz i { box-shadow: inset 0 0 0 1.5px var(--teal); background: repeating-linear-gradient(45deg, transparent 0 2px, rgba(56,116,120,.25) 2px 3px); }
.z-day.today i { outline: 2px solid var(--gold); outline-offset: 2px; }
.z-day small { font-size: 11px; color: var(--mute); }
.z .lb-events { margin: 14px 0 0; }
/* Игры: 3 колонки ≥1280, 2 — от 768, 1 — на телефоне. Все плитки одной высоты. */
.z-games { margin-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.z-games .lb-game { min-height: 0; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 1fr auto; padding: 20px 22px; gap: 14px 16px; text-decoration: none; }
.z-games .lb-gi img { width: 52px; height: 52px; }
.z-games .lb-gt { gap: 5px; }
.z-games .lb-gt b { font-size: 21px; }
.z-games .lb-gt small { display: block; font-size: 14px; }
.z-games .lb-gs { font-size: 12.5px; }
@media (max-width: 1279px) { .z-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .z-games { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 8px; }
  .z-games .lb-game { grid-template-columns: 44px minmax(0, 1fr); padding: 16px 18px; gap: 10px 14px; }
  .z-games .lb-gi img { width: 44px; height: 44px; }
  .z-games .lb-gt b { font-size: 19px; }
  .z-games .lb-gs { grid-column: 2; }
}

/* B. Мой прогресс */
.z-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.z-w4 { grid-column: span 4; } .z-w5 { grid-column: span 5; } .z-w7 { grid-column: span 7; } .z-w8 { grid-column: span 8; } .z-w12 { grid-column: 1 / -1; }
.z-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.z-col .lb-ref { margin: 0; }
.ch { display: block; width: 100%; height: auto; }
.ch-line { max-height: 190px; }
.z-cap { font-size: 12.5px; color: var(--mute); }
.z-trend { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.z-trend.up { background: var(--mint3); color: var(--teal-d); } .z-trend.down { background: #f6e3de; color: var(--wine); }
.z-rank { justify-items: center; text-align: center; align-content: center; }
.z-rank > .kicker { justify-self: start; }
.z-rank b { font: 400 26px/1.1 var(--serif); letter-spacing: -.03em; white-space: nowrap; }
.z-rank small { font-size: 13px; color: var(--ink2); }
.z-leg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.z-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .z-leg i.a { background: var(--teal); } .z-leg i.b { background: var(--mint); margin-left: 8px; }
.ch-hbars { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.ch-hbars li { display: grid; grid-template-columns: 34px minmax(0, 78px) minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 14px; }
.ch-chip { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: var(--mint); color: var(--teal-d); font: 400 16px/1 var(--serif); }
.ch-hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-hbars i { display: block; height: 10px; border-radius: 99px; background: var(--paper2); overflow: hidden; }
.ch-hbars em { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.ch-hbars b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.ch-hbars.ghost .ch-chip { background: #ecebe4; color: #b9b7ad; } .ch-hbars.ghost em { background: #d6d4cb; } .ch-hbars.ghost li { color: #b9b7ad; }
.z-ghost { position: relative; }
.z-ghost > svg, .z-ghost > ul { opacity: .35; }
.z-ghost p { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12%; text-align: center; font: 400 17px/1.3 var(--serif); color: var(--ink2); text-wrap: balance; }
.z-ins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.z-ins p { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--mint3); font-size: 14.5px; line-height: 1.4; text-wrap: pretty; }
.z-ins img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.z-ins b { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 2px; }
.z .dk-diary { margin-top: 12px; }

/* C. Аудитория */
.z .lb-league { margin-top: 0; min-height: 0; }
.z .lb-league .lg-grid { grid-template-columns: 1fr; gap: 14px; }
.z-ladder { list-style: none; padding: 0 0 14px; margin: 0 0 14px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; border-bottom: 1px solid var(--hair); }
.z-ladder li { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; color: var(--mute); text-align: center; }
.z-ladder img { width: 44px; height: 44px; object-fit: contain; filter: grayscale(1); opacity: .45; }
.z-ladder li.past img { filter: none; opacity: .75; }
.z-ladder li.on img { filter: none; opacity: 1; width: 56px; height: 56px; margin-top: -6px; }
.z-ladder li.on span { color: var(--ink); font-weight: 600; }
.z .lg-table li { border-left: 4px solid transparent; }
.z .lg-table li.lg-up { border-left-color: #6fb38f; background: rgba(111,179,143,.08); }
.z .lg-table li.lg-down { border-left-color: #d58b7c; background: rgba(213,139,124,.08); }
.z .lg-table li.me { background: var(--mint3); box-shadow: inset 0 0 0 1.5px var(--teal); }
.z .lb-feed ul { min-height: 0; }
.z .lb-ink { margin-top: 12px; }

@media (max-width: 1080px) {
  .z-today { grid-template-columns: 1fr; }
  .z-w4 { grid-column: span 6; } .z-w8 { grid-column: 1 / -1; } .z-w5, .z-w7 { grid-column: 1 / -1; }
  .z-rank { grid-column: span 6; }
}
@media (max-width: 760px) {
  .z-sub { align-items: flex-start; font-size: 14.5px; }
  .z-chips li { min-width: 0; padding: 7px 12px; }
  .z-h { font-size: 26px; margin-top: 38px; }
  .z-daily { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 22px 18px 20px; min-height: 0; }
  .z-boss { width: 96px; }
  .z-daily-b .pill.big { width: 100%; }
  .z-daily-b { grid-column: 1 / -1; }
  .z-w4, .z-rank { grid-column: 1 / -1; }
  .z-ins { grid-template-columns: 1fr; }
  .z-ladder img { width: 34px; height: 34px; } .z-ladder li.on img { width: 44px; height: 44px; }
  .z-ladder li span { font-size: 9.5px; }
}
@media (max-width: 420px) {
  .z-daily { grid-template-columns: 1fr; } .z-boss { width: 88px; }
  .z-rings li span { font-size: 11.5px; }
}
.z.lb-skel .sk-h { margin: 48px 0 16px; height: 36px; }
.z-col .lb-ref { grid-template-columns: 48px minmax(0, 1fr); }
.z-col .lb-ref img { width: 48px; height: 48px; }
.z-col .lb-ref .pill { grid-column: 1 / -1; justify-self: stretch; }
.z-col .lb-ref b { font-size: 18px; }
.z-games .lb-gs { white-space: normal; max-width: 100%; line-height: 1.3; }
.z-ghost p span { padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(43,43,41,.08); }

/* Правило игры — одна строка; на узких экранах лишнее прячется многоточием, а не переносом. */
.z-games .lb-gt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .z-games .lb-gt small { font-size: 13.5px; }
  .z-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .z-chips li { display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; white-space: normal; }
  .z-chips span { font-size: 10.5px; }
  .z-chips b { font-size: 15px; white-space: nowrap; }
}
@media (max-width: 640px) { .lb-pn small { white-space: normal; line-height: 1.3; } }
/* Бумага билета в учебной части и «что дальше» — та же 9-частная рамка, без обрезанных углов. */
.dk-main:not(.dk-main-done), .nx-bonus { background: #f6f0e1 !important; border-radius: 0; border-image: url(img/ticket-paper.webp) 92 fill / 40px stretch; }
@media (max-width: 640px) { .dk-main:not(.dk-main-done), .nx-bonus { border-image-width: 32px; } }
.dk-card-h .lt { font-size: 13.5px; padding: 5px 10px 5px 7px; } .dk-card-h .lt svg { width: 16px; height: 16px; }
.z-acc { gap: 10px; } .z-acc .acard { padding: 0; box-shadow: none; background: transparent; } .z-acc .acard-empty { padding: 14px; background: #fbf0e3; box-shadow: inset 0 0 0 1px #efd3b4; }

/* Главная кнопка учебной части (07.10): «Проверить речь» сразу под приветствием — на телефоне шапка её прячет. */
.z-go { margin-top: 6px; min-width: 220px; }
.z-go-sk { display: block; height: 52px; width: 220px; margin-top: 6px; border-radius: 99px; }
@media (max-width: 640px) { .z-go, .z-go-sk { width: 100%; } }
@media (min-width: 901px) { .z-go, .z-go-sk { display: none; } } /* на десктопе главная кнопка — в шапке */
