/* ════════════════════════════════════════════════════════════════════════
   «Не гадай» — графическая система
   Тёмный графит + молочная «бумага» + кислотные акценты. Плоско: без свечений,
   градиентов и размытий. Характер дают типографика (широкий гротеск Unbounded),
   рукописные подписи (Amatic SC), наклейки с обводкой и жёлтые каракули.
   ════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #131210;          /* тёплый графит */
  --bg-2: #1c1b18;        /* поверхность */
  --bg-3: #252320;        /* поле ввода, вложенное */
  --line: #34312c;        /* линии и рамки */
  --line-2: #4a463f;
  --text: #f2eee5;
  --muted: #9c968b;
  --paper: #efebe0;       /* «бумага» наклеек */
  --ink: #131210;         /* текст на бумаге */
  --yellow: #ffd43a;      /* главный акцент */
  --lilac: #b9a7ff;
  --coral: #ff7b5c;
  --mint: #8fe0bf;
  --a0: var(--yellow); --a1: var(--lilac); --a2: var(--coral); --a3: var(--mint);

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Amatic SC", "Onest", cursive;

  --r: 22px;
  --pad: 16px;
  --tabbar: 64px;
  --top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --ease: cubic-bezier(.2, .9, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body {
  font-family: var(--body); color: var(--text); font-size: 15.5px; line-height: 1.5;
  height: var(--app-height, 100svh); overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none;
  overflow-wrap: break-word; /* длинные слова из ввода пользователя не распирают экран */
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
textarea, input { font: inherit; color: inherit; user-select: text; }
.ic { width: 22px; height: 22px; flex: none; }

.app {
  height: 100%; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto;
  padding-left: var(--tg-safe-area-inset-left, 0px); padding-right: var(--tg-safe-area-inset-right, 0px);
}
.view {
  flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: calc(10px + var(--top)) var(--pad) calc(var(--tabbar) + 30px + var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
}
.page { display: none; animation: fade .35s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rise { animation: rise .6s var(--ease) var(--d, 0s) backwards; }

/* ── Типографика ───────────────────────────────────── */
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
h1 { font-size: 26px; } h2 { font-size: 21px; }
h3 { font-family: var(--display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.center-block { display: block; text-align: center; }
.mt { margin-top: 16px; } .mt-l { margin-top: 26px; }
.lead { font-size: 16px; color: var(--muted); }
.lead.center { text-align: center; }
.left { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.hand { font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1; color: var(--yellow); letter-spacing: .02em; }
/* «(подпись маркером)» — как рукописные пометки на полях */
.eyebrow { display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: .02em; color: var(--yellow); white-space: nowrap; }
.eyebrow::before { content: '( '; } .eyebrow::after { content: ' )'; }

/* ── Кот-наклейка в «видоискателе» ─────────────────── */
.frame { position: relative; width: 236px; aspect-ratio: 1 / 1.05; margin: 0 auto; cursor: pointer; -webkit-touch-callout: none; touch-action: manipulation; }
.frame .cn { position: absolute; width: 22px; height: 22px; border-color: var(--text); border-style: solid; border-width: 0; }
.frame .cn.tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.frame .cn.tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.frame .cn.bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.frame .cn.br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.frame .doodle { position: absolute; left: 4%; top: 2%; width: 92%; animation: draw 1.6s var(--ease) .2s backwards; }
@keyframes draw { from { opacity: 0; transform: scale(.85) rotate(-8deg); } }
.frame .cat-svg { position: absolute; left: 50%; bottom: 0; width: 64%; transform: translateX(-50%); transform-origin: 50% 100%; animation: catIn .7s var(--ease) backwards; }
@keyframes catIn { from { transform: translate(-50%, 18px); opacity: 0; } }
.frame .badge { position: absolute; right: 4%; top: 6%; width: 64px; transform: rotate(12deg); animation: stamp .5s cubic-bezier(.2, 1.5, .4, 1) .4s backwards; }
@keyframes stamp { from { transform: rotate(40deg) scale(1.6); opacity: 0; } }
.frame.small { width: 168px; }
.frame.small .badge { width: 52px; right: -2%; }
.frame:active .cat-svg { transform: translateX(-50%) scaleY(.97); }

.cat-svg { display: block; overflow: visible; }
.cat-svg .eyes { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
.cat-svg .pupils { transform: translate(calc(var(--lx, 0) * 1px), calc(var(--ly, 0) * 1px)); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.cat-svg .eyes-shut { opacity: 0; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } 97% { transform: scaleY(1); } }
.blink-now .eyes { animation: blinkOnce .35s ease-in-out; }
@keyframes blinkOnce { 50% { transform: scaleY(.08); } }
/* Гладят: зажмурился, чуть вибрирует */
.purring .eyes { opacity: 0; }
.purring .eyes-shut { opacity: 1; }
.purring .cat-svg { animation: purr .18s linear infinite; }
/* catIn остаётся в списке: иначе после мурчания браузер перезапускает «появление» и кот на миг исчезает */
.frame.purring .cat-svg { animation: catIn .7s var(--ease) backwards, purr .18s linear infinite; }
@keyframes purr { 50% { transform: translate(-50%, .8px); } }
.cat-av.purring .cat-svg { animation: none; }

/* Аватар: голова кота на молочном круге */
.cat-av { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--paper); border: 2px solid var(--text); }
.cat-av .cat-svg { width: 84%; margin-top: 10%; }
.cat-face { width: 46px; height: 46px; flex: none; }

/* ── Шапки ─────────────────────────────────────────── */
.orb { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); border: 1.5px solid var(--line-2); flex: none; }
.orb .ic { width: 18px; height: 18px; }
.orb:active { background: var(--bg-3); }
.orb .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.orb.gold { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.orb.lg { width: 60px; height: 60px; } .orb.lg .ic { width: 24px; height: 24px; }

.ph, .top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 6px; }
.ph h2, .top-t { text-align: center; font-family: var(--display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.ph-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); border: 1.5px solid var(--line-2); }
.ph-btn .ic { width: 18px; height: 18px; }
.ph.plain { display: block; margin: 8px 0 18px; }
.ph.plain h2 { text-align: left; font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; padding-bottom: 8px; border-bottom: 2px solid var(--text); }

/* ── Главная ───────────────────────────────────────── */
.h-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.logo-cat { width: 30px; height: 30px; border-width: 1.5px; }
.h-actions { display: flex; align-items: center; gap: 8px; }
.streak { font-family: var(--display); font-size: 9.5px; font-weight: 700; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--yellow); color: var(--ink); transform: rotate(-4deg); white-space: nowrap; }

.hero2 { position: relative; margin-top: 18px; }
.side-note { position: absolute; left: 0; top: 46%; z-index: 1; font-family: var(--display); font-size: 8.5px; font-weight: 700; line-height: 1.4; text-transform: uppercase; color: var(--muted); }
.hand-line { margin-top: 12px; text-align: center; font-family: var(--hand); font-size: 28px; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: .04em; }
.mega { margin-top: 6px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(27px, 8.6vw, 40px); line-height: 1; letter-spacing: -.03em; text-align: center; }
.mega span { display: block; padding: 4px 0 2px; border-bottom: 2px solid var(--text); }

/* Карта дня — сиреневая плашка-наклейка */
.daycard { position: relative; display: grid; grid-template-columns: 1fr 104px; gap: 12px; align-items: center; width: 100%; margin-top: 26px; padding: 20px 18px 20px 20px; border-radius: 26px; text-align: left; background: var(--lilac); color: var(--ink); transition: transform .15s; }
.daycard:active { transform: translateY(2px); }
.dc-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.dc-date { font-family: var(--hand); font-size: 22px; line-height: 1; font-weight: 700; }
.dc-title { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dc-title.sm { font-size: 21px; }
.dc-sub { margin-top: 8px; font-size: 14px; line-height: 1.4; font-weight: 500; }
.dc-cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.dc-cta .ic { width: 16px; height: 16px; }
.dc-card { width: 100px; transform: rotate(7deg); animation: cardIn .8s var(--ease) .4s backwards; }
@keyframes cardIn { from { opacity: 0; transform: rotate(22deg) translate(20px, 30px); } }

.choose { margin-top: 38px; }
.choose-h { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; }
.grp-wrap { margin-top: 22px; }
.grp-wrap .grp { margin-top: 0; }
.grp { margin: 30px 2px 2px; font-family: var(--hand); font-size: 26px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--acc, var(--yellow)); line-height: 1; }
.way { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 13px 2px; text-align: left; border-bottom: 1.5px solid var(--line); }
.way:active { background: var(--bg-2); }
.way-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--acc, var(--yellow)); color: var(--ink); }
.way-ic .ic { width: 21px; height: 21px; }
.way-t { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.way-t small { display: block; margin-top: 4px; font-family: var(--body); font-size: 13.5px; font-weight: 400; line-height: 1.35; color: var(--muted); letter-spacing: 0; }
.way-tag { font-family: var(--display); font-size: 9px; font-weight: 700; text-transform: uppercase; white-space: nowrap; padding: 5px 8px; border-radius: 99px; border: 1.5px solid var(--line-2); color: var(--muted); transform: rotate(-3deg); }
.way-tag.tilt-r { transform: rotate(3deg); }
.way-tag.free { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.manifest { margin: 44px 0 6px; }
.manifest .m1, .manifest .m2 { font-family: var(--display); font-weight: 800; font-size: 31px; line-height: 1.02; text-transform: uppercase; letter-spacing: -.03em; padding: 4px 0 2px; border-bottom: 2px solid var(--text); }
.manifest .m2 { color: var(--yellow); border-color: var(--yellow); }
.manifest .hand { color: var(--muted); margin-bottom: 8px; }
.manifest .m3 { margin-top: 12px; font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Совет дня — бумажная карточка */
.sage { margin: 10px 0 6px; border-radius: 22px; background: var(--paper); color: var(--ink); overflow: hidden; }
.sage-main { display: block; width: 100%; text-align: left; padding: 18px 18px 14px; color: var(--ink); }
.sage-eb { display: block; font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1; }
.sage-q { display: block; margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; quotes: "«" "»"; }
.sage-a { display: block; margin-top: 12px; font-size: 13.5px; font-weight: 700; }
.sage-a small { display: block; font-size: 12px; font-weight: 500; opacity: .6; }
.sage-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--ink); font-family: var(--display); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sage-more .ic { width: 14px; height: 14px; transition: transform .25s; }
.sage-main.open .sage-more .ic { transform: rotate(180deg); }
.sage-cat { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px 16px 18px; border-top: 1.5px dashed rgba(19, 18, 16, .3); animation: fade .3s ease both; }
.sage-cat[hidden] { display: none; }
.sage-cat .cat-face { width: 44px; height: 44px; border-color: var(--ink); }
.sage-cat p { font-size: 14.5px; line-height: 1.45; }
.sage-cat .orb { color: var(--ink); border-color: var(--ink); }
.sage-link { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sage-link .ic { width: 14px; height: 14px; }

/* ── Сцена внутренних экранов ──────────────────────── */
.mini-hero { margin: 4px 0 4px; }
.slab { margin-top: 14px; }
.slab-title { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.12; letter-spacing: -.02em; }
.slab-sub { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.slab-answer { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.35; text-align: center; }
.title-xl { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; text-align: center; letter-spacing: -.02em; line-height: 1.05; }
.after { margin-top: 10px; }

/* Оглавление «Спросить» */
.index { margin-top: 10px; }
.idx { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px; width: 100%; padding: 15px 0; text-align: left; border-bottom: 1.5px solid var(--line); }
.idx-n { font-family: var(--display); font-size: 12px; font-weight: 800; color: var(--yellow); }
.idx-t { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.idx-t small { display: block; margin-top: 3px; font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--muted); }
.idx-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.idx-go .ic { width: 16px; height: 16px; }

/* ── Кнопки, поля, чипы ────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 22px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .01em;
  transition: transform .12s, opacity .2s;
}
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .45; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn.small { min-height: 44px; font-size: 11.5px; }
.round-row { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }

.input { display: block; width: 100%; padding: 15px 16px; border-radius: 18px; background: var(--bg-3); border: 1.5px solid var(--line); outline: none; resize: none; font-size: 15.5px; color: var(--text); }
.input:focus { border-color: var(--yellow); }
.input::placeholder { color: var(--muted); }
.ask-box { position: relative; }
.ask-box .input { padding-right: 58px; }
.ask-box .send { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.ask-box .send .ic { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips.left { justify-content: flex-start; }
.chip { padding: 8px 13px; border-radius: 99px; border: 1.5px solid var(--line-2); font-size: 13.5px; font-weight: 500; text-align: left; }
.chip:active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; border: 1.5px solid var(--line); }
.seg button { padding: 10px; border-radius: 999px; font-family: var(--display); font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.seg button.on { background: var(--paper); color: var(--ink); }
.switch { position: relative; display: inline-block; width: 46px; height: 28px; border-radius: 99px; background: var(--bg-3); border: 1.5px solid var(--line-2); flex: none; transition: background .2s; }
.switch::after, .switch i { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch.on { background: var(--yellow); border-color: var(--yellow); }
.switch.on::after, .switch.on i { transform: translateX(18px); background: var(--ink); }
.switch:has(i)::after { display: none; }

/* ── Поверхности ───────────────────────────────────── */
.card { position: relative; padding: 18px; border-radius: var(--r); background: var(--bg-2); border: 1.5px solid var(--line); }
.card.glow { border-color: var(--line-2); }
.rows { padding: 2px 16px; }
.rowi { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.rowi + .rowi { border-top: 1.5px solid var(--line); }
.rowi > .ic { width: 24px; height: 24px; color: var(--yellow); }
.rowi b { display: block; font-family: var(--display); font-size: 13.5px; font-weight: 700; }
.rowi span { font-size: 14px; color: var(--muted); }
.rowi .num-ic { width: 26px; flex: none; text-align: center; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--yellow); }
.rowi .sw { width: 22px; height: 22px; border-radius: 50%; margin: 0 2px; flex: none; border: 1.5px solid var(--text); }
.rowi .rune-ic { width: 26px; flex: none; text-align: center; font-family: "Noto Sans Runic", serif; font-size: 24px; color: var(--yellow); }
.rowi.top { align-items: flex-start; }
.rowi.link { cursor: pointer; }
.rowi .end { margin-left: auto; color: var(--muted); display: flex; }
.rowi .end .ic { width: 18px; height: 18px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Наклейка-бумажка (вердикт, мысль кубика) */
.paper-wrap { position: relative; display: inline-block; }
.paper { padding: 10px 20px 12px; border-radius: 14px; background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 700; line-height: 1.25; border: 2px solid var(--ink); outline: 2px solid var(--paper); }
.tape { display: none; }
.note-wrap { position: relative; }
.note-card { padding: 18px; border-radius: 22px; background: var(--paper); color: var(--ink); }
.cat-tip { display: flex; gap: 14px; align-items: center; }
.cat-tip .cat-face { width: 62px; height: 62px; border-color: var(--ink); }
.cat-tip b { display: block; font-family: var(--hand); font-size: 24px; line-height: 1; margin-bottom: 4px; }
.cat-tip span { font-size: 15px; line-height: 1.45; font-weight: 500; }

/* ── Таро ──────────────────────────────────────────── */
.tarot-art { display: block; width: 100%; height: auto; }
.tstage { position: relative; width: min(210px, 56vw); margin: 10px auto 0; }
.tstage .behind { position: absolute; inset: 0; transform: rotate(-11deg) translate(-26px, 12px); opacity: .9; }
.tstage .front { position: relative; transform: rotate(5deg); animation: reveal .7s var(--ease); }
@keyframes reveal { from { transform: rotateY(90deg) scale(.9); opacity: 0; } }
.tmini { width: 60px; flex: none; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.three > div { text-align: center; font-family: var(--display); font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.three .tarot-art { margin-bottom: 8px; animation: reveal .7s backwards; }
.three > div:nth-child(2) .tarot-art { animation-delay: .2s; } .three > div:nth-child(3) .tarot-art { animation-delay: .4s; }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 14px; padding: 12px; border-radius: 99px; border: 1.5px dashed var(--line-2); font-family: var(--display); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.more-btn .ic { width: 16px; height: 16px; transition: transform .2s; }
.more-btn.open .ic { transform: rotate(180deg); }

.rd-head { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.rd-card { width: 92px; flex: none; transform: rotate(-4deg); animation: cardIn .8s var(--ease) backwards; }
.rd-name { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: anywhere; }
.rd-name.sm { font-size: 19px; margin-top: 4px; }
.rd-key { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--lilac); }
.rd-essence { margin: 24px 0 6px; padding: 2px 0 2px 16px; border-left: 3px solid var(--yellow); font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.rd-essence span { display: block; margin-bottom: 6px; font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--yellow); }
.reading { margin-top: 6px; }
.rd { padding: 16px 0; }
.rd + .rd { border-top: 1.5px solid var(--line); }
.rd h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-family: var(--display); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rd h4 .ic { width: 15px; height: 15px; color: var(--lilac); }
.rd p { font-size: 15.5px; line-height: 1.6; }
.rd.warn h4, .rd.warn h4 .ic { color: var(--coral); }
.rd.step { margin: 8px 0; padding: 16px 18px; border-radius: 20px; background: var(--yellow); color: var(--ink); border-top: 0; }
.rd.step + .rd { border-top: 0; }
.rd.step h4, .rd.step h4 .ic { color: var(--ink); }
.rd.step p { font-weight: 600; }
.rd.ask p { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--lilac); }
.rd-sub { margin-top: 32px; }
.rd-mood { margin-top: 8px; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.25; }

.pos-card { position: relative; margin-top: 14px; padding: 18px; border-radius: 24px; background: var(--bg-2); border: 1.5px solid var(--line); }
.pos-card.glow { border-color: var(--yellow); }
.pos-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pos-head .tmini { width: 56px; transform: rotate(-4deg); }
.pos-card p + p { margin-top: 10px; }
.pos-card p { font-size: 15.5px; line-height: 1.6; }
.lead-l { font-family: var(--display); font-size: 17px !important; line-height: 1.35 !important; font-weight: 600; }
.rd-stepline { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--yellow); color: var(--ink); font-weight: 600; }
.rd-stepline .ic { width: 16px; height: 16px; margin-top: 3px; }
.q-quote { margin-bottom: 12px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--lilac); }
.q-quote.big { font-size: 20px; line-height: 1.3; margin: 8px 6px 6px; color: var(--text); }
.summary { margin-top: 22px; padding: 18px; border-radius: 22px; background: var(--paper); color: var(--ink); }
.summary p { margin-top: 8px; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.4; }
.summary b { font-weight: 800; }
.summary .eyebrow { color: var(--ink); }
.summary .rd-stepline { font-family: var(--body); font-size: 15px; margin-top: 14px; }

/* Ответ на вопрос карте */
.ans { margin-top: 18px; padding: 18px; border-radius: 24px; background: var(--bg-2); border: 1.5px solid var(--line); }
.ans-short { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: -.02em; text-align: center; }
.ans-topic { display: block; width: max-content; max-width: 100%; margin: 10px auto 0; padding: 5px 12px; border-radius: 99px; background: var(--lilac); color: var(--ink); font-family: var(--display); font-size: 9.5px; font-weight: 700; text-transform: uppercase; transform: rotate(-2deg); }
.ans .reading { margin-top: 8px; }
.ans .more-btn { margin-bottom: 4px; }
.past-body { margin-top: 10px; }
.past-body .ans-short { font-size: 18px; text-align: left; }
.past-body .ans-topic { margin-left: 0; }

/* Карта дня: коробка */
.boxscene { position: relative; height: 330px; margin: 18px auto 4px; width: 100%; max-width: 380px; }
.boxscene > .box-back, .boxscene > .box-front { position: absolute; left: 50%; bottom: 0; width: 100%; transform: translateX(-50%); }
.boxscene svg { display: block; width: 100%; height: auto; }
.box-back { z-index: 1; } .box-front { z-index: 3; pointer-events: none; }
.bcard { position: absolute; z-index: 2; width: 96px; left: calc(50% + var(--i) * 98px - 48px); top: 104px; transform: rotate(calc(var(--i) * 7deg)); transition: transform .35s var(--ease), opacity .3s; animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
.bcard:active { transform: rotate(calc(var(--i) * 7deg)) translateY(-8px); }
@keyframes bob { 50% { translate: 0 -5px; } }
.tygydyk .bcard { animation: shuffle .45s ease-in-out 3; pointer-events: none; }
.tygydyk .bcard:nth-of-type(2) { animation-delay: .05s; } .tygydyk .bcard:nth-of-type(3) { animation-delay: .1s; }
@keyframes shuffle { 25% { translate: calc(var(--i) * -60px + 30px) -26px; rotate: -10deg; } 50% { translate: calc(var(--i) * 40px) -8px; rotate: 9deg; } 75% { translate: calc(var(--i) * -20px - 20px) -30px; rotate: -6deg; } }
.tygydyk .box-front, .tygydyk .box-back { animation: boxShake .45s ease-in-out 3; }
@keyframes boxShake { 25% { transform: translateX(-50%) rotate(-1.5deg); } 75% { transform: translateX(-50%) rotate(1.5deg); } }
.picking .bcard:not(.chosen) { opacity: .3; }
.bcard.lifted { transform: translateY(-460px) rotate(0); transition: transform .6s cubic-bezier(.5, 0, .3, 1); }

/* Лапа */
.arm { position: absolute; z-index: 6; width: 64px; height: 234px; top: -380px; pointer-events: none; opacity: 0; transition: transform .42s cubic-bezier(.34, 1.25, .5, 1), opacity .12s; }
.arm svg { width: 100%; height: 100%; display: block; overflow: visible; }
.arm.down { opacity: 1; }
.arm.up { opacity: 0; transform: translateY(0) !important; transition: transform .6s cubic-bezier(.5, 0, .3, 1), opacity .25s .42s; }
.arm .claws { opacity: 0; transition: opacity .15s; }
.arm.claws-out .claws { opacity: 1; }
.boxscene .arm { left: calc(50% + var(--i, 0) * 98px - 32px); }
.boxscene .arm.down { transform: translateY(360px); }

/* ── Да или нет, кубик ─────────────────────────────── */
.verdict { display: flex; justify-content: center; position: relative; }
.verdict .paper { font-size: 52px; font-weight: 800; text-transform: uppercase; padding: 10px 30px 12px; letter-spacing: -.03em; }
.verdict .paper-wrap { transform: rotate(-4deg); animation: slap .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes slap { from { transform: rotate(-14deg) scale(1.5); opacity: 0; } }
.answer { text-align: center; }
.answer h3 { color: var(--yellow); font-size: 12px; }
.answer .paper { font-size: 17px; font-weight: 600; text-transform: none; }
.stage { min-height: 190px; display: grid; place-items: center; perspective: 800px; margin: 10px 0 6px; }
.dice { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.dice .f { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 16px; border-radius: 14px; background: var(--paper); border: 3px solid var(--ink); }
.dice .f1, .dice .f6 { background: var(--yellow); }
.dice .f i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); place-self: center; visibility: hidden; }
.dice .f i.on { visibility: visible; }
.dice .f1 { transform: translateZ(55px); } .dice .f6 { transform: rotateY(180deg) translateZ(55px); }
.dice .f2 { transform: rotateY(90deg) translateZ(55px); } .dice .f5 { transform: rotateY(-90deg) translateZ(55px); }
.dice .f3 { transform: rotateX(90deg) translateZ(55px); } .dice .f4 { transform: rotateX(-90deg) translateZ(55px); }

/* ── Разбор ситуации (МАК) ─────────────────────────── */
.mac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mac-back { aspect-ratio: 5/7; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--paper); transition: transform .2s; animation: rise .5s backwards; }
.mac-back:nth-child(2) { animation-delay: .06s; } .mac-back:nth-child(3) { animation-delay: .12s; } .mac-back:nth-child(4) { animation-delay: .18s; }
.mac-back::after { content: '✦'; font-size: 34px; color: var(--yellow); }
.mac-back:nth-child(2)::after { color: var(--lilac); } .mac-back:nth-child(3)::after { color: var(--coral); } .mac-back:nth-child(4)::after { color: var(--mint); }
.mac-back.picked { transform: scale(1.05) rotate(-2deg); background: var(--paper); }
.mac-card { width: min(230px, 66vw); aspect-ratio: 5/7; margin: 4px auto 0; border-radius: 18px; overflow: hidden; border: 3px solid var(--paper); animation: reveal .7s var(--ease); }
.mac-card svg { width: 100%; height: 100%; display: block; }
.progress { display: flex; gap: 6px; justify-content: center; margin: 16px 0 10px; }
.progress i { width: 24px; height: 5px; border-radius: 5px; background: var(--line); }
.progress i.on { background: var(--yellow); }
.step-q { min-height: 52px; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; text-align: center; letter-spacing: -.01em; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.opt { padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; }
.opt.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.interp p + p { margin-top: 12px; }
.interp p { font-size: 15.5px; line-height: 1.6; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.dots i { font-style: normal; animation: dot 1.2s infinite; opacity: .2; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 50% { opacity: 1; } }

/* ── Ночной дожор ──────────────────────────────────── */
.bowls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.bowl { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; border-radius: 18px; transition: transform .3s var(--ease), opacity .3s; }
.bowl svg { width: 100%; max-width: 110px; }
.bowl span { font-family: var(--display); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.bowl:active { transform: translateY(2px) scale(.97); }
.bowls.picked .bowl:not(.chosen) { opacity: .3; }
.bowl.chosen { transform: translateY(-6px) rotate(-3deg); }
.bowl .food { transform-origin: 80px 46px; transition: transform .7s ease-in, opacity .7s; }
.bowl.eaten .food { transform: scale(.2); opacity: 0; }
.spheres { display: grid; gap: 10px; margin-top: 14px; }
.sphere { padding: 16px 18px; border-radius: 20px; background: var(--bg-2); border: 1.5px solid var(--line); }
.sphere header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sphere h3 { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.sphere p { font-size: 15px; line-height: 1.55; }
.lvl { display: flex; gap: 4px; }
.lvl i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.lvl i.on { background: var(--yellow); border-color: var(--yellow); }

/* ── Драка с тапком ────────────────────────────────── */
.slippers { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sl { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .4s var(--ease), opacity .4s; }
.sl-art { width: 74px; transition: transform .3s; }
.sl:first-child .sl-art { transform: rotate(-10deg); } .sl:nth-child(2) .sl-art { transform: rotate(9deg); }
.sl-art svg { display: block; width: 100%; }
.sl-in { text-align: center; padding: 12px 10px; font-size: 14.5px; }
.sl .scratch { opacity: 0; transition: opacity .2s .1s; }
.slippers.tense .sl-art { animation: tense .25s ease-in-out infinite; }
@keyframes tense { 50% { translate: 0 -2px; } }
.sl.hit .sl-art { animation: maul .6s ease-out; transform: rotate(-24deg) translateY(10px); }
.sl.hit .scratch { opacity: 1; }
.sl.spared { opacity: .4; }
@keyframes maul { 20% { transform: rotate(18deg) scale(1.1); } 45% { transform: rotate(-30deg) translateY(8px); } 70% { transform: rotate(-14deg); } }
.slippers .arm { left: calc(25% + var(--s, 0) * 50% - 32px); }
.slippers .arm.down { transform: translateY(250px); }

/* ── Наставник и колесо философов ──────────────────── */
.muted-s { margin: 4px 2px 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.grp + .muted-s { margin-top: 6px; }
.mentor-now { margin-top: 8px; padding: 20px 18px; border-radius: 24px; background: var(--paper); color: var(--ink); }
.mentor-now .eyebrow { color: var(--ink); white-space: normal; }
.mentor-now .rd-name { color: var(--ink); }
.mentor-style { margin-top: 4px; font-size: 14px; opacity: .65; }
.mentor-now .sage-q { margin-top: 14px; }
.mentor-cat { margin-top: 12px; font-size: 14.5px; line-height: 1.5; }
.mentor-cat b { font-weight: 700; }
.wheel-wrap { position: relative; width: min(320px, 84vw); aspect-ratio: 1; margin: 22px auto 0; }
.wheel { display: block; width: 100%; height: 100%; will-change: transform; }
.wseg { stroke: var(--ink); stroke-width: 1.2; }
.wseg.s0 { fill: var(--yellow); } .wseg.s1 { fill: var(--lilac); } .wseg.s2 { fill: var(--coral); } .wseg.s3 { fill: var(--mint); }
.wname { fill: var(--ink); font-family: var(--display); font-size: 6.6px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.wpeg { fill: var(--ink); }
.wrim { fill: none; stroke: var(--paper); stroke-width: 3; }
.whub-bg { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.wheel-hub .cat-av { width: 100%; height: 100%; border-color: var(--ink); }
.wheel-ptr { position: absolute; left: 50%; top: -12px; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--paper); }
.phil-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.phil { padding: 14px 12px; border-radius: 18px; text-align: left; background: var(--bg-2); border: 1.5px solid var(--line); }
.phil b { display: block; font-family: var(--display); font-size: 13.5px; font-weight: 700; line-height: 1.15; }
.phil span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.phil small { display: block; margin-top: 6px; font-size: 11px; color: var(--line-2); }
.phil.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.phil.on span, .phil.on small { color: var(--ink); opacity: .7; }
.phil:active { transform: scale(.98); }

/* ── Оракул ────────────────────────────────────────── */
.odeck { position: relative; width: 206px; height: 320px; margin: 18px auto 0; perspective: 900px; }
.ostack { position: absolute; inset: 0; }
.ocard { position: absolute; left: 0; top: 0; width: 206px; height: 309px; border-radius: 18px; overflow: hidden; }
.ocard.back { background: var(--bg-2); border: 2.5px solid var(--paper); transform: translate(calc(var(--k) * 4px), calc(var(--k) * -4px)) rotate(calc(var(--k) * -2deg)); }
.ocard.back.pulling { transition: transform .6s cubic-bezier(.5, 0, .3, 1), opacity .6s; transform: translateY(-40px) rotateY(90deg); opacity: .4; }
.ocard.face { z-index: 3; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); outline: 2.5px solid var(--paper); animation: oflip .7s var(--ease) both; }
.ocard.face.away { transition: transform .4s, opacity .4s; transform: translateX(120px) rotate(12deg); opacity: 0; }
@keyframes oflip { from { transform: rotateY(-90deg) translateY(-20px); opacity: .3; } }
.ob, .of { position: absolute; inset: 0; display: grid; place-items: center; }
.ob-ring { width: 118px; height: 118px; border-radius: 50%; border: 2px dashed var(--line-2); }
.ob-star { position: absolute; font-size: 34px; color: var(--yellow); }
.ob-t { position: absolute; bottom: 24px; font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.of { grid-template-rows: auto 1fr auto auto; padding: 20px 14px 22px; text-align: center; }
.of-n { font-family: var(--display); font-size: 11px; font-weight: 800; }
.enso { width: 110px; height: 110px; color: var(--ink); align-self: center; justify-self: center; background: var(--yellow); border-radius: 50%; border: 2.5px solid var(--ink); padding: 10px; }
.of-t { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -.02em; }
.of-w { margin-top: 8px; font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1; }
.src { margin: -2px 0 0 19px; font-size: 12px; color: var(--muted); }

/* ── Спор философов ────────────────────────────────── */
.deb-q { margin: 8px 4px 0; font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.12; text-align: center; text-transform: uppercase; letter-spacing: -.02em; }
.deb { display: grid; margin-top: 20px; }
.deb-card { position: relative; display: block; width: 100%; padding: 18px; border-radius: 22px; text-align: left; background: var(--bg-2); border: 1.5px solid var(--line); transition: transform .2s, opacity .3s; }
.deb-card q { display: block; font-family: var(--display); font-weight: 600; font-size: 16.5px; line-height: 1.35; letter-spacing: -.01em; quotes: "«" "»"; }
.deb-card b { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--lilac); }
.deb-card small { display: block; font-size: 12px; color: var(--muted); }
.deb-card:not([disabled]):active { transform: scale(.98); }
.deb-card.mine { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.deb-card.mine b, .deb-card.mine small { color: var(--ink); }
.deb-card.other { opacity: .55; }
.deb-mine { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.deb-res { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 12px; }
.deb-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.deb-card.mine .deb-bar { background: rgba(19, 18, 16, .2); }
.deb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text); transform-origin: left; animation: grow .9s var(--ease) both; }
.deb-card.mine .deb-bar i { background: var(--ink); }
@keyframes grow { from { transform: scaleX(0); } }
.deb-pct { font-family: var(--display); font-weight: 800; font-size: 15px; }
.deb-vs { display: grid; place-items: center; height: 36px; }
.deb-vs span { padding: 3px 14px; border-radius: 99px; background: var(--coral); color: var(--ink); font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1.1; transform: rotate(-4deg); }
.cat-ask { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 22px; }
.cat-ask .cat-av { width: 50px; height: 50px; flex: none; }
.cat-ask p { font-size: 14px; color: var(--muted); }
.cat-ask b { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--text); }

/* ── История ───────────────────────────────────────── */
.coll-head { margin: 22px 0 6px; }
.coll-count { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); }
.coll-count b { font-size: 60px; font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.coll-count span { font-size: 22px; font-weight: 700; color: var(--muted); }
.coll-head p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.goldbar { height: 8px; margin-top: 14px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.goldbar i { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.coll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.coll > div { aspect-ratio: 5/7; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; background: var(--paper); color: var(--ink); }
.coll > div svg { width: 84%; }
.coll > div small { margin-top: 6px; font-family: var(--display); font-size: 9.5px; font-weight: 700; text-transform: uppercase; text-align: center; }
.coll > div.locked { background: transparent; border: 1.5px dashed var(--line-2); }
.coll > div.locked .ic { width: 24px; height: 24px; color: var(--line-2); }
.h-day { margin: 24px 2px 8px; font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--yellow); }
.list { padding: 0; }
.h-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; text-align: left; }
.h-item + .h-item { border-top: 1.5px solid var(--line); }
.h-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); }
.h-ico .ic { width: 18px; height: 18px; }
.h-body { flex: 1; min-width: 0; }
.h-body b { display: block; font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1.3; }
.h-body span { font-size: 13px; color: var(--muted); }
.h-more { display: none; margin-top: 8px; font-size: 14px; line-height: 1.5; }
.h-item.open .h-more { display: block; }
.empty { text-align: center; padding: 20px 10px; }
.empty-cat { width: 110px; height: 110px; margin: 10px auto 0; }
.empty .frame { margin-bottom: 14px; }

/* ── Профиль ───────────────────────────────────────── */
.prof { display: flex; align-items: center; gap: 16px; }
.prof .prof-cat { width: 80px; height: 80px; }
.prof .eyebrow { white-space: normal; }
.prof .rd-name { font-size: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.stat { padding: 14px 12px; border-radius: 18px; border: 1.5px solid var(--line); }
.stat:nth-child(1) { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-family: var(--display); font-size: 8.5px; font-weight: 700; text-transform: uppercase; opacity: .75; }

/* ── Таббар ────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 496px);
  bottom: calc(10px + var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
  height: var(--tabbar); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
  border-radius: 999px; background: var(--bg-2); border: 1.5px solid var(--line); z-index: 10;
}
body.focus .tabbar { display: none; }
body.focus .view { padding-bottom: calc(24px + var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; font-family: var(--display); font-size: 8.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.tab .ic { width: 21px; height: 21px; }
.tab.active { background: var(--yellow); color: var(--ink); }
.tab .dot { position: absolute; top: 8px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

/* ── Шторка и оплата ───────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; display: none; }
.sheet-wrap.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8, 8, 7, .75); animation: fadebg .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 90%; overflow-y: auto;
  padding: 10px var(--pad) calc(24px + var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0; background: var(--bg-2); border-top: 1.5px solid var(--line-2); animation: up .32s var(--ease);
}
.sheet h2 { font-size: 20px; }
.sheet h3 { margin-bottom: 4px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 10px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fadebg { from { opacity: 0; } }
.sheet-cat .cat-face { width: 70px; height: 70px; margin: 6px auto 12px; }
.sheet-title { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.05; text-align: center; text-transform: uppercase; letter-spacing: -.02em; }
.perks { list-style: none; margin: 16px 0; }
.perks li { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-weight: 600; }
.perks li .ic { width: 22px; height: 22px; color: var(--yellow); }
.perks li span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.offer { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border-radius: 20px; text-align: left; background: var(--bg-3); border: 1.5px solid var(--line); }
.offer + .offer { margin-top: 8px; }
.offer .o-body { flex: 1; }
.offer .o-body b { display: block; font-family: var(--display); font-size: 13px; font-weight: 700; }
.offer .o-body span { font-size: 12.5px; color: var(--muted); }
.offer .price { font-family: var(--display); font-weight: 800; white-space: nowrap; }
.offer.main { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.offer.main .o-body span { color: var(--ink); opacity: .7; }
.hours { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hours button { padding: 9px 13px; border-radius: 99px; border: 1.5px solid var(--line-2); font-family: var(--display); font-size: 12px; font-weight: 700; }
.hours button.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.toast { position: fixed; left: 50%; top: calc(14px + var(--top)); transform: translateX(-50%); z-index: 30; max-width: 90%; padding: 10px 16px; border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; animation: fade .3s; }
.skeleton { height: 140px; border-radius: var(--r); background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 380px) {
  .daycard { grid-template-columns: 1fr 82px; padding: 18px 14px 18px 18px; }
  .dc-card { width: 82px; }
  .dc-cta { font-size: 9.5px; padding: 9px 12px; }
  .dc-title { font-size: 23px; }
}

/* ── Язык ──────────────────────────────────────────── */
.orb.lang { font-family: var(--display); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 99px; border: 1.5px solid var(--line-2); }
.seg-mini i { font-style: normal; padding: 3px 8px; border-radius: 99px; font-family: var(--display); font-size: 10px; font-weight: 700; color: var(--muted); }
.seg-mini i.on { background: var(--yellow); color: var(--ink); }
/* В английском — английские кавычки */
html[lang="en"] .sage-q, html[lang="en"] .deb-card q { quotes: "“" "”"; }

/* ─── Угостить кота ─────────────────────────────────────────────────────── */
.treat h3 { margin-top: 6px; }
.treat .muted { margin-top: 4px; }
.treats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.treat-b { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 12px; border-radius: 18px; background: var(--bg-3); border: 1.5px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.treat-b:active { transform: scale(.96); border-color: var(--yellow); }
.treat-b svg { width: 64px; height: auto; }
.treat-b b { font-size: 13px; line-height: 1.2; text-align: center; }
.treat-b span { font-size: 13px; color: var(--yellow); font-weight: 700; }
.treat-note { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.treat-note .cat-av { flex: none; }

.btn-stack { display: grid; gap: 10px; }

/* ─── Подсказка дня: 3 шага ─────────────────────────────────────────────── */
.path { margin-top: 26px; padding: 20px 16px 16px; border-radius: 26px; background: var(--bg-2); border: 1.5px solid var(--line); }
.path-h { display: flex; justify-content: space-between; align-items: center; }
.path-n { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--yellow); }
.path-t { margin-top: 6px; font-size: 22px; }
.path-bar { height: 6px; margin: 14px 0 10px; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.path-bar i { display: block; height: 100%; background: var(--yellow); border-radius: 6px; transition: width .6s var(--ease); }
.pstep { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 12px; align-items: center; width: 100%; padding: 12px 6px; text-align: left; border-top: 1px solid var(--line); }
.pstep:first-of-type { border-top: 0; }
.pnum { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; border: 1.5px solid var(--line-2); color: var(--muted); }
.pstep.cur .pnum { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.pstep.done .pnum { background: var(--mint, #8fe0bf); border-color: transparent; color: var(--ink); }
.pbody b { display: block; font-family: var(--display); font-size: 14px; font-weight: 700; }
.pbody small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstep.cur .pbody b { color: var(--yellow); }
.pstep.done .pbody b { color: var(--text); opacity: .75; }
.pgo .ic { width: 18px; height: 18px; color: var(--yellow); }
.pstep:not(.cur) .pgo .ic { color: var(--muted); }
.path.done { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.path.done .eyebrow, .path.done .path-n { color: var(--ink); }
.path.done .left { color: var(--ink); opacity: .6; }
.psum { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.psum li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 15px; line-height: 1.4; }
.psum small { opacity: .65; }
.pstreak { margin-top: 12px; font-family: var(--hand); font-size: 22px; font-weight: 700; }
.sheet-quote { display: block; margin-top: 12px; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.25; text-align: center; quotes: "«" "»"; }
.pchoose { display: grid; gap: 8px; }
.pchoose .offer .ic { width: 18px; height: 18px; flex: none; }
.daycard[hidden] { display: none; }

/* ─── Кот по времени суток ──────────────────────────────────────────────── */
.sleepy .eyes { opacity: 0; }
.sleepy .eyes-shut { opacity: 1; }
.frame.stretch .cat-svg { animation: catIn .7s var(--ease) backwards, stretch 1.6s ease-in-out .2s; }
@keyframes stretch { 30% { transform: translateX(-50%) scale(1.06, .9); } 60% { transform: translateX(-50%) scale(.97, 1.05); } }
.tod-evening .eyes { animation: none; transform: scaleY(.55); }      /* вечером щурится */
.tod-evening.purring .eyes, .tod-evening.blink-now .eyes { transform: none; }
.zzz { position: absolute; right: 18%; top: 14%; pointer-events: none; font-family: var(--hand); font-weight: 700; color: var(--lilac); }
.zzz i { position: absolute; font-style: normal; opacity: 0; animation: zz 3s ease-in infinite; }
.zzz i:nth-child(1) { font-size: 18px; }
.zzz i:nth-child(2) { font-size: 24px; animation-delay: 1s; }
.zzz i:nth-child(3) { font-size: 30px; animation-delay: 2s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -46px); } }
.frame:not(.sleepy) .zzz { display: none; }

/* ─── Скрытый второй слой ───────────────────────────────────────────────── */
.secret { position: relative; padding: 14px 16px; border-radius: 18px; background: var(--bg-3); border: 1.5px dashed var(--line-2); overflow: hidden; }
.secret.on-paper { background: rgba(19, 18, 16, .06); border-color: rgba(19, 18, 16, .25); color: var(--ink); }
.sage-cat .secret { grid-column: 1 / 3; }
.sec-eb { display: block; font-family: var(--hand); font-size: 20px; font-weight: 700; line-height: 1; color: var(--yellow); }
.secret.on-paper .sec-eb { color: var(--ink); }
.sec-text { margin-top: 6px; font-size: 15px; line-height: 1.45; filter: blur(6px); user-select: none; transition: filter .6s ease; }
.secret.open .sec-text, .secret.opening .sec-text { filter: none; user-select: text; }
.sec-pet { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 14px; text-align: left; background: var(--yellow); color: var(--ink); touch-action: none; -webkit-touch-callout: none; user-select: none; overflow: hidden; }
.sec-pet .cat-face { width: 36px; height: 36px; border-color: var(--ink); }
.sec-pet b { display: block; font-family: var(--display); font-size: 13px; }
.sec-pet small { display: block; font-size: 12px; opacity: .7; }
.sec-ring { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--ink); opacity: .35; }
.sec-pet.holding .sec-ring { width: 100%; transition: width .9s linear; }
.sec-pet.holding .cat-av .eyes { opacity: 0; } .sec-pet.holding .cat-av .eyes-shut { opacity: 1; }
.sec-tired { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sec-tired .cat-face { width: 32px; height: 32px; }
.secret.on-paper .sec-tired { color: var(--ink); opacity: .7; }
.sec-paw { position: absolute; top: 40%; left: -30%; color: var(--yellow); pointer-events: none; animation: swipe .7s ease-in-out forwards; }
.secret.on-paper .sec-paw { color: var(--ink); }
.sec-paw .ic { width: 46px; height: 46px; }
@keyframes swipe { 0% { left: -20%; transform: rotate(-20deg); } 60% { opacity: 1; } 100% { left: 110%; transform: rotate(20deg); opacity: 0; } }

/* ─── Описание и знакомство ─────────────────────────────────────────────── */
.about { margin: 14px auto 0; max-width: 330px; text-align: center; font-size: 15px; line-height: 1.45; color: var(--muted); }
.about-link { display: block; margin: 8px auto 0; font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.intro .frame.small { margin-top: 4px; }
.intro-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.intro-list li { padding: 11px 14px; border-radius: 14px; background: var(--bg-3); font-size: 14.5px; line-height: 1.35; }
.intro-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.intro-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.intro-dots i.on { width: 20px; border-radius: 4px; background: var(--yellow); }
.intro-skip { display: block; margin: 10px auto 0; font-size: 14px; color: var(--muted); }
.pstep.pulse { animation: pstepPulse .8s ease-in-out 3; border-radius: 14px; }
@keyframes pstepPulse { 50% { background: rgba(255, 212, 58, .14); } }
.eyebrow.center-block { display: block; text-align: center; }
.secret:not(.open) { cursor: pointer; -webkit-touch-callout: none; user-select: none; }

/* ─── Спроси кота: чат ──────────────────────────────────────────────────── */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 150px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 20px; font-size: 15.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .35s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--yellow); color: var(--ink); border-bottom-right-radius: 6px; }
.msg.cat { align-self: flex-start; background: var(--bg-2); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.msg.cat.first { margin-top: 6px; }
.msg-card { align-self: flex-start; display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--bg-3); max-width: 86%; }
.mc-art { flex: none; width: 46px; transition: transform .5s var(--ease); }
.mc-art .tarot-art { display: block; width: 100%; height: auto; }
.mc-art.rev { transform: rotate(180deg); }
.mc-art.flip { animation: cardFlip 1s ease-in-out infinite; }
@keyframes cardFlip { 50% { transform: rotateY(90deg); } }
.mc-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mc-t small { font-family: var(--hand); font-size: 18px; font-weight: 700; line-height: 1; color: var(--yellow); }
.mc-t b { font-family: var(--display); font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.mc-t em { font-style: normal; font-size: 12px; color: var(--coral); }
.mc-t span { font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips .chip { text-align: left; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); width: min(100%, 520px); bottom: 0; z-index: 9; padding: 8px 16px calc(12px + var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 78%, transparent); }
.chat-left { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.chat-left a { color: var(--lilac); }
.comp-row { display: flex; align-items: flex-end; gap: 8px; }
.comp-row textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; padding: 12px 16px; border-radius: 23px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; }
.comp-row textarea:focus { outline: none; border-color: var(--yellow); }
.send { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.send:disabled { opacity: .4; }
.send .ic { width: 20px; height: 20px; }
#page-mentor { overflow-x: clip; } /* вращающееся колесо не должно давать горизонтальную прокрутку */

/* ─── Лазерная указка ───────────────────────────────────────────────────── */
.arena { position: relative; height: 300px; border-radius: 26px; background: var(--bg-2); border: 1.5px solid var(--line); overflow: hidden; touch-action: manipulation; }
.spot { position: absolute; transform: translate(-50%, -50%); width: max-content; max-width: 40%; padding: 8px 12px; border-radius: 16px; background: var(--bg-3); border: 1.5px solid var(--line-2); font-family: var(--display); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; overflow-wrap: break-word; transition: background .3s, color .3s, transform .3s var(--ease); }
.spot.caught { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: translate(-50%, -50%) scale(1.12); }
.laser-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 4px rgba(255, 59, 48, .25), 0 0 18px 6px rgba(255, 59, 48, .55); transition: transform .3s cubic-bezier(.3, .9, .3, 1); z-index: 3; pointer-events: none; }
.arena:not(.hunting) .laser-dot { animation: dotIdle 2.4s ease-in-out infinite; }
@keyframes dotIdle { 50% { box-shadow: 0 0 0 7px rgba(255, 59, 48, .15), 0 0 26px 8px rgba(255, 59, 48, .45); } }
.arena-cat { position: absolute; left: -28px; top: -28px; z-index: 2; transition: transform .45s cubic-bezier(.4, .1, .3, 1); pointer-events: none; }
.arena-cat .cat-face { width: 56px; height: 56px; }
.arena.hunting .arena-cat .cat-svg { animation: catRun .3s ease-in-out infinite; }
@keyframes catRun { 50% { transform: translateY(-4px) rotate(-6deg); } }
.arena-cat.pounce .cat-av { animation: pounce .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pounce { 40% { transform: scale(1.35) translateY(-10px); } 100% { transform: scale(1); } }
.laser-inputs { display: grid; gap: 8px; }
.li-row { display: flex; gap: 8px; align-items: center; }
.li-row .input { flex: 1; margin: 0; }
.li-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--muted); font-size: 20px; }
.li-add { justify-self: start; padding: 6px 2px; color: var(--lilac); font-family: var(--display); font-size: 13px; font-weight: 700; }
.laser-res { margin-top: 18px; }

/* ─── Встряхни кота: кот кувыркается, ответ выкатывается ────────────────── */
.frame.tumble .cat-svg { animation: catIn .7s var(--ease) backwards, tumble .7s cubic-bezier(.4, 0, .3, 1) infinite; }
@keyframes tumble { 0% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(-40%) translateY(-8px) rotate(90deg); } 50% { transform: translateX(-50%) rotate(180deg); } 75% { transform: translateX(-60%) translateY(-8px) rotate(270deg); } 100% { transform: translateX(-50%) rotate(360deg); } }
.verdict.roll { animation: rollIn .7s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes rollIn { from { transform: translateY(-40px) rotate(-25deg) scale(.6); opacity: 0; } }
.spot i { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; }

/* ── Новый год: баннер, снег, расклад на год ───────────── */
.ny-banner { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 16px 12px 16px 18px;
  border-radius: var(--r); background: var(--coral); color: var(--ink); text-align: left; overflow: hidden; border: 2px solid var(--ink); outline: 2px solid var(--coral); }
.ny-banner:active { transform: translateY(2px); }
.nyb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nyb-t small { font-family: var(--hand); font-size: 21px; font-weight: 700; line-height: 1; }
.nyb-t b { font-family: var(--display); font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.nyb-t span { font-size: 13px; line-height: 1.3; opacity: .8; }
.nyb-cards { position: relative; flex: none; width: 84px; height: 74px; }
.nyb-cards .tarot-art { position: absolute; left: 22px; top: 4px; width: 40px; height: auto; transform-origin: 50% 100%; }
.nyb-cards .tarot-art:nth-child(1) { transform: rotate(-18deg); }
.nyb-cards .tarot-art:nth-child(3) { transform: rotate(18deg); }

.snow { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.snow i { position: absolute; top: -12px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--paper); opacity: .55;
  animation: snowfall var(--t) linear var(--dl) infinite; }
@keyframes snowfall { to { transform: translate(var(--x), 110vh); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } }
.ny-hat { transform-box: fill-box; }

.year-fan { position: relative; height: 176px; margin: 22px auto 0; }
.year-fan span { position: absolute; left: 50%; top: 8px; width: 82px; margin-left: -41px; transform-origin: 50% 130%;
  transform: rotate(calc(var(--i) * 9deg)); }
.year-fan .tarot-art { display: block; width: 100%; height: auto; }
.year-fan.deal span { animation: fanDeal 1s var(--ease) infinite alternate; animation-delay: calc((var(--i) + 3) * 70ms); }
@keyframes fanDeal { to { transform: rotate(calc(var(--i) * 15deg)) translateY(-10px); } }
.year-wish { display: block; margin-top: 10px; }
.year-wish > span { display: block; margin: 0 0 6px 4px; font-size: 13px; color: var(--muted); }

.year-head { text-align: center; margin-top: 6px; }
.yc { display: inline-block; flex: none; }
.yc .tarot-art { display: block; width: 100%; height: auto; }
.yc.rev .tarot-art { transform: rotate(180deg); }
.yc.big { display: block; width: 138px; margin: 14px auto 4px; animation: catIn .7s var(--ease) backwards; }
.year-head .slab-title small { font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.year-words { justify-content: center; margin-top: 12px; }
.year-words .chip { border-color: var(--yellow); color: var(--yellow); }
.year-theme { margin-top: 12px; font-size: 16px; line-height: 1.55; text-align: left; }
.year-months { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ym { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--bg-2); border: 1.5px solid var(--line); }
.ym .yc.sm { width: 52px; }
.ym-t { flex: 1; min-width: 0; }
.ym-m { display: block; font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1; color: var(--yellow); }
.ym-t b { display: block; margin-top: 4px; font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1.25; }
.ym-t b small { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--muted); }
.ym-t p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
.ym-badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.ym-badge.best { background: color-mix(in srgb, var(--yellow) 18%, transparent); color: var(--yellow); }
.ym-badge.hard { background: color-mix(in srgb, var(--lilac) 18%, transparent); color: var(--lilac); }
/* ритм года */
.pulse-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 118px; margin: 14px 0 12px; align-items: end; }
.pb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; min-width: 0; }
.pb i { position: relative; display: block; width: 100%; height: var(--h); max-width: 20px; border-radius: 6px 6px 3px 3px;
        background: var(--line-2); font-style: normal; font-size: 10px; text-align: center; color: var(--ink); line-height: 16px;
        animation: pbUp .8s var(--ease) backwards; transform-origin: bottom; }
.pb.best i { background: var(--yellow); }
.pb.hard i { background: var(--lilac); }
.pb span { font-size: 10px; color: var(--muted); text-transform: lowercase; white-space: nowrap; }
.pb.best span, .pb.hard span { color: var(--text); font-weight: 700; }
@keyframes pbUp { from { transform: scaleY(0); } }
.pulse-l { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pulse-l b { text-align: right; }
.pulse .small { font-size: 13px; }
/* желание */
.year-wishbox { padding: 16px 18px; border-radius: var(--r); border: 1.5px dashed var(--line-2); }
.year-wishbox .yw-q { margin: 6px 0 8px; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.3; }
.year-wishbox p { font-size: 14.5px; line-height: 1.5; }
/* закрытые месяцы: рубашкой вверх */
.ygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0; }
.yb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; border-radius: 16px;
      background: var(--bg-2); border: 1.5px solid var(--line); color: var(--text); font: inherit; min-width: 0; }
.yb .yb-c { display: block; width: 58%; max-width: 64px; }
.yb .yb-c .tarot-art { display: block; width: 100%; height: auto; }
.yb b { font-family: var(--hand); font-size: 19px; line-height: 1; color: var(--yellow); margin-top: 2px; }
.yb .yb-s { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.yb.best { border-color: var(--yellow); }
.yb.hard { border-color: var(--lilac); }
.yb.wig { animation: ybWig .45s var(--ease); }
@keyframes ybWig { 25% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }
.yb-all { justify-content: center; border-style: dashed; border-color: var(--yellow); }
.yb-plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.yb-all .yb-s { color: var(--text); font-weight: 700; }
.yu-list { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.yu-list li { margin: 2px 0; }
.year-unlock { border-color: var(--coral); }
.year-unlock .yu-t { margin-top: 6px; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.15; }
.year-unlock .muted { margin-top: 6px; font-size: 14px; }
.year-advice { text-align: center; }
.year-advice .paper-wrap { transform: rotate(-1.5deg); }
.year-advice .paper { font-family: var(--body); font-weight: 600; font-size: 15.5px; line-height: 1.45; padding: 14px 18px; text-align: left; }
.ya-eb { display: block; font-family: var(--hand); font-size: 21px; font-weight: 700; line-height: 1; margin-bottom: 6px; }

/* ─── Ярмарка предсказаний ─────────────────────────────────────────────── */
.fair-banner { background: linear-gradient(120deg, var(--coral), #ff9a5c); color: var(--ink); }
.fb-emo { position: relative; flex: none; width: 84px; height: 70px; font-size: 40px; line-height: 70px; text-align: center; }
.fb-emo i { position: absolute; font-style: normal; font-size: 26px; line-height: 1; }
.fb-emo i:nth-child(1) { left: -2px; top: 2px; transform: rotate(-14deg); }
.fb-emo i:nth-child(2) { right: -2px; bottom: 2px; transform: rotate(12deg); }
.fair-prog { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.fp-stamps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fp-stamps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--line-2); font-size: 18px; filter: grayscale(1); opacity: .35; }
.fp-stamps span.on { filter: none; opacity: 1; border: 1.5px solid var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, transparent); }
.fair-prog .muted { font-size: 13px; line-height: 1.4; }
.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ftile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 12px; min-height: 148px; text-align: left;
         border-radius: 20px; background: var(--bg-2); border: 1.5px solid var(--line); color: var(--text); font: inherit; }
.ftile:active { transform: translateY(2px); }
.ft-e { font-size: 38px; line-height: 1; margin-bottom: 6px; }
.ftile b { font-family: var(--display); font-size: 14.5px; line-height: 1.2; }
.ft-s { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.ft-b { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--bg-3); color: var(--muted); }
.ft-b.new { background: var(--yellow); color: var(--ink); }
.ft-b.done { background: color-mix(in srgb, var(--mint) 22%, transparent); color: var(--mint); }
.booth { margin-top: 6px; }
.fair-out.pop { animation: foPop .6s var(--ease) both; }
@keyframes foPop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
/* печенька */
.cookie-big { display: block; margin: 26px auto 8px; background: none; border: 0; font-size: 130px; line-height: 1; cursor: pointer; }
.cookie-big span { display: inline-block; }
.cookie-big.hit span { animation: ckHit .3s var(--ease); }
.cookie-big.crack span { animation: ckCrack .7s var(--ease) forwards; }
@keyframes ckHit { 30% { transform: rotate(-9deg) scale(.94); } 70% { transform: rotate(6deg) scale(1.03); } }
@keyframes ckCrack { 40% { transform: scale(1.15) rotate(-6deg); } to { transform: scale(.2); opacity: 0; } }
.fo-cookie { text-align: center; }
.ck-whole { display: block; font-size: 72px; line-height: 1; margin: 6px 0 -14px; transform: rotate(-12deg); }
.ck-strip { margin: 0 auto; max-width: 340px; padding: 16px 18px; background: #fbf7ec; color: #2a2620; border-radius: 4px; font-size: 15.5px; line-height: 1.5;
            box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: rotate(-1.5deg); border-left: 3px dashed #e3d7b8; border-right: 3px dashed #e3d7b8; }
/* книга */
.bk-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.bk-pick label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.bk-book { display: grid; place-items: center; height: 120px; margin-top: 10px; perspective: 600px; }
.bk-cover { font-size: 90px; line-height: 1; transition: transform .9s var(--ease); }
.bk-book.open .bk-cover { transform: rotateY(160deg) scale(1.1); }
.fo-book { padding: 22px 20px; border-radius: 6px; background: #f4ecd8; color: #2b2418; box-shadow: 0 10px 28px rgba(0,0,0,.28); font-family: Georgia, 'Times New Roman', serif; }
.fb-meta { display: block; font-family: var(--body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a7a5a; }
.fo-book blockquote { margin: 10px 0 8px; font-size: 20px; line-height: 1.4; font-style: italic; }
.fo-book cite { font-size: 13.5px; font-style: normal; color: #6b5d43; }
/* автомат */
.slot-m { margin-top: 18px; padding: 14px 12px 16px; border-radius: 22px; background: linear-gradient(180deg, var(--coral), #d9534f); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }
.slot-top { text-align: center; font-family: var(--display); font-weight: 800; letter-spacing: .12em; color: var(--ink); margin-bottom: 10px; font-size: 13px; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.reel { display: grid; place-items: center; min-height: 86px; padding: 6px; border-radius: 12px; background: #fbf7ec; color: #1d1b18; text-align: center; overflow: hidden;
        box-shadow: inset 0 8px 10px -6px rgba(0,0,0,.35), inset 0 -8px 10px -6px rgba(0,0,0,.35); }
.reel b { font-family: var(--display); font-size: 14px; line-height: 1.2; word-break: break-word; }
.reel.stop { animation: reelStop .35s var(--ease); }
@keyframes reelStop { 40% { transform: translateY(5px); } }
.fo-slot .reels { padding: 12px; border-radius: 20px; background: linear-gradient(180deg, var(--coral), #d9534f); }
.fs-line { margin-top: 14px; text-align: center; font-size: 16px; line-height: 1.5; }
.fs-line b { color: var(--yellow); }
/* лотерея */
.tk-wrap { position: relative; margin-top: 18px; }
.fo-ticket { position: relative; padding: 20px 20px 22px; border-radius: 14px; text-align: center; color: #1d1b18;
             background: radial-gradient(circle at 0 50%, transparent 12px, #ffe27a 13px) left / 51% 100% no-repeat,
                         radial-gradient(circle at 100% 50%, transparent 12px, #ffe27a 13px) right / 51% 100% no-repeat; }
.tk-h { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.tk-p { display: block; margin: 10px 0 8px; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.fo-ticket p { font-size: 14.5px; line-height: 1.5; }
.fo-ticket.blank .tk-p { font-size: 54px; }
.tk-cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; touch-action: none; cursor: crosshair; }
/* пейджер */
.fo-pager { margin: 18px auto 0; max-width: 340px; padding: 16px 16px 12px; border-radius: 22px; background: #2b2d33; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.35); }
.pg-screen { min-height: 120px; padding: 12px 14px; border-radius: 8px; background: #9fbf7a; color: #1e2a12; font-family: 'Courier New', monospace; box-shadow: inset 0 3px 8px rgba(0,0,0,.35); }
.pg-screen small { display: block; font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 6px; }
.pg-screen p { font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: .02em; }
.pg-screen.blink p { animation: pgBlink 1s steps(2) infinite; }
@keyframes pgBlink { 50% { opacity: .15; } }
.pg-brand { display: block; margin-top: 8px; text-align: center; font-size: 10px; letter-spacing: .3em; color: #8b8f99; }
/* газета */
.zod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.zod button { padding: 12px 4px; border-radius: 12px; background: #efe6d2; color: #2b2418; border: 0; font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.zod button.on { background: var(--yellow); }
.fo-paper { padding: 16px 18px 18px; background: #efe6d2; color: #26211a; font-family: Georgia, 'Times New Roman', serif; border-radius: 2px;
            box-shadow: 0 10px 28px rgba(0,0,0,.28); transform: rotate(.8deg); clip-path: polygon(0 2%, 4% 0, 12% 1.5%, 22% 0, 35% 1%, 50% 0, 63% 1.5%, 78% 0, 90% 1%, 100% 0, 99% 50%, 100% 100%, 85% 98.5%, 70% 100%, 50% 98.5%, 30% 100%, 12% 98.5%, 0 100%, 1% 50%); }
.np-head { padding-bottom: 6px; border-bottom: 3px double #26211a; text-align: center; font-weight: 900; font-size: 24px; letter-spacing: .06em; }
.np-head small { display: block; font-size: 10.5px; font-weight: 400; letter-spacing: .04em; margin-top: 2px; }
.fo-paper h3 { margin: 12px 0 6px; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.fo-paper p { font-size: 15px; line-height: 1.5; margin-top: 6px; text-align: justify; }
.np-lucky { padding-top: 8px; border-top: 1px solid #b9ab8c; font-style: italic; }
/* мандарин */
.mand { position: relative; display: block; width: 190px; height: 190px; margin: 26px auto 8px; border: 0; border-radius: 50%; cursor: pointer;
        background: radial-gradient(circle at 40% 35%, #ffd08a, #f39a2b 70%); box-shadow: 0 12px 30px rgba(243,154,43,.35); }
.mand i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb347, #ef7d16 75%);
          clip-path: polygon(50% 50%, calc(50% + 80% * cos(calc(var(--i) * 60deg))) calc(50% + 80% * sin(calc(var(--i) * 60deg))), calc(50% + 80% * cos(calc(var(--i) * 60deg + 61deg))) calc(50% + 80% * sin(calc(var(--i) * 60deg + 61deg))));
          transition: transform .45s var(--ease), opacity .45s; }
.mand i.off { transform: translate(calc(40px * cos(calc(var(--i) * 60deg + 30deg))), calc(40px * sin(calc(var(--i) * 60deg + 30deg)))) rotate(25deg); opacity: 0; }
.md-leaf { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 30px; }
.fo-mand { text-align: center; }
.md-svg { display: block; width: 170px; height: 170px; margin: 8px auto; }
.md-svg path { fill: #ffb347; stroke: #fff3d6; stroke-width: 1.5; animation: mdIn .5s var(--ease) backwards; animation-delay: calc(var(--i) * 60ms); transform-origin: 0 0; }
.md-svg circle { fill: #fff3d6; }
@keyframes mdIn { from { transform: scale(.3); opacity: 0; } }
.md-n { display: block; font-family: var(--hand); font-size: 26px; color: var(--yellow); }
.fo-mand h3 { margin-top: 6px; font-family: var(--display); font-size: 20px; }
.fo-mand p { margin-top: 8px; font-size: 15px; line-height: 1.5; }
/* снежный шар */
.fo-globe { position: relative; margin: 20px auto 0; width: 260px; }
.gl-ball { position: relative; width: 260px; height: 260px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; padding: 34px;
           background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(120,150,220,.25) 45%, rgba(40,50,90,.75)); border: 2px solid rgba(255,255,255,.35); }
.gl-ball i { position: absolute; top: -8px; left: var(--x); width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .9; transform: scale(var(--s));
             animation: glFall 4s linear infinite; animation-delay: var(--d); }
.gl-ball.storm i { animation: glStorm .5s linear infinite; animation-delay: var(--d); }
.gl-ball.settled i { animation: glSettle 1.8s ease-out both; animation-delay: var(--d); }
@keyframes glFall { to { transform: translateY(275px) scale(var(--s)); } }
@keyframes glStorm { 0% { transform: translate(0, 40px) scale(var(--s)); } 50% { transform: translate(60px, 160px) scale(var(--s)); } 100% { transform: translate(-40px, 90px) scale(var(--s)); } }
@keyframes glSettle { from { transform: translateY(0) scale(var(--s)); } to { transform: translateY(240px) scale(var(--s)); } }
.gl-house { font-size: 64px; }
.gl-ball.storm .gl-house { animation: ckHit .4s infinite; }
.gl-ball p { position: relative; z-index: 1; color: #fff; text-align: center; font-size: 15px; line-height: 1.45; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); animation: foPop 1s .8s var(--ease) both; }
.gl-base { display: block; width: 190px; height: 34px; margin: -10px auto 0; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #8b4a2b, #5e301b); }
