/* Экземпляр «ruslana»: оформление по макетам Антона 17.09 (песочный фон, пастель, персонаж Мочи).
   Грузится после app.css и переопределяет его. Цвета палитры — в THEME (lines.js). */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500&display=swap");

:root {
  --ink: #1F2430;
  --paper: #F8F4EA;
  --on-paper: #1F2430;
  --muted: #6B6F78;
  --panel: #FFFFFF;
  --hand: "Caveat", "Comic Sans MS", cursive;
}
body { background: var(--paper); color: var(--on-paper); }
.eyebrow { color: var(--muted); opacity: 1; }
.meta { color: var(--muted); opacity: 1; }
.glados { color: var(--muted); opacity: 1; font-style: normal; }

/* выбор колоды: без подписи «интервальное повторение» (Антон, 17.09) */
#screen-decks .eyebrow { display: none; }
#screen-decks .hero-label { font-size: clamp(40px, 11vw, 52px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 0; }
.decks { margin-top: 28px; gap: 16px; }
.deck { align-items: center; gap: 16px; padding: 18px 20px; border-radius: 26px; }
.deck-icon { width: 64px; height: 64px; object-fit: contain; flex: none; }
.deck-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.deck-name { font-size: 26px; }
.deck-due { color: var(--muted); opacity: 1; font-size: 14px; }
.deck-go { font-size: 34px; line-height: 1; font-weight: 300; color: var(--ink); }

.art-wrap { position: relative; }
.art { display: block; width: 100%; height: auto; }
.art-decks { margin-top: auto; padding-top: 16px; margin-inline: -24px; margin-bottom: -28px; }
.art-decks .art { max-height: 38svh; object-fit: contain; object-position: left bottom; }
.hand {
  position: absolute; right: 20px; top: 34%; margin: 0;
  font-family: var(--hand); font-size: 26px; line-height: 1.05; color: var(--ink);
  transform: rotate(-6deg); max-width: 45%; text-align: center;
}
.hand:empty { display: none; }

/* сводка колоды */
.back { color: var(--ink); opacity: .8; }
.art-home .art { width: 62%; max-height: 30svh; object-fit: contain; margin: 8px auto 0; }
body.themed .art-home:not([hidden]) + .hero { margin-top: 8px; }
.hero { margin-top: 12vh; }
/* пусто — спящий кот и одна фраза под ним: числа и серия убраны (Антон, 17.09) */
.is-empty .hero, .is-empty .meta { display: none !important; }
.is-empty .glados { text-align: center; font-size: 18px; color: var(--ink); margin-top: 20px; }
.is-empty .art-home .art { width: 70%; max-height: 36svh; margin-top: 22vh; }
.pill-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { border-color: var(--ink); }

/* карточка: пастельный фон, тёмный текст — как у Антона, только палитра светлее */
.detail { border-top-color: rgba(31, 36, 48, .15); }
.grade[data-rating="3"] .ico { color: #fff; }

/* итог */
.done-hero, .done-meta { display: none; }
#screen-done .eyebrow { display: none; }
.done-cheer { text-align: center; margin-top: 8vh; }
.art-done { margin-top: 18px; }
.art-done .art { width: 92%; max-height: 32svh; object-fit: contain; object-position: center bottom; margin: 0 auto; }
.art-done:not([hidden]) + .stats { margin-top: 0; }
.cheer-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 13vw, 60px); letter-spacing: -.02em; }
.cheer-sub { margin: 10px auto 0; max-width: 18em; font-size: 17px; line-height: 1.4; color: var(--ink); }
.stats {
  margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--panel); border-radius: 22px; padding: 18px 6px;
  box-shadow: 0 1px 0 rgba(31, 36, 48, .06);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.stat + .stat { border-left: 1px solid rgba(31, 36, 48, .1); }
.stat-ico { font-size: 26px; line-height: 1.2; }
.stat b { font-size: 26px; color: var(--ink); font-weight: 600; }
#screen-done .glados { display: none; } /* числа уже в плашке */
