/* «Ёлочка Авангарда» — мешок лисы из двух половин дня, «Награды», подарок за вход подряд (v3; одна дорога 19.11; bag.js).
   Поверх style.css: те же токены, звёзды персиковые (--peach), жёлтого и золотого нет. Мелкий текст — --ink-2 на светлом
   (на белом и персиковом #fff1ea APCA Lc 80+). В строках без стрелок: отклик наведением и нажатием.
   Анимации (звёзды в мешок, подарок) — ширина заливки, transform и opacity, по «меньше движения» не урезаются. */
:root { --yb-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.8 3 6.5 7.1.8-5.3 4.8 1.5 7-6.3-3.6-6.3 3.6 1.5-7L1.9 9.1 9 8.3Z'/%3E%3C/svg%3E"); }
.yb-star { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; background: var(--peach); -webkit-mask: var(--yb-star) center / contain no-repeat; mask: var(--yb-star) center / contain no-repeat; }

/* ---------- мешок вверху листа «Игры» ---------- */
.yb-bag { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0 0 10px; padding: 8px 14px 12px 8px; border-radius: 20px; background: #fff1ea; box-shadow: inset 0 -3px 0 #ffd9c9; }
.yb-bag__pic { flex: none; width: 4.2rem; height: 4.2rem; display: grid; place-items: center; }
.yb-bag__pic img, .yb-line__pic img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(29, 18, 56, .25)); transform-origin: 50% 100%; }
.yb-bag__text { flex: 1; min-width: 10rem; display: grid; gap: 2px; }
.yb-bag__text b { font-size: 1.06rem; font-weight: 800; line-height: 1.15; }
.yb-nw { white-space: nowrap; }
.yb-bag__text > span { font-size: .86rem; font-weight: 700; line-height: 1.25; color: var(--ink-2); }
.yb-bag__text small { font-size: .76rem; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.yb-bag.is-full .yb-bag__line { color: #993015; }   /* «Мешок на сегодня полон» — тёплым, к фону #fff1ea APCA Lc 80 */
/* половины дня (bag.js halvesLine): «С уровнями 15 из 15 · без уровней 6 из 15»; заполненная — тёплым и жирнее
   (#993015 на #fff1ea, APCA Lc 80) */
.yb-bag__text .yb-bag__cap span.is-done { color: #993015; font-weight: 800; }

/* полоска: сплошная шкала 0–30 (доля на звезду — тонкая чёрточка), на 5, 10, 20, 30 — подарки (SPEC-B F3, F7). Подарок не
   меньше 24 px (на ноутбуке 26), центр — на своей точке шкалы и на середине дорожки; поля слева и справа — по половине
   подарка, последний не вылезает за край. Высота полоски — высота подарка: блок мешка не выше прежнего (ячейки 18–23 px) */
.yb-strip { --g: 24px; flex-basis: 100%; max-width: 26rem; display: block; padding: 2px calc(var(--g) / 2) 0; }
/* в широком листе (мешок в «Играх» на ноутбуке, строка мешка в итоге партии) полоске при max-width хватало места справа от
   текста и текст сжимался в колонку: отступ справа добирает её до целой строки — полоска всегда под текстом, как на телефоне */
.yb-strip { margin-right: max(0px, 100% - 26rem); }
.yb-strip__track { position: relative; display: block; height: 10px; margin: calc((var(--g) - 10px) / 2) 0; border-radius: 99px; background: #fff; box-shadow: inset 0 -2px 0 #ffd9c9; }
.yb-strip__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--peach); }
.yb-strip__track::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--yb-max, 30) - 1px), #ffd9c9 calc(100% / var(--yb-max, 30) - 1px) calc(100% / var(--yb-max, 30))); }
.yb-strip__gift { position: absolute; z-index: 1; top: 50%; width: var(--g); height: var(--g); transform: translate(-50%, -50%); }
.yb-strip__pic { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(.5) drop-shadow(0 2px 2px rgba(29, 18, 56, .2)); opacity: .72; }
.yb-strip__gift.is-on .yb-strip__pic { filter: drop-shadow(0 2px 2px rgba(29, 18, 56, .3)); opacity: 1; }
.yb-strip__gift.is-got .yb-strip__pic { filter: grayscale(.2) drop-shadow(0 2px 2px rgba(29, 18, 56, .2)); opacity: .5; }
.yb-strip__gift.is-got::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 2px #fff1ea;
  background: var(--ok) center / 9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
