/* Новогодняя ярмарка — игровой блок. Все правила внутри #nyFairGame, классы с префиксом nyf-. */

/* ---------- изоляция от шаблона Aspro ---------- */
#nyFairGame { --red: #13392c; --red2: #1f5a44; --wine: #0b231a; --gold: #e8b65a; --gold2: #ffd98a; --cream: #fff5e1; --cream2: #f6e2bd; --ink: #3b1a0e; --mute: rgba(255, 240, 215, .74);
  --rc: #c9b28c; --rr: #4ea0f0; --rs: #b07cf5; --ru: #ffc83d;
  --script: 'Playfair Display', Georgia, 'Times New Roman', serif;
  position: relative; color: var(--cream); font-size: 15px; line-height: 1.45; text-align: left; -webkit-tap-highlight-color: transparent; }
#nyFairGame *, #nyFairGame *::before, #nyFairGame *::after { box-sizing: border-box; }
#nyFairGame h2, #nyFairGame h3, #nyFairGame h4 { margin: 0; padding: 0; border: 0; background: none; color: inherit; font-weight: 400; text-transform: none; letter-spacing: normal; line-height: 1.2; }
#nyFairGame h2::before, #nyFairGame h2::after, #nyFairGame h3::before, #nyFairGame h3::after { content: none; display: none; }
#nyFairGame p { margin: 0; padding: 0; color: inherit; }
#nyFairGame b, #nyFairGame strong { color: inherit; font-weight: 700; }
#nyFairGame ul, #nyFairGame ol { margin: 0; padding: 0; list-style: none; }
#nyFairGame li { margin: 0; padding: 0; list-style: none; }
#nyFairGame li::before, #nyFairGame li::after { content: none !important; display: none !important; }
#nyFairGame img { max-width: none; height: auto; border: 0; vertical-align: top; box-shadow: none; }
#nyFairGame em, #nyFairGame small { font-style: normal; }
#nyFairGame svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#nyFairGame button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; min-width: 0; min-height: 0; height: auto; width: auto; line-height: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; box-shadow: none; border-radius: 0; cursor: pointer; outline-offset: 3px; -webkit-appearance: none; appearance: none; }
#nyFairGame button:disabled { cursor: default; }
#nyFairGame button:focus-visible, #nyFairGame [tabindex]:focus-visible { outline: 2px solid var(--gold2); }
#nyFairGame [hidden] { display: none !important; }
html.nyf-lock, html.nyf-lock body { overflow: hidden; }

/* ---------- общий каркас ---------- */
#nyFairGame .nyf { display: flex; flex-direction: column; gap: 22px; max-width: none; margin: 0; }
#nyFairGame .nyf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 6px 4px 0; }
#nyFairGame .nyf-title { font: 400 clamp(34px, 5vw, 50px)/1.15 var(--script); color: var(--gold2); text-shadow: 0 2px 0 rgba(60, 0, 0, .5), 0 0 28px rgba(255, 200, 100, .35); }
#nyFairGame .nyf-lead { margin-top: 8px; max-width: 640px; font-size: 16px; color: var(--mute); }
#nyFairGame .nyf-stats { display: flex; gap: 10px; flex: none; }
#nyFairGame .nyf-stat { min-width: 112px; padding: 9px 16px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 245, 225, .14), rgba(255, 245, 225, .05)); border: 1px solid rgba(232, 182, 90, .45); }
#nyFairGame .nyf-stat small { display: block; font-size: 12px; color: var(--mute); }
#nyFairGame .nyf-stat b { display: block; font-size: 20px; color: var(--gold2); white-space: nowrap; font-variant-numeric: tabular-nums; }

#nyFairGame .nyf-panel { position: relative; border-radius: 26px; padding: 26px 28px 28px;
  background: radial-gradient(70% 55% at 50% 0%, rgba(226, 184, 102, .14), transparent 70%), linear-gradient(180deg, #174536, #12392c 55%, #0f2f25); /* изумруд страницы (был тёмно-коричневый) */
  border: 1px solid rgba(232, 182, 90, .32); box-shadow: inset 0 1px 0 rgba(255, 225, 160, .14), 0 22px 44px rgba(0, 16, 10, .28); }
#nyFairGame .nyf-sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
#nyFairGame .nyf-sec-head h3 { font: 400 clamp(26px, 3.2vw, 34px)/1.2 var(--script); color: var(--gold2); text-shadow: 0 2px 0 rgba(40, 0, 0, .5); }
#nyFairGame .nyf-sec-note { font-size: 14px; color: var(--mute); }
#nyFairGame .nyf-sub { color: var(--mute); font-size: 15px; }
#nyFairGame .nyf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(232, 182, 90, .16); color: var(--gold2); border: 1px solid rgba(232, 182, 90, .4); white-space: nowrap; }
#nyFairGame .nyf-sec-head .nyf-chip { align-self: center; }

/* кнопки */
#nyFairGame .nyf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
#nyFairGame .nyf-btn-gold { color: #4a1a06; background: linear-gradient(180deg, #ffe29a, #e8b65a 55%, #c98d2e); box-shadow: 0 6px 18px rgba(232, 182, 90, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
#nyFairGame .nyf-btn-gold:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 182, 90, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
#nyFairGame .nyf-btn-gold:disabled { opacity: .7; filter: saturate(.6); }
#nyFairGame .nyf-btn-ghost { color: var(--cream); border: 1px solid rgba(255, 245, 225, .35); }
#nyFairGame .nyf-btn-ghost:hover { background: rgba(255, 245, 225, .08); }
#nyFairGame .nyf-btn-glass { color: var(--cream); background: rgba(5, 22, 15, .55); border: 1px solid rgba(255, 220, 160, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#nyFairGame .nyf-btn-glass:hover { background: rgba(60, 20, 8, .7); }
#nyFairGame .nyf-btn svg { width: 19px; height: 19px; }
#nyFairGame .nyf-btn-small { min-height: 34px; padding: 6px 16px; font-size: 14px; color: #4a1a06; background: linear-gradient(180deg, #ffe29a, #e8b65a); }

/* редкость */
#nyFairGame .nyf-rb { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
#nyFairGame .nyf-rb::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#nyFairGame .nyf-rb.nyf-r-c { color: #e9d9bb; background: rgba(201, 178, 140, .2); }
#nyFairGame .nyf-rb.nyf-r-r { color: #9fd0ff; background: rgba(78, 160, 240, .2); }
#nyFairGame .nyf-rb.nyf-r-s { color: #d8b6ff; background: rgba(176, 124, 245, .22); }
#nyFairGame .nyf-rb.nyf-r-u { color: #4a2a00; background: linear-gradient(90deg, #ffe08a, #ffc83d); }
#nyFairGame .nyf-t-r { color: #9fd0ff; font-weight: 700; } #nyFairGame .nyf-t-s { color: #d8b6ff; font-weight: 700; } #nyFairGame .nyf-t-u { color: var(--ru); }

/* ---------- гирлянда ---------- */
#nyFairGame .nyf-garland { position: absolute; left: 18px; right: 18px; top: -6px; height: 40px; pointer-events: none; }
#nyFairGame .nyf-garland svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #2a1608; stroke-width: 2.2; }
#nyFairGame .nyf-garland i { position: absolute; width: 9px; height: 13px; margin: -1px 0 0 -4.5px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 10px 2px var(--c); animation: nyfTw 2.4s ease-in-out infinite; }
#nyFairGame .nyf-garland i::before { content: ''; position: absolute; left: 2px; top: -3px; width: 5px; height: 4px; border-radius: 1px; background: #4a3420; }
@keyframes nyfTw { 0%, 100% { opacity: 1; } 50% { opacity: .45; box-shadow: 0 0 4px 0 var(--c); } }

/* =====================================================================
   Три дверцы
   ===================================================================== */
