/* Новогодняя ярмарка — блок «Моя ёлка», 5 вариантов на основе утверждённой «Арки с панелью». Подключать после game.css, advent.css и vitrina.css.
   Корень: section.nyf-mytree.nyf-mytree--N внутри #nyFairGame (N из NYF.tree / ?tree=N, по умолчанию 1).
   Во всех вариантах окно-арка с ёлкой и панель — один предмет (.nyf-mt-obj), одна система рамок/радиусов/отступов,
   порядок панели: высота → цель → игрушки → действия; кнопки — в одном месте (.nyf-mt-acts).
   1 шкаф-витрина · 2 окно с подоконником · 3 разворот открытки · 4 купол на постаменте · 5 подарок с лентой.
   Здесь же — просмотр ёлки («Приблизить») и крупный план игрушки: они одинаковые во всех вариантах. */

/* =====================================================================
   Общее: изумрудная панель как у «Окошка дня», лента-заголовок
   ===================================================================== */
#nyFairGame .nyf-mytree { --em: #0f2f25; --em2: #174536; --g1: #e2b866; --g2: #f8e2a8; --g3: #b98a3a; --cr: #fff6e6; --cran: #b3262d;
  /* токены предмета: переопределяются вариантом */
  --ink: #fff6e6; --ink2: rgba(255, 240, 215, .74); --lab: #e2b866; --num: #f8e2a8; --head: #f8e2a8; --div: rgba(226, 184, 102, .3); --track: rgba(255, 246, 230, .12);
  --r: 12px; --pad: 22px;
  padding: 30px 30px 30px;
  background: radial-gradient(70% 55% at 50% 0%, rgba(226, 184, 102, .17), transparent 70%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .045) 0 1px, transparent 1.5px) 0 0 / 30px 30px,
    linear-gradient(180deg, #174536, #12392c 55%, #0f2f25);
  border: 1px solid rgba(226, 184, 102, .55);
  box-shadow: inset 0 0 0 5px #0f2f25, inset 0 0 0 6px rgba(226, 184, 102, .28), inset 0 1px 30px rgba(0, 0, 0, .25), 0 24px 50px rgba(3, 18, 12, .45); }
#nyFairGame .nyf-mt-head { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; text-align: center; }
#nyFairGame .nyf-mt-title { position: relative; display: inline-block; padding: 9px 46px 11px; font: 600 italic 28px/1.15 var(--script); color: #fff3d6;
  background: linear-gradient(180deg, #c8363d 0%, #a5262d 55%, #8a1c23 100%); text-shadow: 0 1px 0 rgba(90, 10, 14, .6);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%); scroll-margin-top: 70px; }
#nyFairGame .nyf-mt-title span { position: relative; display: block; padding: 0 4px; }
#nyFairGame .nyf-mt-title span::before { content: ''; position: absolute; left: -22px; right: -22px; top: -5px; bottom: -6px; border-top: 1px dashed rgba(248, 226, 168, .6); border-bottom: 1px dashed rgba(248, 226, 168, .6); }
#nyFairGame .nyf-mt-note { font-size: 14px; color: #cfdcd5; }
#nyFairGame .nyf-mt-head .nyf-wait { margin-top: 2px; }

/* демо: переключатель вариантов над блоком (только при NYF.demo) */
#nyFairGame .nyf-mt-pick { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin: 0 0 -12px; padding: 0 6px; font-size: 13px; color: #cfdcd5; }
#nyFairGame .nyf-mt-pick span { margin-right: 4px; }
#nyFairGame .nyf-mt-pill { display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 10px; border-radius: 999px; font-weight: 700; color: #f8e2a8; text-decoration: none;
  background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(226, 184, 102, .35); transition: background .2s; }
#nyFairGame .nyf-mt-pill:hover { color: #fff3d6; background: rgba(255, 255, 255, .08); text-decoration: none; }
#nyFairGame .nyf-mt-pill:focus-visible { outline: 2px solid #f8e2a8; outline-offset: 2px; }
#nyFairGame .nyf-mt-pill.nyf-on { color: #3a2405; background: linear-gradient(180deg, #fff1c4, #e2b866); box-shadow: none; }

/* =====================================================================
   Предмет: сцена-арка + панель + действия. Общие элементы, варианты меняют форму и токены
   ===================================================================== */
#nyFairGame .nyf-mt-obj { position: relative; z-index: 1; display: grid; margin-top: 26px; color: var(--ink); }
#nyFairGame .nyf-mt-orn { display: none; pointer-events: none; }
#nyFairGame .nyf-mytree .nyf-scene { position: relative; z-index: 1; height: auto; min-height: 580px; border-radius: 14px; background: #0c271f; box-shadow: none; }
#nyFairGame .nyf-mytree .nyf-mark { display: none !important; }
#nyFairGame .nyf-mytree .nyf-vig { background: radial-gradient(ellipse 85% 75% at 50% 58%, transparent 52%, rgba(12, 4, 2, .5)); }
/* иней на стекле: мягкие белые углы снизу и лёгкое свечение по краю арки; золотая пунктирная линия внутри — как у купола шапки */
#nyFairGame .nyf-frost { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 0 100%, rgba(236, 246, 255, .55), rgba(236, 246, 255, .16) 13%, transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(236, 246, 255, .55), rgba(236, 246, 255, .16) 13%, transparent 25%);
  box-shadow: inset 0 0 0 1px rgba(248, 226, 168, .5), inset 0 0 34px rgba(220, 238, 255, .16), inset 0 -30px 40px -20px rgba(236, 246, 255, .2); }
#nyFairGame .nyf-frost::after { content: ''; position: absolute; inset: 11px; border-radius: inherit; border: 1px dashed rgba(248, 226, 168, .32); }
#nyFairGame .nyf-mytree .nyf-aim { z-index: 6; }

/* панель */
#nyFairGame .nyf-mytree .nyf-inv { position: relative; inset: auto; z-index: 2; width: auto; display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; color: var(--ink);
  background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#nyFairGame .nyf-mytree .nyf-inv-hgt small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lab); }
