@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/caveat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Yeseva One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/yeseva-one-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Yeseva One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/yeseva-one-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   Книглист · стили
   Палитра: зимняя ночь, бумага, мандарин. Новогодний декор включается
   атрибутом body[data-season="newyear"] и выключается в админке.
   ========================================================================== */
:root {
  --night-0: #080e24;
  --night-1: #0e1838;
  --night-2: #18264f;
  --night-line: rgba(180, 190, 219, .18);
  --snow: #fdf9f0;
  --mist: #b9c2de;
  --mist-2: #8693b8;
  --paper: #f9f2e3;
  --paper-2: #f0e5cd;
  --paper-line: #e0d2b3;
  --ink: #1d1710;
  --ink-2: #62574a;
  --mandarin: #f28a1e;
  --mandarin-hi: #ffa544;
  --mandarin-deep: #b85c05;
  --fir: #2c8a63;
  --fir-deep: #1c5c42;
  --cranberry: #c5303f;
  --gold: #f4c95d;
  --ice: #9ad8ff;

  --font-display: 'Yeseva One', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #0e1838; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 400 1rem/1.55 var(--font-body);
  color: var(--snow);
  -webkit-font-smoothing: antialiased;
}
/* Фон-ночь закреплён за окном и не прокручивается */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(242, 138, 30, .13), transparent 60%),
    radial-gradient(700px 520px at 0% 30%, rgba(44, 138, 99, .12), transparent 60%),
    linear-gradient(180deg, var(--night-0), var(--night-1) 45%, #131f47);
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mandarin); color: #1c1005; }
.muted { color: var(--mist); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Снег и гирлянда ---------- */
/* Холсты занимают «большое» окно (100lvh): на телефоне оно не меняется, когда при прокрутке прячется адресная строка */
#snow, #trail, #aurora { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }
#snow { z-index: 0; display: none; }
#trail { z-index: 2; }
#aurora { z-index: 0; animation: aurora-in 1.6s ease-out both; }
@keyframes aurora-in { from { opacity: 0; } }
/* Запасное сияние для устройств без WebGL: три размытых пятна медленно плывут */
body[data-aurora="css"]::after {
  content: ""; position: fixed; inset: -12% -20%; z-index: 0; pointer-events: none; opacity: .5; filter: blur(42px);
  background:
    radial-gradient(60% 26% at 28% 44%, rgba(70, 255, 170, .8), transparent 70%),
    radial-gradient(55% 24% at 70% 34%, rgba(110, 170, 255, .7), transparent 70%),
    radial-gradient(48% 22% at 52% 22%, rgba(190, 120, 255, .6), transparent 70%);
  animation: aurora-drift 24s ease-in-out infinite alternate;
}
@keyframes aurora-drift { from { transform: translate3d(-4%, 0, 0) skewX(-6deg); } to { transform: translate3d(4%, 3%, 0) skewX(7deg); } }
/* Над сиянием второстепенный текст чуть светлее, а весь светлый текст получает мягкий тёмный ореол —
   так он легко читается и поверх ярких полос */
body:is([data-aurora="gl"], [data-aurora="css"]) { --mist: #dbe1f2; --mist-2: #c4cde6; }
body:is([data-aurora="gl"], [data-aurora="css"]) :is(.hero h1, .eyebrow, .lead, .hero-note, .section-head, .cta h2, .cta p, .list-head, .page-head, .back, .empty, .book-title, .book-author, .book-price, .nav-link, .nav-user, .logo, .footer-inner, .account-foot, .tile, .owner-banner, .duo figcaption, .rows-head, .auth > h1, .auth > p) {
  text-shadow: 0 0 1px rgba(6, 10, 28, .9), 0 1px 3px rgba(6, 10, 28, .85), 0 0 8px rgba(6, 10, 28, .8), 0 0 18px rgba(6, 10, 28, .6), 0 0 34px rgba(6, 10, 28, .4);
}
body:is([data-aurora="gl"], [data-aurora="css"]) :is(.btn, .chip, .panel, .row, .step) { text-shadow: none; }
#garland { position: absolute; top: 0; left: 0; right: 0; height: 70px; pointer-events: none; z-index: 4; display: none; overflow: hidden; }
body[data-season="newyear"] #snow, body[data-season="newyear"] #garland { display: block; }
.bulb ellipse { animation: twinkle 2.6s var(--d, 0s) ease-in-out infinite; filter: drop-shadow(0 0 5px var(--c)); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 60% { opacity: .9; } }

/* ---------- Шапка ---------- */
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1160px, 100%); margin-inline: auto; padding: 18px var(--pad);
  z-index: 5;
}
body[data-season="newyear"] .site-header { padding-top: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.45rem/1 var(--font-display); }
.logo-mark { width: 32px; height: 32px; transition: transform .5s var(--spring); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: .95rem; color: var(--mist); background: none; border: 0; cursor: pointer; transition: color .2s, background .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--snow); background: rgba(253, 249, 240, .08); }
.nav-user { font-size: .9rem; color: var(--mist-2); padding-inline: 8px; }

main { flex: 1; width: min(1160px, 100%); margin-inline: auto; padding: 0 var(--pad) 72px; outline: none; }
main.narrow { width: min(920px, 100%); }

