/* «Ёлочка Авангарда» — одна дорога к Якиманке (road.js; 18.11, одна дорога на 62 вещи — 19.11, SPEC-B F7): строка в листе «Игры»,
   лист дороги, окно вещи, сводное окно, раздел в «Наградах», строка в итоге партии, облачко у гостя. Цвета и приёмы — из
   style.css и bag.css (сиреневый — получено, персиковый — следующее; жёлтого и золотого нет). Анимации под «уменьшить
   движение» не урезаются. */

/* ---------- строка в листе «Игры»: полоска по восьми домам ---------- */
.yr-row .yb-streak__text { gap: 2px; }
.yr-row__pic { background: radial-gradient(circle at 50% 65%, #4a3190, #24153f); }
.yr-row__pic .yd-gico svg { width: 2.3rem; }
.yr-bar { position: relative; display: block; height: 8px; margin: 9px 13px 9px 2px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 2px #cdbdf7; }
.yr-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); }
.yr-bar__mark { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #cdbdf7; display: grid; place-items: center; overflow: hidden; }
.yr-bar__mark img { width: 90%; height: 90%; object-fit: contain; filter: saturate(.85); opacity: .6; }
.yr-bar__mark.is-got { box-shadow: 0 0 0 2px var(--accent); }
.yr-bar__mark.is-got img, .yr-bar__mark.is-next img { filter: none; opacity: 1; }
.yr-bar__mark.is-next { box-shadow: 0 0 0 3px var(--peach); background: #fff1ea; animation: yr-next 1.8s ease-in-out infinite; }
@keyframes yr-next { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
/* низкий экран (390×664, 1366×657): строка не выше картинки слева — мешок и первые игры по-прежнему видны без прокрутки */
@media (max-height: 700px) {
  .yr-row { margin-bottom: 6px; padding: 4px 10px 5px 5px; }
  .yr-row .yb-streak__text { gap: 0; }
  .yr-row .yb-streak__text b { font-size: .8rem; line-height: 1.15; }
  .yr-bar { height: 7px; margin: 7px 12px 6px 2px; }
  .yr-bar__mark { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
}

/* ---------- лист «Дорога к Якиманке»: 63 узла, вещи рядом ---------- */
.yr-wrap { display: grid; gap: 12px; }
.yr-road { --s0: 56px; position: relative; display: flex; flex-direction: column-reverse; gap: 4px; padding: 12px 12px 10px; border-radius: 22px; background: linear-gradient(180deg, #e7e0fb 0%, #f5f1ff 100%); }
.yr-road::before { content: ""; position: absolute; left: calc(12px + var(--s0) / 2 - 7px); top: 40px; bottom: 40px; width: 14px; border-radius: 99px; background: #fff; }
.yr-node { --s: var(--s0); position: relative; display: flex; align-items: center; gap: 12px; }
.yr-node.is-next { --s: calc(var(--s0) + 8px); margin: 4px 0; }
.yr-node.is-first { --s: calc(var(--s0) - 10px); }
.yr-node__pic { position: relative; flex: none; width: var(--s); height: var(--s); margin: 0 calc((var(--s0) + 8px - var(--s)) / 2); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 -3px 0 #d9cdfb, 0 4px 10px rgba(36, 21, 63, .12); }
.yr-node__pic img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(29, 18, 56, .25)); }
.yr-node__pic .yd-gico { display: grid; place-items: center; width: 82%; height: 82%; }
.yr-node__pic .yd-gico svg { width: 100%; }
.yr-node.is-locked .yr-node__pic { background: #e3dcf6; box-shadow: inset 0 -3px 0 #d0c5ef; }
/* Герман 23.11: закрытые вещи — своей картинкой в цвете, бледнее открытых (было — серый силуэт) */ .yr-node.is-locked .yr-node__pic > img, .yr-node.is-locked .yr-node__pic > .yd-gico { filter: saturate(.85); opacity: .6; }
.yr-node.is-own .yr-node__pic { box-shadow: inset 0 -3px 0 #d9cdfb, 0 0 0 2px #cdbdf7; }
.yr-node.is-next .yr-node__pic { box-shadow: inset 0 -3px 0 #ffd2c2, 0 0 0 4px var(--peach), 0 6px 14px rgba(36, 21, 63, .2); }
.yr-node.is-got .yr-node__pic { box-shadow: inset 0 -3px 0 #d9cdfb, 0 0 0 3px var(--accent), 0 4px 10px rgba(36, 21, 63, .12); }
.yr-node.is-first .yr-node__pic { box-shadow: inset 0 -3px 0 #d9cdfb, 0 0 0 3px #cdbdf7; }
.yr-check { position: absolute; right: -4px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #fff; }
.yr-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.yr-node__text { display: grid; gap: 0; min-width: 0; }
.yr-node__text b { font-size: .98rem; font-weight: 800; line-height: 1.2; }
.yr-node__text span { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.yr-node.is-house .yr-node__text b { font-size: 1.06rem; }
.yr-node.is-next .yr-node__text span { color: #b8441f; }
.yr-node.is-locked .yr-node__text b { color: var(--ink-2); }
.yr-me { position: absolute; left: calc(var(--s0) - 6px); top: -8px; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(36, 21, 63, .25); animation: yr-me 2.4s ease-in-out infinite; }
@keyframes yr-me { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.yr-card .yl-card__head b { font-size: 1.1rem; }
@media (min-width: 768px) { .yr-road { --s0: 64px; } }
@media (min-width: 900px) and (min-height: 560px) {
  .yr-sheet { width: min(52rem, 94vw); }
  .yr-wrap { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; }
  .yr-card { position: sticky; top: 0; bottom: auto; }
}

/* ---------- окно вещи (по образцу «Новый дом») и сводное окно ---------- */
.yr-strip { display: flex; justify-content: center; gap: 8px; margin: 2px 0 8px; }
.yr-strip i { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #e3dcf6; box-shadow: inset 0 -3px 0 #d0c5ef; overflow: hidden; }
.yr-strip i > img, .yr-strip i > .yd-gico { width: 84%; height: 84%; object-fit: contain; filter: saturate(.85); opacity: .6; }
.yr-strip i > .yd-gico { display: grid; place-items: center; }
.yr-strip i .yd-gico svg { width: 100%; }
.yr-strip i.is-got { background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.yr-strip i.is-this { background: #fff1ea; box-shadow: 0 0 0 3px var(--peach); animation: yr-next 1.6s ease-in-out infinite; }
.yr-strip i.is-got > img, .yr-strip i.is-this > img, .yr-strip i.is-got > .yd-gico, .yr-strip i.is-this > .yd-gico { filter: none; opacity: 1; }
.yr-prize .y-prize[data-r="special"] { background: #e6dcff; box-shadow: inset 0 -4px 0 #cdbdf7; }
.yr-prize .yb-prize--wide { max-width: 17rem; }
.yr-prize .y-prize.yr-big > img { width: 11rem; height: 9rem; }
.yr-prize .y-prize.yr-big:not([data-d="house"]) > img { width: 8rem; height: 8rem; }
.yr-prize .y-prize.yr-big .yd-gico--big { width: 8rem; height: 8rem; }
.yr-prize .y-prize.yr-big .yd-gico--big svg { width: 8rem; }
.yr-prize .y-prize.yr-big > img, .yr-prize .y-prize.yr-big > .yd-gico { animation: yr-rise .7s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
@keyframes yr-rise { 0% { transform: translateY(18%) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* сводное окно: картинки выданного по 4 в ряд, подпись — имя; больше восьми — девятой клеткой «и ещё N» */
.yr-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0 4px; }
.yr-sum__it { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 6px 3px 7px; border-radius: 14px; background: #e6dcff; box-shadow: inset 0 -3px 0 #cdbdf7; animation: y-pop .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.yr-sum__it:nth-child(2) { animation-delay: .08s; } .yr-sum__it:nth-child(3) { animation-delay: .16s; } .yr-sum__it:nth-child(4) { animation-delay: .24s; }
.yr-sum__it:nth-child(n+5) { animation-delay: .32s; }
.yr-sum__pic { display: block; width: 3.2rem; height: 3.2rem; }   /* блоком: в сетке проценты высоты картинки не держались — высокие (венок, снеговик) вылезали на подпись */
.yr-sum__pic > img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(29, 18, 56, .25)); }
.yr-sum__pic .yd-gico svg { width: 3.1rem; }
.yr-sum__it b { max-width: 100%; font-size: .7rem; font-weight: 800; line-height: 1.1; text-align: center; overflow-wrap: break-word; }
.yr-sum__more { align-content: center; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.yr-sum__more b { font-size: .8rem; color: var(--ink-2); }
.yr-sum__first, .yr-sum__cans { margin: 6px 0 0; font-weight: 700; }
@media (max-height: 700px) {
  .yr-prize .y-prize.yr-big > img { width: 8.4rem; height: 6.8rem; }
  .yr-prize .y-prize.yr-big:not([data-d="house"]) > img, .yr-prize .y-prize.yr-big .yd-gico--big { width: 6.2rem; height: 6.2rem; }
  .yr-prize .y-prize.yr-big .yd-gico--big svg { width: 6.2rem; }
  .yr-strip i { width: 2.5rem; height: 2.5rem; }
  .yr-sum__pic { width: 2.6rem; height: 2.6rem; }
  .yr-sum__pic .yd-gico svg { width: 2.5rem; }
}

/* ---------- итог партии: «★ дороги 412 · до образа «Бобёр с какао» 12», когда до вещи 10 звёзд и меньше ---------- */
.yr-line { margin: 2px 0 0; text-align: center; font-size: .8rem; font-weight: 800; color: var(--ink-2); }
.yr-line .yb-star { background: var(--accent); }

/* ---------- «Награды»: 62 клетки в порядке дороги, пять столбцов, как .yb-grid ---------- */
.yr-set { margin: 0 0 12px; padding: 10px 10px 12px; border-radius: 20px; background: var(--soft); box-shadow: inset 0 -3px 0 var(--line); }
.yr-set .yr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.yr-ico { background: radial-gradient(circle at 50% 65%, #4a3190, #24153f); box-shadow: none; }
.yr-ico img { width: 2.2rem; height: 2.2rem; }
.yr-ico .yd-gico svg { width: 2.2rem; }
.yr-set .yb-it:not(.is-have) b { color: #b8441f; }

/* ---------- лента: картинка вещи узлом (нить гирлянды или картинка) ---------- */
.y-news__pic--node { display: grid; place-items: center; overflow: hidden; }
.y-news__pic--node > img { width: 100%; height: 100%; object-fit: contain; }
.y-news__pic--node .yd-gico svg { width: 44px; }

/* ---------- облачко над домом дороги у гостя ---------- */
.yr-bubble { position: fixed; z-index: 50; max-width: 220px; padding: 8px 14px 9px; border-radius: 16px; background: #fff; color: var(--ink); font: 800 .9rem/1.25 var(--font, inherit); box-shadow: 0 6px 16px rgba(36, 21, 63, .25); transform: translateY(-100%); pointer-events: none; animation: yr-bubble 2s ease-out both; }
.yr-bubble::after { content: ""; position: absolute; left: 28px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
@keyframes yr-bubble { 0% { opacity: 0; transform: translateY(-80%) scale(.8); } 12%, 85% { opacity: 1; transform: translateY(-100%) scale(1); } 100% { opacity: 0; transform: translateY(-100%) scale(1); } }

/* ---------- сборка C (F1): пачка букв на дороге — маленький узел со значком трёх плиток; буквы в сводном окне ---------- */
.yr-node.is-pack { --s: calc(var(--s0) - 18px); }
.yr-node.is-pack .yr-node__pic { background: #f3eeff; }
.yr-node.is-pack .yr-node__text b { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.yr-node.is-pack.is-got .yr-node__text b, .yr-node.is-pack.is-next .yr-node__text b { color: var(--ink); }
.yr-sum__packs { display: grid; justify-items: center; gap: 6px; margin: 10px 0 0; font-size: .86rem; font-weight: 800; }
.yr-sum__ach { margin-top: 8px; font-weight: 800; }
.yb-it__pic .yl-pack, .yb-set__ico .yl-pack, .yr-node__pic .yl-pack { width: 80%; height: 80%; }