/* только что легли: заливка растёт по звезде (steps, в такт bag/star; задержка и длительность — у заливки, bag.js), подарок на
   пройденной отметке подпрыгивает, когда заливка до него доходит (задержка — у подарка) */
.yb-strip__gift.is-new .yb-strip__pic { animation: yb-gift .6s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: inherit; }
.yb-strip__gift.is-new.is-got::after { animation: yb-check .3s ease-out backwards; animation-delay: inherit; }
@keyframes yb-fill { from { width: var(--yb-from, 0%); } }
@keyframes yb-gift { 0% { transform: none; } 40% { transform: translateY(-30%) scale(1.25) rotate(-8deg); } 100% { transform: none; } }
@keyframes yb-check { from { transform: scale(0); } }
@media (min-width: 768px) { .yb-strip { --g: 26px; } }

/* строка входа подряд — под мешком */
.yb-streak { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 6px 12px 8px 6px; border: 0; border-radius: 16px; background: var(--soft); box-shadow: inset 0 -3px 0 var(--line); text-align: left; transition: background .15s, transform .12s; }
.yb-streak:active { transform: translateY(2px); }
.yb-streak__pic { flex: none; width: 2.7rem; height: 2.7rem; border-radius: 12px; background: linear-gradient(180deg, #3a2470, #24153f); display: grid; place-items: center; overflow: hidden; }
.yb-streak__pic > img { width: 88%; height: 88%; object-fit: contain; }
.yb-streak__text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.yb-streak__text b { font-size: .84rem; font-weight: 800; line-height: 1.2; }
.yb-dots { display: flex; gap: 5px; }
.yb-dots i { width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #cdbdf7; font-size: .62rem; font-style: normal; font-weight: 800; line-height: 1; color: var(--ink-2); }
.yb-dots i.is-on { background: var(--accent); color: #fff; box-shadow: none; }
.yb-dots i.is-last:not(.is-on) { box-shadow: inset 0 0 0 2px var(--peach); }

/* «Награды» внизу листа «Игры» */
.yb-awards { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 9px 12px 11px 9px; border: 0; border-radius: 20px; background: #fff; text-align: left;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 -4px 0 var(--line); transition: transform .12s, box-shadow .15s; }
.yb-awards:active { transform: translateY(2px); }
.yb-awards__pics { flex: none; position: relative; width: 3.85rem; height: 3.85rem; }
.yb-awards__pics > * { position: absolute; width: 2.5rem; height: 2.5rem; max-width: 2.5rem; max-height: 2.5rem; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(29, 18, 56, .25)); }
.yb-awards__pics > :nth-child(1) { left: 0; top: .2rem; }
.yb-awards__pics > :nth-child(2) { right: -.1rem; top: 0; }
.yb-awards__pics > :nth-child(3) { left: .7rem; bottom: -.1rem; }
.yb-awards__pics .yd-gico svg { width: 2.5rem; }
.yb-go-soft { flex: none; padding: .5em .95em .58em; border-radius: 99px; background: #fff; color: var(--accent); font-size: .88rem; font-weight: 800; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
@media (hover: hover) {
  .yb-streak:hover { background: #e6dcff; }
  .yb-awards:hover { box-shadow: inset 0 0 0 2px #cdbdf7, inset 0 -4px 0 #cdbdf7; }
  .yb-awards:hover .yb-go-soft { background: #f3eeff; }
  button.yb-it:hover { box-shadow: inset 0 0 0 2px #cdbdf7, inset 0 -2px 0 #cdbdf7; }
}

/* ---------- итог партии: звёзды в мешок, подарок из мешка ---------- */
.yb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 6px 0 4px; padding: 6px 14px 12px 6px; border-radius: 18px; background: #fff1ea; box-shadow: inset 0 -3px 0 #ffd9c9; }
.yb-line__pic { flex: none; width: 3.5rem; height: 3.5rem; display: grid; place-items: center; }
.yb-line__pic.is-jig img { animation: yb-jig .2s ease-out var(--yb-t0, 0s) var(--yb-n, 1); }
.yb-line.has-gift .yb-line__pic img { animation: yb-jig .2s ease-out var(--yb-t0, 0s) var(--yb-n, 1), yb-open .55s cubic-bezier(.3, 1.6, .5, 1) calc(var(--yb-t0, 0s) + var(--yb-n, 1) * .2s + .15s); }
@keyframes yb-jig { 0%, 100% { transform: none; } 45% { transform: scale(1.08, .92); } }
@keyframes yb-open { 0% { transform: none; } 35% { transform: scale(.9, 1.12) rotate(-6deg); } 70% { transform: scale(1.06, .95) rotate(4deg); } 100% { transform: none; } }
.yb-line .yb-strip { padding-top: 0; }
.yb-gift-title { margin: 12px 0 4px; text-align: center; font-size: 1.02rem; font-weight: 800; animation: y-pop .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
/* в итоге со строкой мешка всё плотнее: «К играм» и «Ещё раз» помещаются без прокрутки (390×664 и 1366×657 — с подарком-
   игрушкой тоже: «На свою ёлку» и «Подарить» в один ряд, лист выше). Не поместилось на совсем низком экране — ряд «К играм» /
   «Ещё раз» прижат к низу листа, остальное листается под ним */
.y-sheet--prize:has(.yb-line) { max-height: 94dvh; }
.y-sheet--prize:has(.yb-line) .y-stars--big i { width: 2.9rem; height: 2.9rem; }
.y-sheet--prize:has(.yb-line) .y-score { margin-bottom: 4px; }
.y-sheet--prize:has(.yb-line) .y-col { gap: 6px; margin-top: 10px; }
.y-sheet--prize:has(.yb-line) .y-row { margin-top: 10px; }
.y-sheet--prize .yb-acts { width: 100%; }
/* липкий край считается от края содержимого листа (без его нижнего отступа 22px): bottom с минусом пускает ряд на отступ */
.y-sheet--prize:has(.yb-line) .y-sheet__body > .y-row:last-child { position: sticky; bottom: calc(-22px - var(--safe-b)); z-index: 2; margin: 4px 0 calc(-22px - var(--safe-b)); padding: 10px 0 calc(22px + var(--safe-b));
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 10px); }
.yb-line ~ .y-prizes .y-prize { max-width: 13rem; padding: 10px 8px 12px; }
.yb-line ~ .y-prizes .y-prize img, .yb-line ~ .y-prizes .y-prize .yd-gico--big { width: 4.6rem; height: 4.6rem; }
.yb-line ~ .y-prizes .y-prize .yd-gico--big svg { width: 4.6rem; }
.yb-prize--wide { max-width: 15rem; }
.y-prize .yb-pic--decor { width: 6.1rem; height: 6.1rem; object-fit: contain; }

/* окно подарка за вход */
.yb-streak-sheet .yb-dots { justify-content: center; gap: 8px; margin: 2px 0 8px; }
.yb-streak-sheet .yb-dots i { width: 2.2rem; height: 2.2rem; font-size: .9rem; overflow: hidden; }
.yb-streak-sheet .yb-dots i.is-last { background: #fff1ea; box-shadow: 0 0 0 3px var(--peach); }
.yb-streak-sheet .yb-dots i.is-last img { width: 92%; height: 92%; object-fit: contain; }
.yb-streak-sheet .y-prize img { width: 9rem; height: 6.6rem; }
.yb-next { margin: 12px 0 0; }

/* ---------- лист «Награды»: дорога к Якиманке и вход подряд ---------- */
.yb-awards-sheet .y-sheet__body { padding-bottom: 20px; }
.yb-lead { margin-bottom: 10px; font-weight: 700; }
.yb-set { margin: 0 0 12px; padding: 10px 10px 12px; border-radius: 20px; background: var(--soft); box-shadow: inset 0 -3px 0 var(--line); }
.yb-set__head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.yb-set__ico { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: inset 0 -2px 0 var(--line); }
.yb-set__ico img { width: 2rem; height: 2rem; max-width: 100%; max-height: 100%; object-fit: contain; }   /* высокие картинки наборов «Лёд» и «Огоньки» выезжали за плитку (проценты высоты в сетке) */
.yb-set__title { flex: 1; min-width: 0; display: grid; }
.yb-set__title b { font-size: 1.02rem; font-weight: 800; line-height: 1.15; }
.yb-set__title span { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.yb-set__done { flex: none; padding: .2em .7em .28em; border-radius: 99px; background: var(--ok); color: #fff; font-size: .74rem; font-weight: 800; }
.yb-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.yb-set--streak .yb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yb-it { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 6px 3px 7px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 -2px 0 var(--line); text-align: center; font: inherit; color: inherit; }
button.yb-it { cursor: pointer; transition: transform .12s, box-shadow .15s; }
button.yb-it:active { transform: translateY(2px); }
.yb-it__pic { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; overflow: hidden; }
.yb-it__pic > * { max-width: 100%; max-height: 100%; }
.yb-it__pic > img { width: 100%; height: 100%; object-fit: contain; }
.yb-it__pic .yd-gico svg { width: 2.8rem; }
/* Герман 23.11: закрытые вещи — своей картинкой в цвете, бледнее открытых (было — серый силуэт) */ .yb-it:not(.is-have) .yb-it__pic > * { filter: saturate(.85); opacity: .6; }
.yb-it b { min-height: 2.1em; max-width: 100%; font-size: .62rem; font-weight: 700; line-height: 1.05; color: var(--ink); overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
.yb-it:not(.is-have) b { color: var(--ink-2); font-weight: 600; }
.yb-it[data-r="rare"]:not(.is-have) b { color: var(--accent-d); }
.yb-it[data-r="special"]:not(.is-have) b { color: #b42a54; }
.yb-foot { margin: 6px 2px 0; font-size: .82rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
/* на ноутбуке те же пять столбцов, что на телефоне (в наборе 9–10 вещей — две строки): клетки шире, имена крупнее и целыми
   словами (в десять столбцов они рвались посреди слова: «Сне-жинка») */
@media (min-width: 720px) {
  .yb-it { padding: 8px 6px 9px; }
  .yb-it__pic { width: 3.3rem; height: 3.3rem; }
  .yb-it__pic .yd-gico svg { width: 3.2rem; }
  .yb-it b { font-size: .76rem; line-height: 1.1; }
}

/* ---------- низкий экран (телефон 390×664, ноутбук 1366×657): мешок и первые три игры видны без прокрутки листа «Игры» ---------- */
@media (max-height: 700px) {
  .yb-bag { padding: 6px 12px 10px 6px; margin-bottom: 8px; }
  .yb-bag__pic { width: 3.4rem; height: 3.4rem; }
  .yb-strip { padding-top: 0; }
  /* полоска на пол-пикселя ниже подарка (подарок 24 px выходит на 0,5 px сверху и снизу): мешок не выше прежнего (94,4 px на 390×664) */
  .yb-strip__track { margin: calc((var(--g) - 11px) / 2) 0; }
  .yb-streak { margin-bottom: 8px; padding: 5px 10px 6px 5px; }
  .yb-streak__pic { width: 2.3rem; height: 2.3rem; }
  .yb-dots i { width: 1.05rem; height: 1.05rem; }
  .y-sheet--games .y-wheelrow { margin-bottom: 8px; padding-top: 6px; padding-bottom: 8px; }
  .y-sheet--games .y-wheelrow .y-wheelbtn__disc { width: 2.9rem; height: 2.9rem; border-width: 3px; }
  .y-sheet--games .y-games { gap: 8px; }
  .y-sheet--games .y-game { padding-top: 6px; padding-bottom: 8px; }
  .y-sheet--games .y-game__pic { width: 3.2rem; height: 3.2rem; border-radius: 14px; }
  .yb-line { margin-top: 4px; padding-bottom: 10px; }
  .yb-line__pic { width: 2.9rem; height: 2.9rem; }
  .yb-gift-title { margin-top: 8px; }
  .yb-line ~ .y-prizes .y-prize { padding: 8px 6px 10px; }
  .yb-line ~ .y-prizes .y-prize img, .yb-line ~ .y-prizes .y-prize .yd-gico--big { width: 3.6rem; height: 3.6rem; }
  .yb-line ~ .y-prizes .y-prize .yd-gico--big svg { width: 3.6rem; }
}

/* лента: картинки вещей под старой записью «Лиса привезла набор…» (набор больше не пишется, старое рисуется) */
.yb-newsrow__pics { display: flex; gap: 2px; margin-top: 4px; }
.yb-newsrow__pics > * { width: 1.9rem; height: 1.9rem; object-fit: contain; }
.yb-newsrow__pics .yd-gico svg { width: 1.9rem; }

/* ====================== сборка C (SPEC-C, F1, F2, F6, F7, K; 21.11): снежинки, буквы, «В игре новое», сборка ====================== */
/* снежинка цвета текста (знака ❄ в шрифте игры нет): маска, цвет — currentColor */
:root { --yb-fl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9 3.6l3 2.4 3-2.4M9 20.4l3-2.4 3 2.4M3.5 10.6l3.6-.6-1.3-3.4M20.5 13.4l-3.6.6 1.3 3.4M3.5 13.4l3.6.6-1.3 3.4M20.5 10.6l-3.6-.6 1.3-3.4'/%3E%3C/svg%3E"); }
.yb-fl { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; background: currentColor; -webkit-mask: var(--yb-fl) center / contain no-repeat; mask: var(--yb-fl) center / contain no-repeat; }
/* мешок: звёзды уровней ждут (третья строка — только при wait > 0) */
.yb-bag__text .yb-bag__wait { color: #993015; font-weight: 700; }
.yb-line .yb-flakes { color: var(--accent-d); font-weight: 800; }
.yb-line .yb-waitline { color: #993015; font-weight: 800; }

/* кнопка «Игрушки» на дворе: вторая строка «❄ 37» */
.y-dockbtn .y-flakes { color: var(--accent-d); font-weight: 800; white-space: nowrap; }
.y-dockbtn .y-flakes .yb-fl { margin-right: 1px; }

/* «Награды» в листе «Игры»: две короткие строки под названием (F5) */
.yb-awards__text > span { white-space: nowrap; }

/* ---------- плитки букв (лист 3): фиолетовые, редкие — красные; без жёлтого ---------- */
.yl-tiles { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; vertical-align: middle; }
.yl-tile { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px; background: linear-gradient(180deg, #8f63f5, var(--accent) 60%, #5a2fd0); color: #fff;
  font-size: 1.02rem; font-weight: 800; line-height: 1; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(29, 18, 56, .25), 0 2px 0 #37189a; }
.yl-tile.is-rare { background: linear-gradient(180deg, #f2676b, var(--red) 60%, #cf3a40); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(29, 18, 56, .2), 0 2px 0 var(--red-d); }
/* значок пачки букв: три плитки веером */
.yl-pack { position: relative; display: inline-block; width: 72%; height: 72%; }
.yl-pack i { position: absolute; top: 18%; width: 52%; height: 64%; border-radius: 22%; background: linear-gradient(180deg, #8f63f5, var(--accent)); box-shadow: inset 0 -2px 0 rgba(29, 18, 56, .25), 0 1px 0 #37189a; }
.yl-pack i:nth-child(1) { left: 0; transform: rotate(-14deg); opacity: .85; }
.yl-pack i:nth-child(2) { left: 24%; top: 10%; z-index: 1; }
.yl-pack i:nth-child(3) { left: 48%; transform: rotate(14deg); opacity: .85; }

/* итог партии: буква за партию, буквы подарка, пачка, несколько подарков */
.yl-drop { display: grid; justify-items: center; gap: 4px; margin: 10px auto 2px; padding: 8px 18px 10px; width: max-content; max-width: 100%; border-radius: 18px; background: var(--soft);
  box-shadow: inset 0 -3px 0 var(--line); animation: y-pop .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.yl-drop__title { font-size: .86rem; font-weight: 800; }
.yl-drop > .yl-tile { width: 3rem; height: 3rem; font-size: 1.6rem; border-radius: 13px; }
.yl-drop small { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.yl-giftletters { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; font-size: .86rem; font-weight: 800; animation: y-pop .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
/* до четырёх в ряд и на телефоне (390: по ~80 px), семь — двумя рядами */
.yb-gifts { flex-wrap: wrap; justify-content: center; gap: 6px; }
.y-prizes.yb-gifts .y-prize.yb-giftcard { flex: 1 1 0; min-width: 4.5rem; max-width: 6.2rem; gap: 3px; padding: 6px 3px 8px; }
.y-prizes.yb-gifts .y-prize.yb-giftcard img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.yb-giftcard__at { font-size: .74rem; font-weight: 800; color: #993015; }
.yb-giftcard > span { font-size: .72rem; font-weight: 700; }
.yb-giftcard .yl-tile { width: 1.35rem; height: 1.35rem; font-size: .76rem; border-radius: 6px; }

/* ---------- «Игрушки»: три вкладки в ряд без переноса (F2) ---------- */
.y-tabs.y-tabs--3 { grid-template-columns: auto auto auto; }
.y-tabs--3 button { padding: 0 .45em; white-space: nowrap; }
.y-tabs--3 .yt-short { display: none; }
@media (max-width: 430px) {
  .y-tabs--3 { gap: 3px; padding: 4px; }
  .y-tabs--3 button { padding: 0 .3em; font-size: .8rem; }
  .y-tabs--3 .yt-long { display: none; }
  .y-tabs--3 .yt-short { display: inline; }
}

/* вкладка «Буквы» и лист «Буквы за снежинки»: одна сетка за раз, высота — по 33 буквам */
.yl-head { display: grid; gap: 2px; margin: 0 0 8px; }
.yl-head small { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.yl-flakes { margin: 0; font-size: .95rem; font-weight: 800; }
.yl-flakes .yb-nw { color: var(--accent-d); }
.yl-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 8px; border-radius: 99px; background: var(--soft); }
.yl-switch button { min-width: 4.4rem; min-height: 40px; padding: 0 .8em; border: 0; border-radius: 99px; background: none; font-weight: 800; font-size: .9rem; color: var(--ink-2); }
.yl-switch button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
/* 33 буквы — 5 рядов по 7; латиница (26) — 4 ряда, высота та же */
.yl-grid { --c: 7; --rh: 3.5rem; display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-auto-rows: var(--rh); align-content: start; gap: 4px;
  min-height: calc(5 * var(--rh) + 4 * 4px); }
.yl-cell { position: relative; display: grid; justify-items: center; align-content: start; gap: 1px; padding: 3px 0 0; border: 0; border-radius: 12px; background: none; font: inherit; color: inherit; }
.yl-cell small { font-size: .66rem; font-weight: 800; line-height: 1.1; color: var(--ink-2); white-space: nowrap; }
.yl-cell em { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); font-size: .52rem; font-style: normal; font-weight: 800; line-height: 1; color: var(--accent-d); white-space: nowrap; }
.yl-cell.is-none .yl-tile { background: #e9e3fa; color: #8b7fb0; box-shadow: inset 0 -3px 0 #d6ccf2; }
.yl-cell.is-none.is-rare .yl-tile { background: #fbe3e3; color: #c0646a; box-shadow: inset 0 -3px 0 #f1c9cb; }
.yl-cell.is-sky .yl-tile { outline: 2px solid var(--peach); outline-offset: 1px; }
.yl-acts { margin-top: 12px; }
.yl-cell--buy { cursor: pointer; transition: transform .12s, background .15s; }
.yl-cell--buy:active { transform: translateY(2px); }
.yl-cell--buy.is-on { background: #fff1ea; box-shadow: 0 0 0 3px var(--peach); }
.yl-cell--buy small { display: inline-flex; align-items: center; gap: 1px; color: var(--accent-d); }
@media (hover: hover) { .yl-cell--buy:hover { background: var(--soft); } }
@media (min-width: 720px) { .yl-grid { --c: 9; --rh: 3.6rem; min-height: calc(4 * var(--rh) + 3 * 4px); } }
.yl-have { margin: 0 0 8px; }
/* кнопка докупки закреплена внизу листа (F2) */
.yl-buybar { position: sticky; bottom: calc(-22px - var(--safe-b)); z-index: 2; display: grid; gap: 4px; margin: 10px 0 calc(-22px - var(--safe-b)); padding: 10px 0 calc(22px + var(--safe-b));
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 10px); }
.yl-lack { margin: 0; text-align: center; font-size: .84rem; font-weight: 800; color: var(--red-d); }
.yl-lack:empty { display: none; }

/* ---------- «В игре новое» (F6) ---------- */
.yi-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yi-card { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 8px 6px 10px; border-radius: 18px; background: var(--soft); box-shadow: inset 0 -3px 0 var(--line); text-align: center; }
.yi-card__pic { height: 3.6rem; display: grid; place-items: center; }
.yi-card__pic img { max-width: 4.2rem; max-height: 3.6rem; object-fit: contain; }
.yi-card__pic .yl-tile { width: 1.5rem; height: 1.5rem; font-size: .86rem; border-radius: 7px; }
.yi-card__text { display: grid; gap: 2px; }
.yi-card__text b { font-size: .86rem; font-weight: 800; line-height: 1.15; }
.yi-card__text span { font-size: .72rem; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.yi-fl { display: flex; gap: 2px; color: var(--accent); font-size: 1.6rem; }
.y-sheet--intro #yIntroOk { margin-top: 12px; }
.y-sheet--intro .ya-sum { margin-top: 10px; }
@media (min-width: 720px) { .yi-cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-height: 700px) { .yi-card__pic { height: 2.9rem; } .yi-card__pic img { max-height: 2.9rem; } }

/* ---------- полоса «Игра обновилась» (F7) и карточка «Двор не загрузился» (хвост N1) ---------- */
.y-update { position: fixed; z-index: 25; left: 50%; bottom: calc(5.6rem + var(--safe-b)); transform: translateX(-50%); width: min(100% - 20px, 30rem); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 6px 12px; padding: 10px 14px; border-radius: 20px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 700; line-height: 1.3;
  text-align: center; box-shadow: inset 0 -3px 0 var(--line), 0 6px 18px rgba(29, 18, 56, .35); }
.y-update__acts { display: flex; align-items: center; gap: 6px; }
.y-retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100% - 32px, 24rem); display: grid; gap: 8px; padding: 18px; border-radius: 24px; background: #fff; text-align: center; }
.y-retry b { font-size: 1.1rem; font-weight: 800; }

/* строка половин «С уровнями 30 из 30 · без уровней 30 из 30» на телефоне — в одну строку (подписи не переносятся, F1) */
@media (max-width: 430px) {
  .yb-bag { column-gap: 8px; }
  .yb-bag__text .yb-bag__cap { white-space: nowrap; font-size: .72rem; letter-spacing: -.01em; }
  /* «Мешок на сегодня полон. Завтра новый» — тоже в одну строку: мешок не выше, чем пустой */
  .yb-bag__text .yb-bag__line { white-space: nowrap; font-size: .82rem; letter-spacing: -.01em; }
}