#nyFairGame .nyf-day { padding-top: 34px; text-align: center; }
#nyFairGame .nyf-day .nyf-sec-head { justify-content: center; }
#nyFairGame .nyf-doors { display: flex; justify-content: center; gap: clamp(12px, 5vw, 72px); margin: 26px auto 6px; perspective: 1400px; }
#nyFairGame .nyf-dcell { width: clamp(96px, 26vw, 196px); display: flex; flex-direction: column; align-items: center; transition: opacity .5s, transform .5s; }
#nyFairGame .nyf-dframe { --door: #a3161b; --door2: #6d0c10; position: relative; width: 100%; aspect-ratio: 196 / 268; border-radius: 50% 50% 10px 10px / 32% 32% 10px 10px; perspective: 1300px;
  background: #2b0e05; box-shadow: 0 0 0 7px #3b1a0b, 0 0 0 9px #c99545, 0 0 0 10px #6a4318, 0 24px 40px rgba(0, 0, 0, .5); }
#nyFairGame .nyf-c-green { --door: #17603a; --door2: #0b3a22; }
#nyFairGame .nyf-c-blue { --door: #1d4f86; --door2: #0e2c50; }
#nyFairGame .nyf-dinside { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: radial-gradient(circle at 50% 58%, #fff4d2 0, #ffcc6e 30%, #c46a1c 62%, #4a1c07 100%); }
#nyFairGame .nyf-rays { position: absolute; left: 50%; top: 58%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255, 255, 255, .34) 0 7deg, transparent 7deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 72%); mask: radial-gradient(closest-side, #000 20%, transparent 72%); opacity: 0; transition: opacity .8s .3s; }
#nyFairGame .nyf-open .nyf-rays { opacity: 1; animation: nyfSpin 14s linear infinite; }
#nyFairGame .nyf-other .nyf-rays { opacity: .45; }
@keyframes nyfSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#nyFairGame .nyf-dtoy { position: absolute; left: 50%; top: 58%; width: 74%; height: auto; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, -40%) scale(.3); opacity: 0; filter: drop-shadow(0 10px 14px rgba(70, 20, 0, .55)); transition: transform .9s .4s cubic-bezier(.2, 1.5, .4, 1), opacity .5s .4s; }
#nyFairGame .nyf-open .nyf-dtoy[src] { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#nyFairGame .nyf-other .nyf-dtoy[src] { transform: translate(-50%, -50%) scale(.82); filter: drop-shadow(0 8px 10px rgba(70, 20, 0, .45)) saturate(.75); }
#nyFairGame .nyf-mine .nyf-dtoy { animation: nyfBob 3.2s 1.4s ease-in-out infinite; }
@keyframes nyfBob { 50% { margin-top: -6px; } }
/* свет в щели */
#nyFairGame .nyf-slit { position: absolute; right: 0; top: 18%; bottom: 3%; width: 3px; border-radius: 3px; background: #ffe7a6; box-shadow: 0 0 10px 3px rgba(255, 200, 100, .8), 0 0 26px 8px rgba(255, 170, 60, .35); animation: nyfSlit 2.6s ease-in-out infinite; z-index: 1; transition: opacity .3s; }
#nyFairGame .nyf-dframe::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -2px; height: 3px; border-radius: 3px; background: #ffd889; box-shadow: 0 0 14px 4px rgba(255, 190, 90, .55); animation: nyfSlit 2.6s ease-in-out infinite; transition: opacity .3s; }
#nyFairGame .nyf-open .nyf-slit, #nyFairGame .nyf-open .nyf-dframe::after { opacity: 0; animation: none; }
@keyframes nyfSlit { 50% { opacity: .55; } }
/* створка */
#nyFairGame .nyf-door { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.3s cubic-bezier(.6, .02, .22, 1); z-index: 2; }
#nyFairGame .nyf-dface, #nyFairGame .nyf-dback { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
#nyFairGame .nyf-dface { display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 70% at 30% 15%, rgba(255, 255, 255, .18), transparent 50%), linear-gradient(160deg, var(--door), var(--door2));
  box-shadow: inset 0 0 0 3px rgba(255, 215, 140, .55), inset 0 0 0 7px rgba(0, 0, 0, .18), inset 0 -18px 30px rgba(0, 0, 0, .25); }
