/* «Ёлочка Авангарда» — снеговик-великан (21.11): во дворе (decor.js) и лист ступеней (snow.js) */

/* ---------- во дворе: низ и середина снежной площадки картинки (241, 527 из 485 × 543) — в точке left/top ---------- */
.yd-snow { position: absolute; padding: 0; border: 0; background: none; transform: translate(-49.7%, -97.1%); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.yd-snow img { display: block; width: 100%; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 calc(var(--tree-h) * .012) calc(var(--tree-h) * .016) rgba(29, 18, 56, .3)); }
.yd-snow .yd-pic { display: block; transform-origin: 50% 96%; }
/* на нуле — бледный ком, будто намечен: видно, что здесь что-то будет */
.yd-snow.is-ghost img { opacity: .7; filter: drop-shadow(0 0 calc(var(--tree-h) * .02) rgba(255, 255, 255, .95)); }
/* плашка «Слепить» — тёмная, как «❄ 5» у шара-копилки; над макушкой ступени (bottom ставит decor.js по её росту) */
.yd-snow__tag { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding: .2em .6em .22em; border-radius: 99px; background: #2a1a52; color: #fff;
  font-size: .78rem; font-weight: 800; line-height: 1.1; white-space: nowrap; box-shadow: 0 2px 0 rgba(29, 18, 56, .35), 0 0 0 2px rgba(255, 255, 255, .85); pointer-events: none;
  animation: ysn-nudge 2.6s ease-in-out infinite; }
.yd-snow__tag[hidden] { display: none; }
@keyframes ysn-nudge { 0%, 70%, 100% { transform: translateX(-50%) translateY(0); } 80% { transform: translateX(-50%) translateY(-4px); } 90% { transform: translateX(-50%) translateY(0); } }
/* в «Украсить» снеговик стоит, но не мешает тащить вещи поверх и не зовёт лепить */
body.y-decorating .yd-snow { pointer-events: none; }
body.y-decorating .yd-snow__tag { display: none; }

/* ---------- лист ступеней ---------- */
.ysn-sub { margin: -2px 0 10px; color: var(--ink-2, #5d4f7e); font-weight: 700; font-size: .9rem; }
.ysn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ysn-cell { display: grid; justify-items: center; gap: 2px; padding: 6px 4px 7px; border-radius: 16px; background: #faf9fd; border: 2px solid #e3dcf7; text-align: center; min-width: 0; }
.ysn-cell img { width: 100%; max-width: 92px; aspect-ratio: 485 / 543; object-fit: contain; }
.ysn-cell b { font-size: .74rem; line-height: 1.15; font-weight: 800; color: var(--ink, #24153f); }
.ysn-cell small { display: inline-flex; align-items: center; gap: 2px; font-size: .76rem; font-weight: 800; color: var(--ink-2, #5d4f7e); }
.ysn-cell.is-done { background: #f3efff; border-color: #6d3fe0; }
.ysn-cell.is-next { border-style: dashed; border-color: #6d3fe0; }
.ysn-cell.is-later img { opacity: .42; filter: saturate(.5); }
.ysn-cell.is-later b, .ysn-cell.is-later small { opacity: .7; }
.ysn-ok { color: #6d3fe0; font-size: .9rem; line-height: 1; }
.ysn-have { margin: 0; text-align: center; }
.ysn-hint { margin: 0; text-align: center; font-size: .8rem; line-height: 1.3; color: var(--ink-2, #5d4f7e); }
.ysn-hint:empty { display: none; }
.ysn-bar .y-btn[hidden] { display: none; }
/* лента: картинка ступени в кружке строки */
.ysn-newspic { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 700px) {
  .y-sheet--snow .ysn-grid { gap: 10px; }
  .ysn-cell b { font-size: .8rem; }
}