/* Появление страницы и блоков */
#app > * { animation: rise .7s var(--ease) both; }
#app > *:nth-child(2) { animation-delay: .08s; }
#app > *:nth-child(3) { animation-delay: .16s; }
#app > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 .96rem/1.1 var(--font-body); white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--mandarin); color: #1c1005; box-shadow: 0 10px 24px -10px rgba(242, 138, 30, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary:hover:not([disabled]) { background: var(--mandarin-hi); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(242, 138, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { background: rgba(253, 249, 240, .07); color: var(--snow); box-shadow: inset 0 0 0 1px rgba(253, 249, 240, .22); }
.btn-ghost:hover { background: rgba(253, 249, 240, .14); transform: translateY(-2px); }
.btn-paper { background: var(--paper-2); color: var(--ink); }
.btn-paper:hover { background: #e8dabb; transform: translateY(-1px); }
.btn-dark { background: var(--night-1); color: var(--snow); }
.btn-dark:hover { background: var(--night-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: .86rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, transform .3s var(--spring); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); transform: scale(1.08); }
.icon-btn.danger:hover { background: #f6d9d6; color: #9c1f2c; }
.icon-btn[aria-pressed="true"] { color: var(--mandarin-deep); background: #fbe3c2; }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Бумажные панели и формы ---------- */
.panel { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .75), 0 2px 0 rgba(255, 255, 255, .5) inset; }
.panel h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.15; }
.panel .muted, .modal .muted { color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf8;
  padding: 12px 14px; border: 1.5px solid var(--paper-line); border-radius: 13px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { resize: vertical; min-height: 84px; }
.input::placeholder, .textarea::placeholder { color: #a39a88; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mandarin); box-shadow: 0 0 0 4px rgba(242, 138, 30, .2); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #a01e2b; font-size: .9rem; font-weight: 500; min-height: 1.3em; }
.hint { font-size: .84rem; color: var(--ink-2); }

/* ---------- Обложка книги ---------- */
.cover {
  position: relative; aspect-ratio: 2 / 3; container-type: inline-size;
  border-radius: 3px 8px 8px 3px; overflow: hidden; background: #26304f;
  box-shadow: 0 22px 30px -16px rgba(0, 0, 0, .75), 0 3px 8px rgba(0, 0, 0, .3);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .5s; }
.cover::after { /* корешок и блик */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .3) 0, rgba(255, 255, 255, .22) 2.5%, rgba(0, 0, 0, .1) 5.5%, transparent 11%),
    linear-gradient(110deg, rgba(255, 255, 255, .14), transparent 38%);
}
.cover-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14cqw 11cqw 11cqw 16cqw; background: var(--cf-bg, #1c5c42); color: var(--cf-fg, #fdf9f0);
}
.cover-fallback::before { content: ""; position: absolute; inset: 6cqw 6cqw 6cqw 11cqw; border: 1px solid currentColor; opacity: .3; border-radius: 2px; }
.cf-title { font: 400 13cqw/1.08 var(--font-display); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; overflow-wrap: anywhere; }
.cf-author { font-size: 7cqw; line-height: 1.2; opacity: .8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cf-0 { --cf-bg: #1c5c42; --cf-fg: #f6ecd2; }
.cf-1 { --cf-bg: #a3252f; --cf-fg: #fbead0; }
.cf-2 { --cf-bg: #e9dcc0; --cf-fg: #23304f; }
.cf-3 { --cf-bg: #23356e; --cf-fg: #f4c95d; }
.cf-4 { --cf-bg: #d9781a; --cf-fg: #1f1406; }
.cf-5 { --cf-bg: #4a2a55; --cf-fg: #f2dfc4; }

/* Подарочная лента: исходная версия из сайта — крест-накрест и бант по центру */
.ribbon { position: absolute; inset: 0; pointer-events: none; }
.ribbon i { position: absolute; background: linear-gradient(90deg, #a52433, #dc4a57 45%, #c5303f 60%, #9b1f2c); box-shadow: 0 0 0 1px rgba(244, 201, 93, .55), 0 2px 6px rgba(0, 0, 0, .3); transition: transform .6s var(--ease); }
.ribbon .rv { top: 0; bottom: 0; left: 50%; width: 15%; margin-left: -7.5%; transform: scaleY(0); transform-origin: top; }
.ribbon .rh { left: 0; right: 0; top: 34%; height: 10%; transform: scaleX(0); transform-origin: left; background: linear-gradient(180deg, #a52433, #dc4a57 45%, #c5303f 60%, #9b1f2c); transition-delay: .12s; }
.ribbon .bow { position: absolute; left: 50%; top: 39%; width: 51%; transform: translate(-50%, -50%) scale(0); transition: transform .55s var(--spring) .35s; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.is-reserved .ribbon .rv, .wrapped .ribbon .rv { transform: scaleY(1); }
.is-reserved .ribbon .rh, .wrapped .ribbon .rh { transform: scaleX(1); }
.is-reserved .ribbon .bow, .wrapped .ribbon .bow { transform: translate(-50%, -50%) scale(1); }
.is-reserved .cover img, .is-reserved .cover-fallback { filter: saturate(.55) brightness(.72); }
/* The owner marks a book acquired; friends see a calm green veil and no purchase CTA. */
.book.is-acquired .book-cover::after { content: "✓"; position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; text-shadow: 0 2px 12px rgba(13, 64, 39, .55); background: linear-gradient(145deg, rgba(44, 143, 87, .30), rgba(19, 105, 66, .44)); border-radius: inherit; pointer-events: none; }
.book.is-acquired .book-cover .cover img, .book.is-acquired .book-cover .cover-fallback { filter: saturate(.68) brightness(.83); }
.acquired-state { color: #a6edbd; font-weight: 750; }
.acquired-card-label, .acquired-modal-state { display: flex; align-items: center; gap: 8px; color: #14532d; font-weight: 800; }
.acquired-card-label { margin-top: 8px; padding: 10px 12px; border: 1px solid #58a875; border-radius: 12px; background: linear-gradient(120deg, #dcfce7, #c9f4d7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 4px 12px rgba(20,83,45,.12); }
.acquired-modal-state { padding: 12px 14px; border: 1px solid #58a875; border-radius: 14px; background: #dcfce7; }
.acquired-modal-state { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: rgba(33, 126, 75, .16); }
.acquired-toggle { max-width: 155px; padding: 7px 9px; border: 1px solid rgba(226, 232, 246, .24); border-radius: 10px; background: rgba(255,255,255,.045); color: var(--mist); font: 600 .72rem/1.25 var(--font-body); cursor: pointer; }
.acquired-toggle:hover, .acquired-toggle:focus-visible { border-color: rgba(126, 218, 160, .7); outline: none; }
.acquired-toggle.is-on { border-color: rgba(126, 218, 160, .55); background: rgba(33, 126, 75, .2); color: #b8f2ca; }
.cycle-card-link { justify-self: start; margin-top: 4px; padding: 3px 0; border: 0; background: transparent; color: #a9d8ff; font: 600 .78rem/1.3 var(--font-body); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.book-cycle-inline { margin: 12px 0; }


/* Бирка с пожеланием */
.tag {
  position: relative; display: inline-block; max-width: 100%;
  font: 600 1.18rem/1.15 var(--font-hand); color: var(--ink);
  background: var(--paper); padding: 6px 12px 7px 24px; border-radius: 3px 7px 7px 3px;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%);
  transform: rotate(-1.4deg); transform-origin: left center;
}
.tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--night-1); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; background: rgba(253, 249, 240, .09); color: var(--snow); box-shadow: inset 0 0 0 1px var(--night-line); }
.chip-gold { background: rgba(244, 201, 93, .14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(244, 201, 93, .35); }
.panel .chip, .modal .chip { background: var(--paper-2); color: var(--ink-2); box-shadow: none; }

/* ==========================================================================
   Главная
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 5vw, 64px) clamp(40px, 7vw, 96px); }
.eyebrow { display: inline-block; font: 600 1.7rem/1 var(--font-hand); color: var(--mandarin-hi); transform: rotate(-2deg); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.5rem); line-height: 1.03; }
.hero h1 em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .22em; overflow: visible; }
.hero h1 em path { fill: none; stroke: var(--mandarin); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--mist-2); }

.stack { position: relative; height: clamp(320px, 38vw, 460px); }
.stack::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 2%; height: 16%; background: radial-gradient(closest-side, rgba(242, 138, 30, .28), transparent); filter: blur(10px); }
.stack .book3d { position: absolute; width: 38%; max-width: 200px; animation: float 6s ease-in-out infinite; }
.stack .b1 { left: 5%; top: 16%; --rot: -9deg; animation-delay: -1.5s; }
.stack .b2 { left: 31%; top: 4%; --rot: 1.5deg; z-index: 2; width: 42%; max-width: 220px; }
.stack .b3 { right: 4%; top: 20%; --rot: 8deg; animation-delay: -3.2s; }
.stack .book3d .cover { transform: rotate(var(--rot)); }
.stack .book3d .cover .ribbon { z-index: 2; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.stack .tag { position: absolute; z-index: 3; left: 58%; top: 62%; transform: rotate(6deg); font-size: 1.35rem; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .5); }
.mandarin { position: absolute; z-index: 3; left: 12%; bottom: 3%; width: clamp(54px, 7vw, 78px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffc56e, #f28a1e 46%, #c96508 88%); box-shadow: 0 14px 20px -10px rgba(0, 0, 0, .7), inset -6px -8px 14px rgba(120, 50, 0, .35); }
.mandarin::before { content: ""; position: absolute; left: 46%; top: -6%; width: 34%; height: 20%; background: var(--fir); border-radius: 0 100% 0 100%; transform: rotate(-18deg); }
.mandarin::after { content: ""; position: absolute; left: 44%; top: 5%; width: 9%; height: 9%; border-radius: 50%; background: #6b3a05; }
.mandarin.m2 { left: 24%; bottom: 0; width: clamp(40px, 5vw, 56px); filter: brightness(.94); }

.section { padding-block: clamp(36px, 6vw, 80px); }
.section-head { max-width: 30em; margin-bottom: clamp(22px, 3vw, 40px); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; }
.section-head p { margin-top: 12px; color: var(--mist); font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 26px 26px 30px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8); transition: transform .5s var(--ease), opacity .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.step:nth-child(1).in { transform: rotate(-1.2deg); }
.step:nth-child(2).in { transform: rotate(.8deg) translateY(10px); }
.step:nth-child(3).in { transform: rotate(-.5deg); }
.step.in:hover { transform: rotate(0) translateY(-6px); transition-delay: 0s; }
.step-num { font: 400 3.4rem/1 var(--font-display); color: var(--mandarin-deep); }
.step h3 { font: 400 1.4rem/1.15 var(--font-display); margin: 10px 0 8px; }
.step p { color: var(--ink-2); font-size: .98rem; }

.surprise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: linear-gradient(140deg, rgba(24, 38, 79, .9), rgba(14, 24, 56, .7)); box-shadow: inset 0 0 0 1px var(--night-line); }
.surprise h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; }
.surprise p { margin-top: 14px; color: var(--mist); max-width: 30em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 36px); max-width: 380px; margin-inline: auto; width: 100%; }
.duo figure { margin: 0; }
.duo figcaption { margin-top: 14px; text-align: center; font: 600 1.3rem/1.1 var(--font-hand); color: var(--mist); }
.duo figure:first-child .cover { transform: rotate(-3deg); }
.duo figure:last-child .cover { transform: rotate(2.5deg); }

.cta { text-align: center; padding-block: clamp(40px, 7vw, 90px) 12px; }
.cta h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; max-width: 16em; margin-inline: auto; }
.cta p { margin: 14px auto 28px; color: var(--mist); max-width: 30em; }

/* ==========================================================================
   Публичный книглист
   ========================================================================== */
.list-head { padding-block: clamp(20px, 4vw, 48px) clamp(24px, 4vw, 44px); max-width: 44em; }
.list-owner { font: 600 clamp(1.5rem, 2.6vw, 1.9rem)/1 var(--font-hand); color: var(--mandarin-hi); display: inline-block; transform: rotate(-1.5deg); margin-bottom: 10px; }
.list-head h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.04; }
.list-head .desc { margin-top: 16px; color: var(--mist); font-size: 1.08rem; white-space: pre-line; }
.list-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.owner-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; justify-content: space-between; margin-bottom: 28px; padding: 14px 20px; border-radius: var(--r-md); background: rgba(244, 201, 93, .1); box-shadow: inset 0 0 0 1px rgba(244, 201, 93, .3); color: #f6dfa6; font-size: .95rem; }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(28px, 4vw, 44px) clamp(18px, 3vw, 30px); }
.book { display: flex; flex-direction: column; min-width: 0; }
.book-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; transition: transform .5s var(--ease); }
.book-cover:hover { transform: translateY(-8px); }
.book-cover:hover .cover { box-shadow: 0 34px 36px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(244, 201, 93, .25); }
.badge { position: absolute; z-index: 2; top: 10px; right: -6px; padding: 5px 10px 5px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: #1c1005; background: var(--gold); border-radius: 4px 0 0 4px; box-shadow: 0 4px 8px rgba(0, 0, 0, .3); }
.badge::after { content: ""; position: absolute; right: 0; bottom: -6px; border: 3px solid; border-color: #9c7a1f transparent transparent #9c7a1f; }
.book-info { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; flex: 1; }
.book-title { font: 600 1rem/1.3 var(--font-body); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.book-author { font-size: .9rem; color: var(--mist); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.book-price { font-size: .9rem; color: var(--mist-2); }
.book .tag { margin-top: 8px; align-self: flex-start; }
.book-actions { margin-top: auto; padding-top: 14px; display: grid; gap: 6px; }
.gift-state { font-size: .86rem; color: #f3b9bf; display: flex; align-items: center; gap: 6px; min-height: 1.4em; }
.gift-state.mine { color: #9fe0bf; }

.empty { text-align: center; padding: clamp(36px, 7vw, 80px) 16px; color: var(--mist); }
.empty h2 { color: var(--snow); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.empty .btn { margin-top: 22px; }

.viral { margin-top: clamp(48px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px clamp(20px, 3vw, 34px); border-radius: var(--r-lg); background: linear-gradient(140deg, rgba(24, 38, 79, .9), rgba(14, 24, 56, .7)); box-shadow: inset 0 0 0 1px var(--night-line); }
.viral h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.viral p { color: var(--mist); margin-top: 4px; }

/* ==========================================================================
   Мои книглисты
   ========================================================================== */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block: clamp(16px, 3vw, 36px) clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; }
.page-head p { color: var(--mist); margin-top: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--mist); text-decoration: none; font-size: .92rem; }
.back:hover { color: var(--snow); }

.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.list-card { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 30px 50px -32px rgba(0, 0, 0, .85); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.list-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 40px 56px -30px rgba(0, 0, 0, .9); }
.fan { display: flex; height: 132px; padding-left: 8px; margin-bottom: 18px; }
.fan .cover { width: 80px; flex: none; margin-left: -18px; transition: transform .45s var(--ease); box-shadow: 0 12px 16px -10px rgba(0, 0, 0, .55); }
.fan .cover:first-child { margin-left: 0; }
.fan .cover:nth-child(1) { --r: -5deg; --ty: 0px; }
.fan .cover:nth-child(2) { --r: -1deg; --ty: -4px; animation-delay: .7s; }
.fan .cover:nth-child(3) { --r: 3deg; --ty: 0px; animation-delay: 1.4s; }
.fan .cover:nth-child(4) { --r: 7deg; --ty: 4px; animation-delay: 2.1s; }
.fan .cover { transform: rotate(var(--r, 0deg)) translateY(var(--ty, 0px)); animation: fan-float 5.5s ease-in-out infinite; }
@keyframes fan-float {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(var(--ty, 0px)); }
  50% { transform: rotate(var(--r, 0deg)) translateY(calc(var(--ty, 0px) - 6px)); }
}
.list-card:hover .fan .cover { animation: none; }
.list-card:hover .fan .cover:nth-child(1) { transform: rotate(-9deg) translateX(-4px); }
.list-card:hover .fan .cover:nth-child(4) { transform: rotate(11deg) translate(6px, 4px); }
.fan-empty { align-items: center; justify-content: center; padding: 0; border-radius: var(--r-md); border: 1.5px dashed var(--paper-line); color: var(--ink-2); font: 600 1.3rem var(--font-hand); }
.list-card h3 { font: 400 1.35rem/1.15 var(--font-display); }
.list-card .meta { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.my-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.my-primary { min-width: 0; }
.my-dashboard.has-friends { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); align-items: start; gap: clamp(20px, 3vw, 38px); }
.friendlists-sidebar { align-self: start; position: sticky; top: 24px; width: 100%; max-width: 400px; max-height: calc(100dvh - 48px); overflow-y: auto; margin-top: clamp(24px, 3vw, 36px); padding: 12px; border: 1px solid rgba(244, 201, 93, .24); border-radius: 22px; background: linear-gradient(145deg, rgba(20, 39, 73, .82), rgba(16, 29, 62, .72)); box-shadow: 0 22px 44px -32px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.friendlists-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.friendlists-heading h2 { font: 400 clamp(1.08rem, 1.7vw, 1.32rem)/1.08 var(--font-display); color: var(--snow); }
.friendlists-kicker { display: block; margin-bottom: 4px; color: var(--gold); font: 700 .64rem/1.25 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; }
.friendlists-total { color: var(--mist); font-size: .78rem; white-space: nowrap; }
.friendlists-grid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.friend-list-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 8px; position: relative; min-width: 0; padding: 10px 11px 9px; border: 1px solid rgba(255,255,255,.11); border-radius: 15px; background: rgba(253,249,240,.97); color: var(--ink); box-shadow: 0 14px 30px -22px rgba(0,0,0,.8); transition: transform .22s, border-color .22s, box-shadow .22s; animation: pop-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.friend-list-card:hover { transform: translateY(-1px); border-color: rgba(244,201,93,.7); box-shadow: 0 20px 34px -23px rgba(0,0,0,.9); }
.friend-list-card.has-new { border-color: rgba(242,138,30,.75); box-shadow: 0 0 0 2px rgba(242,138,30,.1), 0 12px 30px -20px rgba(242,138,30,.65); }
.friend-list-link { display: block; min-width: 0; color: inherit; text-decoration: none; grid-column: 1; grid-row: 1; }
.friend-list-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.friend-list-owner { overflow: hidden; color: var(--ink-2); font: 600 .68rem var(--font-ui); text-overflow: ellipsis; white-space: nowrap; }
.friend-list-spark { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #efe7d8; color: #8d8068; font-size: 1.1rem; }
.friend-list-card.has-new .friend-list-spark { color: #fff; background: radial-gradient(circle at 35% 30%, #ffd978, #f28a1e 70%); box-shadow: 0 0 0 4px rgba(242,138,30,.12), 0 0 18px rgba(242,138,30,.55); animation: friend-spark 1.8s ease-in-out infinite; }
@keyframes friend-spark { 50% { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(242,138,30,.08), 0 0 22px rgba(242,138,30,.75); } }
.friend-list-fan { display: flex; box-sizing: border-box; width: 100%; height: 150px; gap: 0; padding: 8px 0 0 8px; margin: 6px 0 18px; overflow: hidden; }
.friend-list-fan .cover { width: 88px; max-width: none; flex: 0 0 88px; margin-left: -18px; animation: fan-float 5.5s ease-in-out infinite; }
.friend-list-fan .cover img { object-fit: contain; background: var(--paper); }
.friend-list-fan .cover:nth-child(1) { --r: -2deg; --ty: 0px; }
.friend-list-fan .cover:nth-child(2) { --r: -1deg; --ty: 0px; }
.friend-list-fan .cover:nth-child(3) { --r: 1deg; --ty: 0px; }
.friend-list-fan .cover:nth-child(4) { --r: 2deg; --ty: 0px; }
.friend-list-fan .cover:first-child { margin-left: 0; }
.friend-list-fan.fan-empty { height: 54px; font-size: .95rem; }
.friend-list-card:hover .friend-list-fan .cover { animation: none; }
.friend-list-card:hover .friend-list-fan .cover:nth-child(1) { transform: rotate(-4deg) translateX(-2px); }
.friend-list-card:hover .friend-list-fan .cover:nth-child(4) { transform: rotate(4deg) translate(2px, 1px); }
.friend-list-card h3 { overflow: hidden; margin-top: 2px; font: 400 1.08rem/1.15 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.friend-list-card p { margin-top: 4px; color: var(--ink-2); font-size: .74rem; }
.friend-list-card .friend-list-meta { min-height: 1.15em; line-height: 1.25; }

.friend-list-new, .friend-list-current { display: inline-flex; align-items: center; margin-top: 5px; padding: 3px 7px; border-radius: 999px; font: 700 .66rem/1.2 var(--font-ui); }
.friend-list-new { background: #fff0d3; color: #914900; }
.friend-list-current { background: #edf3ec; color: #386745; }
.friend-list-remove { grid-column: 2; grid-row: 1; align-self: end; margin: 0 1px 2px 0; padding: 3px 0; border: 0; background: none; color: #827665; font: 600 .76rem var(--font-ui); cursor: pointer; }
.friend-list-remove:hover { color: #a01e2b; text-decoration: underline; }
.friend-follow-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin: 0 0 28px; padding: 17px clamp(18px, 3vw, 26px); border: 1px solid rgba(244,201,93,.3); border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(32,54,85,.9), rgba(25,38,73,.82)); box-shadow: 0 16px 34px -26px rgba(0,0,0,.8); color: var(--snow); }
.friend-follow-banner.has-new { border-color: rgba(242,138,30,.85); box-shadow: 0 0 0 2px rgba(242,138,30,.12), 0 16px 34px -26px rgba(242,138,30,.6); }
.friend-follow-copy { flex: 1 1 300px; }
.friend-follow-copy h2 { font: 400 clamp(1.25rem, 2.4vw, 1.65rem)/1.15 var(--font-display); }
.friend-follow-copy p { margin-top: 5px; color: var(--mist); font-size: .92rem; }
.friend-follow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.friend-follow-banner .link-btn { color: #f4d9a0; }
.guest-follow-banner > .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 980px) {
  .my-dashboard.has-friends { grid-template-columns: minmax(0, 1fr); }
  .friendlists-sidebar { position: static; max-height: none; margin-top: 0; }
}
/* На телефоне сохраняем полноразмерные пропорции книг, уплотняя только перекрытие. */
@media (max-width: 420px) {
  .friend-list-fan .cover { margin-left: clamp(-42px, calc(25vw - 122px), -18px); }
  .friend-list-fan .cover:first-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .friend-list-card.has-new .friend-list-spark, .friend-list-card .fan .cover { animation: none; } }

/* ==========================================================================
   Редактор списка
   ========================================================================== */
.editor { display: grid; gap: 22px; }
.share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; }
.share h2 { font-size: 1.3rem; }
.share-row { display: flex; gap: 8px; grid-column: 1 / -1; }
.share-row .input { font-size: .95rem; background: var(--paper-2); border-color: transparent; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }

.search-box { position: relative; }
.search-box .input { padding: 16px 18px 16px 50px; font-size: 1.05rem; border-radius: 16px; }
.search-box > svg { position: absolute; left: 17px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--ink-2); pointer-events: none; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 22px 16px; margin-top: 22px; }
.results:empty { display: none; }
.results.clipped .result:nth-child(n+11) { display: none; }
.more { margin-top: 18px; }
.result { display: flex; flex-direction: column; gap: 4px; min-width: 0; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.result .cover { margin-bottom: 8px; box-shadow: 0 14px 18px -12px rgba(0, 0, 0, .5); }
.result-title { font-size: .88rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.result-author { font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-price { font-size: .8rem; color: var(--ink-2); }
.result .btn { margin-top: auto; }
.result .btn.added { background: var(--fir); color: #fff; }
.search-foot { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.skeleton { border-radius: 6px; background: linear-gradient(100deg, var(--paper-2) 30%, #f8eed8 50%, var(--paper-2) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
.skeleton.sk-cover { aspect-ratio: 2 / 3; }
.skeleton.sk-line { height: 12px; margin-top: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.manual { margin-top: 18px; padding-top: 20px; border-top: 1.5px dashed var(--paper-line); animation: rise .45s var(--ease) both; }

.rows-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 14px 4px 0; }
.rows-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.rows-head .link-btn { color: var(--mist); font-size: .88rem; }
.rows { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); color: var(--ink); box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .8); animation: rise .5s var(--ease) both; transition: transform .35s var(--ease), opacity .35s; }
.row-pending { opacity: .78; animation-duration: .18s; }
.row-pending strong { display: block; line-height: 1.25; }
.pending-indicator { width: 18px; height: 18px; border: 2px solid var(--paper-line); border-top-color: var(--mandarin-deep); border-radius: 50%; animation: spin .75s linear infinite; }
.row.removing { opacity: 0; transform: translateX(30px) scale(.97); }
.row .cover { box-shadow: 0 8px 12px -8px rgba(0, 0, 0, .5); }
.row-title { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.row-title-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.row-title-button:hover { color: var(--mandarin); text-decoration: underline; text-underline-offset: 3px; }
.row .cover-info { cursor: pointer; }
.row-sub { font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.row-note { margin-top: 8px; width: 100%; max-width: 420px; padding: 4px 2px; border: 0; border-bottom: 1.5px dashed var(--paper-line); border-radius: 0; background: transparent; font: 600 1.15rem/1.2 var(--font-hand); color: var(--ink); }
.row-note::placeholder { color: #a99f8c; font-weight: 500; }
.row-note:focus { outline: none; border-bottom-color: var(--mandarin); }
.row-actions { display: flex; gap: 2px; }

/* ==========================================================================
   Вход
   ========================================================================== */
.auth { width: min(440px, 100%); margin: clamp(12px, 4vw, 48px) auto 0; }
.auth h1 { font-size: 2rem; line-height: 1.1; margin-bottom: 6px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; background: var(--paper-2); border-radius: 999px; position: relative; }
.tabs button { position: relative; z-index: 1; padding: 10px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 600; font-size: .94rem; color: var(--ink-2); transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fffdf8; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transition: transform .4s var(--ease); }
.tabs[data-mode="register"]::before { transform: translateX(100%); }

/* ==========================================================================
   Партнёрка (админка)
   ========================================================================== */
.admin { display: grid; gap: 22px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { padding: 18px 20px; border-radius: var(--r-md); background: rgba(253, 249, 240, .06); box-shadow: inset 0 0 0 1px var(--night-line); }
.tile b { display: block; font: 400 2.2rem/1 var(--font-display); color: var(--snow); font-variant-numeric: tabular-nums; }
.tile span { display: block; margin-top: 8px; font-size: .86rem; color: var(--mist); }
.tile.hot b { color: var(--mandarin-hi); }
.store-form { display: grid; gap: 12px; padding: 18px 0; border-top: 1.5px dashed var(--paper-line); }
.store-form:first-of-type { border-top: 0; padding-top: 6px; }
.store-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-title h3 { font: 400 1.3rem var(--font-display); }
.pill { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.ok { background: #d5efdf; color: #175239; }
.pill.off { background: #f6d9d6; color: #8f1c28; }
.pill.mute { background: var(--paper-2); color: var(--ink-2); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--mandarin-deep); cursor: pointer; }
.preview-out { font: .82rem/1.45 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--paper-2); padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: 18px; }
.chart div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: .68rem; color: var(--ink-2); }
.chart i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--mandarin), var(--mandarin-deep)); transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes grow { from { transform: scaleY(0); } }
.top-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.top-list li { display: flex; justify-content: space-between; gap: 16px; font-size: .94rem; padding-bottom: 8px; border-bottom: 1px solid var(--paper-line); }
.top-list b { font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.price-compare-panel { display: grid; gap: 12px; }
.price-compare-status { color: var(--mist); font-size: .92rem; }
.price-compare-results { display: grid; gap: 12px; }
.price-compare-book { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--r-md); background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px -20px rgba(0,0,0,.55); }
.price-compare-cover .cover { width: 64px; box-shadow: 0 8px 12px -8px rgba(0,0,0,.5); }
.price-compare-info h3 { font-size: 1.02rem; line-height: 1.3; }
.price-compare-info > .muted { margin: 3px 0 10px; font-size: .86rem; }
.price-compare-current { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin: 8px 0 12px; }
.price-compare-current span { font-size: .86rem; color: var(--ink-2); }
.price-compare-current b { font-size: 1.05rem; }
.price-compare-current small { color: var(--ink-2); }
.price-compare-shops { display: flex; flex-wrap: wrap; gap: 8px; }
@media(max-width:520px) { .price-compare-book { grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 12px; } .price-compare-cover .cover { width: 48px; } .price-compare-shops .btn { font-size: .78rem; padding: 7px 9px; } }
.guide { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.guide b { color: var(--ink); }
code { font: .86em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }

/* ==========================================================================
   Модальное окно, уведомления, конфетти
   ========================================================================== */
.backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 9, 24, .7); backdrop-filter: blur(7px); animation: fade .3s both; }
.backdrop.closing { animation: fade .22s reverse both; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 32px); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9); animation: pop .5s var(--spring) both; }
.backdrop.closing .modal { animation: popout .22s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes popout { to { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 1.55rem; line-height: 1.15; padding-right: 36px; }
.buy-book { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; }
.buy-book h2 { font-size: 1.35rem; padding-right: 30px; }
.buy-book .cover { box-shadow: 0 14px 18px -12px rgba(0, 0, 0, .55); }
.buy-label { margin: 24px 0 10px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.stores { display: grid; gap: 10px; }
.stores-grid { grid-template-columns: 1fr 1fr; }
.stores-grid .store-btn { padding: 14px 16px; }
.store-btn { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 15px 18px; border-radius: var(--r-md); background: var(--night-1); color: var(--snow); text-decoration: none; transition: transform .3s var(--ease), background .2s, box-shadow .3s; }
.store-btn:hover { transform: translateY(-2px); background: var(--night-2); box-shadow: 0 14px 22px -14px rgba(8, 14, 36, .9); }
.store-btn b { font: 400 1.2rem/1.1 var(--font-display); }
.store-btn small { grid-column: 1; font-size: .82rem; color: var(--mist); }
.store-btn svg { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; color: var(--mandarin-hi); transition: transform .3s var(--ease); }
.store-btn:hover svg { transform: translate(3px, -3px); }
.ad-note { margin-top: 8px; font-size: .72rem; line-height: 1.4; color: #8b8170; }
.friend-copy-row { display: flex; justify-content: flex-start; margin-top: 10px; }
.friend-copy-action { color: var(--ink-2); font-size: .8rem; opacity: .82; text-underline-offset: 3px; }
.friend-copy-action:hover:not(:disabled) { color: var(--mandarin-deep); opacity: 1; }
.friend-copy-action:disabled { cursor: wait; opacity: .6; }
.friend-copy-done { color: var(--fir-deep); font-size: .8rem; }
.gift-box { margin-top: 22px; padding: 18px; border-radius: var(--r-md); background: var(--paper-2); transition: box-shadow .4s, background .4s; }
.gift-box.nudge { background: #fbe3c2; box-shadow: 0 0 0 2px var(--mandarin); animation: nudge .6s var(--spring); }
@keyframes nudge { 30% { transform: scale(1.025); } }
.gift-box h3 { font: 400 1.15rem/1.2 var(--font-display); }
.gift-box p { font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.gift-form { display: flex; gap: 8px; margin-top: 12px; }
.gift-form .input { padding: 10px 12px; }

#toasts { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .94rem; font-weight: 500; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .8); animation: toast-in .5s var(--spring) both; }
.toast.err { background: #f6d9d6; color: #7d1622; }
.toast.out { animation: toast-out .3s var(--ease) both; }
.back-to-top { position: fixed; z-index: 45; right: clamp(14px, 2.4vw, 28px); bottom: 82px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(244,201,93,.55); border-radius: 50%; background: rgba(18,34,67,.92); color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s, background .2s, color .2s; }
.back-to-top:not([hidden]) { opacity: 1; transform: translateY(0); }
.back-to-top[hidden] { display: none !important; }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--gold); color: #182449; outline: none; transform: translateY(-2px); }
.back-to-top:focus-visible { box-shadow: 0 0 0 3px rgba(244,201,93,.3), 0 8px 24px rgba(0,0,0,.38); }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
@media print { .back-to-top { display: none !important; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

.confetti { position: fixed; z-index: 70; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; animation: confetti 1.1s cubic-bezier(.1, .7, .3, 1) both; }
@keyframes confetti { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--night-line); }
.footer-inner { width: min(1160px, 100%); margin-inline: auto; padding: 26px var(--pad) 34px; display: grid; gap: 8px; font-size: .9rem; }
.footer-inner .muted { font-size: .82rem; color: var(--mist-2); max-width: 46em; }
.snow-toggle { justify-self: start; margin-top: 6px; padding: 7px 13px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(253, 249, 240, .07); color: var(--mist); font-size: .82rem; box-shadow: inset 0 0 0 1px var(--night-line); transition: background .2s, color .2s; }
.snow-toggle:hover { background: rgba(253, 249, 240, .13); color: var(--snow); }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .stack { max-width: 460px; width: 100%; margin-inline: auto; height: clamp(300px, 80vw, 420px); }
  .steps { grid-template-columns: 1fr; }
  .step.in { transform: none !important; }
  .surprise, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .nav-user, .nav .btn { display: none; }
  .site-header { flex-wrap: wrap; row-gap: 4px; }
  .nav-link { padding: 8px 10px; font-size: .9rem; }
  .logo { font-size: 1.25rem; }
  .row { grid-template-columns: 52px minmax(0, 1fr); }
  .row-actions { grid-column: 2; justify-content: flex-end; margin-top: -6px; }
  .share-row, .gift-form { flex-direction: column; }
  .book .btn { padding-inline: 12px; font-size: .88rem; white-space: normal; }
  .buy-book { grid-template-columns: 70px minmax(0, 1fr); }
  .stores-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 em path { stroke-dashoffset: 0; }
}

/* Формат книги: бумажная, электронная или любая */
.format-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.format-pick > span { font-weight: 600; font-size: .95rem; }
.format-pick .hint { flex-basis: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; background: var(--paper-2); border-radius: 999px; }
.seg button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-checked="true"] { background: #fffdf8; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.row-format { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .84rem; color: var(--ink-2); max-width: 100%; }
.row-format select { min-width: 0; max-width: 100%; padding: 5px 10px; border: 1.5px solid var(--paper-line); border-radius: 999px; background: #fffdf8; font: inherit; font-weight: 600; color: var(--ink); }
.book-format { width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(111, 182, 255, .16); color: #b4d8ff; box-shadow: inset 0 0 0 1px rgba(111, 182, 255, .35); }
.modal .book-format { background: #dde9f6; color: #24507f; box-shadow: none; }
.ebook-hint { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #e7eff8; color: #24507f; }

/* Выбор живого фона в настройках */
.bg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.bg-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 10px 10px 12px; border-radius: 16px; border: 2px solid var(--paper-line); background: #fffdf8; cursor: pointer; transition: border-color .2s, transform .3s var(--spring), box-shadow .3s; }
.bg-card:hover { transform: translateY(-3px); }
.bg-card:has(input:checked) { border-color: var(--mandarin); box-shadow: 0 10px 22px -12px rgba(242, 138, 30, .8); }
.bg-card:has(input:focus-visible) { outline: 2px solid var(--mandarin-deep); outline-offset: 2px; }
.bg-card input { position: absolute; opacity: 0; pointer-events: none; }
.bg-card b { font-size: .98rem; }
.bg-card small { font-size: .8rem; line-height: 1.35; color: var(--ink-2); }
.bg-thumb { height: 76px; border-radius: 10px; background-color: #0b1330; background-repeat: no-repeat; }
.bg-aurora { background-image: radial-gradient(120% 70% at 30% 78%, rgba(96, 255, 190, .75), transparent 62%), radial-gradient(90% 80% at 78% 60%, rgba(186, 132, 255, .6), transparent 64%), linear-gradient(180deg, #080e24, #131f47); }
.bg-blizzard { background-image: repeating-linear-gradient(112deg, transparent 0 9px, rgba(255, 255, 255, .5) 9px 10.5px, transparent 10.5px 21px), linear-gradient(180deg, #0a1230, #1a2857); }
.bg-ice-prisms { background-image: radial-gradient(ellipse at 20% 30%, rgba(82, 190, 255, .75), transparent 52%), radial-gradient(ellipse at 78% 65%, rgba(118, 108, 255, .68), transparent 56%), linear-gradient(180deg, #071329, #152d50); }
.bg-winter-dawn { background-image: radial-gradient(ellipse at 72% 25%, rgba(255, 205, 120, .7), transparent 48%), radial-gradient(ellipse at 20% 72%, rgba(75, 171, 220, .65), transparent 55%), linear-gradient(180deg, #101a3a, #24345a); }
.bg-frosted-pines { background-image: linear-gradient(160deg, transparent 52%, #12213a 52.5% 66%, transparent 66.5%), linear-gradient(200deg, transparent 44%, #0d1a30 44.5% 72%, transparent 72.5%), radial-gradient(ellipse at 50% 46%, rgba(113, 177, 207, .38), transparent 60%), linear-gradient(180deg, #071227, #142c42); }
.bg-frost-breath { background-image: radial-gradient(ellipse at 30% 42%, rgba(236, 251, 255, .48), transparent 50%), radial-gradient(ellipse at 78% 65%, rgba(144, 202, 221, .44), transparent 54%), linear-gradient(180deg, #101a2c, #23394a); }

/* Политика, галочка согласия, удаление аккаунта */
.check.consent { align-items: flex-start; font-size: .84rem; font-weight: 400; line-height: 1.45; color: var(--ink-2); }
.check.consent input { flex: none; margin-top: 1px; }
.check.consent a, .gift-note a, .doc a { text-decoration: underline; text-underline-offset: 3px; }
.gift-box .gift-note { font-size: .78rem; margin-top: 10px; }
.footer-link { color: var(--mist); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: var(--snow); }
.account-foot { margin-top: clamp(28px, 5vw, 48px); text-align: center; font-size: .84rem; color: var(--mist-2); }
.account-foot .link-btn { color: var(--mist); margin-left: 6px; }
.btn-danger { background: #b3261e; color: #fff; }
.btn-danger:hover { background: #991b14; }
.doc h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; }
.doc h2 { font-size: 1.15rem; margin-top: 30px; }
.doc p, .doc li { line-height: 1.6; margin-top: 10px; font-size: .96rem; }
.doc ul { padding-left: 1.25em; list-style: disc; }
.doc .muted { margin-top: 6px; font-size: .86rem; }

/* Глазик в поле пароля */
.pw { position: relative; display: block; }
.field > span.pw { font-size: inherit; font-weight: inherit; color: inherit; }
.pw .input { padding-right: 48px; }
.pw .input::-ms-reveal, .pw .input::-ms-clear { display: none; }
.pw-eye { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.pw-eye svg { width: 22px; height: 22px; }
.pw-eye:hover { background: var(--paper-2); color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--mandarin); outline-offset: 1px; }
.pw-eye[aria-pressed="true"] { color: var(--mandarin-deep); }

/* Котик «Поддержать проект»: выглядывает из-за нижнего края экрана */
#cat-fab { position: fixed; right: clamp(10px, 2.4vw, 28px); bottom: 0; z-index: 40; pointer-events: none; }
.cat-btn { position: relative; display: block; width: 92px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform: translateY(34%); transition: transform .45s var(--ease); animation: cat-peek 16s 9s infinite; -webkit-tap-highlight-color: transparent; }
.cat-btn .cat { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.cat-btn:hover, .cat-btn:focus-visible, #cat-fab.hello .cat-btn { transform: translateY(2%); animation: none; }
.cat-btn:focus-visible { outline: none; }
.cat-btn:focus-visible .cat { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px var(--mandarin-hi)); }
.cat-bubble { position: absolute; right: calc(100% + 4px); bottom: 46px; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translateX(8px) scale(.94); transform-origin: right bottom; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.cat-btn:hover .cat-bubble, .cat-btn:focus-visible .cat-bubble, #cat-fab.hello .cat-bubble { opacity: 1; transform: none; }
@keyframes cat-peek { 0%, 78%, 100% { transform: translateY(34%); } 82%, 94% { transform: translateY(8%); } }
/* Глаза: моргают, а под курсором зрачки становятся ещё больше */
.cat-eye, .cat-pupil { transform-box: fill-box; transform-origin: center; }
.cat-eye { animation: cat-blink 5.2s infinite; }
.cat-eye + .cat-eye { animation-delay: .04s; }
.cat-pupil { transition: transform .35s var(--ease); }
.cat-btn:hover .cat-pupil, #cat-fab.hello .cat-pupil, .donate-cat .cat-pupil { transform: scale(1.1); }
@keyframes cat-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

/* Окно «Поддержите Книглист» */
.donate { display: grid; gap: 14px; justify-items: center; text-align: center; }
.donate h2 { padding-right: 0; }
.donate-cat { width: min(190px, 52%); margin: -6px 0 -4px; }
.donate-cat .cat { display: block; width: 100%; height: auto; }
.donate .btn-block { margin-top: 4px; }
.donate-qr { display: grid; gap: 8px; justify-items: center; }
.donate-qr .qr { width: 148px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--paper-line); }
.donate-qr .qr svg { display: block; width: 100%; height: auto; }
.donate-qr p { font-size: .84rem; color: var(--ink-2); }
.donate-setup { padding: 14px 16px; border-radius: var(--r-md); background: var(--paper-2); font-size: .92rem; text-align: left; }
.donate-setup a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.donate-hide { font-size: .82rem; color: var(--ink-2); }
button.footer-link { justify-self: start; }
@media (max-width: 640px) {
  .cat-btn { width: 78px; }
  .cat-bubble { bottom: 38px; font-size: .82rem; }
  .site-footer { padding-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-btn, .cat-eye { animation: none; }
}
@media print { #cat-fab { display: none; } }

/* --- Восстановление пароля --- */
.auth-head { margin-bottom: 20px; }
.auth-head .muted { margin-top: 8px; }
.forgot-row { margin-top: -6px; font-size: .9rem; color: var(--ink-2); }
.forgot-row .link-btn { color: var(--mandarin-deep); font-weight: 600; }
.forgot-row .link-btn:hover { color: var(--ink); }
.form > .btn + .forgot-row { margin-top: 0; text-align: center; }
.auth-sent { display: grid; gap: 12px; line-height: 1.5; }
.auth-sent a, .auth-sent .link-btn { color: var(--mandarin-deep); font-weight: 600; }

/* --- Письма с сайта (раздел «Партнёрка») --- */
#mailform { display: grid; gap: 12px; }
#mailform .store-title h2 { font-size: 1.55rem; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mail-error { padding: 12px 16px; border-radius: var(--r-md); background: #f9dedb; color: #7d1823; font-size: .92rem; }

/* --- Поиск: догрузка из других каталогов --- */
.search-status { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .9rem; color: var(--ink-2); }
.search-status i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--paper-line); border-top-color: var(--mandarin-deep); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Открытка с QR-кодом --- */
.share-qr { gap: 8px; margin-left: auto; }
.share-qr svg { width: 18px; height: 18px; }
.qrc { display: grid; gap: 14px; }
.qrc .muted { font-size: .94rem; }
.qrc-stage { display: grid; place-items: center; }
.qrc-canvas, .qrc-wait { width: min(100%, 300px); aspect-ratio: 4 / 5; height: auto; border-radius: 16px; box-shadow: 0 22px 36px -22px rgba(0, 0, 0, .6); }
.qrc-styles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.qrc-styles button { display: grid; gap: 6px; padding: 5px 5px 7px; border: 0; border-radius: 14px; background: none; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 600; line-height: 1.15; color: var(--ink-2); text-align: center; transition: background .2s, color .2s, transform .25s var(--ease); }
.qrc-styles canvas { width: 100%; height: auto; border-radius: 9px; box-shadow: 0 0 0 1.5px var(--paper-line); }
.qrc-styles button:hover { transform: translateY(-2px); color: var(--ink); }
.qrc-styles button[aria-checked="true"] { background: #fffdf8; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.qrc-styles button[aria-checked="true"] canvas { box-shadow: 0 0 0 3px var(--mandarin); }
.qrc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 420px) { .qrc-styles { gap: 4px; } .qrc-styles button { font-size: .66rem; padding: 3px 3px 6px; } }
@media (max-width: 560px) { .share-qr { margin-left: 0; } }

/* ==========================================================================
   Живость: микродвижения кнопок и плашки «+ к карме»
   ========================================================================== */
.btn { transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.store-btn { transition: transform .18s var(--ease), box-shadow .2s var(--ease); }
.store-btn:hover { transform: translateY(-2px) rotate(-.6deg); }
.store-btn:active { transform: scale(.97); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.modal .stores .store-btn { animation: pop-in .32s var(--ease) both; }
.modal .stores .store-btn:nth-child(2) { animation-delay: .06s; }
.modal .stores .store-btn:nth-child(3) { animation-delay: .12s; }
.modal .stores .store-btn:nth-child(4) { animation-delay: .18s; }
.karma-line { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -4px 0 2px; font: 600 1.05rem var(--font-hand); color: #b3544d; }
.karma-line svg { width: 20px; height: 20px; animation: karma-beat 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes karma-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.28); } }
.cat-btn .cat { transition: transform .3s var(--ease); }
.cat-btn:active .cat { transform: scale(.94); }

/* ==========================================================================
   Вкладка «Каталог»: жанры-чипы и витрина книг
   ========================================================================== */
/* Фильтры витрины: выпадающий список жанров и сортировка */
.cat-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 18px; }
.cat-filter { flex: 1 1 260px; max-width: 420px; margin: 0; }
.cat-filter .input { width: 100%; font: 600 .98rem var(--font-ui); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231d1710' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.cat-filter .input:hover { border-color: var(--ink); }
.cat-filter .input:active { transform: scale(.995); }
.cat-count { flex: 1 0 100%; margin: 2px 0 0; font: 500 .9rem var(--font-ui); color: var(--ink-2); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 24px 16px; margin-top: 24px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; animation: pop-in .4s var(--ease) both; position: relative; }
.flag { position: absolute; top: 8px; left: -4px; z-index: 3; padding: 4px 10px 4px 12px; border-radius: 3px 999px 999px 3px;
  font: 700 .68rem/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: #fffdf7;
  box-shadow: 0 6px 14px -6px rgba(29, 23, 16, .5); animation: pop-in .5s var(--ease) both; }
.flag-hit { background: linear-gradient(100deg, #c2452d, #e07b39); }
.flag-new { background: linear-gradient(100deg, #2d7a4f, #58a86b); }
.cat-card .cover { width: 100%; aspect-ratio: 2 / 3; }
.cover-info { display: block; width: 100%; padding: 0; border: 0; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.cover-info:focus-visible { outline: 3px solid var(--mandarin-hi); outline-offset: 4px; }
.cover-info img { pointer-events: none; }
.cat-card h3 { font: 600 .98rem/1.25 var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .muted { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cat-price { font-weight: 600; font-size: .9rem; }
.cat-card .btn { margin-top: auto; }
.ok-done { opacity: .65; pointer-events: none; }
.cat-more { display: grid; justify-items: center; gap: 16px; margin: 28px 0 18px; }
.cat-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.cat-pagination[hidden] { display: none; }
.cat-page { min-width: 38px; height: 38px; padding: 0 9px; border: 1px solid rgba(255,255,255,.26); border-radius: 12px; background: var(--paper); color: var(--ink); font: 700 .9rem var(--font-ui); cursor: pointer; transition: transform .16s, background .16s, color .16s; }
.cat-page:hover:not(:disabled) { transform: translateY(-2px); background: #fffdf7; }
.cat-page.is-current { border-color: var(--mandarin); background: var(--mandarin); color: #fffdf7; box-shadow: 0 5px 12px -6px rgba(0,0,0,.55); }
.cat-page:disabled { opacity: .42; cursor: default; }
.cat-page-arrow { font-size: 1.2rem; }
.cat-page-ellipsis { min-width: 18px; color: var(--mist); text-align: center; }
.cat-empty { margin: 26px auto; max-width: 560px; text-align: center; font: 500 1rem/1.6 var(--font-ui); color: var(--ink-2);
  border: 1.5px dashed var(--paper-line); border-radius: 14px; padding: 26px 22px; background: rgba(249, 242, 227, .6); }
.pick-lists { display: grid; gap: 10px; margin: 14px 0 18px; }
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 12px; }
  .cat-filters { gap: 10px; }
  .cat-filter { flex: 1 1 100%; max-width: none; }
  .cat-filter .input { font-size: 1rem; padding-top: 11px; padding-bottom: 11px; }
}

/* Карточка книги: подробности по нажатию */
.cat-card .cover { overflow: hidden; border-radius: 12px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cat-card:hover .cover, .cat-card:focus-within .cover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 18px 28px -17px rgba(0, 0, 0, .72); }
/* Небольшое «издательское» окно с описанием и книжным циклом */
.modal.book-detail-modal { width: min(740px, 100%); }
.book-detail-top { display: grid; grid-template-columns: 142px minmax(0,1fr); gap: clamp(18px,4vw,30px); align-items: center; padding: 2px 20px 22px 0; border-bottom: 1px solid var(--paper-line); }
.book-detail-cover .cover { aspect-ratio: 2 / 3; box-shadow: 0 18px 30px -18px rgba(0,0,0,.55); border-radius: 12px; overflow: hidden; }
.book-detail-heading { min-width: 0; }
.book-detail-heading h2 { padding: 0; margin: 7px 0; font: 400 clamp(1.45rem,3vw,2.15rem)/1.06 var(--font-display); }
.book-detail-kicker, .book-detail-eyebrow { display: inline-block; color: var(--mandarin-deep); font: 700 .73rem/1.2 var(--font-ui); letter-spacing: .11em; text-transform: uppercase; }
.book-detail-author { margin: 7px 0 10px; color: var(--ink-2); font-size: .95rem; }
.book-detail-price { margin: 0 0 14px; font-weight: 700; }
.book-detail-extra { display: grid; gap: 17px; padding-top: 20px; }
.book-detail-cycle { padding: 17px 18px; border: 1px solid rgba(188, 133, 66, .25); border-radius: 22px 16px 25px 17px; background: linear-gradient(135deg, rgba(250,236,207,.78), rgba(255,251,242,.92)); }
.book-detail-cycle-title h3 { margin: 5px 0 2px; font: 400 1.35rem/1.15 var(--font-display); }
.book-detail-cycle-title p { margin: 0 0 9px; color: var(--ink-2); font-size: .9rem; }
.book-detail-cycle ol { max-height: 190px; overflow: auto; margin: 12px 0 0; padding: 0 4px 0 25px; display: grid; gap: 5px; color: var(--ink-2); font-size: .9rem; }
.book-detail-cycle li { padding: 4px 7px; border-radius: 9px; }
.book-detail-cycle li.is-current { color: var(--ink); background: rgba(242, 138, 30, .16); }
.book-detail-cycle li.is-current b { color: var(--mandarin-deep); }
.book-detail-description p { margin: 8px 0 0; color: #453d31; font-size: .95rem; line-height: 1.65; white-space: pre-line; }
.book-detail-note, .book-detail-source { margin: 6px 0 0; color: var(--ink-2); font-size: .84rem; line-height: 1.5; }
.book-detail-source { text-align: right; font-size: .75rem; }
.book-detail-source-link { display: inline-flex; margin-top: 10px; color: var(--mandarin-deep); font-size: .87rem; font-weight: 700; text-decoration: none; }
.book-detail-source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-detail-loading { min-height: 100px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 9px; color: var(--ink-2); font-size: .9rem; }
.book-detail-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--mandarin); animation: book-dot 1.1s ease-in-out infinite; }
.book-detail-loading i:nth-child(2) { animation-delay: .14s; }
.book-detail-loading i:nth-child(3) { animation-delay: .28s; margin-right: 3px; }
@keyframes book-dot { 0%,60%,100% { opacity: .35; transform: translateY(0) scale(.85); } 30% { opacity: 1; transform: translateY(-4px) scale(1.1); } }


@media (max-width: 560px) {
  .book-detail-top { grid-template-columns: 94px minmax(0,1fr); gap: 15px; padding-right: 18px; }
  .book-detail-heading h2 { font-size: 1.38rem; }
  .book-detail-cycle { padding: 14px; }
  .book-detail-cycle ol { max-height: 150px; }
}

/* Компактный вариант кнопок в фирменной мандариново-золотой палитре сайта. */
.btn { min-height: 34px; padding: 8px 14px; border-radius: 13px; font-size: .86rem; gap: 6px; }
.btn-sm { min-height: 29px; padding: 6px 11px; font-size: .78rem; }
.btn-lg { min-height: 38px; padding: 9px 17px; font-size: .92rem; }
.btn.btn-block { width: min(100%, 300px); }
.btn-primary, .btn-paper, .btn-dark, .btn-ghost {
  position: relative;
  border: 1px solid rgba(143, 91, 25, .22);
  border-radius: 13px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--gold), var(--mandarin));
  color: #39230c;
  box-shadow: 0 3px 0 var(--mandarin-deep), 0 6px 14px rgba(177,104,18,.16), inset 0 1px 0 rgba(255,255,255,.35);
  animation: kniglist-gummy-float 4.4s ease-in-out infinite;
  will-change: transform;
}
.btn-primary::before, .btn-paper::before, .btn-dark::before, .btn-ghost::before { display: none; }
.btn-primary.btn-sm, .btn-paper.btn-sm, .btn-dark.btn-sm, .btn-ghost.btn-sm { min-height: 29px; padding: 6px 11px; font-size: .78rem; }
.btn-primary.btn-lg, .btn-paper.btn-lg, .btn-dark.btn-lg, .btn-ghost.btn-lg { min-height: 38px; padding: 9px 17px; font-size: .92rem; }
@keyframes kniglist-gummy-float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.01); }
}
.btn-primary:hover:not([disabled]), .btn-paper:hover:not([disabled]), .btn-dark:hover:not([disabled]), .btn-ghost:hover:not([disabled]) {
  background: linear-gradient(135deg, #ffd978, var(--mandarin-hi));
  color: #39230c;
  box-shadow: 0 4px 0 var(--mandarin-deep), 0 9px 16px rgba(177,104,18,.22), inset 0 1px 0 rgba(255,255,255,.42);
  animation: kniglist-gummy-hover 1.25s ease-in-out infinite;
}
@keyframes kniglist-gummy-hover {
  0%,100% { transform: translateY(0) scale(1); border-radius: 13px; }
  50% { transform: translateY(-2px) scale(1.015,1.02); border-radius: 17px 11px 16px 12px; }
}
.btn-primary:hover:not([disabled]):active, .btn-paper:hover:not([disabled]):active,
.btn-dark:hover:not([disabled]):active, .btn-ghost:hover:not([disabled]):active,
.btn-primary:not([disabled]):active, .btn-paper:not([disabled]):active,
.btn-dark:not([disabled]):active, .btn-ghost:not([disabled]):active {
  animation: kniglist-gummy-press .16s ease-out;
  box-shadow: 0 1px 0 var(--mandarin-deep), 0 3px 8px rgba(177,104,18,.18);
}
@keyframes kniglist-gummy-press {
  0%,100% { transform: translateY(0) scale(1); }
  55% { transform: translateY(2px) scale(.99); }
}
.btn-primary[disabled], .btn-paper[disabled], .btn-dark[disabled], .btn-ghost[disabled] { animation: none; }
.icon-btn { width: 34px; height: 34px; }
.icon-btn svg { width: 16px; height: 16px; }
.nav-link { padding: 7px 11px; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .btn-primary, .btn-paper, .btn-dark, .btn-ghost { animation: none !important; will-change: auto; } }

/* Кнопки расшаривания: прозрачная заливка, только фирменный золотой контур и тёмный читаемый текст. */
.share-links .btn-paper, .share-links .btn-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: none;
}
.share-links .btn-paper:hover:not([disabled]), .share-links .btn-dark:hover:not([disabled]) {
  background: rgba(244, 201, 93, .08);
  color: var(--ink);
  border-color: var(--mandarin);
  box-shadow: none;
  filter: none;
}

/* Поиск прямо в каталоге */
.cat-search { max-width: 620px; margin-top: 20px; }
.cat-search .input { width: 100%; }
.cat-filters > [hidden] { display: none !important; }
/* Кликабельные книги внутри блока книжного цикла */
.book-detail-cycle .cycle-part-btn { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 7px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.book-detail-cycle .cycle-part-btn:hover { background: rgba(242, 138, 30, .12); color: var(--ink); }
.book-detail-cycle .cycle-part-btn:focus-visible { outline: 2px solid var(--mandarin-hi); outline-offset: 2px; }
.book-detail-cycle .cycle-part-btn > span { flex: 0 0 auto; color: var(--mandarin-deep); opacity: .5; font-size: .8em; }
.book-detail-cycle .cycle-part-btn:hover > span { opacity: 1; transform: translate(2px,-1px); }
.book-detail-cycle li.is-current .cycle-part-btn { background: rgba(242, 138, 30, .16); color: var(--ink); }
.cycle-fallback { padding: 12px 4px 6px; }
.cycle-fallback h2 { margin: 8px 0 4px; font: 500 1.65rem/1.2 var(--font-display); }
.cycle-fallback p { margin: 0 0 16px; }

/* Выбранный вариант №1: векторные снежинки с плотными, чёткими линиями */
.snowflake-decoration { position: absolute; z-index: 3; display: block; width: clamp(76px, 9vw, 98px); height: auto; object-fit: contain; pointer-events: none; user-select: none; }
.snowflake-one { left: 8%; bottom: 1%; }
.snowflake-two { left: 23%; bottom: -1%; width: clamp(58px, 6.6vw, 72px); }
.snowflake-white { filter: drop-shadow(0 2px 2px rgba(29, 23, 16, .2)) drop-shadow(0 4px 7px rgba(76, 119, 140, .18)); }
/* Обе белые снежинки парят заметнее, но по-прежнему плавно; размеры сохранены. */
.snowflake-one { animation: snow-drift-one 5.8s cubic-bezier(.45, 0, .55, 1) infinite; }
.snowflake-two { animation: snow-drift-two 6.6s cubic-bezier(.45, 0, .55, 1) infinite -2.4s; }
@keyframes snow-drift-one {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  24% { transform: translate3d(6px, -12px, 0) rotate(1.6deg); }
  52% { transform: translate3d(-4px, -21px, 0) rotate(-1.4deg); }
  78% { transform: translate3d(-8px, -8px, 0) rotate(-2deg); }
}
@keyframes snow-drift-two {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  25% { transform: translate3d(-7px, -13px, 0) rotate(-1.8deg); }
  53% { transform: translate3d(4px, -22px, 0) rotate(1.5deg); }
  79% { transform: translate3d(8px, -9px, 0) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .snowflake-one, .snowflake-two { animation: none; }
}

/* Три новые новогодние «живые» сцены для выбора в настройках партнёрки */
body[data-bg="ice-prisms"]::before,
body[data-bg="winter-dawn"]::before,
body[data-bg="frosted-pines"]::before { inset: -4%; will-change: transform; }
body[data-bg="ice-prisms"]::before {
  background: radial-gradient(ellipse at 18% 24%, rgba(70, 180, 255, .34), transparent 48%), radial-gradient(ellipse at 80% 62%, rgba(103, 108, 255, .27), transparent 50%), radial-gradient(ellipse at 42% 88%, rgba(83, 220, 235, .14), transparent 44%), linear-gradient(180deg, #071329, #102347 55%, #09152d);
  animation: bg-prism-drift 23s ease-in-out infinite alternate;
}
body[data-bg="winter-dawn"]::before {
  background: radial-gradient(ellipse at 70% 25%, rgba(255, 195, 112, .23), transparent 42%), radial-gradient(ellipse at 24% 68%, rgba(82, 175, 221, .28), transparent 48%), radial-gradient(ellipse at 86% 82%, rgba(179, 135, 229, .17), transparent 45%), linear-gradient(180deg, #101934, #24375b 56%, #101a36);
  animation: bg-dawn-drift 31s ease-in-out infinite alternate;
}
body[data-bg="frosted-pines"]::before {
  background: radial-gradient(ellipse at 48% 42%, rgba(141, 191, 205, .19), transparent 48%), radial-gradient(ellipse at 80% 72%, rgba(69, 135, 149, .18), transparent 42%), linear-gradient(155deg, transparent 49%, rgba(6, 18, 34, .95) 49.5% 76%, transparent 76.5%), linear-gradient(205deg, transparent 42%, rgba(10, 26, 43, .98) 42.5% 78%, transparent 78.5%), linear-gradient(180deg, #091526, #142d3d 58%, #091729);
  animation: bg-pine-drift 39s ease-in-out infinite alternate;
}
@keyframes bg-prism-drift { from { transform: translate3d(-1.4%, -.7%, 0) scale(1.02); } to { transform: translate3d(1.4%, .8%, 0) scale(1.06); } }
@keyframes bg-dawn-drift { from { transform: translate3d(1.2%, -.5%, 0) scale(1.03); } to { transform: translate3d(-1.3%, .7%, 0) scale(1.06); } }
@keyframes bg-pine-drift { from { transform: translate3d(-.8%, .4%, 0) scale(1.03); } to { transform: translate3d(.9%, -.3%, 0) scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  body[data-bg="ice-prisms"]::before, body[data-bg="winter-dawn"]::before, body[data-bg="frosted-pines"]::before { animation: none; }
}
/* «Морозное дыхание» — самостоятельный фон с движущимися морозными облаками; курсорный след работает только в этом режиме. */
body[data-bg="frost-breath"]::before {
  inset: -5%;
  background: radial-gradient(ellipse at 24% 32%, rgba(223, 246, 255, .17), transparent 37%), radial-gradient(ellipse at 77% 63%, rgba(152, 207, 227, .19), transparent 43%), radial-gradient(ellipse at 50% 92%, rgba(187, 219, 231, .12), transparent 42%), linear-gradient(180deg, #101a2c, #20384a 54%, #0e1a2a);
  animation: frost-breath-scene 22s ease-in-out infinite alternate;
}
@keyframes frost-breath-scene { from { transform: translate3d(-1%, .5%, 0) scale(1.02); } to { transform: translate3d(1.2%, -.6%, 0) scale(1.07); } }
@media (prefers-reduced-motion: reduce) { body[data-bg="frost-breath"]::before { animation: none; } }

/* Новогодний курсор-ёлочка. Остриё (звезда) — точка нажатия. Над кнопками и ссылками звезда загорается ярче. */
body[data-season="newyear"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate%285 5%29 scale%281.12%29 rotate%28-28%29 translate%28-16 -3.2%29' stroke-linejoin='round'%3E%3Crect x='14.3' y='21' width='3.4' height='5.6' rx='.8' fill='%237a4a21' stroke='%23fdf9f0' stroke-width='1'/%3E%3Cpath d='M16 3.2 10.2 11.4h2.6L7.6 17.6h3L5.8 23h20.4l-4.8-5.4h3l-5.2-6.2h2.6z' fill='%232c8a63' stroke='%23fdf9f0' stroke-width='1.3'/%3E%3Cpath d='M16 5.6 12.6 10.6h6.8zM16 11.6l-4.6 5.4h9.2z' fill='%23fff' opacity='.16'/%3E%3Ccircle cx='13.2' cy='15' r='1.3' fill='%23e5484d'/%3E%3Ccircle cx='18.6' cy='13.6' r='1.15' fill='%23ffd166'/%3E%3Ccircle cx='11' cy='20.4' r='1.3' fill='%23ffd166'/%3E%3Ccircle cx='16.4' cy='19.6' r='1.3' fill='%23e5484d'/%3E%3Ccircle cx='21' cy='20.6' r='1.25' fill='%238ecbff'/%3E%3Ccircle cx='16' cy='3.2' r='1.7' fill='%23ffd166' stroke='%23fdf9f0' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") 5 5, auto; }
body[data-season="newyear"] :is(a, button, summary, select, label.check, label.check input, [data-action], [data-link]) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate%285 5%29 scale%281.12%29 rotate%28-28%29 translate%28-16 -3.2%29' stroke-linejoin='round'%3E%3Crect x='14.3' y='21' width='3.4' height='5.6' rx='.8' fill='%237a4a21' stroke='%23fdf9f0' stroke-width='1'/%3E%3Cpath d='M16 3.2 10.2 11.4h2.6L7.6 17.6h3L5.8 23h20.4l-4.8-5.4h3l-5.2-6.2h2.6z' fill='%2335a877' stroke='%23fdf9f0' stroke-width='1.3'/%3E%3Cpath d='M16 5.6 12.6 10.6h6.8zM16 11.6l-4.6 5.4h9.2z' fill='%23fff' opacity='.16'/%3E%3Ccircle cx='13.2' cy='15' r='1.3' fill='%23e5484d'/%3E%3Ccircle cx='18.6' cy='13.6' r='1.15' fill='%23ffd166'/%3E%3Ccircle cx='11' cy='20.4' r='1.3' fill='%23ffd166'/%3E%3Ccircle cx='16.4' cy='19.6' r='1.3' fill='%23e5484d'/%3E%3Ccircle cx='21' cy='20.6' r='1.25' fill='%238ecbff'/%3E%3Ccircle cx='16' cy='3.2' r='3.9' fill='%23ffd166' opacity='.4'/%3E%3Ccircle cx='16' cy='3.2' r='2.2' fill='%23ffd166' stroke='%23fdf9f0' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") 5 5, pointer; }
body[data-season="newyear"] :is(button[disabled], .btn[disabled]) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate%285 5%29 scale%281.12%29 rotate%28-28%29 translate%28-16 -3.2%29' stroke-linejoin='round'%3E%3Crect x='14.3' y='21' width='3.4' height='5.6' rx='.8' fill='%237a4a21' stroke='%23fdf9f0' stroke-width='1'/%3E%3Cpath d='M16 3.2 10.2 11.4h2.6L7.6 17.6h3L5.8 23h20.4l-4.8-5.4h3l-5.2-6.2h2.6z' fill='%232c8a63' stroke='%23fdf9f0' stroke-width='1.3'/%3E%3Cpath d='M16 5.6 12.6 10.6h6.8zM16 11.6l-4.6 5.4h9.2z' fill='%23fff' opacity='.16'/%3E%3Ccircle cx='13.2' cy='15' r='1.3' fill='%23e5484d'/%3E%3Ccircle cx='18.6' cy='13.6' r='1.15' fill='%23ffd166'/%3E%3Ccircle cx='11' cy='20.4' r='1.3' fill='%23ffd166'/%3E%3Ccircle cx='16.4' cy='19.6' r='1.3' fill='%23e5484d'/%3E%3Ccircle cx='21' cy='20.6' r='1.25' fill='%238ecbff'/%3E%3Ccircle cx='16' cy='3.2' r='1.7' fill='%23ffd166' stroke='%23fdf9f0' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") 5 5, default; }