#nyFairGame .nyf-mytree .nyf-inv-hgt b { display: block; margin-top: 2px; font: 600 italic 44px/1.08 var(--script); color: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
#nyFairGame .nyf-goal { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--ink); }
#nyFairGame .nyf-goal b { color: var(--num); }
#nyFairGame .nyf-goal-t { display: block; }
#nyFairGame .nyf-goal-bar { display: block; height: 6px; margin-top: 8px; border-radius: 6px; background: var(--track); overflow: hidden; }
#nyFairGame .nyf-goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b3262d, #e05a4f); transition: width .8s cubic-bezier(.2, .9, .3, 1); }
#nyFairGame .nyf-inv-box { position: relative; display: flex; flex-direction: column; min-height: 0; }
#nyFairGame .nyf-mytree .nyf-inv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#nyFairGame .nyf-mytree .nyf-inv-head h4 { font: 600 italic 24px/1.2 var(--script); color: var(--head); }
#nyFairGame .nyf-mytree .nyf-inv-head span { font-size: 13px; color: var(--ink2); white-space: nowrap; }
#nyFairGame .nyf-mytree .nyf-cap { margin: 6px 0 14px; }
#nyFairGame .nyf-mytree .nyf-cap-txt { font-size: 13px; color: var(--ink2); }
#nyFairGame .nyf-mytree .nyf-cap-txt b { color: var(--ink); }
#nyFairGame .nyf-mytree .nyf-cap-bar { height: 6px; background: var(--track); }
#nyFairGame .nyf-mytree .nyf-grid { flex: none; gap: 10px; grid-auto-rows: max-content; max-height: 300px; overflow-y: auto; padding: 4px; margin: -4px; }
#nyFairGame .nyf-mytree .nyf-slot { border-radius: var(--r); }
#nyFairGame .nyf-mytree .nyf-slot.nyf-empty { background: none; box-shadow: inset 0 0 0 1px var(--div); }
/* лента: одна строка с прокруткой */
#nyFairGame .nyf-mytree--2 .nyf-grid, #nyFairGame .nyf-mytree--4 .nyf-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 4px 4px 10px; overscroll-behavior-x: contain; }
/* пустое состояние инвентаря */
#nyFairGame .nyf-inv-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 18px; border-radius: var(--r); border: 1.5px dashed var(--div); text-align: center; color: var(--ink2); font-size: 13px; line-height: 1.4; }
#nyFairGame .nyf-inv-empty b { font-size: 14.5px; color: var(--ink); }
#nyFairGame .nyf-ie-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--track); }
#nyFairGame .nyf-ie-ic svg { width: 34px; height: 34px; stroke: var(--lab); stroke-width: 1.7; }
#nyFairGame .nyf-mytree--2 .nyf-inv-empty, #nyFairGame .nyf-mytree--4 .nyf-inv-empty { flex-direction: row; text-align: left; padding: 12px 16px; gap: 14px; }
#nyFairGame .nyf-mytree--2 .nyf-inv-empty > span:last-child, #nyFairGame .nyf-mytree--4 .nyf-inv-empty > span:last-child { display: none; }
#nyFairGame .nyf-mytree--2 .nyf-ie-ic, #nyFairGame .nyf-mytree--4 .nyf-ie-ic { flex: none; width: 44px; height: 44px; }

