/* Новогодняя ярмарка 2026 — собственный образ «тёплая ночь ярмарки»: изумруд, золотая фольга, клюква, кремовые карточки. */
.nyp { --em: #0f2f25; --em2: #174536; --em3: #1f5a46; --gold: #e2b866; --gold2: #f8e2a8; --gold3: #b98a3a; --cran: #b3262d; --cream: #fff6e6; --cream2: #f4e3c3; --ink: #2b1d12; --mute: #c9d8cf;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    position: relative; margin: 10px auto 30px; max-width: 1360px; padding: 0 0 34px; border-radius: 30px; overflow: hidden; color: var(--cream); font-size: 15px; line-height: 1.5;
    background:
        radial-gradient(900px 500px at 85% 8%, rgba(226, 184, 102, .14), transparent 60%),
        radial-gradient(800px 600px at 0% 40%, rgba(179, 38, 45, .16), transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .05) 0 1px, transparent 1.5px) 0 0 / 34px 34px,
        linear-gradient(180deg, #0c271f, #0f2f25 30%, #12382c 100%);
    box-shadow: 0 30px 80px rgba(5, 20, 14, .45), inset 0 0 0 1px rgba(226, 184, 102, .25); }
.nyp *, .nyp *::before, .nyp *::after { box-sizing: border-box; }
.nyp h1, .nyp h2, .nyp h3 { margin: 0; color: inherit; }
.nyp b, .nyp strong { color: inherit; }
.nyp ol, .nyp ul { list-style: none; margin: 0; padding: 0; }
.nyp li::before { content: none !important; }
.nyp a { text-decoration: none !important; }

