/* Новогодняя ярмарка 2026 — блок «Рейтинг покупателей»: утверждена «чистая таблица» с праздничными акцентами.
   Разметку даёт nyf_board() (index.php): p.nyp-rb__me--top (кремовый ярлык «Ваше место») +
   .nyp-rb__tw (рамка-подарок: лента и бант .nyp-rb__bow, гирлянда .nyp-rb__lights) > .nyp-rb__in > table.nyp-rb.
   Строки: tr.nyp-rb__row(.is-top1..3, .is-me) > td.nyp-rb__p (медальон 1–3), td.nyp-rb__n (.nyp-rb__nm + приз ТОП-5 .nyp-rb__pz), td.nyp-rb__v, td.nyp-rb__d */

/* ---------- общее: сброс шаблона Aspro и старых стилей рейтинга ---------- */
.nyp-rat .nyp-rb { position: relative; list-style: none !important; margin: 0 !important; padding: 0 !important; counter-reset: none; }
.nyp-rat .nyp-rb i, .nyp-rat .nyp-rb b { font-style: normal; }
.nyp-rat .nyp-rb__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nyp-rat .nyp-tab { min-width: 0; height: auto; flex-direction: column; gap: 2px; }
.nyp-rat .nyp-tab__t { display: block; }
.nyp-rat .nyp-tab__s { display: block; }
.nyp-rat .nyp-tab:focus-visible { outline: 3px solid #f8e2a8; outline-offset: 3px; }
.nyp-rat table.nyp-rb, .nyp-rat .nyp-rb tr, .nyp-rat .nyp-rb th, .nyp-rat .nyp-rb td { border: 0 !important; background: none; box-shadow: none; }

/* заголовок — красная атласная лента, как в утверждённых блоках «Подарки» */
.nyp-rat .nyp-h2 { width: max-content; max-width: calc(100% - 70px); margin: 0 auto 30px !important; position: relative; z-index: 2; padding: 12px 40px 13px; gap: 0;
    background: linear-gradient(180deg, #c33a3f 0%, #a5262d 55%, #8f1d24 100%); font: 600 italic 30px/1.15 var(--serif); color: #fff3d6 !important;
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(248, 226, 168, .35); }
.nyp-rat .nyp-h2 span { position: relative; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff3d6; text-shadow: 0 1px 0 rgba(90, 10, 14, .6); }
.nyp-rat .nyp-h2 span::before { content: ''; position: absolute; left: -32px; right: -32px; top: -6px; bottom: -7px; border-top: 1px dashed rgba(248, 226, 168, .55); border-bottom: 1px dashed rgba(248, 226, 168, .55); }
.nyp-rat .nyp-h2::before, .nyp-rat .nyp-h2::after { content: ''; position: absolute; z-index: -1; top: 12px; bottom: -12px; width: 58px; height: auto; flex: none; opacity: 1; background: linear-gradient(180deg, #8f1d24, #6d151b); }
.nyp-rat .nyp-h2::before { left: -38px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%); }
.nyp-rat .nyp-h2::after { right: -38px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%); }
@media (max-width: 760px) {
    .nyp-rat .nyp-h2 { font-size: 22px; padding: 9px 20px 10px; max-width: calc(100% - 50px); text-align: center; }
    .nyp-rat .nyp-h2 span::before { left: -14px; right: -14px; top: -5px; bottom: -6px; }
    .nyp-rat .nyp-h2::before, .nyp-rat .nyp-h2::after { width: 34px; top: 10px; bottom: -10px; }
    .nyp-rat .nyp-h2::before { left: -22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); }
    .nyp-rat .nyp-h2::after { right: -22px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }
}

/* ===================== вкладки, строки, подсказка ===================== */
.nyp-rat .nyp-panel { max-width: 760px; margin: 0 auto; }
/* вкладки — сегменты */
.nyp-rat .nyp-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 14px; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(226, 184, 102, .22); }
.nyp-rat .nyp-tab { flex-direction: row; align-items: center; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: rgba(246, 239, 224, .75); box-shadow: none; cursor: pointer; transition: background .2s, color .2s; }
.nyp-rat .nyp-tab__t { font: 700 14px/1.2 Montserrat, sans-serif; letter-spacing: .01em; }
.nyp-rat .nyp-tab__s { display: none; }
.nyp-rat .nyp-tab:hover { color: #fff3d6; background: rgba(255, 255, 255, .06); }
.nyp-rat .nyp-tab[aria-selected="true"] { color: #3a2405; background: linear-gradient(180deg, #fff1c4, #e2b866); }
.nyp-rat .nyp-panel__lead { margin: 0 0 14px !important; text-align: center; font-size: 14px; color: rgba(246, 239, 224, .65); }
/* строки: номер места, имя, результат */
.nyp-rat .nyp-rb__row { color: rgba(246, 239, 224, .9); font-size: 15px; }
.nyp-rat .nyp-rb__p { font: 700 13px/1 Montserrat, sans-serif; color: rgba(246, 239, 224, .7); }
.nyp-rat .nyp-rb__n { font-weight: 600; }
.nyp-rat .nyp-rb__v { text-align: right; font: 700 14px/1.2 Montserrat, sans-serif; color: #f8e2a8; white-space: nowrap; }
.nyp-rat .nyp-rb__row.is-me .nyp-rb__n { color: #fff3d6; }
.nyp-rat .nyp-rb__more { text-align: center; padding: 0 !important; line-height: 1; letter-spacing: .3em; color: rgba(246, 239, 224, .4); }
/* подсказка «сколько не хватает» */
.nyp-rat .nyp-rb__me { display: block; max-width: 640px; margin: 14px auto 0 !important; padding: 12px 18px; border-radius: 14px; text-align: center; font-size: 15px; line-height: 1.45; color: rgba(246, 239, 224, .85); background: rgba(226, 184, 102, .08); border: 1px solid rgba(226, 184, 102, .28); }
.nyp-rat .nyp-rb__me b { color: #f8e2a8; font-weight: 700; white-space: nowrap; }
.nyp-rat .nyp-upd { margin-top: 14px !important; text-align: center; }

/* ===================== таблица в рамке-подарке ===================== */
.nyp-rat .nyp-rb__tw { position: relative; margin-top: 22px; border-radius: 16px; background: rgba(0, 0, 0, .2);
    box-shadow: 0 0 0 1px rgba(226, 184, 102, .6), 0 0 0 4px rgba(13, 38, 30, .55), 0 0 0 5px rgba(226, 184, 102, .22), 0 18px 34px -18px rgba(0, 0, 0, .75); }
.nyp-rat .nyp-rb__in { position: relative; border-radius: 16px; overflow: hidden; }
/* атласная лента по левому краю и маленький бант на углу */
.nyp-rat .nyp-rb__tw::before { content: ''; position: absolute; z-index: 2; left: -5px; top: 10px; bottom: 10px; width: 9px; border-radius: 2px;
    background: linear-gradient(90deg, #7d1820 0%, #c8434a 35%, #e0656a 50%, #b8323a 65%, #7d1820 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.nyp-rat .nyp-rb__bow { position: absolute; z-index: 4; left: -30px; top: -32px; width: 56px; height: 56px; pointer-events: none;
    background: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bant-krasnyj.webp') center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
/* гирлянда огоньков по верхнему краю (как у купола), мягко мерцает */
.nyp-rat .nyp-rb__lights { position: absolute; z-index: 3; left: 34px; right: 18px; top: -9px; height: 20px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='20'%3E%3Cpath d='M0 3Q24 15 48 3' fill='none' stroke='%23c9a35a' stroke-opacity='.75' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 48px 20px repeat-x; }
.nyp-rat .nyp-rb__lights::before, .nyp-rat .nyp-rb__lights::after { content: ''; position: absolute; inset: 0; background-repeat: repeat-x; background-size: 96px 20px;
    filter: drop-shadow(0 0 3px rgba(255, 214, 140, .9)); animation: nyp-rb-tw 3.6s ease-in-out infinite; }
.nyp-rat .nyp-rb__lights::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20'%3E%3Crect x='22.4' y='7.2' width='3.2' height='2.6' rx='.6' fill='%233a2a14'/%3E%3Cellipse cx='24' cy='13.4' rx='3.6' ry='4.6' fill='%23ffd98a'/%3E%3C/svg%3E"); }
.nyp-rat .nyp-rb__lights::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20'%3E%3Crect x='70.4' y='7.2' width='3.2' height='2.6' rx='.6' fill='%233a2a14'/%3E%3Cellipse cx='72' cy='13.4' rx='3.6' ry='4.6' fill='%23ff9f6e'/%3E%3C/svg%3E"); animation-delay: -1.8s; }
@keyframes nyp-rb-tw { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.nyp-rat table.nyp-rb { display: table; width: 100% !important; margin: 0 !important; border-collapse: collapse !important; border-spacing: 0 !important; table-layout: fixed; }
.nyp-rat .nyp-rb th, .nyp-rat .nyp-rb td { padding: 11px 16px !important; border-bottom: 1px solid rgba(246, 239, 224, .08) !important; text-align: left; vertical-align: middle; line-height: 1.3; }
.nyp-rat .nyp-rb th { padding-top: 20px !important; padding-bottom: 11px !important; font: 600 11px/1.2 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(246, 239, 224, .6); white-space: nowrap; border-bottom: 0 !important; }
.nyp-rat .nyp-rb thead tr { background: linear-gradient(90deg, transparent, rgba(226, 184, 102, .6) 15%, rgba(226, 184, 102, .6) 85%, transparent) 0 100% / 100% 1px no-repeat; }
.nyp-rat .nyp-rb tbody tr:last-child td { border-bottom: 0 !important; }
.nyp-rat .nyp-rb th.nyp-rb__p { width: 92px; }
.nyp-rat .nyp-rb .nyp-rb__p { padding-left: 28px !important; }
.nyp-rat .nyp-rb th.nyp-rb__v { width: 130px; }
.nyp-rat .nyp-rb th.nyp-rb__d { width: 120px; }
.nyp-rat .nyp-rb .nyp-rb__v, .nyp-rat .nyp-rb .nyp-rb__d { text-align: right; }
.nyp-rat .nyp-rb td.nyp-rb__n { overflow: hidden; }
.nyp-rat .nyp-rb__nm, .nyp-rat .nyp-rb__pz { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* приз ТОП-5 — второй строкой под именем, с маленьким подарком */
.nyp-rat .nyp-rb__pz { margin-top: 3px; padding-left: 22px; font: 600 13px/1.35 Montserrat, sans-serif; color: rgba(248, 226, 168, .88);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.6C6.6 1.6 3.4 1.8 3.9 3.6c.3 1 2.2 1.1 4.1 1zm0 0c1.4-3 4.6-2.8 4.1-1-.3 1-2.2 1.1-4.1 1z' fill='none' stroke='%23f2cf7a' stroke-width='1.3'/%3E%3Crect x='2.2' y='7.4' width='11.6' height='7.6' rx='1' fill='%23b8323a'/%3E%3Crect x='1.2' y='4.6' width='13.6' height='3.2' rx='.8' fill='%23d9545a'/%3E%3Crect x='7' y='4.6' width='2' height='10.4' fill='%23f2cf7a'/%3E%3C/svg%3E") 0 45% / 16px 16px no-repeat; }
.nyp-rat .nyp-rb__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* место: 4+ — число, 1–3 — стеклянные шары золото / серебро / бронза */
.nyp-rat .nyp-rb td.nyp-rb__p span { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; font: 700 14px/1 Montserrat, sans-serif; color: rgba(246, 239, 224, .75); }
.nyp-rat .is-top td.nyp-rb__p span { margin-top: 3px; border-radius: 50%; font-weight: 800; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), 0 3px 8px -2px rgba(0, 0, 0, .55); }
.nyp-rat .is-top td.nyp-rb__p span::before { content: ''; position: absolute; left: 50%; top: -5px; width: 9px; height: 6px; margin-left: -4.5px; border-radius: 2px 2px 1px 1px; background: linear-gradient(90deg, #8c7444, #f4e3b0 45%, #8c7444); }
.nyp-rat .is-top td.nyp-rb__p span::after { content: ''; position: absolute; left: 6px; top: 5px; width: 9px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-30deg); }
.nyp-rat .is-top1 td.nyp-rb__p span { color: #3a2405; background: radial-gradient(circle at 38% 32%, #fff6d2 0, #f6d77e 38%, #d29c35 78%, #9a6a18 100%); }
.nyp-rat .is-top2 td.nyp-rb__p span { color: #23282c; background: radial-gradient(circle at 38% 32%, #ffffff 0, #e3e8ec 38%, #aab3bb 78%, #747e87 100%); }
.nyp-rat .is-top3 td.nyp-rb__p span { color: #331a08; background: radial-gradient(circle at 38% 32%, #ffe3c4 0, #e8b07c 38%, #b8743c 78%, #84491d 100%); }
.nyp-rat .nyp-rb td.nyp-rb__d { font: 500 13px/1.3 Montserrat, sans-serif; color: rgba(246, 239, 224, .55); white-space: nowrap; }
.nyp-rat .nyp-rb tr.is-me td { background: rgba(226, 184, 102, .14) !important; }
.nyp-rat .nyp-rb tr.is-me td:first-child { box-shadow: inset 3px 0 0 #e2b866; }
.nyp-rat .nyp-rb tr.nyp-rb__more td { padding: 2px !important; text-align: center; color: rgba(246, 239, 224, .4); letter-spacing: .3em; }

/* «Ваше место» — кремовый ярлык-билет со звездой */
.nyp-rat .nyp-rb__me--top { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; max-width: none; margin: 0 0 10px !important;
    padding: 12px 24px 12px 58px; border: 0; border-radius: 10px; text-align: left; color: #3d2e17; background: linear-gradient(180deg, #fbf3df, #efe1bf);
    -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; }
.nyp-rat .nyp-rb__me--top::before { content: ''; position: absolute; left: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; background: url('/zooyarmarka/evroyear2027/hero/a/glass/c05-zvezda.webp') center / contain no-repeat; }
.nyp-rat .nyp-rb__me--top::after { content: ''; position: absolute; inset: 4px; border: 1px dashed rgba(140, 100, 40, .4); border-radius: 7px; pointer-events: none; }
.nyp-rat .nyp-rb__me--top.is-none { display: block; }
.nyp-rat .nyp-rb__me--top b { color: #9e1f27; }
.nyp-rat .nyp-rb__you { font-weight: 600; }
.nyp-rat .nyp-rb__you b { font-size: 18px; }
.nyp-rat .nyp-rb__you small { font-size: 13px; color: #6b5532; }
.nyp-rat .nyp-rb__to { color: #4a3a22; }

@media (max-width: 600px) { /* на телефоне строка таблицы — сетка: отставание от лидера второй строкой под высотой */
    .nyp-rat table.nyp-rb, .nyp-rat .nyp-rb thead, .nyp-rat .nyp-rb tbody { display: block; }
    .nyp-rat .nyp-rb tr { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 0 12px 0 14px; border-bottom: 1px solid rgba(246, 239, 224, .08) !important; }
    .nyp-rat .nyp-rb thead tr { border-bottom: 0 !important; background: linear-gradient(90deg, transparent, rgba(226, 184, 102, .55) 18%, rgba(226, 184, 102, .55) 82%, transparent) 0 100% / 100% 1px no-repeat; }
    .nyp-rat .nyp-rb tbody tr:last-child { border-bottom: 0 !important; }
    .nyp-rat .nyp-rb th, .nyp-rat .nyp-rb td { width: auto !important; padding: 10px 0 !important; border-bottom: 0 !important; font-size: 14px; background: none !important; }
    .nyp-rat .nyp-rb th { padding-top: 18px !important; font-size: 10px; letter-spacing: .05em; }
    .nyp-rat .nyp-rb th.nyp-rb__d { display: none; }
    /* имя и цифры — две строки, приз ТОП-5 — третьей строкой на всю ширину (ячейка имени раскрыта в сетку строки) */
    .nyp-rat .nyp-rb td.nyp-rb__n { display: contents; }
    .nyp-rat .nyp-rb .nyp-rb__nm { grid-column: 2 / -1; padding: 10px 0; }
    .nyp-rat .nyp-rb.has-v .nyp-rb__nm { grid-column: 2; grid-row: 1 / span 2; }
    .nyp-rat .nyp-rb.has-v tbody td.nyp-rb__p { grid-row: 1 / span 2; }
    .nyp-rat .nyp-rb.has-v td.nyp-rb__v { grid-column: 3; grid-row: 1; align-self: end; padding: 9px 0 0 !important; font-size: 13px; }
    .nyp-rat .nyp-rb td.nyp-rb__d { grid-column: 3; grid-row: 2; align-self: start; padding: 1px 0 9px !important; font-size: 11.5px; }
    .nyp-rat .nyp-rb tr:not(.is-top1) td.nyp-rb__d::before { content: 'от лидера '; }
    .nyp-rat .nyp-rb tr.is-me { background: rgba(226, 184, 102, .14); box-shadow: inset 3px 0 0 #e2b866; }
    .nyp-rat .nyp-rb tr.is-me td, .nyp-rat .nyp-rb tr.is-me td:first-child { background: none !important; box-shadow: none; }
    .nyp-rat .nyp-rb tr.nyp-rb__more { display: block; }
    .nyp-rat .nyp-rb tr.nyp-rb__more td { display: block; padding: 2px !important; }
    .nyp-rat .nyp-rb .nyp-rb__p { padding-left: 0 !important; }
    .nyp-rat .nyp-rb:not(.has-v) .nyp-rb__pz { margin-top: -8px; }
    .nyp-rat .nyp-rb td.nyp-rb__p span { width: 28px; height: 28px; font-size: 13px; }
    .nyp-rat .nyp-rb__nm { white-space: normal; overflow-wrap: break-word; word-break: normal; hyphens: manual; line-height: 1.25; }
    .nyp-rat .nyp-rb__pz { grid-column: 2 / -1; margin: -5px 0 10px; padding-left: 19px; font-size: 12px; background-size: 14px 14px; line-height: 1.3; }
    .nyp-rat .nyp-rb__tw { margin-top: 18px; }
    .nyp-rat .nyp-rb__bow { left: -14px; top: -22px; width: 46px; height: 46px; }
    .nyp-rat .nyp-rb__tw::before { left: -3px; width: 7px; }
    .nyp-rat .nyp-rb__lights { left: 32px; right: 12px; }
    .nyp-rat .nyp-rb__me--top { padding: 10px 18px 10px 48px; font-size: 14px; }
    .nyp-rat .nyp-rb__me--top::before { left: 15px; width: 22px; height: 22px; margin-top: -11px; }
}
@media (max-width: 600px) {
    .nyp-rat .nyp-tabs { width: 100%; flex-direction: row !important; flex-wrap: nowrap; gap: 2px; padding: 4px; }
    .nyp-rat .nyp-tab { flex: 1 1 auto; justify-content: center; width: auto !important; padding: 7px 8px; white-space: nowrap; }
    .nyp-rat .nyp-tab__t { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .nyp-rat .nyp-tab, .nyp-rat .nyp-rb * { transition: none !important; animation: none !important; }
    .nyp-rat .nyp-rb__lights::before, .nyp-rat .nyp-rb__lights::after { animation: none !important; opacity: 1; }
}

/* до старта: заглушка для покупателей и пометка предпросмотра для сотрудников (05.12.2026) */
.nyp-rat .nyp-rat__soon { max-width: 640px; margin: 6px auto 0; padding: 26px 24px; border: 1px solid rgba(230, 196, 120, .35); border-radius: 16px; background: rgba(12, 40, 30, .55); text-align: center; }
.nyp-rat .nyp-rat__soon b { display: block; margin-bottom: 8px; font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 800; color: #f6dea0; }
.nyp-rat .nyp-rat__soon span { display: block; font-size: 14.5px; line-height: 1.55; color: rgba(246, 239, 224, .78); }
.nyp-rat .nyp-rat__staff { margin: 0 auto 14px; max-width: 760px; text-align: center; font-size: 13px; color: #f6dea0; }
@media (max-width: 600px) { .nyp-rat .nyp-rat__soon { padding: 20px 16px; } .nyp-rat .nyp-rat__soon b { font-size: 21px; } }

/* админский переключатель «Смотреть как» (05.12.2026) */
.nyp-admin .nyp-view { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 4px; }
.nyp-admin .nyp-view__btn { display: inline-block; padding: 3px 10px; border: 1px solid rgba(246, 222, 160, .45); border-radius: 999px; color: #f6dea0; font-size: 12px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.nyp-admin .nyp-view__btn:hover { background: rgba(246, 222, 160, .12); color: #fff4d6; }
.nyp-admin .nyp-view__btn.is-on { background: #f6dea0; border-color: #f6dea0; color: #3a2306; font-weight: 700; }

/* витрина до старта, секретные категории, заглушка призов (05.12.2026) */
#nyFairGame .nyf-show--soon .nyf-vt-sub, #nyFairGame .nyf-show--soon .nyf-strip-wrap, #nyFairGame .nyf-show--soon .nyf-meline { display: none !important; }
#nyFairGame .nyf-show--soon .nyf-stage { display: block; min-height: 0; }
#nyFairGame .nyf-soon { max-width: 560px; margin: 10px auto 6px; padding: 26px 22px; border: 1px solid rgba(230, 196, 120, .35); border-radius: 16px; background: rgba(12, 40, 30, .55); text-align: center; }
#nyFairGame .nyf-soon-star { display: block; width: 64px; height: 64px; margin: 0 auto 10px; background: center / contain no-repeat; }
#nyFairGame .nyf-soon b { display: block; margin-bottom: 8px; font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 800; color: #f6dea0; }
#nyFairGame .nyf-soon span:not(.nyf-soon-star) { display: block; font-size: 14.5px; line-height: 1.55; color: rgba(246, 239, 224, .78); }
.nyp-rat .nyp-tab--secret .nyp-tab__t { opacity: .85; }
.nyp-prz--soon .nyp-prz__soon { max-width: 640px; margin: 6px auto 0; padding: 26px 24px; border: 1px solid rgba(230, 196, 120, .35); border-radius: 16px; background: rgba(12, 40, 30, .55); text-align: center; }
.nyp-prz--soon .nyp-prz__gifts { display: flex; justify-content: center; gap: 18px; margin: 0 0 14px; padding: 0; list-style: none; }
.nyp-prz--soon .nyp-prz__gifts li { position: relative; width: 84px; height: 84px; margin: 0; padding: 0; background: none; }
.nyp-prz--soon .nyp-prz__gifts li:before { display: none; }
.nyp-prz--soon .nyp-prz__gifts img { width: 100%; height: 100%; object-fit: contain; filter: saturate(.85) brightness(.9); }
.nyp-prz--soon .nyp-prz__gifts span { position: absolute; right: -4px; top: -6px; width: 28px; height: 28px; border-radius: 50%; background: #f6dea0; color: #3a2306; font: 800 16px/28px Montserrat, sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.nyp-prz--soon .nyp-prz__soon > b { display: block; margin-bottom: 8px; font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 800; color: #f6dea0; }
.nyp-prz--soon .nyp-prz__soon > span { display: block; font-size: 14.5px; line-height: 1.55; color: rgba(246, 239, 224, .78); }
@media (max-width: 600px) { #nyFairGame .nyf-soon b, .nyp-prz--soon .nyp-prz__soon > b { font-size: 21px; } .nyp-prz--soon .nyp-prz__gifts li { width: 64px; height: 64px; } .nyp-prz--soon .nyp-prz__soon { padding: 20px 16px; } }
.nyp-prz--soon .nyp-prz__soon ul.nyp-prz__gifts { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; justify-content: center !important; align-items: flex-end; grid-template-columns: none; }
.nyp-prz--soon .nyp-prz__soon ul.nyp-prz__gifts > li { display: block !important; flex: 0 0 auto; }

/* ревью 04.12.2026: вкладки рейтинга на телефоне, пустая таблица, якоря под фиксированной шапкой */
.nyp-rat .nyp-tab__short { display: none; }
.nyp-rat .nyp-rb tr.nyp-rb__empty td { padding: 22px 16px !important; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(246, 239, 224, .8); white-space: normal; }
@media (max-width: 600px) {
    .nyp-rat .nyp-tabs { display: grid !important; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; }
    .nyp-rat .nyp-tab--tree { grid-column: 1 / -1; }
    .nyp-rat .nyp-tab { min-width: 0; min-height: 40px; padding: 7px 6px; white-space: nowrap; }
    .nyp-rat .nyp-tab__long { display: none; }
    .nyp-rat .nyp-tab__short { display: inline; }
    .nyp-rat .nyp-tab__s { display: none; }
    .nyp-rat .nyp-rb tr.nyp-rb__empty { display: block; }
    .nyp-rat .nyp-rb tr.nyp-rb__empty td { display: block; }
}
#nyFairGame, #nyfPrizes, #nyfRat, #nyfAllSale, #nyFairGame [id$="T"] { scroll-margin-top: 80px; }
@media (max-width: 991px) { #nyFairGame, #nyfPrizes, #nyfRat, #nyfAllSale, #nyFairGame [id$="T"] { scroll-margin-top: 130px; } }
@media (max-width: 600px) {
    .nyp-rat .nyp-tab .nyp-tab__t, .nyp-rat .nyp-tab .nyp-tab__t span { font-size: 12.5px !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
    .nyp-rat .nyp-tab--secret .nyp-tab__t { overflow: hidden; text-overflow: ellipsis; }
    /* имени — больше ширины: «−1 м 61 см» без подписи «от лидера» */
    .nyp-rat .nyp-rb tr:not(.is-top1) td.nyp-rb__d::before { content: none; }
}
.nyp-rat .nyp-tab .nyp-tab__t span { font: inherit !important; letter-spacing: inherit !important; color: inherit; }