/* действия: «Приблизить» + подсказка — всегда вместе */
#nyFairGame .nyf-mt-acts { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
#nyFairGame .nyf-mytree .nyf-zoom-btn { position: static; flex: none; min-height: 46px; padding: 10px 22px 10px 18px; font-size: 15px; color: #4a1a06;
  background: linear-gradient(180deg, #ffe29a, #e8b65a 55%, #c98d2e); box-shadow: 0 6px 18px rgba(232, 182, 90, .3), inset 0 1px 0 rgba(255, 255, 255, .6); }
#nyFairGame .nyf-mytree .nyf-zoom-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(232, 182, 90, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
#nyFairGame .nyf-mytree .nyf-inv-hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink2); }
#nyFairGame .nyf-mytree .nyf-inv-hint:empty { display: none; }

/* всплывашка над игрушкой в сцене: «Рассмотреть» и «Снять» */
#nyFairGame .nyf-pop-acts { display: flex; gap: 6px; margin-top: 2px; }
#nyFairGame .nyf-pop .nyf-btn-line { color: #7a4d10; background: none; box-shadow: inset 0 0 0 1.5px #c99a45; }

/* =====================================================================
   1 · Шкаф-витрина: изумрудный лакированный шкаф с куполом-короной и звездой; слева стеклянная дверца-арка с ёлкой,
   справа отделение с латунной табличкой (высота и цель) и полками с игрушками; кнопки — в цоколе на всю ширину
   ===================================================================== */
#nyFairGame .nyf-mytree--1 .nyf-mt-obj { margin-top: 50px; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr); grid-template-areas: 'scene inv' 'acts acts'; column-gap: 20px; padding: 58px 20px 0;
  border-radius: 50% 50% 24px 24px / 80px 80px 24px 24px;
  background: radial-gradient(50% 120px at 50% 0, rgba(248, 226, 168, .16), transparent 80%), linear-gradient(180deg, #1b4c3b, #133b2e 55%, #0f3126);
  box-shadow: 0 0 0 2px rgba(226, 184, 102, .9), 0 0 0 8px #0d2a21, 0 0 0 9px rgba(248, 226, 168, .3), 0 30px 54px rgba(0, 0, 0, .45); }
#nyFairGame .nyf-mytree--1 .nyf-mt-obj::before { content: ''; position: absolute; inset: 10px; border-radius: 50% 50% 16px 16px / 70px 70px 16px 16px; border: 1px dashed rgba(248, 226, 168, .28); pointer-events: none; }
#nyFairGame .nyf-mytree--1 .nyf-mt-orn { display: block; position: absolute; left: 50%; top: -44px; z-index: 3; width: 78px; height: 78px; margin-left: -39px; background: var(--nyf-star) center / contain no-repeat; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 16px rgba(255, 200, 100, .35)); }
#nyFairGame .nyf-mytree--1 .nyf-scene { grid-area: scene; min-height: 600px; border-radius: 50% 50% 12px 12px / 150px 150px 12px 12px;
  box-shadow: 0 0 0 2px #e2b866, 0 0 0 7px #0b261d, 0 0 0 8px rgba(226, 184, 102, .35); }
#nyFairGame .nyf-mytree--1 .nyf-inv { grid-area: inv; padding: 20px 20px 18px; border-radius: 12px 12px 12px 12px; background: linear-gradient(180deg, #0b261d, #0d2b22);
  box-shadow: 0 0 0 2px #e2b866, 0 0 0 7px #0b261d, 0 0 0 8px rgba(226, 184, 102, .35), inset 0 10px 26px rgba(0, 0, 0, .35); }
/* латунная табличка */
#nyFairGame .nyf-mytree--1 .nyf-inv-stat { --ink: #3a2405; --num: #3a2405; --lab: #7a4d10; --track: rgba(58, 36, 5, .16); position: relative; padding: 14px 18px 16px; border-radius: 10px; text-align: center; color: #3a2405;
  background: radial-gradient(circle at 10px 10px, #8a5a18 0 2px, transparent 2.6px), radial-gradient(circle at calc(100% - 10px) 10px, #8a5a18 0 2px, transparent 2.6px),
    radial-gradient(circle at 10px calc(100% - 10px), #8a5a18 0 2px, transparent 2.6px), radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #8a5a18 0 2px, transparent 2.6px),
    linear-gradient(180deg, #fcecc0, #ebc679 55%, #d4a552);
  box-shadow: inset 0 1px 0 #fff7dc, inset 0 -2px 0 rgba(90, 55, 10, .3), 0 6px 14px rgba(0, 0, 0, .35); }
#nyFairGame .nyf-mytree--1 .nyf-inv-stat .nyf-goal b { color: #8a1c23; }
#nyFairGame .nyf-mytree--1 .nyf-inv-box { margin-top: 20px; }
/* полки: под каждым рядом ячеек — золотая кромка */
#nyFairGame .nyf-mytree--1 .nyf-grid { row-gap: 24px; max-height: 340px; padding: 6px 8px 14px; margin: -6px -8px -8px; }
#nyFairGame .nyf-mytree--1 .nyf-slot::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: -12px; height: 4px; border-radius: 2px; background: linear-gradient(180deg, #f8e2a8, #b98a3a); box-shadow: 0 3px 5px rgba(0, 0, 0, .5); pointer-events: none; }
#nyFairGame .nyf-mytree--1 button.nyf-slot:hover { transform: none; filter: brightness(1.06); }
#nyFairGame .nyf-mytree--1 .nyf-slot.nyf-picked { transform: none; }
#nyFairGame .nyf-mytree--1 .nyf-slot em { bottom: -7px; z-index: 1; }
#nyFairGame .nyf-mytree--1 .nyf-slot.nyf-empty { box-shadow: inset 0 0 0 1px rgba(248, 226, 168, .14); background: rgba(0, 0, 0, .14); }
/* цоколь */
#nyFairGame .nyf-mytree--1 .nyf-mt-acts { grid-area: acts; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr); column-gap: 20px; margin: 22px -20px 0; padding: 16px 20px 18px; border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .06)); box-shadow: inset 0 1px 0 rgba(226, 184, 102, .55), inset 0 2px 0 rgba(0, 0, 0, .3); }
#nyFairGame .nyf-mytree--1 .nyf-zoom-btn { justify-self: center; }
#nyFairGame .nyf-mytree--1 .nyf-inv-hint { padding: 0 6px; }

/* =====================================================================
   2 · Окно с подоконником: кремовая оконная рама с двумя арками — в большой ёлка, в узкой на заиндевевшем стекле высота и цель;
   игрушки стоят на заснеженном подоконнике во всю ширину, там же «Приблизить»
   ===================================================================== */
#nyFairGame .nyf-mytree--2 { --ink: #2e2412; --ink2: #6b5536; --lab: #9a6a18; --head: #174536; --div: rgba(140, 100, 40, .35); --track: rgba(15, 47, 37, .12); --r: 12px; }
#nyFairGame .nyf-mytree--2 .nyf-mt-obj { margin: 30px 22px 0; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); grid-template-areas: 'scene stat' 'box acts'; column-gap: 18px; padding: 18px 18px 0;
  border-radius: 34px 34px 0 0; background: linear-gradient(180deg, #fffaf0, #f2e2c1);
  box-shadow: inset 0 0 0 1px rgba(185, 138, 58, .55), inset 0 0 0 7px #fbf1dd, inset 0 0 0 8px rgba(185, 138, 58, .3), 0 26px 50px rgba(0, 0, 0, .45); }
#nyFairGame .nyf-mytree--2 .nyf-inv { display: contents; }
/* подоконник: выступает за раму, сверху снег */
#nyFairGame .nyf-mytree--2 .nyf-mt-obj::after { content: ''; grid-area: 2 / 1 / 3 / 3; margin: 0 -22px; border-radius: 12px 12px 18px 18px; pointer-events: none;
  background: radial-gradient(18px 9px at 50% 0, #fff 96%, transparent 100%) 0 6px / 36px 12px repeat-x,
    linear-gradient(180deg, #fff 0 10px, #f6fbff 10px 14px, #fbf2df 14px, #f0e0bd 72%, #dcc596);
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .9), inset 0 -5px 0 rgba(140, 100, 40, .22), 0 16px 26px rgba(0, 0, 0, .42); }
#nyFairGame .nyf-mytree--2 .nyf-scene { grid-area: scene; min-height: 560px; border-radius: 50% 50% 10px 10px / 150px 150px 10px 10px;
  box-shadow: 0 0 0 3px #f1e1bf, 0 0 0 4px rgba(185, 138, 58, .75), inset 0 0 0 1px rgba(0, 0, 0, .2); }
/* узкая арка — заиндевевшее стекло, текст «на стекле» */
#nyFairGame .nyf-mytree--2 .nyf-inv-stat { --ink: #fff6e6; --ink2: rgba(255, 246, 230, .8); --num: #fff; --lab: #f8e2a8; --track: rgba(255, 255, 255, .22); grid-area: stat; position: relative; z-index: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 120px 26px 34px; text-align: center; color: #fff6e6; border-radius: 50% 50% 10px 10px / 130px 130px 10px 10px;
  background: radial-gradient(circle at 0 100%, rgba(240, 248, 255, .6), rgba(240, 248, 255, .14) 22%, transparent 36%), radial-gradient(circle at 100% 0, rgba(240, 248, 255, .5), transparent 32%),
    radial-gradient(70% 50% at 40% 70%, rgba(255, 196, 120, .35), transparent 70%), linear-gradient(170deg, #4c6f78, #2c4f50 45%, #1d3d36);
  box-shadow: 0 0 0 3px #f1e1bf, 0 0 0 4px rgba(185, 138, 58, .75), inset 0 0 40px rgba(220, 238, 255, .25); }
#nyFairGame .nyf-mytree--2 .nyf-inv-stat::before { content: ''; position: absolute; inset: 11px; border-radius: inherit; border: 1px dashed rgba(255, 255, 255, .3); pointer-events: none; }
#nyFairGame .nyf-mytree--2 .nyf-inv-stat .nyf-inv-hgt b { font-size: 46px; text-shadow: 0 0 18px rgba(255, 255, 255, .45); }
#nyFairGame .nyf-mytree--2 .nyf-inv-stat .nyf-goal { margin-top: 14px; }
#nyFairGame .nyf-mytree--2 .nyf-inv-stat .nyf-goal b { color: #fff; }
#nyFairGame .nyf-mytree--2 .nyf-inv-box { grid-area: box; position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'head cap' 'grid grid'; column-gap: 24px; align-items: center; padding: 24px 4px 18px 6px; }
#nyFairGame .nyf-mytree--2 .nyf-inv-head { grid-area: head; justify-content: flex-start; }
#nyFairGame .nyf-mytree--2 .nyf-cap { grid-area: cap; display: flex; align-items: center; gap: 12px; margin: 0; }
#nyFairGame .nyf-mytree--2 .nyf-cap-bar { flex: 1; max-width: 200px; margin: 0; }
#nyFairGame .nyf-mytree--2 .nyf-grid, #nyFairGame .nyf-mytree--2 .nyf-inv-empty { grid-area: grid; margin-top: 12px; }
#nyFairGame .nyf-mytree--2 .nyf-mt-acts { grid-area: acts; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding: 24px 0 18px; text-align: center; }
#nyFairGame .nyf-mytree--2 .nyf-zoom-btn { color: #fff6e6; background: linear-gradient(180deg, #1f5a46, #133a2d); box-shadow: 0 6px 16px rgba(15, 47, 37, .35), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(226, 184, 102, .6); }
#nyFairGame .nyf-mytree--2 .nyf-zoom-btn:hover { box-shadow: 0 10px 20px rgba(15, 47, 37, .45), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(226, 184, 102, .8); }

/* =====================================================================
   3 · Разворот открытки: кремовая открытка с золотым тиснением; на левой странице вырубка-арка с ёлкой,
   на правой — «напечатанные» высота, цель, игрушки и кнопка внизу страницы; посередине сгиб
   ===================================================================== */
#nyFairGame .nyf-mytree--3 { --ink: #1d3a2f; --ink2: #6b5536; --lab: #b3262d; --num: #0f2f25; --head: #0f2f25; --div: rgba(185, 138, 58, .45); --track: rgba(15, 47, 37, .1); --r: 10px; }
#nyFairGame .nyf-mytree--3 .nyf-mt-obj { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: 'scene inv' 'scene acts'; column-gap: 64px; padding: 30px 34px;
  border-radius: 10px; background: linear-gradient(90deg, #f6ead2, #fff9ee 22%, #fff7e8 calc(50% + 30px), #fbf0dc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px rgba(185, 138, 58, .45), 0 3px 0 #ead7b1, 0 4px 0 rgba(185, 138, 58, .4), 0 7px 0 #dcc49a, 0 8px 0 rgba(185, 138, 58, .35), 0 30px 50px rgba(0, 0, 0, .45); }
/* золотое тиснение по краю и сгиб посередине (центр сгиба = граница колонок) */
#nyFairGame .nyf-mytree--3 .nyf-mt-obj::after { content: ''; position: absolute; inset: 12px; border-radius: 4px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(185, 138, 58, .6), inset 0 0 0 4px rgba(255, 249, 238, .9), inset 0 0 0 5px rgba(185, 138, 58, .3); }
#nyFairGame .nyf-mytree--3 .nyf-mt-obj::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(34px + (100% - 68px - 64px) * 1.25 / 2.25 + 32px - 40px); width: 80px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120, 80, 30, .13) 44%, rgba(120, 80, 30, .22) 49.5%, rgba(255, 255, 255, .85) 50.5%, rgba(120, 80, 30, .08) 56%, transparent); }
#nyFairGame .nyf-mytree--3 .nyf-scene { grid-area: scene; min-height: 600px; border-radius: 50% 50% 8px 8px / 170px 170px 8px 8px;
  box-shadow: 0 0 0 2px #c99a45, 0 0 0 7px #fff8ea, 0 0 0 8px rgba(185, 138, 58, .55), inset 0 0 0 1px rgba(60, 30, 0, .4); }
#nyFairGame .nyf-mytree--3 .nyf-frost { background: none; box-shadow: inset 0 8px 18px rgba(40, 20, 0, .5), inset 0 0 0 1px rgba(248, 226, 168, .4); }
#nyFairGame .nyf-mytree--3 .nyf-inv { grid-area: inv; padding: 14px 6px 0 0; }
#nyFairGame .nyf-mytree--3 .nyf-inv-stat { text-align: center; }
#nyFairGame .nyf-mytree--3 .nyf-inv-hgt b { font-size: 50px; }
#nyFairGame .nyf-mytree--3 .nyf-goal b { color: #b3262d; }
#nyFairGame .nyf-mytree--3 .nyf-goal-bar { max-width: 300px; margin-left: auto; margin-right: auto; }
/* виньетка-разделитель: линия с ромбиком */
#nyFairGame .nyf-mytree--3 .nyf-inv-box { margin-top: 22px; padding-top: 26px;
  background: linear-gradient(90deg, transparent, rgba(185, 138, 58, .6) 20% 44%, transparent 44% 56%, rgba(185, 138, 58, .6) 56% 80%, transparent) 0 6px / 100% 1px no-repeat; }
#nyFairGame .nyf-mytree--3 .nyf-inv-box::before { content: ''; position: absolute; left: 50%; top: 2px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: #b3262d; box-shadow: 0 0 0 3px #fff7e8, 0 0 0 4px rgba(185, 138, 58, .6); }
#nyFairGame .nyf-mytree--3 .nyf-slot { box-shadow: inset 0 0 0 2px var(--rc), 0 2px 5px rgba(80, 50, 10, .18); }
#nyFairGame .nyf-mytree--3 .nyf-slot.nyf-r-r { box-shadow: inset 0 0 0 2.5px var(--rr), 0 2px 5px rgba(80, 50, 10, .18); }
#nyFairGame .nyf-mytree--3 .nyf-slot.nyf-r-s { box-shadow: inset 0 0 0 2.5px var(--rs), 0 2px 5px rgba(80, 50, 10, .18); }
#nyFairGame .nyf-mytree--3 .nyf-slot.nyf-r-u { box-shadow: inset 0 0 0 3px var(--ru), 0 0 12px rgba(255, 200, 61, .55), 0 2px 5px rgba(80, 50, 10, .18); }
#nyFairGame .nyf-mytree--3 .nyf-slot.nyf-empty { background: rgba(185, 138, 58, .06); box-shadow: inset 0 0 0 1px rgba(185, 138, 58, .3); }
#nyFairGame .nyf-mytree--3 .nyf-mt-acts { grid-area: acts; flex-direction: column; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(185, 138, 58, .55); text-align: center; }
#nyFairGame .nyf-mytree--3 .nyf-zoom-btn { color: #fff6e6; background: linear-gradient(180deg, #1f5a46, #133a2d); box-shadow: 0 6px 16px rgba(15, 47, 37, .3), inset 0 1px 0 rgba(255, 255, 255, .18); }
#nyFairGame .nyf-mytree--3 .nyf-zoom-btn:hover { box-shadow: 0 10px 20px rgba(15, 47, 37, .4), inset 0 1px 0 rgba(255, 255, 255, .18); }
#nyFairGame .nyf-mytree--3 .nyf-choose-cta p { color: #f8e2a8; }

/* =====================================================================
   4 · Купол на постаменте: ночная деревня под высоким куполом с золотым контуром (как в шапке страницы);
   купол стоит на постаменте — в нём три отсека: высота и цель · игрушки лентой · «Приблизить»
   ===================================================================== */
#nyFairGame .nyf-mytree--4 .nyf-mt-obj { grid-template-columns: minmax(250px, .82fr) minmax(0, 1.7fr) minmax(200px, .62fr); grid-template-areas: 'scene scene scene' 'stat box acts'; margin-top: 30px; }
#nyFairGame .nyf-mytree--4 .nyf-inv { display: contents; }
#nyFairGame .nyf-mytree--4 .nyf-scene { grid-area: scene; margin: 0 40px; min-height: 560px; border-radius: 50% 50% 0 0 / 250px 250px 0 0;
  box-shadow: 0 0 0 2px rgba(226, 184, 102, .9), 0 0 0 10px rgba(12, 38, 30, .75), 0 0 0 11px rgba(248, 226, 168, .3), 0 -10px 40px rgba(0, 0, 0, .3); }
#nyFairGame .nyf-mytree--4 .nyf-frost { box-shadow: inset 0 0 0 1px rgba(248, 226, 168, .45), inset 0 0 50px rgba(220, 238, 255, .12); }
#nyFairGame .nyf-mytree--4 .nyf-frost::after { inset: 12px 12px 0; border-bottom: 0; }
/* постамент: шире купола, золотой карниз сверху */
#nyFairGame .nyf-mytree--4 .nyf-mt-obj::after { content: ''; grid-area: 2 / 1 / 3 / 4; z-index: 0; border-radius: 8px 8px 24px 24px; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0, rgba(226, 184, 102, .14), transparent 70%), linear-gradient(180deg, #194a39, #113629 70%, #0d2c22);
  box-shadow: inset 0 3px 0 #f8e2a8, inset 0 5px 0 #b98a3a, inset 0 6px 10px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(226, 184, 102, .5), 0 26px 46px rgba(0, 0, 0, .45); }
#nyFairGame .nyf-mytree--4 .nyf-inv-stat, #nyFairGame .nyf-mytree--4 .nyf-inv-box, #nyFairGame .nyf-mytree--4 .nyf-mt-acts { position: relative; z-index: 1; padding: 28px 26px 24px; }
#nyFairGame .nyf-mytree--4 .nyf-inv-stat { grid-area: stat; }
#nyFairGame .nyf-mytree--4 .nyf-inv-box { grid-area: box; justify-content: center; border-left: 1px solid var(--div); border-right: 1px solid var(--div); margin: 22px 0 18px; padding-top: 6px; padding-bottom: 6px; }
#nyFairGame .nyf-mytree--4 .nyf-cap { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
#nyFairGame .nyf-mytree--4 .nyf-cap-bar { flex: 1; max-width: 180px; margin: 0; }
#nyFairGame .nyf-mytree--4 .nyf-mt-acts { grid-area: acts; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; text-align: center; }
#nyFairGame .nyf-mytree--4 .nyf-zoom-btn { justify-content: center; }

/* =====================================================================
   5 · Подарок: коробка в изумрудной бумаге с золотым горошком; красная атласная лента — шов между аркой и панелью,
   на ленте бант; высота — на кремовой бирке, кнопки внизу панели
   ===================================================================== */
#nyFairGame .nyf-mytree--5 .nyf-mt-obj { margin-top: 40px; grid-template-columns: minmax(0, 1.45fr) 34px minmax(300px, .86fr); grid-template-rows: 1fr auto; grid-template-areas: 'scene rib inv' 'scene rib acts'; column-gap: 20px; padding: 24px;
  border-radius: 20px; background: radial-gradient(circle, rgba(226, 184, 102, .2) 0 1.5px, transparent 2px) 0 0 / 20px 20px, linear-gradient(160deg, #1d5b45, #143f31 60%, #11382b);
  box-shadow: inset 0 0 0 2px #e2b866, inset 0 0 0 5px #10352a, inset 0 0 0 6px rgba(226, 184, 102, .35), 0 28px 50px rgba(0, 0, 0, .45); }
#nyFairGame .nyf-mytree--5 .nyf-mt-obj::before { content: ''; grid-area: 1 / 2 / 3 / 3; margin: -24px 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 4px, rgba(255, 220, 200, .5) 4px 5px, transparent 5px calc(100% - 5px), rgba(255, 220, 200, .5) calc(100% - 5px) calc(100% - 4px), transparent 0) 0 0 / 100% 10px,
    linear-gradient(90deg, #7d141b, #b3262d 22%, #e0555c 46%, #c8363d 60%, #8a1c23); box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
#nyFairGame .nyf-mytree--5 .nyf-mt-orn { display: block; grid-area: 1 / 2 / 2 / 3; justify-self: center; align-self: start; z-index: 3; width: 128px; height: 100px; margin-top: -78px;
  background: var(--nyf-bow-r) center / contain no-repeat; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
#nyFairGame .nyf-mytree--5 .nyf-scene { grid-area: scene; min-height: 600px; border-radius: 50% 50% 12px 12px / 160px 160px 12px 12px;
  box-shadow: 0 0 0 2px #e2b866, 0 0 0 7px #10352a, 0 0 0 8px rgba(226, 184, 102, .35); }
#nyFairGame .nyf-mytree--5 .nyf-inv { grid-area: inv; padding-top: 8px; }
/* бирка: уголок указывает на ленту, дырочка без верёвки */
#nyFairGame .nyf-mytree--5 .nyf-inv-stat { --ink: #2e2412; --num: #0f2f25; --lab: #b3262d; --track: rgba(15, 47, 37, .12); position: relative; padding: 16px 20px 18px 40px; color: #2e2412;
  background: radial-gradient(circle at 20px 50%, #143f31 0 5px, #c99a45 5.5px 6.5px, transparent 7px), linear-gradient(180deg, #fffaf0, #f6e7c8);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); border-radius: 0 12px 12px 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
#nyFairGame .nyf-mytree--5 .nyf-inv-stat .nyf-goal b { color: #b3262d; }
#nyFairGame .nyf-mytree--5 .nyf-inv-box { margin-top: 24px; }
#nyFairGame .nyf-mytree--5 .nyf-mt-acts { grid-area: acts; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--div); }

/* =====================================================================
   Просмотр ёлки («Приблизить»): ёлка во весь экран, игрушки — кнопки, внизу — ряд игрушек с ёлки
   ===================================================================== */
#nyFairGame .nyf-tv { padding: 0; background: #0a2119; }
#nyFairGame .nyf-tv .nyf-zoom-bg { filter: blur(20px) brightness(.4) saturate(1.1); }
#nyFairGame .nyf-zoom-bg--plain { background: radial-gradient(60% 50% at 50% 45%, #1f5a46, #0f2f25 70%, #0a2119); }
#nyFairGame .nyf-tv-box { position: absolute; inset: 0; display: flex; flex-direction: column; }
#nyFairGame .nyf-tv .nyf-zoom-top { position: relative; flex: none; min-height: 70px; padding: 12px 70px; background: linear-gradient(180deg, rgba(6, 22, 16, .75), transparent); pointer-events: auto; }
#nyFairGame .nyf-tv .nyf-zoom-title, #nyFairGame .nyf-cu-info { font-family: inherit; }
#nyFairGame .nyf-tv .nyf-zoom-title { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#nyFairGame .nyf-tv .nyf-zoom-title span { font: 600 italic 26px/1.1 var(--script); color: #f8e2a8; }
#nyFairGame .nyf-tv .nyf-zoom-title small { font-size: 13px; font-weight: 600; color: rgba(255, 246, 230, .75); }
#nyFairGame .nyf-tv .nyf-zoom-top .nyf-x { top: 14px; right: 16px; }
#nyFairGame .nyf-tv .nyf-zoom-stage { position: relative; inset: auto; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; cursor: default; touch-action: auto; }
#nyFairGame .nyf-tv .nyf-zoom-world { position: relative; left: auto; top: auto; transform: none; will-change: auto; }
#nyFairGame .nyf-tv .nyf-zoom-world .nyf-toy { cursor: zoom-in; border-radius: 50%; }
#nyFairGame .nyf-tv .nyf-zoom-world .nyf-toy::before { content: ''; position: absolute; inset: -10%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(248, 226, 168, 0); transition: box-shadow .2s; pointer-events: none; }
#nyFairGame .nyf-tv .nyf-zoom-world .nyf-toy:hover::before, #nyFairGame .nyf-tv .nyf-zoom-world .nyf-toy:focus-visible::before { box-shadow: 0 0 0 2px rgba(248, 226, 168, .9), 0 0 16px rgba(255, 210, 120, .6); }
#nyFairGame .nyf-tv .nyf-zoom-world .nyf-toy:focus-visible { outline: 0; }
#nyFairGame .nyf-tv-foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 16px 18px; background: linear-gradient(0deg, rgba(6, 22, 16, .8), transparent); }
#nyFairGame .nyf-tv .nyf-zoom-hint { position: static; transform: none; width: auto; max-width: 100%; padding: 0; background: none; font-size: 13.5px; color: rgba(255, 246, 230, .8); }
#nyFairGame .nyf-tv-strip { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: rgba(232, 182, 90, .5) transparent; }
#nyFairGame .nyf-tv-th { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fffaf0, #f0dcb6); box-shadow: inset 0 0 0 2px var(--rc); transition: transform .18s; }
#nyFairGame .nyf-tv-th.nyf-r-r { background: radial-gradient(circle at 50% 40%, #fbfdff, #d9e9f8); box-shadow: inset 0 0 0 2.5px var(--rr); }
#nyFairGame .nyf-tv-th.nyf-r-s { background: radial-gradient(circle at 50% 40%, #fdfaff, #e6d8f8); box-shadow: inset 0 0 0 2.5px var(--rs); }
#nyFairGame .nyf-tv-th.nyf-r-u { background: radial-gradient(circle at 50% 40%, #fffbe6, #ffe08a); box-shadow: inset 0 0 0 3px var(--ru), 0 0 10px rgba(255, 200, 61, .6); }
#nyFairGame .nyf-tv-th img { width: 80%; height: 80%; object-fit: contain; pointer-events: none; }
#nyFairGame .nyf-tv-th:hover { transform: translateY(-2px); }
#nyFairGame .nyf-tv-th.nyf-sel { outline: 2px solid #f8e2a8; outline-offset: 2px; }
#nyFairGame .nyf-tv-empty { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: min(360px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 24px 22px; border-radius: 22px; text-align: center;
  color: rgba(255, 246, 230, .8); font-size: 14px; background: rgba(10, 36, 27, .92); box-shadow: 0 0 0 1px rgba(226, 184, 102, .55), inset 0 0 0 5px rgba(10, 36, 27, .9), inset 0 0 0 6px rgba(226, 184, 102, .22), 0 20px 50px rgba(0, 0, 0, .5); }
#nyFairGame .nyf-tv-empty b { font: 600 italic 24px/1.2 var(--script); color: #f8e2a8; }
#nyFairGame .nyf-tv-empty .nyf-ie-ic { background: rgba(255, 246, 230, .1); }
#nyFairGame .nyf-tv-empty .nyf-ie-ic svg { stroke: #e2b866; }
#nyFairGame .nyf-tv-empty .nyf-btn { margin-top: 8px; }

/* =====================================================================
   Крупный план игрушки: слева «окно-арка» с игрушкой и стрелками, справа название, редкость, откуда, действия
   ===================================================================== */
#nyFairGame .nyf-cu { z-index: 10001; padding: 24px; }
#nyFairGame .nyf-cu-back { position: absolute; inset: 0; background: rgba(4, 16, 11, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
#nyFairGame .nyf-cu.nyf-vis .nyf-cu-back { opacity: 1; }
#nyFairGame .nyf-cu-box { --glow: rgba(255, 226, 170, .5); --ring: rgba(226, 184, 102, .55); position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); width: min(880px, 100%); min-height: 460px; border-radius: 26px; color: #fff6e6;
  background: radial-gradient(60% 60% at 30% 40%, rgba(226, 184, 102, .1), transparent 70%), linear-gradient(180deg, #174536, #0f2f25);
  box-shadow: 0 0 0 1px rgba(226, 184, 102, .6), inset 0 0 0 6px #0f2f25, inset 0 0 0 7px rgba(226, 184, 102, .25), 0 40px 80px rgba(0, 0, 0, .6); }
#nyFairGame .nyf-cu-box.nyf-r-r { --glow: rgba(130, 195, 255, .5); --ring: rgba(78, 160, 240, .7); }
#nyFairGame .nyf-cu-box.nyf-r-s { --glow: rgba(196, 150, 255, .5); --ring: rgba(176, 124, 245, .75); }
#nyFairGame .nyf-cu-box.nyf-r-u { --glow: rgba(255, 205, 80, .62); --ring: rgba(255, 200, 61, .9); }
/* панель проявляется, а картинка «наезжает» с места игрушки (JS) */
#nyFairGame .nyf-cu-box > :not(.nyf-cu-stage), #nyFairGame .nyf-cu-stage > :not(.nyf-cu-img) { transition: opacity .35s .12s; }
#nyFairGame .nyf-cu-box { transition: background-color .3s; }
#nyFairGame .nyf-cu:not(.nyf-vis) .nyf-cu-box { background: transparent; box-shadow: none; }
#nyFairGame .nyf-cu:not(.nyf-vis) .nyf-cu-box > :not(.nyf-cu-stage), #nyFairGame .nyf-cu:not(.nyf-vis) .nyf-cu-stage > :not(.nyf-cu-img) { opacity: 0; transition-delay: 0s; }
#nyFairGame .nyf-cu.nyf-vis .nyf-cu-box { transition: box-shadow .35s .1s, background .35s .1s; }
#nyFairGame .nyf-cu-stage { position: relative; display: grid; place-items: center; min-height: 420px; padding: 40px 70px; }
#nyFairGame .nyf-cu-stage::before { content: ''; position: absolute; inset: 18px; border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px; transition: opacity .35s .12s;
  background: radial-gradient(circle at 50% 46%, var(--glow), transparent 60%), radial-gradient(circle at 0 100%, rgba(236, 246, 255, .3), transparent 22%), radial-gradient(circle at 100% 100%, rgba(236, 246, 255, .3), transparent 22%), linear-gradient(180deg, #0f3528, #0a241b);
  box-shadow: 0 0 0 2px #e2b866, 0 0 0 7px #0f2f25, 0 0 0 8px rgba(226, 184, 102, .3), inset 0 0 30px rgba(0, 0, 0, .4); }
#nyFairGame .nyf-cu:not(.nyf-vis) .nyf-cu-stage::before { opacity: 0; transition-delay: 0s; }
#nyFairGame .nyf-cu-halo { position: absolute; left: 50%; top: 48%; width: min(330px, 70%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); box-shadow: inset 0 0 0 1.5px var(--ring), 0 0 30px -6px var(--glow); opacity: .75; }
#nyFairGame .nyf-cu-rays { display: none; position: absolute; left: 50%; top: 48%; width: min(440px, 92%); aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 120, .22) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); animation: nyfCuSpin 40s linear infinite; }
#nyFairGame .nyf-cu-box.nyf-r-u .nyf-cu-rays { display: block; }
@keyframes nyfCuSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#nyFairGame .nyf-cu-floor { position: absolute; left: 50%; bottom: 46px; width: 44%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); }
#nyFairGame .nyf-cu-img { position: relative; z-index: 2; width: min(330px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; transform-origin: 50% 50%; will-change: transform; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .5)); image-rendering: auto; }
#nyFairGame .nyf-cu-img.nyf-cu-r { animation: nyfCuR .38s cubic-bezier(.2, .8, .3, 1); }
#nyFairGame .nyf-cu-img.nyf-cu-l { animation: nyfCuL .38s cubic-bezier(.2, .8, .3, 1); }
@keyframes nyfCuR { from { opacity: 0; transform: translateX(46px) scale(.92); } }
@keyframes nyfCuL { from { opacity: 0; transform: translateX(-46px) scale(.92); } }
#nyFairGame .nyf-cu-nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border-radius: 50%; color: #f8e2a8;
  background: rgba(6, 26, 18, .85); box-shadow: inset 0 0 0 1px rgba(226, 184, 102, .65), 0 6px 14px rgba(0, 0, 0, .4); transition: transform .2s, background .2s; }
#nyFairGame .nyf-cu-nav:hover { background: #174536; transform: scale(1.07); }
#nyFairGame .nyf-cu-nav svg { width: 22px; height: 22px; stroke-width: 2.4; }
#nyFairGame .nyf-cu-prev { left: 38px; } #nyFairGame .nyf-cu-next { right: 38px; }
#nyFairGame .nyf-cu-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 54px 40px 30px 14px; }
#nyFairGame .nyf-cu-rar { font-size: 13px; padding: 3px 12px; }
#nyFairGame .nyf-cu-name { font: 600 italic 36px/1.12 var(--script); color: #f8e2a8; }
#nyFairGame .nyf-cu-meta { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; padding: 14px 0 0; width: 100%; border-top: 1px solid rgba(226, 184, 102, .28); }
#nyFairGame .nyf-cu-meta > div { display: flex; flex-direction: column; gap: 1px; }
#nyFairGame .nyf-cu-meta dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e2b866; }
#nyFairGame .nyf-cu-meta dd { margin: 0; font-size: 15px; color: #fff6e6; }
#nyFairGame .nyf-cu-meta .nyf-cu-note dd { font-size: 13px; color: #ffd98a; }
#nyFairGame .nyf-cu-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
#nyFairGame .nyf-btn-line { color: #f8e2a8; box-shadow: inset 0 0 0 1.5px rgba(226, 184, 102, .8); }
#nyFairGame .nyf-btn-line:hover { background: rgba(226, 184, 102, .12); }
#nyFairGame .nyf-cu-count { margin-top: auto; font-size: 13px; color: rgba(255, 246, 230, .65); }
#nyFairGame .nyf-cu-x { right: 14px; top: 14px; color: #fff6e6; background: rgba(255, 245, 225, .1); }
#nyFairGame .nyf-cu-x:hover { background: rgba(255, 245, 225, .2); }

/* =====================================================================
   Телефон
   ===================================================================== */
@media (max-width: 759px) {
  #nyFairGame .nyf-mytree { padding: 24px 12px 18px; --pad: 16px; }
  #nyFairGame .nyf-mt-title { font-size: 23px; padding: 8px 34px 9px; }
  #nyFairGame .nyf-mt-title span::before { left: -14px; right: -14px; }
  #nyFairGame .nyf-mt-note { font-size: 13px; }
  #nyFairGame .nyf-mt-pick { justify-content: center; margin-bottom: -6px; }
  #nyFairGame .nyf-mt-obj { margin-top: 18px; }
  #nyFairGame .nyf-mytree .nyf-scene { min-height: 440px; }
  #nyFairGame .nyf-mytree .nyf-inv-hgt b { font-size: 36px; }
  #nyFairGame .nyf-mytree .nyf-grid { gap: 8px; max-height: none; }
  #nyFairGame .nyf-mytree--2 .nyf-grid, #nyFairGame .nyf-mytree--4 .nyf-grid { grid-auto-columns: 60px; }
  #nyFairGame .nyf-mt-acts { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
  #nyFairGame .nyf-mytree .nyf-zoom-btn { justify-content: center; min-height: 46px; padding: 10px 18px; font-size: 15px; }

  /* 1 шкаф */
  #nyFairGame .nyf-mytree--1 .nyf-mt-obj { margin-top: 38px; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'scene' 'inv' 'acts'; row-gap: 18px; padding: 38px 12px 0; border-radius: 50% 50% 20px 20px / 44px 44px 20px 20px; }
  #nyFairGame .nyf-mytree--1 .nyf-mt-obj::before { inset: 7px; border-radius: 50% 50% 14px 14px / 38px 38px 14px 14px; }
  #nyFairGame .nyf-mytree--1 .nyf-mt-orn { width: 58px; height: 58px; margin-left: -29px; top: -32px; }
  #nyFairGame .nyf-mytree--1 .nyf-scene { min-height: 440px; border-radius: 50% 50% 10px 10px / 110px 110px 10px 10px; }
  #nyFairGame .nyf-mytree--1 .nyf-inv { padding: 14px 12px 14px; }
  #nyFairGame .nyf-mytree--1 .nyf-grid { row-gap: 22px; }
  #nyFairGame .nyf-mytree--1 .nyf-mt-acts { display: flex; margin: 0 -12px; padding: 14px 14px 16px; border-radius: 0 0 20px 20px; }

  /* 2 окно */
  #nyFairGame .nyf-mytree--2 .nyf-mt-obj { margin: 20px 8px 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'scene' 'stat' 'box' 'acts'; row-gap: 12px; padding: 12px 12px 0; border-radius: 24px 24px 0 0; }
  #nyFairGame .nyf-mytree--2 .nyf-mt-obj::after { grid-area: 3 / 1 / 5 / 2; margin: 0 -14px; }
  #nyFairGame .nyf-mytree--2 .nyf-scene { min-height: 430px; border-radius: 50% 50% 8px 8px / 110px 110px 8px 8px; }
  #nyFairGame .nyf-mytree--2 .nyf-inv-stat { padding: 18px 18px 20px; border-radius: 8px; }
  #nyFairGame .nyf-mytree--2 .nyf-inv-stat .nyf-inv-hgt b { font-size: 38px; }
  #nyFairGame .nyf-mytree--2 .nyf-inv-box { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'cap' 'grid'; padding: 22px 0 0; }
  #nyFairGame .nyf-mytree--2 .nyf-cap { margin-top: 4px; }
  #nyFairGame .nyf-mytree--2 .nyf-cap-bar { max-width: none; }
  #nyFairGame .nyf-mytree--2 .nyf-mt-acts { padding: 4px 0 16px; }

  /* 3 открытка: страницы друг под другом, сгиб поперёк */
  #nyFairGame .nyf-mytree--3 .nyf-mt-obj { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'scene' 'inv' 'acts'; row-gap: 44px; padding: 20px 18px 22px; background: linear-gradient(180deg, #f6ead2, #fff9ee 20%, #fff7e8); }
  #nyFairGame .nyf-mytree--3 .nyf-mt-obj::after { inset: 8px; }
  #nyFairGame .nyf-mytree--3 .nyf-mt-obj::before { left: 0; right: 0; width: auto; top: calc(20px + 430px + 22px - 30px); bottom: auto; height: 60px;
    background: linear-gradient(180deg, transparent, rgba(120, 80, 30, .13) 44%, rgba(120, 80, 30, .22) 49.5%, rgba(255, 255, 255, .85) 50.5%, rgba(120, 80, 30, .08) 56%, transparent); }
  #nyFairGame .nyf-mytree--3 .nyf-scene { min-height: 430px; height: 430px; border-radius: 50% 50% 8px 8px / 110px 110px 8px 8px; }
  #nyFairGame .nyf-mytree--3 .nyf-inv { padding: 0; }
  #nyFairGame .nyf-mytree--3 .nyf-inv-hgt b { font-size: 40px; }
  #nyFairGame .nyf-mytree--3 .nyf-mt-acts { margin-top: -26px; }

  /* 4 купол */
  #nyFairGame .nyf-mytree--4 .nyf-mt-obj { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'scene' 'stat' 'box' 'acts'; margin-top: 20px; }
  #nyFairGame .nyf-mytree--4 .nyf-mt-obj::after { grid-area: 2 / 1 / 5 / 2; border-radius: 6px 6px 20px 20px; }
  #nyFairGame .nyf-mytree--4 .nyf-scene { margin: 0 8px; min-height: 440px; border-radius: 50% 50% 0 0 / 130px 130px 0 0; }
  #nyFairGame .nyf-mytree--4 .nyf-inv-stat, #nyFairGame .nyf-mytree--4 .nyf-inv-box, #nyFairGame .nyf-mytree--4 .nyf-mt-acts { padding: 16px 14px; }
  #nyFairGame .nyf-mytree--4 .nyf-inv-stat { padding-top: 24px; }
  #nyFairGame .nyf-mytree--4 .nyf-inv-box { margin: 0 14px; padding: 16px 0; border: 0; border-top: 1px solid var(--div); border-bottom: 1px solid var(--div); }
  #nyFairGame .nyf-mytree--4 .nyf-cap-bar { max-width: none; }
  #nyFairGame .nyf-mytree--4 .nyf-mt-acts { padding-bottom: 18px; }

  /* 5 подарок: раскладка телефона — в блоке @media (max-width: 860px) ниже */
  #nyFairGame .nyf-mytree--5 .nyf-scene { min-height: 440px; border-radius: 50% 50% 10px 10px / 110px 110px 10px 10px; }

  /* просмотр ёлки и крупный план — на весь экран */
  #nyFairGame .nyf-tv .nyf-zoom-top { min-height: 60px; padding: 10px 60px; }
  #nyFairGame .nyf-tv .nyf-zoom-title span { font-size: 22px; }
  #nyFairGame .nyf-tv .nyf-zoom-top .nyf-x { top: 9px; right: 10px; }
  #nyFairGame .nyf-tv-th { width: 48px; height: 48px; }
  #nyFairGame .nyf-cu { padding: 0; }
  #nyFairGame .nyf-cu-box { width: 100%; height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; border-radius: 0; box-shadow: none; }
  #nyFairGame .nyf-cu-stage { min-height: 0; padding: 60px 40px 24px; touch-action: pan-y; }
  #nyFairGame .nyf-cu-stage::before { inset: 56px 14px 10px; border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; }
  #nyFairGame .nyf-cu-img { width: min(320px, 100%); }
  #nyFairGame .nyf-cu-halo { width: min(280px, 76%); }
  #nyFairGame .nyf-cu-floor { display: none; }
  #nyFairGame .nyf-cu-prev { left: 20px; } #nyFairGame .nyf-cu-next { right: 20px; }
  #nyFairGame .nyf-cu-nav { width: 44px; height: 44px; margin-top: -2px; }
  #nyFairGame .nyf-cu-info { gap: 8px; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(6, 22, 16, .2), rgba(6, 22, 16, .5)); box-shadow: inset 0 1px 0 rgba(226, 184, 102, .35); }
  #nyFairGame .nyf-cu-name { font-size: 28px; }
  #nyFairGame .nyf-cu-meta { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; margin-top: 2px; padding-top: 10px; }
  #nyFairGame .nyf-cu-meta dd { font-size: 14px; }
  #nyFairGame .nyf-cu-meta .nyf-cu-note { flex-basis: 100%; }
  #nyFairGame .nyf-cu-acts { width: 100%; margin-top: 6px; }
  #nyFairGame .nyf-cu-acts .nyf-btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
  #nyFairGame .nyf-cu-count { position: absolute; left: 0; right: 0; top: 18px; text-align: center; margin: 0; }
  #nyFairGame .nyf-cu-x { top: 8px; right: 8px; }
}

/* 5 подарок на телефоне и узком планшете (≤860px): одна колонка, лента поперёк, бант посередине.
   Порядок: бирка с высотой → ёлка (арка) → лента с бантом → «Мои игрушки» → кнопки.
   .nyf-inv раскрыт (display: contents), чтобы бирка и «Мои игрушки» встали в сетку предмета по отдельности. */
@media (max-width: 860px) {
  #nyFairGame .nyf-mytree--5 .nyf-mt-obj { margin-top: 18px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'stat' 'scene' 'rib' 'box' 'acts'; row-gap: 16px; column-gap: 0; padding: 14px 14px 18px; }
  #nyFairGame .nyf-mytree--5 .nyf-mt-obj::before { grid-area: rib; height: 30px; margin: 0 -14px;
    background: linear-gradient(180deg, transparent 4px, rgba(255, 220, 200, .5) 4px 5px, transparent 5px calc(100% - 5px), rgba(255, 220, 200, .5) calc(100% - 5px) calc(100% - 4px), transparent 0) 0 0 / 10px 100%,
      linear-gradient(180deg, #7d141b, #b3262d 22%, #e0555c 46%, #c8363d 60%, #8a1c23); }
  #nyFairGame .nyf-mytree--5 .nyf-mt-orn { grid-area: rib; align-self: center; width: 104px; height: 80px; margin: -26px 0; }
  #nyFairGame .nyf-mytree--5 .nyf-inv { display: contents; }
  #nyFairGame .nyf-mytree--5 .nyf-inv-stat { grid-area: stat; }
  #nyFairGame .nyf-mytree--5 .nyf-inv-box { grid-area: box; margin-top: 0; }
  #nyFairGame .nyf-mytree--5 .nyf-mt-acts { margin-top: 0; padding-top: 16px; }
  /* пунктир внутри арки на узком экране ложится на ёлку и подсказки — убираем */
  #nyFairGame .nyf-mytree .nyf-frost::after { display: none; }
}
/* узкий планшет: панель во всю ширину — ячейки игрушек не раздуваем */
@media (min-width: 760px) and (max-width: 860px) {
  #nyFairGame .nyf-mytree--5 .nyf-grid { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  #nyFairGame .nyf-goal-bar i { transition: none; }
  #nyFairGame .nyf-cu-rays { animation: none; }
}