/* ---------- шапка ---------- */
.nyp-hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; padding: 80px 48px 46px; background: var(--hero) center 40% / cover no-repeat; }
.nyp-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 22, .1) 0%, rgba(10, 30, 22, .15) 35%, rgba(12, 39, 31, .85) 78%, #0c271f 100%), radial-gradient(70% 60% at 50% 45%, transparent 40%, rgba(8, 24, 18, .45) 100%); }
.nyp-hero__snow { position: absolute; inset: 0; pointer-events: none; opacity: .9;
    background-image: radial-gradient(2.5px 2.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.8px 1.8px at 34% 62%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 58% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 78% 72%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 92% 12%, #fff 50%, transparent 51%);
    background-size: 380px 380px; animation: nyp-snow 22s linear infinite; }
@keyframes nyp-snow { to { background-position: 40px 380px, -30px 380px, 20px 380px, -20px 380px, 10px 380px; } }
.nyp-hero__in { position: relative; width: 100%; max-width: 980px; margin: 0 auto; text-align: center; }
.nyp-ribbon { display: inline-block; position: relative; margin-bottom: 14px; padding: 7px 34px; background: linear-gradient(180deg, #c8323a, #8f1a20); color: #fff3d6; font: 700 13px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.nyp-title { display: flex; flex-direction: column; align-items: center; font: 900 92px/0.92 var(--serif); letter-spacing: -.01em; }
.nyp-title span { background: linear-gradient(180deg, #fff6d8 0%, #f4d58e 38%, #d9a446 62%, #a8742a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 #7a5016) drop-shadow(0 4px 0 #5e3c0f) drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.nyp-title span:last-child { font-style: italic; font-weight: 600; font-size: .86em; margin-top: 4px; }
.nyp-hero__sub { margin: 16px auto 18px; max-width: 640px; color: #f3ead6; font-size: 16px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.nyp-hero__card { margin: 0 auto; max-width: 760px; padding: 18px 26px; border-radius: 22px; background: rgba(10, 32, 24, .55); border: 1px solid rgba(248, 226, 168, .3); backdrop-filter: blur(10px); text-align: left; color: #f2ead9; }
.nyp-hero__card p { margin: 0 0 8px; } .nyp-hero__card p:last-child { margin: 0; }
.nyp-hero__cta { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.nyp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 40px; font: 700 15px/1 inherit; letter-spacing: .02em; transition: transform .2s, box-shadow .2s; }
.nyp-btn:hover { transform: translateY(-2px); }
.nyp-btn--gold { background: linear-gradient(180deg, #fff1c4, #e2b866 55%, #c08c38); color: #3a2405 !important; box-shadow: 0 10px 24px rgba(226, 184, 102, .35), inset 0 1px 0 #fff8dc; }
.nyp-btn--glass { background: rgba(255, 255, 255, .1); color: #fff6e6 !important; border: 1px solid rgba(248, 226, 168, .5); backdrop-filter: blur(6px); }
.nyp-admin { margin: 18px 32px 0; padding: 9px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px dashed rgba(248, 226, 168, .35); color: #f3dfae; font-size: 13px; text-align: center; }

/* ---------- заголовки разделов ---------- */
.nyp-sec { position: relative; margin: 54px 32px 0; }
.nyp-h2 { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 24px !important; font: 800 40px/1.1 var(--serif); color: var(--gold2) !important; text-align: center; }
.nyp-h2::before, .nyp-h2::after { content: ''; flex: 0 1 140px; height: 14px; background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 3px, transparent 3.5px) center / 14px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat; opacity: .8; }
.nyp-h2 span { background: linear-gradient(180deg, #fff3d0, #e2b866); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- шаги: игрушки на гирлянде ---------- */
.nyp-garland { position: absolute; left: 4%; right: 4%; top: 82px; height: 60px; border-top: 2px solid rgba(226, 184, 102, .55); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: scaleY(-1); pointer-events: none; }
.nyp-steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 10px; }
.nyp-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 96px 20px 22px; margin-top: 50px; border-radius: 24px; background: linear-gradient(180deg, var(--cream), var(--cream2)); color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(185, 138, 58, .25); }
.nyp-step__toy { position: absolute; top: -56px; left: 50%; width: 128px; height: 128px; margin-left: -64px; transform-origin: 50% -30px; animation: nyp-sway 4s ease-in-out infinite; animation-delay: var(--d); }
.nyp-step__toy::before { content: ''; position: absolute; left: 50%; top: -40px; height: 46px; border-left: 2px solid rgba(226, 184, 102, .8); }
.nyp-step__toy img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.nyp-step__toy b { position: absolute; right: 4px; bottom: 6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--serif); color: #3a2405; background: linear-gradient(180deg, #fff1c4, #d8a548); box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 0 0 2px #fff4cf; }
@keyframes nyp-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.nyp-step h3 { font: 800 19px/1.2 var(--serif); color: #173d30; margin-bottom: 8px; }
.nyp-step p { margin: 0 0 14px; color: #5a4632; font-size: 14px; flex: 1; }
.nyp-link { font-weight: 700; color: var(--cran) !important; border-bottom: 1px solid rgba(179, 38, 45, .3); }

/* ---------- слайдер и баннеры ---------- */
.nyp-frame { padding: 10px; border-radius: 28px; background: linear-gradient(135deg, #f8e2a8, #b98a3a 40%, #f3d48f 60%, #9b6f28); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.nyp-frame > div, .nyp-frame .maxwidth-theme { border-radius: 20px; overflow: hidden; max-width: none; padding: 0; }
.nyp-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nyp-banners a { position: relative; display: block; padding: 6px; border-radius: 22px; background: linear-gradient(135deg, #f8e2a8, #b98a3a 45%, #f3d48f); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transition: transform .25s, box-shadow .25s; }
.nyp-banners a:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.nyp-banners img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ---------- рейтинг ---------- */
.nyp-ratings { padding: 34px 32px 24px; border-radius: 30px; background: linear-gradient(180deg, rgba(31, 90, 70, .55), rgba(15, 47, 37, .6)); border: 1px solid rgba(226, 184, 102, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 50px rgba(0, 0, 0, .3); }
.nyp-tabs { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.nyp-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; height: 70px; padding: 6px 20px; border-radius: 18px; border: 2px solid rgba(226, 184, 102, .35); background: rgba(255, 246, 230, .06); color: var(--cream); font: 700 16px/1.2 var(--serif); cursor: pointer; transition: .2s; }
.nyp-tab span { font-size: 24px; }
.nyp-tab--logo { padding: 5px; overflow: hidden; }
.nyp-tab__logo { display: block; width: 100%; height: 100%; border-radius: 13px; background: center / cover no-repeat; }
.nyp-tab:hover { border-color: var(--gold); }
.nyp-tab[aria-selected="true"] { border-color: var(--gold2); background: rgba(226, 184, 102, .16); box-shadow: 0 0 0 3px rgba(226, 184, 102, .2), 0 10px 22px rgba(0, 0, 0, .3); }
.nyp-panel__lead { text-align: center; color: var(--mute); margin: 0 auto 16px; max-width: 760px; }
.nyp-board { display: grid; gap: 8px; }
.nyp-board li { display: grid; grid-template-columns: 44px minmax(150px, 280px) 1fr auto; align-items: center; gap: 16px; padding: 11px 18px; border-radius: 16px; background: rgba(255, 246, 230, .07); border: 1px solid rgba(226, 184, 102, .14); }
.nyp-board__p { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--serif); background: rgba(255, 246, 230, .12); color: var(--cream); }
.nyp-board li.is-top { background: linear-gradient(90deg, rgba(226, 184, 102, .2), rgba(255, 246, 230, .05)); border-color: rgba(226, 184, 102, .4); }
.nyp-board li.is-top1 .nyp-board__p { background: radial-gradient(circle at 35% 30%, #fff5cf, #e2b866 45%, #9b6f28); color: #3a2405; box-shadow: 0 0 16px rgba(226, 184, 102, .6); }
.nyp-board li.is-top2 .nyp-board__p { background: radial-gradient(circle at 35% 30%, #ffffff, #c9ced6 50%, #7d838c); color: #20262e; }
.nyp-board li.is-top3 .nyp-board__p { background: radial-gradient(circle at 35% 30%, #ffe0c2, #c98a52 50%, #7a4a22); color: #fff; }
.nyp-board li.is-me { border-color: #ff9b8f; box-shadow: 0 0 0 2px rgba(255, 155, 143, .3); }
.nyp-board__n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nyp-board__bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nyp-board__bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8f1a20, #e2b866 70%, #f8e2a8); box-shadow: 0 0 10px rgba(226, 184, 102, .45); }
.nyp-board b { color: var(--gold2); font: 800 17px/1 var(--serif); white-space: nowrap; }
.nyp-board__me { text-align: center; margin: 16px 0 0; color: var(--mute); }
.nyp-board__me b { color: var(--gold2); }
.nyp-upd { text-align: center; font-size: 12.5px; color: rgba(201, 216, 207, .7); margin: 14px 0 0; }

/* ---------- призы: подарочные бирки ---------- */
.nyp-prizes__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.nyp-prize { position: relative; margin: 0; padding: 14px 14px 16px; border-radius: 22px; background: linear-gradient(180deg, var(--cream), var(--cream2)); color: var(--ink); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); overflow: hidden; }
.nyp-prize::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 14px; margin-left: -7px; background: linear-gradient(90deg, #8f1a20, #c8323a 50%, #8f1a20); opacity: .9; }
.nyp-prize::after { content: ''; position: absolute; left: 0; right: 0; top: 58%; height: 14px; background: linear-gradient(180deg, #8f1a20, #c8323a 50%, #8f1a20); opacity: .9; }
.nyp-prize__tag { position: relative; z-index: 2; display: inline-block; padding: 4px 12px; border-radius: 20px; background: #173d30; color: var(--gold2); font: 700 12px/1.3 var(--serif); letter-spacing: .04em; }
.nyp-prize.is-top1 .nyp-prize__tag { background: linear-gradient(180deg, #fff1c4, #c08c38); color: #3a2405; }
.nyp-prize__img { position: relative; z-index: 2; display: block; aspect-ratio: 1; margin: 10px 0 12px; border-radius: 16px; background: center / cover no-repeat; box-shadow: 0 8px 18px rgba(0, 0, 0, .25), 0 0 0 4px var(--cream); }
.nyp-prize figcaption { position: relative; z-index: 2; padding: 8px 10px; border-radius: 12px; background: rgba(255, 246, 230, .94); text-align: center; }
.nyp-prize figcaption b { display: block; font: 800 15px/1.25 var(--serif); color: #173d30; }
.nyp-prize figcaption small { display: block; font-size: 12px; color: #7a6248; }
.nyp-prize.is-top { box-shadow: 0 16px 34px rgba(0, 0, 0, .35), 0 0 0 2px var(--gold), 0 0 30px rgba(226, 184, 102, .3); }

.nyp-gamewrap { margin-top: 60px; }

@media (max-width: 1100px) { .nyp-prizes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nyp-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 70px; } .nyp-garland { display: none; } }
@media (max-width: 760px) {
    .nyp { border-radius: 20px; }
    .nyp-hero { min-height: 560px; padding: 60px 18px 30px; background-position: 60% 30%; }
    .nyp-title { font-size: 50px; }
    .nyp-hero__card { padding: 14px 16px; font-size: 14px; }
    .nyp-sec { margin: 40px 14px 0; }
    .nyp-h2 { font-size: 28px; gap: 10px; }
    .nyp-h2::before, .nyp-h2::after { flex-basis: 40px; }
    .nyp-steps__list { grid-template-columns: 1fr; row-gap: 64px; }
    .nyp-banners { grid-template-columns: 1fr; gap: 14px; }
    .nyp-ratings { padding: 22px 12px; border-radius: 20px; }
    .nyp-tab { min-width: 0; flex: 1 1 100%; height: 58px; }
    .nyp-board li { grid-template-columns: 36px 1fr auto; gap: 10px; padding: 9px 12px; }
    .nyp-board__bar { grid-column: 2 / -1; grid-row: 2; }
    .nyp-prizes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .nyp-admin { margin: 14px 14px 0; }
}
@media (prefers-reduced-motion: reduce) { .nyp-hero__snow, .nyp-step__toy { animation: none; } }

/* поднять контент над закреплённой шапкой сайта, пока открыто окно игры (контент Aspro в контексте z-index:3, шапка — до 1051) */
html.nyf-lock #content, html.nyf-lock .wrapper_inner { z-index: 2147483000 !important; }

/* правки: читаемость заголовка, выравнивание шагов */
.nyp-hero__in::before { content: ''; position: absolute; left: 50%; top: 30px; width: min(900px, 110%); height: 360px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(8, 22, 16, .62), rgba(8, 22, 16, .35) 55%, transparent 100%); pointer-events: none; z-index: -1; }
.nyp-hero__in { z-index: 1; }
.nyp-title span { filter: drop-shadow(0 2px 0 #7a5016) drop-shadow(0 4px 0 #5e3c0f) drop-shadow(0 0 22px rgba(0, 0, 0, .75)) drop-shadow(0 12px 22px rgba(0, 0, 0, .6)); }
.nyp-title span:last-child { padding-bottom: .12em; }
.nyp-hero__sub { margin-top: 22px; }
.nyp-steps__list { padding-top: 46px; }
.nyp-steps__list > li.nyp-step { margin-top: 50px !important; }
.nyp-garland { top: 128px; }
.nyp-step__toy::before { top: -14px; height: 20px; }
.nyp-hero__card--short { text-align: center; font-size: 17px; } .nyp-hero__card--short b { color: #fff3c4; }