#nyFairGame .nyf-dface::before { content: ''; position: absolute; left: 15%; right: 15%; top: 38%; bottom: 9%; border-radius: 8px; border: 2px solid rgba(255, 215, 140, .35); box-shadow: inset 0 0 14px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .08); }
#nyFairGame .nyf-dback { transform: rotateY(180deg); background: linear-gradient(200deg, var(--door2), #1c0604); box-shadow: inset 0 0 0 3px rgba(255, 215, 140, .3); }
#nyFairGame .nyf-wreath { position: absolute; left: 50%; top: 12%; width: 40%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, transparent 45%, #1d6b38 46%, #2f8f4c 62%, #17552c 76%, transparent 77%);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
#nyFairGame .nyf-wreath::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle at 50% 12%, #ff4a3c 0 5%, transparent 6%), radial-gradient(circle at 84% 36%, #ffd36b 0 5%, transparent 6%), radial-gradient(circle at 80% 72%, #ff4a3c 0 5%, transparent 6%),
  radial-gradient(circle at 20% 72%, #ffd36b 0 5%, transparent 6%), radial-gradient(circle at 16% 36%, #ff4a3c 0 5%, transparent 6%), radial-gradient(circle at 36% 18%, #fff 0 3%, transparent 4%), radial-gradient(circle at 66% 86%, #fff 0 3%, transparent 4%); }
#nyFairGame .nyf-wreath i { position: absolute; left: 50%; bottom: -4%; width: 44%; height: 26%; transform: translateX(-50%); background: radial-gradient(circle at 50% 50%, #e8252e 0 22%, transparent 23%), conic-gradient(from 225deg at 50% 50%, #c4161e 0 90deg, transparent 90deg 180deg, #c4161e 180deg 270deg, transparent 270deg); }
#nyFairGame .nyf-dnum { position: relative; margin-top: 30%; font: 400 clamp(28px, 7vw, 52px)/1 var(--script); color: #ffe6b0; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(255, 200, 100, .45); }
#nyFairGame .nyf-knob { position: absolute; right: 11%; top: 56%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8, #d29b3c 50%, #7a4d12); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
#nyFairGame .nyf-door:not(:disabled):hover { transform: rotateY(-14deg); }
#nyFairGame .nyf-door:not(:disabled):hover ~ .nyf-slit, #nyFairGame .nyf-dframe:hover .nyf-slit { width: 6px; }
#nyFairGame .nyf-doors:not(.nyf-picked) .nyf-dcell:hover { transform: translateY(-4px); }
#nyFairGame .nyf-chosen .nyf-door { animation: nyfKnock .42s ease; }
@keyframes nyfKnock { 25% { transform: rotateY(-6deg); } 50% { transform: rotateY(2deg); } 75% { transform: rotateY(-4deg); } }
#nyFairGame .nyf-open .nyf-door { transform: rotateY(-100deg) !important; animation: none; }
#nyFairGame .nyf-other { opacity: .82; transform: scale(.94); }
#nyFairGame .nyf-mine .nyf-dframe { box-shadow: 0 0 0 7px #3b1a0b, 0 0 0 9px #ffd27a, 0 0 0 10px #6a4318, 0 0 46px rgba(255, 200, 100, .55), 0 24px 40px rgba(0, 0, 0, .5); }
#nyFairGame .nyf-mine.nyf-r-u .nyf-dframe { box-shadow: 0 0 0 7px #3b1a0b, 0 0 0 9px #ffc83d, 0 0 0 10px #6a4318, 0 0 70px rgba(255, 200, 61, .85), 0 24px 40px rgba(0, 0, 0, .5); }
#nyFairGame .nyf-r-r .nyf-dinside { background: radial-gradient(circle at 50% 58%, #f4fbff 0, #a9d8ff 30%, #3d79b8 62%, #0f2440 100%); }
#nyFairGame .nyf-r-s .nyf-dinside { background: radial-gradient(circle at 50% 58%, #fbf4ff 0, #d6b4ff 30%, #7a45c0 62%, #24103e 100%); }
#nyFairGame .nyf-dcap { min-height: 76px; margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
#nyFairGame .nyf-dcap > * { animation: nyfIn .45s ease both; }
#nyFairGame .nyf-dcap .nyf-tapme { margin-top: 4px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--gold2); border: 1px solid rgba(232, 182, 90, .5); background: rgba(232, 182, 90, .1); animation: nyfTap 2.4s ease-in-out infinite; }
#nyFairGame .nyf-picked .nyf-tapme { opacity: 0; transition: opacity .2s; animation: none; }
@keyframes nyfTap { 50% { background: rgba(232, 182, 90, .25); } }
#nyFairGame .nyf-yours { font: 400 20px/1.1 var(--script); color: var(--gold2); }
#nyFairGame .nyf-could { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
#nyFairGame .nyf-dname { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--cream); }
#nyFairGame .nyf-other .nyf-dname { font-weight: 600; color: var(--mute); }
@keyframes nyfIn { from { opacity: 0; transform: translateY(8px); } }
#nyFairGame .nyf-spark { position: absolute; left: 50%; top: 52%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 8px 2px rgba(255, 220, 120, .9); pointer-events: none; z-index: 5; animation: nyfSpark 1.2s cubic-bezier(.2, .7, .3, 1) both; }
#nyFairGame .nyf-spark.nyf-r-r { background: #cfe8ff; box-shadow: 0 0 8px 2px rgba(120, 190, 255, .9); }
#nyFairGame .nyf-spark.nyf-r-s { background: #ead6ff; box-shadow: 0 0 8px 2px rgba(190, 140, 255, .9); }
@keyframes nyfSpark { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }
#nyFairGame .nyf-day-acts { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 8px; }
#nyFairGame .nyf-day-acts > * { animation: nyfIn .5s ease both; }
#nyFairGame .nyf-nextday { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--mute); }
#nyFairGame .nyf-nextday svg { width: 17px; height: 17px; color: var(--gold); }

/* календарь 24 дней */
#nyFairGame .nyf-days-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 26px 0 10px; padding-top: 18px; border-top: 1px dashed rgba(232, 182, 90, .3); font-size: 14px; font-weight: 700; color: var(--gold2); text-align: left; }
#nyFairGame .nyf-legend { display: inline-flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; font-weight: 400; color: var(--mute); }
#nyFairGame .nyf-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: -6px; vertical-align: -1px; }
#nyFairGame .nyf-lg-o { background: var(--cream); } #nyFairGame .nyf-lg-b { background: #3a1410; border: 1px solid #6a2a1e; } #nyFairGame .nyf-lg-l { background: rgba(255, 245, 225, .14); }
#nyFairGame .nyf-days { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
#nyFairGame .nyf-dt { position: relative; aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; font-size: 12px; }
#nyFairGame .nyf-dt em { position: absolute; left: 6px; top: 3px; font-weight: 700; font-size: 12px; }
#nyFairGame .nyf-dt small { font-size: 10px; margin-top: 12px; }
#nyFairGame .nyf-dt-locked { background: rgba(255, 245, 225, .07); border: 1px solid rgba(255, 245, 225, .12); color: rgba(255, 245, 225, .45); }
#nyFairGame .nyf-dt-locked em { position: static; font-size: 14px; font-weight: 600; }
#nyFairGame .nyf-dt-burnt { background: repeating-linear-gradient(135deg, #2c0d0a 0 6px, #351210 6px 12px); border: 1px solid #5a2219; color: #d6a088; }
#nyFairGame .nyf-dt-burnt small { text-decoration: line-through; }
#nyFairGame .nyf-dt-today { background: linear-gradient(180deg, #ffe7a6, #e8b65a); color: #5a2a06; box-shadow: 0 0 0 2px #fff1c7, 0 0 18px rgba(255, 210, 120, .6); animation: nyfToday 2.4s ease-in-out infinite; }
#nyFairGame .nyf-dt-today small { font-weight: 700; }
@keyframes nyfToday { 50% { box-shadow: 0 0 0 2px #fff1c7, 0 0 6px rgba(255, 210, 120, .3); } }
#nyFairGame .nyf-dt-opened { background: radial-gradient(circle at 50% 60%, #fffaf0, var(--cream2)); color: #8a5a2a; border: 2px solid var(--rc); }
#nyFairGame .nyf-dt-opened img { width: 74%; height: 74%; object-fit: contain; margin-top: 8px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
#nyFairGame .nyf-dt-opened em { font-size: 11px; }
#nyFairGame .nyf-dt-opened.nyf-r-r { border-color: var(--rr); } #nyFairGame .nyf-dt-opened.nyf-r-s { border-color: var(--rs); } #nyFairGame .nyf-dt-opened.nyf-r-u { border-color: var(--ru); box-shadow: 0 0 12px rgba(255, 200, 61, .6); }

/* =====================================================================
   Витрина
   ===================================================================== */
#nyFairGame .nyf-show { padding-left: 0; padding-right: 0; overflow: hidden; }
#nyFairGame .nyf-show .nyf-sec-head, #nyFairGame .nyf-meline { padding: 0 28px; }
#nyFairGame .nyf-strip-wrap { position: relative; margin-top: 12px; }
#nyFairGame .nyf-strip { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; padding: 14px 0 18px; outline-offset: -3px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
#nyFairGame .nyf-strip.nyf-dragging { cursor: grabbing; }
#nyFairGame .nyf-strip.nyf-dragging .nyf-card { pointer-events: none; }
#nyFairGame .nyf-track { display: flex; gap: 18px; padding: 0 28px; width: max-content; will-change: transform; }
#nyFairGame .nyf-card { position: relative; flex: none; width: 236px; height: 372px; padding: 14px 14px 14px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink);
  background: radial-gradient(90% 55% at 50% 42%, #fffdf6 0, transparent 70%), linear-gradient(180deg, #fff8ea, #f3dcb2);
  border: 2px solid rgba(232, 182, 90, .7); box-shadow: 0 14px 30px rgba(0, 16, 10, .35), inset 0 0 0 4px rgba(255, 255, 255, .5); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), box-shadow .3s; }
#nyFairGame .nyf-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(0, 16, 10, .45), inset 0 0 0 4px rgba(255, 255, 255, .5); }
#nyFairGame .nyf-card.nyf-p1 { border-color: #f2b630; box-shadow: 0 14px 30px rgba(0, 16, 10, .35), 0 0 30px rgba(255, 200, 60, .35), inset 0 0 0 4px rgba(255, 255, 255, .6); }
#nyFairGame .nyf-card.nyf-me { border-color: #fff; background: radial-gradient(90% 55% at 50% 42%, #fffdf6 0, transparent 70%), linear-gradient(180deg, #fff3e6, #f7c9b4); box-shadow: 0 14px 30px rgba(0, 16, 10, .35), 0 0 0 3px var(--gold), inset 0 0 0 4px rgba(255, 255, 255, .5); }
#nyFairGame .nyf-place { position: absolute; left: 12px; top: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: var(--cream); background: linear-gradient(180deg, #b3242a, #6e0c10); box-shadow: 0 3px 6px rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(255, 220, 160, .5); }
#nyFairGame .nyf-p1 .nyf-place { color: #5a3500; background: radial-gradient(circle at 35% 30%, #fff3b0, #f2b630 55%, #b07a10); }
#nyFairGame .nyf-p2 .nyf-place { color: #3a3a40; background: radial-gradient(circle at 35% 30%, #fff, #c9ccd6 55%, #8a8e9a); }
#nyFairGame .nyf-p3 .nyf-place { color: #4a2200; background: radial-gradient(circle at 35% 30%, #ffd8b0, #cd7f3c 55%, #8a4a1a); }
#nyFairGame .nyf-you { position: absolute; right: 12px; top: 16px; z-index: 2; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--red2); color: var(--cream); }
#nyFairGame .nyf-card-tree { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
#nyFairGame .nyf-card-tree::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -4px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 40, 10, .35), transparent); }
#nyFairGame .nyf-card-name { margin-top: 10px; font-weight: 800; font-size: 15px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nyFairGame .nyf-card-h { font-weight: 800; font-size: 17px; color: var(--red2); }
#nyFairGame .nyf-chips { display: flex; gap: 4px; margin-top: 8px; min-height: 30px; align-items: center; justify-content: center; }
#nyFairGame .nyf-chips em { font-size: 12px; color: #8a6a4a; }
#nyFairGame .nyf-chip-t { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fffaf0; box-shadow: 0 0 0 2px var(--rc); font-size: 11px; font-weight: 800; color: #7a5a3a; }
#nyFairGame .nyf-chip-t img { width: 80%; height: 80%; object-fit: contain; }
#nyFairGame .nyf-chip-t.nyf-r-r { box-shadow: 0 0 0 2px var(--rr); } #nyFairGame .nyf-chip-t.nyf-r-s { box-shadow: 0 0 0 2px var(--rs); } #nyFairGame .nyf-chip-t.nyf-r-u { box-shadow: 0 0 0 2px var(--ru), 0 0 8px rgba(255, 200, 61, .8); }
#nyFairGame .nyf-arrow { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center; color: var(--gold2); background: rgba(10, 35, 26, .88); border: 1px solid rgba(232, 182, 90, .6); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: opacity .25s, transform .2s; }
#nyFairGame .nyf-arrow svg { width: 22px; height: 22px; stroke-width: 2.6; }
#nyFairGame .nyf-arrow:not(:disabled):hover { transform: scale(1.08); }
#nyFairGame .nyf-arrow:disabled { opacity: 0; pointer-events: none; }
#nyFairGame .nyf-prev { left: 10px; } #nyFairGame .nyf-next { right: 10px; }
#nyFairGame .nyf-meline { margin-top: 4px; text-align: center; font-size: 15px; color: var(--mute); }
#nyFairGame .nyf-meline b { color: var(--gold2); }

/* ёлка с игрушками (общее) */
#nyFairGame .nyf-tree { position: relative; aspect-ratio: 2 / 3; height: 100%; }
#nyFairGame .nyf-tree.nyf-small { height: calc(100% * var(--s)); }
#nyFairGame .nyf-tree-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(40, 10, 0, .35)); }
#nyFairGame .nyf-toy { position: absolute; width: 14%; aspect-ratio: 1; transform: translate(-50%, -38%); padding: 0; border-radius: 50%; z-index: 1; }
#nyFairGame .nyf-toy img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transform-origin: 50% 0; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); animation: nyfSway 4.4s var(--d, 0s) ease-in-out infinite; transition: scale .2s; }
#nyFairGame .nyf-toy.nyf-r-u img { filter: drop-shadow(0 0 6px rgba(255, 200, 60, .95)); }
#nyFairGame .nyf-toy.nyf-r-s img { filter: drop-shadow(0 0 5px rgba(190, 130, 255, .85)); }
#nyFairGame button.nyf-toy:hover img, #nyFairGame .nyf-toy.nyf-sel img { scale: 1.18; }
#nyFairGame .nyf-toy.nyf-sel { z-index: 3; }
#nyFairGame .nyf-toy.nyf-sel::after { content: ''; position: absolute; inset: -14%; border-radius: 50%; border: 2px solid var(--gold2); box-shadow: 0 0 12px rgba(255, 220, 140, .8); }
#nyFairGame .nyf-toy.nyf-new img { animation: nyfDrop .8s cubic-bezier(.2, 1.6, .4, 1), nyfSway 4.4s .8s ease-in-out infinite; }
@keyframes nyfSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes nyfDrop { 0% { transform: translateY(-60%) scale(1.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }

/* =====================================================================
   Моя ёлка у камина
   ===================================================================== */
#nyFairGame .nyf-mine-wrap { position: relative; margin-top: 14px; }
#nyFairGame .nyf-scene { position: relative; height: 600px; border-radius: 22px; overflow: hidden; background: #1a0904; box-shadow: inset 0 0 0 1px rgba(232, 182, 90, .35), 0 18px 40px rgba(0, 0, 0, .35); isolation: isolate; }
#nyFairGame .nyf-bg { position: absolute; left: 0; top: 0; background: center/100% 100% no-repeat; transform-origin: 0 0; }
#nyFairGame .nyf-fire { position: absolute; margin: 0; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 160, 60, .5), rgba(255, 120, 40, .18) 55%, transparent); mix-blend-mode: screen; pointer-events: none; animation: nyfFlick 3.1s ease-in-out infinite; }
@keyframes nyfFlick { 0%, 100% { opacity: .7; } 18% { opacity: 1; } 36% { opacity: .6; } 58% { opacity: .95; } 77% { opacity: .75; } }
#nyFairGame .nyf-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#nyFairGame .nyf-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 45% 55%, transparent 45%, rgba(12, 4, 2, .55)), linear-gradient(180deg, rgba(12, 4, 2, .45), transparent 20%); }
#nyFairGame .nyf-spot { position: absolute; width: 0; height: 0; z-index: 2; }
#nyFairGame .nyf-spot .nyf-tree { position: absolute; left: 0; bottom: 0; height: var(--th, 300px); transform: translateX(-50%); transition: height 1.6s cubic-bezier(.25, 1.25, .35, 1); }
#nyFairGame .nyf-spot.nyf-grow .nyf-tree { animation: nyfWob 1.5s ease; }
@keyframes nyfWob { 25% { transform: translateX(-50%) scale(.97, 1.04); } 55% { transform: translateX(-50%) scale(1.02, .99); } }
#nyFairGame .nyf-shadow { position: absolute; left: 0; top: -10px; width: calc(var(--th, 300px) * .62); height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); transition: width 1.6s; }
#nyFairGame .nyf-beam { position: absolute; left: 0; bottom: 0; width: calc(var(--th, 300px) * .8); height: calc(var(--th, 300px) * 1.25); transform: translateX(-50%); background: linear-gradient(0deg, rgba(255, 210, 120, .6), rgba(255, 230, 170, 0)); filter: blur(12px); opacity: 0; border-radius: 50% 50% 0 0; pointer-events: none; }
#nyFairGame .nyf-grow .nyf-beam { animation: nyfBeam 2.2s ease-out; }
@keyframes nyfBeam { 25% { opacity: 1; } 100% { opacity: 0; } }
#nyFairGame .nyf-plus { position: absolute; left: 0; bottom: calc(var(--th, 300px) + 10px); transform: translateX(-50%); font: 400 34px/1 var(--script); color: #fff1c4; text-shadow: 0 0 20px rgba(255, 190, 90, .9), 0 2px 0 rgba(80, 30, 0, .6); white-space: nowrap; opacity: 0; pointer-events: none; }
#nyFairGame .nyf-grow .nyf-plus { animation: nyfPlus 2.2s ease-out; }
@keyframes nyfPlus { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
#nyFairGame .nyf-hook { position: absolute; width: 10%; min-width: 16px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #fff3c4; background: radial-gradient(circle, #ffd25a 0 30%, rgba(255, 170, 40, .75) 31% 60%, rgba(255, 150, 30, .2) 61%); box-shadow: 0 0 0 2px rgba(90, 30, 0, .55), 0 0 14px 3px rgba(255, 190, 70, .9); animation: nyfHook 1.4s ease-in-out infinite; pointer-events: none; z-index: 2; }
@keyframes nyfHook { 50% { transform: translate(-50%, -50%) scale(1.2); opacity: .6; } }
#nyFairGame .nyf-aiming .nyf-tree { cursor: copy; }
#nyFairGame .nyf-mark { position: absolute; z-index: 3; display: flex; align-items: center; pointer-events: none; transform: translateY(-50%); transition: top 1.6s cubic-bezier(.25, 1.25, .35, 1), left 1.6s cubic-bezier(.25, 1.25, .35, 1); }
#nyFairGame .nyf-mark i { width: 46px; border-top: 2px dashed rgba(255, 225, 160, .75); }
#nyFairGame .nyf-mark b { padding: 5px 12px; border-radius: 999px; background: rgba(6, 26, 18, .78); border: 1px solid rgba(255, 215, 140, .65); color: var(--gold2); font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
#nyFairGame .nyf-zoom-btn { position: absolute; left: 16px; bottom: 16px; z-index: 4; }
#nyFairGame .nyf-aim { position: absolute; left: 50%; top: 14px; z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 16px; border-radius: 999px; background: rgba(6, 26, 18, .86); border: 1px solid rgba(255, 215, 140, .6); color: var(--cream); font-size: 14px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); animation: nyfIn .3s ease; }
#nyFairGame .nyf-aim button { padding: 5px 12px; border-radius: 999px; background: rgba(255, 245, 225, .14); font-size: 13px; font-weight: 700; }
#nyFairGame .nyf-choose-cta { position: absolute; left: 0; top: 0; z-index: 4; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at 48% 60%, rgba(5, 22, 15, .2), rgba(20, 6, 2, .6)); }
#nyFairGame .nyf-choose-cta p { font: 400 26px/1.2 var(--script); color: var(--gold2); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
#nyFairGame .nyf-pop { position: absolute; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px 12px; min-width: 150px; border-radius: 14px; background: #fff5e1; color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); text-align: center; animation: nyfIn .2s ease; }
#nyFairGame .nyf-pop::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #fff5e1; transform: rotate(45deg); }
#nyFairGame .nyf-pop.nyf-below::after { bottom: auto; top: -6px; }
#nyFairGame .nyf-pop b { font-size: 14px; }
#nyFairGame .nyf-pop .nyf-rb.nyf-r-c { color: #7a5a30; background: #f1e1c2; } #nyFairGame .nyf-pop .nyf-rb.nyf-r-r { color: #1f5d9c; background: #dcecfc; } #nyFairGame .nyf-pop .nyf-rb.nyf-r-s { color: #6a35b0; background: #ece0fd; }

/* инвентарь */
#nyFairGame .nyf-inv { position: absolute; right: 16px; top: 16px; bottom: 16px; z-index: 5; width: min(340px, 30%); display: flex; flex-direction: column; padding: 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(48, 14, 6, .86), rgba(30, 8, 3, .9)); border: 1px solid rgba(232, 182, 90, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 225, 160, .15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#nyFairGame .nyf-inv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#nyFairGame .nyf-inv-head h4 { font: 400 22px/1.2 var(--script); color: var(--gold2); }
#nyFairGame .nyf-inv-head span { font-size: 13px; color: var(--mute); }
#nyFairGame .nyf-cap { margin: 8px 0 12px; }
#nyFairGame .nyf-cap-txt { font-size: 13px; color: var(--mute); }
#nyFairGame .nyf-cap-txt b { color: var(--cream); }
#nyFairGame .nyf-cap-bar { height: 6px; margin-top: 6px; border-radius: 6px; background: rgba(255, 245, 225, .12); overflow: hidden; }
#nyFairGame .nyf-cap-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e8b65a, #ffe29a); transition: width .6s cubic-bezier(.2, .9, .3, 1); }
#nyFairGame .nyf-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px; align-content: start; overflow-y: auto; min-height: 0; flex: 1; padding: 3px; margin: -3px; scrollbar-width: thin; scrollbar-color: rgba(232, 182, 90, .5) transparent; }
#nyFairGame .nyf-slot { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fffaf0, #f0dcb6); box-shadow: inset 0 0 0 2px var(--rc), 0 3px 6px rgba(0, 0, 0, .3); transition: transform .18s, box-shadow .18s; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#nyFairGame .nyf-slot img { width: 78%; height: 78%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
#nyFairGame .nyf-slot.nyf-r-r { box-shadow: inset 0 0 0 2.5px var(--rr), 0 3px 6px rgba(0, 0, 0, .3); background: radial-gradient(circle at 50% 40%, #fbfdff, #d9e9f8); }
#nyFairGame .nyf-slot.nyf-r-s { box-shadow: inset 0 0 0 2.5px var(--rs), 0 3px 6px rgba(0, 0, 0, .3); background: radial-gradient(circle at 50% 40%, #fdfaff, #e6d8f8); }
#nyFairGame .nyf-slot.nyf-r-u { box-shadow: inset 0 0 0 3px var(--ru), 0 0 14px rgba(255, 200, 61, .6), 0 3px 6px rgba(0, 0, 0, .3); background: radial-gradient(circle at 50% 40%, #fffbe6, #ffe08a); }
#nyFairGame .nyf-slot em { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 0 6px; border-radius: 6px; font-size: 9px; font-weight: 800; line-height: 15px; white-space: nowrap; color: #4a2a00; background: var(--ru); }
#nyFairGame button.nyf-slot:hover { transform: translateY(-2px); }
#nyFairGame .nyf-slot.nyf-picked { transform: translateY(-3px) scale(1.05); box-shadow: inset 0 0 0 3px var(--gold2), 0 0 0 3px rgba(255, 217, 138, .5), 0 0 18px rgba(255, 210, 120, .7); }
#nyFairGame .nyf-slot.nyf-lift { opacity: .35; }
#nyFairGame .nyf-slot.nyf-empty { background: rgba(255, 245, 225, .05); box-shadow: inset 0 0 0 1px rgba(255, 245, 225, .14), inset 0 2px 6px rgba(0, 0, 0, .3); }
#nyFairGame .nyf-inv-hint { margin-top: 12px; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
#nyFairGame .nyf-ghost { position: fixed; left: 0; top: 0; z-index: 9999; width: 72px; height: 72px; pointer-events: none; opacity: 0; transition: opacity .15s; }
#nyFairGame .nyf-ghost.nyf-vis { opacity: 1; }
#nyFairGame .nyf-ghost img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); transform: rotate(-6deg) scale(1.1); }

/* =====================================================================
   Как это работает
   ===================================================================== */
#nyFairGame .nyf-how-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
#nyFairGame .nyf-how-list li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #fff8ea, #f6e2bd); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 16, 10, .25); }
#nyFairGame .nyf-how-list li:first-child { grid-column: span 2; flex-direction: row; align-items: center; }
#nyFairGame .nyf-how-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, #f3d9a8); box-shadow: inset 0 0 0 2px rgba(232, 182, 90, .7); }
#nyFairGame .nyf-how-ic img { width: 80%; height: 80%; object-fit: contain; }
#nyFairGame .nyf-how-door i { width: 26px; height: 34px; border-radius: 13px 13px 3px 3px; background: linear-gradient(160deg, #b3242a, #6e0c10); box-shadow: inset 0 0 0 2px #e8b65a, 4px 0 8px -2px rgba(255, 190, 80, .9); }
#nyFairGame .nyf-how-t { display: block; font-size: 16px; font-weight: 800; color: #13392c; margin-bottom: 4px; }
#nyFairGame .nyf-how-t .nyf-t-u { color: #a86a00; }
#nyFairGame .nyf-how-list p { font-size: 14px; line-height: 1.45; color: #5a3a24; }
#nyFairGame .nyf-how-list p b { color: #13392c; }
#nyFairGame .nyf-how-list .nyf-t-r { color: #1f6bb8; } #nyFairGame .nyf-how-list .nyf-t-s { color: #7a3fc4; }

/* =====================================================================
   Оверлеи
   ===================================================================== */
#nyFairGame .nyf-ov { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
#nyFairGame .nyf-ov-back { position: absolute; inset: 0; background: rgba(20, 4, 2, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
#nyFairGame .nyf-ov.nyf-vis .nyf-ov-back { opacity: 1; }
#nyFairGame .nyf-x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center; background: rgba(60, 10, 8, .1); color: inherit; transition: background .2s; }
#nyFairGame .nyf-x:hover { background: rgba(60, 10, 8, .2); }

/* похвастаться */
#nyFairGame .nyf-sheet { position: relative; width: min(820px, 100%); max-height: calc(100vh - 40px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; padding: 28px; border-radius: 26px; overflow: auto; color: var(--ink);
  background: radial-gradient(80% 60% at 25% 45%, #fffdf6, transparent 70%), linear-gradient(180deg, #fff8ea, #f3dcb2); border: 2px solid var(--gold); box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .3, 1); }
#nyFairGame .nyf-vis .nyf-sheet { opacity: 1; transform: none; }
#nyFairGame .nyf-brag-tree { height: min(470px, 60vh); display: flex; justify-content: center; align-items: flex-end; }
#nyFairGame .nyf-brag-tree .nyf-toy { width: 15%; }
#nyFairGame .nyf-brag-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding-top: 6px; }
#nyFairGame .nyf-brag-info .nyf-chip { background: #13392c; color: var(--cream); border-color: transparent; }
#nyFairGame .nyf-brag-info h3 { font: 400 32px/1.2 var(--script); color: #13392c; }
#nyFairGame .nyf-brag-h { font-weight: 800; font-size: 17px; color: var(--red2); }
#nyFairGame .nyf-brag-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
#nyFairGame .nyf-brag-sum .nyf-rb.nyf-r-c { color: #7a5a30; background: #f1e1c2; } #nyFairGame .nyf-brag-sum .nyf-rb.nyf-r-r { color: #1f5d9c; background: #dcecfc; } #nyFairGame .nyf-brag-sum .nyf-rb.nyf-r-s { color: #6a35b0; background: #ece0fd; }
#nyFairGame .nyf-brag-list { width: 100%; display: grid; gap: 6px; }
#nyFairGame .nyf-brag-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 600; }
#nyFairGame .nyf-brag-list li span { flex: 1; min-width: 0; }
#nyFairGame .nyf-brag-list li em { font-size: 12px; font-weight: 700; color: #8a6a4a; }
#nyFairGame .nyf-brag-list li.nyf-r-r em { color: #1f6bb8; } #nyFairGame .nyf-brag-list li.nyf-r-s em { color: #7a3fc4; } #nyFairGame .nyf-brag-list li.nyf-r-u em { color: #a86a00; }
#nyFairGame .nyf-brag-list li.nyf-r-u { background: linear-gradient(90deg, #fff1c2, rgba(255, 255, 255, .6)); }

/* приближение */
#nyFairGame .nyf-zoom { padding: 0; background: #120603; opacity: 0; transition: opacity .3s; }
#nyFairGame .nyf-zoom.nyf-vis { opacity: 1; }
#nyFairGame .nyf-zoom-bg { position: absolute; inset: -40px; background: 40% 70%/cover; filter: blur(18px) brightness(.45) saturate(1.1); }
#nyFairGame .nyf-zoom-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#nyFairGame .nyf-zoom-stage:active { cursor: grabbing; }
#nyFairGame .nyf-zoom-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
#nyFairGame .nyf-zoom-world.nyf-smooth { transition: transform .35s cubic-bezier(.2, .9, .3, 1); }
#nyFairGame .nyf-zoom-world .nyf-tree { height: 100%; margin: 0 auto; }
#nyFairGame .nyf-zoom-world .nyf-tree-img { filter: drop-shadow(0 0 40px rgba(255, 190, 100, .25)); }
#nyFairGame .nyf-zoom-world .nyf-toy { cursor: help; }
#nyFairGame .nyf-zoom-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px 64px; background: linear-gradient(180deg, rgba(18, 6, 3, .8), transparent); pointer-events: none; }
#nyFairGame .nyf-zoom-top .nyf-x { pointer-events: auto; color: var(--cream); background: rgba(255, 245, 225, .12); }
#nyFairGame .nyf-zoom-title { font-weight: 700; color: var(--gold2); text-align: center; }
#nyFairGame .nyf-zoom-ctl { position: absolute; right: 18px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
#nyFairGame .nyf-zoom-ctl button { width: 50px; height: 50px; border-radius: 50%; font-size: 26px; font-weight: 700; color: var(--cream); background: rgba(6, 26, 18, .85); border: 1px solid rgba(255, 215, 140, .55); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); transition: opacity .2s, transform .2s; }
#nyFairGame .nyf-zoom-ctl button:not(:disabled):hover { transform: scale(1.07); }
#nyFairGame .nyf-zoom-ctl button:disabled { opacity: .4; }
#nyFairGame .nyf-zoom-ctl .nyf-zfit { font-size: 12px; }
#nyFairGame .nyf-zoom-hint { position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%); width: max-content; max-width: calc(100% - 120px); padding: 7px 14px; border-radius: 999px; font-size: 13px; text-align: center; color: var(--mute); background: rgba(5, 22, 15, .7); pointer-events: none; }
#nyFairGame .nyf-tip { position: fixed; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px 10px; border-radius: 12px; background: #fff5e1; color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); pointer-events: none; animation: nyfIn .18s ease; text-align: center; }
#nyFairGame .nyf-tip b { font-size: 14px; }
#nyFairGame .nyf-tip .nyf-rb.nyf-r-c { color: #7a5a30; background: #f1e1c2; } #nyFairGame .nyf-tip .nyf-rb.nyf-r-r { color: #1f5d9c; background: #dcecfc; } #nyFairGame .nyf-tip .nyf-rb.nyf-r-s { color: #6a35b0; background: #ece0fd; }

/* выбор ёлки */
#nyFairGame .nyf-choose-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 30px 30px 26px; border-radius: 28px; text-align: center;
  background: radial-gradient(100% 70% at 50% 0%, rgba(255, 200, 120, .22), transparent 60%), linear-gradient(180deg, #8e1217, #5a080b); border: 2px solid var(--gold); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 6px rgba(255, 220, 160, .08);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .3, 1); }
#nyFairGame .nyf-vis .nyf-choose-box { opacity: 1; transform: none; }
#nyFairGame .nyf-choose-box h3 { font: 400 clamp(28px, 4.5vw, 38px)/1.2 var(--script); color: var(--gold2); }
#nyFairGame .nyf-choose-box .nyf-sub { margin-top: 6px; }
#nyFairGame .nyf-choose-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 16px; }
#nyFairGame .nyf-ch { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 14px; border-radius: 20px; background: linear-gradient(180deg, #fff8ea, #f3dcb2); color: var(--ink); border: 3px solid transparent; box-shadow: 0 10px 22px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), border-color .2s, box-shadow .2s; }
#nyFairGame .nyf-ch:hover { transform: translateY(-5px); }
#nyFairGame .nyf-ch.nyf-sel { border-color: var(--gold2); transform: translateY(-6px); box-shadow: 0 0 0 4px rgba(255, 217, 138, .35), 0 0 34px rgba(255, 210, 120, .55), 0 14px 26px rgba(0, 0, 0, .35); }
#nyFairGame .nyf-ch-img { width: 100%; aspect-ratio: 2 / 3; max-height: 260px; display: flex; justify-content: center; }
#nyFairGame .nyf-ch-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(60, 20, 0, .3)); }
#nyFairGame .nyf-ch b { font-size: 15px; font-weight: 800; }
#nyFairGame .nyf-onetime { display: inline-block; padding: 8px 16px; border-radius: 12px; background: rgba(0, 0, 0, .22); color: var(--mute); font-size: 14px; }
#nyFairGame .nyf-onetime b { color: var(--gold2); }
#nyFairGame .nyf-choose-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* тосты */
#nyFairGame .nyf-toasts { position: fixed; left: 50%; bottom: 20px; z-index: 10001; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
#nyFairGame .nyf-toast { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px; background: rgba(40, 10, 6, .95); color: var(--cream); border: 1px solid rgba(232, 182, 90, .45); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.35; animation: nyfToast .4s cubic-bezier(.2, .9, .3, 1.2); transition: opacity .4s, transform .4s; }
#nyFairGame .nyf-toast img { flex: none; width: 40px; height: 40px; object-fit: contain; }
#nyFairGame .nyf-toast b { color: var(--gold2); }
#nyFairGame .nyf-toast.nyf-r-r { border-color: var(--rr); } #nyFairGame .nyf-toast.nyf-r-s { border-color: var(--rs); } #nyFairGame .nyf-toast.nyf-r-u { border-color: var(--ru); box-shadow: 0 0 24px rgba(255, 200, 61, .5); }
#nyFairGame .nyf-toast.nyf-warn { border-color: #e07a4a; } #nyFairGame .nyf-toast.nyf-up { border-color: #8fe3b0; }
#nyFairGame .nyf-toast.nyf-out { opacity: 0; transform: translateY(10px); }
@keyframes nyfToast { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* демо */
#nyFairGame .nyf-demo { position: fixed; right: 14px; bottom: 14px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100% - 28px); }
#nyFairGame .nyf-demo-tog { order: 2; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); background: rgba(30, 8, 4, .85); border: 1px dashed rgba(255, 245, 225, .5); }
#nyFairGame .nyf-demo-body { width: 340px; max-width: 100%; padding: 12px; border-radius: 16px; background: rgba(30, 8, 4, .96); border: 1px solid rgba(232, 182, 90, .4); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
#nyFairGame .nyf-demo-body p { font-size: 12px; color: var(--mute); margin-bottom: 8px; }
#nyFairGame .nyf-demo-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
#nyFairGame .nyf-demo-row button { flex: 1 1 auto; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; background: rgba(255, 245, 225, .1); border: 1px solid rgba(255, 245, 225, .2); color: var(--cream); line-height: 1.2; }
#nyFairGame .nyf-demo-row button:hover { background: rgba(255, 245, 225, .18); }
#nyFairGame .nyf-demo-row button small { display: block; font-size: 10.5px; font-weight: 400; color: var(--mute); }
#nyFairGame .nyf-demo-row [data-act=confirm] { background: linear-gradient(180deg, #ffe29a, #e8b65a); color: #4a1a06; border: 0; }

/* =====================================================================
   Планшет и телефон
   ===================================================================== */
@media (max-width: 1000px) {
  #nyFairGame .nyf-how-list { grid-template-columns: repeat(2, 1fr); }
  #nyFairGame .nyf-how-list li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  #nyFairGame { font-size: 14px; }
  #nyFairGame .nyf { gap: 16px; }
  #nyFairGame .nyf-head { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 2px; }
  #nyFairGame .nyf-lead { font-size: 14.5px; }
  #nyFairGame .nyf-stats .nyf-stat { flex: 1; }
  #nyFairGame .nyf-panel { padding: 20px 14px 20px; border-radius: 22px; }
  #nyFairGame .nyf-day { padding-top: 30px; }
  #nyFairGame .nyf-garland { left: 8px; right: 8px; }
  #nyFairGame .nyf-doors { gap: 12px; margin-top: 22px; }
  #nyFairGame .nyf-dcell { width: calc((100% - 24px) / 3); max-width: 120px; }
  #nyFairGame .nyf-dframe { box-shadow: 0 0 0 5px #3b1a0b, 0 0 0 7px #c99545, 0 14px 24px rgba(0, 0, 0, .5); }
  #nyFairGame .nyf-mine .nyf-dframe { box-shadow: 0 0 0 5px #3b1a0b, 0 0 0 7px #ffd27a, 0 0 30px rgba(255, 200, 100, .6); }
  #nyFairGame .nyf-mine.nyf-r-u .nyf-dframe { box-shadow: 0 0 0 5px #3b1a0b, 0 0 0 7px #ffc83d, 0 0 40px rgba(255, 200, 61, .85); }
  #nyFairGame .nyf-dcap { min-height: 84px; margin-top: 14px; font-size: 12px; }
  #nyFairGame .nyf-dcap .nyf-tapme { font-size: 12px; padding: 3px 10px; }
  #nyFairGame .nyf-open .nyf-door { transform: rotateY(-96deg) !important; }
  #nyFairGame .nyf-dname { font-size: 12.5px; }
  #nyFairGame .nyf-yours { font-size: 17px; }
  #nyFairGame .nyf-could { font-size: 10.5px; }
  #nyFairGame .nyf-rb { font-size: 10.5px; padding: 1px 7px; }
  #nyFairGame .nyf-days { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  #nyFairGame .nyf-days-head { margin-top: 18px; }
  #nyFairGame .nyf-show { padding-left: 0; padding-right: 0; }
  #nyFairGame .nyf-show .nyf-sec-head, #nyFairGame .nyf-meline { padding: 0 14px; }
  #nyFairGame .nyf-track { gap: 12px; padding: 0 16px; }
  #nyFairGame .nyf-card { width: 214px; height: 344px; }
  #nyFairGame .nyf-arrow { width: 38px; height: 38px; margin-top: -19px; }
  #nyFairGame .nyf-prev { left: 4px; } #nyFairGame .nyf-next { right: 4px; }
  #nyFairGame .nyf-scene { height: 440px; border-radius: 18px; }
  #nyFairGame .nyf-zoom-btn { left: 10px; bottom: 10px; min-height: 40px; padding: 8px 16px; font-size: 14px; }
  #nyFairGame .nyf-aim { top: 10px; font-size: 13px; padding-left: 12px; white-space: normal; width: max-content; max-width: calc(100% - 20px); line-height: 1.25; }
  #nyFairGame .nyf-hook { width: 8%; min-width: 12px; box-shadow: 0 0 0 1.5px rgba(90, 30, 0, .55), 0 0 8px 2px rgba(255, 190, 70, .85); }
  #nyFairGame .nyf-mark b { font-size: 13px; padding: 4px 10px; }
  #nyFairGame .nyf-mark i { width: 28px; }
  #nyFairGame .nyf-inv { position: relative; right: auto; top: auto; bottom: auto; width: auto; margin-top: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #nyFairGame .nyf-grid { overflow: visible; }
  #nyFairGame .nyf-how-list { grid-template-columns: 1fr; gap: 10px; }
  #nyFairGame .nyf-how-list li { flex-direction: row; align-items: flex-start; padding: 14px; }
  #nyFairGame .nyf-how-ic { width: 46px; height: 46px; border-radius: 14px; }
  #nyFairGame .nyf-sheet { grid-template-columns: 1fr; gap: 10px; padding: 22px 18px; align-self: flex-end; border-radius: 24px 24px 0 0; max-height: 88vh; }
  #nyFairGame .nyf-brag { padding: 0; align-items: flex-end; }
  #nyFairGame .nyf-brag-tree { height: 38vh; }
  #nyFairGame .nyf-brag-info h3 { font-size: 26px; }
  #nyFairGame .nyf-choose { padding: 12px; }
  #nyFairGame .nyf-choose-box { padding: 24px 14px 18px; }
  #nyFairGame .nyf-choose-list { gap: 8px; margin: 16px 0 12px; }
  #nyFairGame .nyf-ch { padding: 10px 4px; border-radius: 16px; }
  #nyFairGame .nyf-ch b { font-size: 12.5px; line-height: 1.2; }
  #nyFairGame .nyf-onetime { font-size: 13px; }
  #nyFairGame .nyf-choose-acts .nyf-btn { flex: 1 1 100%; }
  #nyFairGame .nyf-zoom-ctl { right: 12px; bottom: 76px; }
  #nyFairGame .nyf-zoom-hint { bottom: 14px; max-width: calc(100% - 24px); white-space: normal; }
  #nyFairGame .nyf-demo-body { width: 300px; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  #nyFairGame *, #nyFairGame *::before, #nyFairGame *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #nyFairGame .nyf-toy img { animation: none !important; }
}

/* ===== окно «Выберите свою ёлку» (27.11.2026): изумрудный стиль страницы, все ёлки без прокрутки ===== */
#nyFairGame .nyf-choose { padding: 16px; }
#nyFairGame .nyf-choose-box { width: min(1080px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; padding: 22px 26px 20px; border-radius: 26px;
  background: radial-gradient(80% 50% at 50% 0%, rgba(226, 184, 102, .18), transparent 65%), linear-gradient(180deg, #174536, #0f2f25); border: 1.5px solid rgba(226, 184, 102, .75);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 6px rgba(248, 226, 168, .06); }
#nyFairGame .nyf-choose-box h3 { position: relative; display: inline-block; margin: 0 auto; padding: 8px 34px 9px; font: 600 italic clamp(22px, 3vw, 30px)/1.15 'Playfair Display', Georgia, serif; color: #fff3d6;
  background: linear-gradient(180deg, #c33a3f, #a5262d 55%, #8f1d24); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(248, 226, 168, .35); }
#nyFairGame .nyf-choose-box h3::before, #nyFairGame .nyf-choose-box h3::after { content: ''; position: absolute; top: 9px; bottom: -9px; width: 34px; z-index: -1; background: #7a161c; }
#nyFairGame .nyf-choose-box h3::before { left: -24px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); }
#nyFairGame .nyf-choose-box h3::after { right: -24px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }
#nyFairGame .nyf-choose-box .nyf-sub { margin-top: 10px; color: rgba(255, 246, 230, .75); font-size: 14px; }
#nyFairGame .nyf-choose-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0 12px; }
#nyFairGame .nyf-ch { gap: 4px; padding: 10px 6px 9px; border-radius: 16px; border: 2px solid transparent; background: linear-gradient(180deg, #fff8ea, #f3e3c3); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
#nyFairGame .nyf-ch-img { aspect-ratio: auto; height: clamp(84px, 22vh, 210px); max-height: none; }
#nyFairGame .nyf-ch b { font-size: 13px; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
#nyFairGame .nyf-ch.nyf-sel { border-color: #e2b866; box-shadow: 0 0 0 3px rgba(248, 226, 168, .45), 0 0 26px rgba(255, 210, 120, .5), 0 12px 22px rgba(0, 0, 0, .35); }
#nyFairGame .nyf-onetime { padding: 6px 14px; font-size: 13px; background: rgba(0, 0, 0, .25); color: rgba(255, 246, 230, .8); }
#nyFairGame .nyf-choose-acts { margin-top: 12px; }
@media (max-width: 700px) {
  #nyFairGame .nyf-choose { padding: 8px; }
  #nyFairGame .nyf-choose-box { padding: 16px 10px 14px; border-radius: 20px; }
  #nyFairGame .nyf-choose-box h3 { padding: 6px 22px 7px; font-size: 21px; }
  #nyFairGame .nyf-choose-box .nyf-sub { margin-top: 8px; font-size: 12.5px; }
  #nyFairGame .nyf-choose-list { gap: 6px; margin: 12px 0 10px; }
  #nyFairGame .nyf-ch { padding: 6px 2px 5px; border-radius: 12px; }
  #nyFairGame .nyf-ch-img { height: clamp(64px, 15vh, 130px); }
  #nyFairGame .nyf-ch b { font-size: 10.5px; }
  #nyFairGame .nyf-onetime { font-size: 11.5px; padding: 5px 10px; }
  #nyFairGame .nyf-choose-acts { margin-top: 10px; }
  #nyFairGame .nyf-choose-acts .nyf-btn { flex: 1 1 40%; }
}
#nyFairGame .nyf-choose-box { overflow: auto; }
@media (min-width: 701px) and (max-height: 780px) {
  #nyFairGame .nyf-choose-box { padding: 16px 24px 14px; }
  #nyFairGame .nyf-choose-box .nyf-sub { margin-top: 6px; }
  #nyFairGame .nyf-choose-list { margin: 10px 0 8px; }
  #nyFairGame .nyf-ch-img { height: clamp(70px, 19vh, 170px); }
  #nyFairGame .nyf-choose-acts { margin-top: 8px; }
}
#nyFairGame .nyf-choose-box h3 { isolation: isolate; z-index: 0; }
#nyFairGame .nyf-choose-box h3::before, #nyFairGame .nyf-choose-box h3::after { width: 26px; z-index: -1; }
#nyFairGame .nyf-choose-box h3::before { left: -22px; } #nyFairGame .nyf-choose-box h3::after { right: -22px; }
@media (max-width: 700px) {
  #nyFairGame .nyf-ch b { font-size: 9.5px; letter-spacing: -.01em; word-break: break-word; hyphens: auto; }
  #nyFairGame .nyf-choose-acts .nyf-btn { white-space: normal; line-height: 1.15; min-height: 44px; height: auto; padding: 6px 10px; font-size: 13px; }
}

/* ===== режим «только просмотр» (гости и без доступа к покупкам) ===== */
#nyFairGame .nyf-lock-zone { position: relative; }
#nyFairGame .nyf-lock-zone > :not(.nyf-lock-card) { filter: grayscale(.35) blur(1.5px); opacity: .55; pointer-events: none; user-select: none; }
#nyFairGame .nyf-lock-card { position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -50%); width: min(440px, calc(100% - 24px)); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 22px; border-radius: 20px; text-align: center; color: #2b1d12;
  background: linear-gradient(180deg, #fff8ea, #f3e3c3); box-shadow: 0 0 0 2px rgba(226, 184, 102, .8), 0 18px 40px rgba(0, 0, 0, .45); }
#nyFairGame .nyf-lock-ic { font-size: 28px; line-height: 1; }
#nyFairGame .nyf-lock-card b { font: 700 18px/1.25 'Playfair Display', Georgia, serif; color: #0f2f25; }
#nyFairGame .nyf-lock-card p { margin: 0 !important; font-size: 14px; color: #5a4630; }
#nyFairGame .nyf-lock-card .nyf-btn { margin-top: 6px; text-decoration: none !important; }
#nyFairGame.nyf-locked .nyf-adv-cal { opacity: .6; pointer-events: none; }
@media (max-width: 600px) { #nyFairGame .nyf-lock-card { padding: 16px 14px; } #nyFairGame .nyf-lock-card b { font-size: 16px; } }

/* ===== подарок к заказу ===== */
#nyFairGame .nyf-gp-box { position: relative; width: min(420px, 100%); padding: 26px 24px 22px; border-radius: 24px; text-align: center; color: #fff6e6;
  background: radial-gradient(80% 60% at 50% 0%, rgba(226, 184, 102, .25), transparent 65%), linear-gradient(180deg, #174536, #0f2f25); border: 1.5px solid rgba(226, 184, 102, .8); box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  opacity: 0; transform: scale(.92); transition: opacity .3s, transform .4s cubic-bezier(.2, 1.3, .4, 1); }
#nyFairGame .nyf-giftov.nyf-vis .nyf-gp-box { opacity: 1; transform: none; }
#nyFairGame .nyf-giftov .nyf-x { position: absolute; top: 10px; right: 12px; }
#nyFairGame .nyf-gp-img { width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); animation: nyfGiftHop 1.4s ease-in-out infinite; }
#nyFairGame .nyf-gp-h { margin: 8px 0 0 !important; font: 700 italic 30px/1.15 'Playfair Display', Georgia, serif; color: #f8e2a8 !important; }
#nyFairGame .nyf-gp-p { margin: 10px 0 18px !important; font-size: 15px; line-height: 1.45; color: rgba(255, 246, 230, .9); }
#nyFairGame .nyf-gp-p b { color: #f8e2a8; }
#nyFairGame .nyf-gp-note { margin: 14px auto 0 !important; max-width: 560px; padding: 10px 16px; border-radius: 14px; text-align: center; font-size: 14px; color: #3a2405; background: linear-gradient(180deg, #fff1c4, #e2b866); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
@keyframes nyfGiftHop { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { #nyFairGame .nyf-gp-img { animation: none; } #nyFairGame .nyf-gp-box { transition: none; } }

/* ревью 04.12.2026: две кнопки в замке у гостя, плашка «новый день», выбор ёлки на узких экранах */
#nyFairGame .nyf-lock-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#nyFairGame .nyf-lock-card .nyf-btn-ghost { color: #0f2f25; border-color: rgba(15, 47, 37, .45); }
#nyFairGame .nyf-lock-card .nyf-btn-ghost:hover { background: rgba(15, 47, 37, .08); }
#nyFairGame .nyf-toast.nyf-sticky { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#nyFairGame .nyf-toast.nyf-sticky .nyf-btn { padding: 8px 16px; font-size: 13px; }
@media (max-width: 420px) {
  #nyFairGame .nyf-choose-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #nyFairGame .nyf-choose-list b { hyphens: manual; overflow-wrap: normal; word-break: normal; font-size: 11.5px; }
}
