/* ============================================================
   ВИТРИНА ПАКОВ + ОТКРЫТИЕ ПАКА — перенос их экранов 1:1 (31.10.2026, третий заход).

   Всё взято из их живого клиента (скачано с rocket-app.link):
     • банер-герой «GIFT PACKS» — их `HalloweenPacksArt` (`1d57803b586f5c2f.js`):
       сцена 374×1655 (bg + candle + lantern + ghost) и титульный арт 300×193
       (title-base + moon + gift + packs + 2 тыквы + 2 летучие мыши). Слои лежат
       в `assets/cases-v3/halloween/`, координаты переведены в проценты их же
       `makeLayer(374,1655)` / `makeLayer(300,193)`. Кейфреймы — их (`315fec49e3ac8d19.css`).
     • карточка пака в баннере — их `V` (секция `O`): арт 176×160, имя 18 px,
       пилюля цены с оранжевой рамкой, старая цена зачёркнута, бейдж «−N %»,
       прогресс лимита, бейдж бесплатных открытий.
     • экран открытия — их страница `/packs/<id>` (`9e8334f9afd69c5d.js`):
       сцена 324 px, лента-рулетка с сеткой `roulette/grid.svg`, парящий пак,
       «заряд → рывок → прокрут», эффекты (вспышка, ударная волна, осколки,
       волна по сетке), «Общая стоимость», Fast, x1/x2/x3, «Что внутри?».
     • «Что внутри?» — их `PrizesGrid`: 2 колонки квадратных карточек с ценой в ⭐.
     • окно выигрыша — их `WinModal`: конфетти, карусель призов, «Забрать».

   Их лайм (#ef02cb) в кнопках заменён нашим розовым (воля владельца:
   «подгони под наш стиль в плане кнопок»). Арт и раскладка — их.
   ============================================================ */

#screen-packs { padding: 10px 0 120px; }

.pk-wrap {
    position: relative;
    z-index: 1;
    padding: 0 14px;
}

/* ================= БАНЕР-ГЕРОЙ (их секция паков на экране кейсов) ================= */
.pk-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 -6px;
    padding: 18px 8px 28px;
    border: 1.5px solid rgba(255, 153, 61, .7);
    border-radius: 24px;
    background: #2f0f43;
    overflow: hidden;
}
/* фон-сцена: их `.art` + `.scene` (aspect 374/1655, прижата к верху по центру) */
.pk-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    pointer-events: none;
}
.pk-hero__scene {
    position: absolute;
    top: 0;
    left: 50%;
    /* их `.scene`: `height: max(100cqh, 442.513cqw)` — то есть высота сцены считается
       от ШИРИНЫ (арт 374×1655), но не меньше высоты самого банера.
       Раньше тут стояло `height: 442.5%` — процент от высоты блока, из-за этого
       арт раздувало в 4.4 раза и от него оставался кусок «фиолетового». */
    width: 100%;
    height: auto;
    aspect-ratio: 374 / 1655;
    min-height: 100%;
    transform: translateX(-50%);
}
.pk-hero__scene > img.pk-hero__base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* слой с бликом: их `L` (glow + картинка) */
.pk-layer { position: absolute; }
.pk-layer > img { position: relative; display: block; width: 100%; height: 100%; }
.pk-glow { position: absolute; border-radius: 50%; pointer-events: none; }

/* их кейфреймы (имена наши, значения их) */
@keyframes pk-bat-drift {
    0%, 100% { transform: translate(0) rotate(0); }
    25% { transform: translate(6%, -12%) rotate(-5deg); }
    50% { transform: translate(12%, 4%) rotate(3deg); }
    75% { transform: translate(3%, 12%) rotate(6deg); }
}
@keyframes pk-bat-flap {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(.82); }
}
@keyframes pk-moon-sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
@keyframes pk-glow-breath {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}
@keyframes pk-gift-breath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@keyframes pk-packs-swing {
    0%, 100% { transform: rotate(-2.5deg); }
    50% { transform: rotate(2.5deg); }
}
@keyframes pk-pumpkin-bob {
    0%, 100% { transform: rotate(-3deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.05); }
}
@keyframes pk-flicker {
    0%, 100% { opacity: .55; }
    12% { opacity: .9; }
    20% { opacity: .6; }
    35% { opacity: 1; }
    50% { opacity: .7; }
    63% { opacity: .95; }
    80% { opacity: .6; }
}
@keyframes pk-ghost-float {
    0%, 100% { opacity: .9; transform: translate(0) rotate(0); }
    30% { opacity: 1; transform: translate(10%, -12%) rotate(-4deg); }
    60% { opacity: .85; transform: translate(4%, -4%) rotate(3deg); }
    80% { opacity: 1; transform: translate(-4%, -10%) rotate(2deg); }
}
@keyframes pk-lantern-swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.pk-hero__bat, .pk-hero__bat2 { animation: 4.6s ease-in-out infinite pk-bat-drift; }
.pk-hero__bat2 { animation-duration: 3.7s; animation-direction: reverse; }
.pk-hero__wings { width: 100%; height: 100%; animation: .5s ease-in-out infinite pk-bat-flap; }
.pk-hero__wings img { display: block; width: 100%; height: 100%; }
.pk-hero__bat2 .pk-hero__wings { animation-duration: .42s; }

.pk-hero__moon { transform-origin: 60% 60%; animation: 7.4s ease-in-out infinite pk-moon-sway; }
.pk-hero__moonGlow {
    inset: -22%;
    background: radial-gradient(closest-side, #ffd65a8c, #ffbe3c33 55%, #ffaa2800);
    animation: 4.3s ease-in-out infinite pk-glow-breath;
}
.pk-hero__gift { transform-origin: 50% 85%; animation: 3.1s ease-in-out infinite pk-gift-breath; }
.pk-hero__packs { transform-origin: 50% 0; animation: 3.5s ease-in-out infinite pk-packs-swing; }
.pk-hero__pumpkin { transform-origin: 50% 100%; animation: 2.6s ease-in-out infinite pk-pumpkin-bob; }
.pk-hero__pumpkin2 { animation-duration: 3s; animation-direction: reverse; }
.pk-hero__pumpkin3 { animation-duration: 3.4s; }
.pk-hero__pumpkinGlow {
    inset: -18%;
    background: radial-gradient(closest-side, #ff8c1e99, #ff6e1438 60%, #ff641400);
    animation: 2.3s linear infinite pk-flicker;
}
.pk-hero__pumpkin2 .pk-hero__pumpkinGlow { animation-duration: 2.9s; }
.pk-hero__pumpkin3 .pk-hero__pumpkinGlow { animation-duration: 1.9s; }
.pk-hero__ghost { animation: 5.2s ease-in-out infinite pk-ghost-float; }
.pk-hero__lantern { transform-origin: 50% 0; animation: 3.3s ease-in-out infinite pk-lantern-swing; }
.pk-hero__lanternGlow {
    width: 409%;
    height: 200%;
    top: -44%;
    left: -154%;
    background: radial-gradient(closest-side, #ffaa3c80, #ff8c282e 55%, #ff781e00);
    animation: 1.7s linear infinite pk-flicker;
}
.pk-hero__candleGlow {
    width: 300%;
    height: 261%;
    top: -113%;
    left: -100%;
    background: radial-gradient(closest-side, #ffb4468c, #ff96322e 55%, #ff822800);
    animation: 1.3s linear infinite pk-flicker;
}
@media (prefers-reduced-motion: reduce) {
    .pk-hero__bg *, .pk-hero__title * { animation: none !important; }
}

/* титульный арт «GIFT PACKS» — их `D` (300×193) */
.pk-hero__title {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    height: 193px;
    order: 0;
}
.pk-hero__title > img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* сетка паков внутри банера — их `grid grid-cols-2 gap-x-4 gap-y-7` */
.pk-hero__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    width: 100%;
    order: 1;
}

/* ---- карточка пака (их `V`) ---- */
.pk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 260px;
    padding: 18px 0 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.pk-card:active { transform: scale(.95); }
.pk-card__art { width: 160px; height: 176px; flex: 0 0 auto; }
/* дети карточки не сжимаются: у карточки фикс. высота 260 и внутренний отступ 18,
   поэтому контент на 12 px выше — как у них; без этого анимированная карточка Epic
   (у неё нет своего «минимума» картинки) ужималась и её имя/цена уезжали вверх */
.pk-card > * { flex: 0 0 auto; }
/* их движение карточек: покачивание (`giftFloat`) + «толчок» раз в 2 с (`giftPush`).
   У Epic это делают отдельные слои, у остальных — вся картинка пака.
   Длительности/наклоны — их же четыре набора (cap/mic/gem/watch). */
.pk-card__push {
    display: block;
    width: 100%;
    height: 100%;
    will-change: transform;
    animation: 2s infinite pk-gift-push;
}
.pk-card__float {
    display: block;
    width: 100%;
    height: 100%;
    will-change: transform;
    animation: 3.7s ease-in-out infinite pk-gift-float;
}
.pk-card__float-0 { animation-duration: 3.7s; --float: -4%; --tilt: 1.2deg; }
.pk-card__float-1 { animation-duration: 4.6s; --float: -5%; --tilt: -1.5deg; }
.pk-card__float-2 { animation-duration: 5.3s; --float: -3.5%; --tilt: 1deg; }
.pk-card__float-3 { animation-duration: 4.1s; --float: -4.5%; --tilt: -1deg; }
.pk-card__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
}
.pk-card__name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}
/* пилюля цены: их `border-[#ef02cb] bg-[rgba(26,10,36,0.88)]` + оранжевое свечение */
.pk-card__price {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px 7px 10px;
    border: 1.5px solid #ef02cb;
    border-radius: 999px;
    background: rgba(26, 10, 36, .88);
    box-shadow: 0 0 14px rgba(255, 122, 18, .45);
}
.pk-card__price img, .pk-card__price i {
    width: 22px;
    height: 22px;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
}
.pk-card__cost { font-size: 18px; font-weight: 700; }
.pk-card__old {
    font-size: 17px;
    font-weight: 700;
    color: rgba(201, 182, 224, .55);
    text-decoration: line-through;
}
/* бейдж скидки: их градиент оранжевый, слева сверху */
.pk-card__off {
    position: absolute;
    top: 0;
    left: 4px;
    z-index: 2;
    padding: 4px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #2a0e05;
    background: linear-gradient(to bottom, #ef02cb, #75027f);
    box-shadow: 0 0 10px rgba(255, 122, 18, .4);
}
/* бейдж бесплатных открытий — их лаймовый */
.pk-card__free {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 2;
    padding: 2px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    background: #ef02cb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
/* прогресс лимита: их `W` — рамка + двухслойный текст с заливкой */
.pk-card__limit {
    position: absolute;
    top: 0;
    right: 4px;
    z-index: 2;
    overflow: hidden;
    border: 1.5px solid #ef02cb;
    border-radius: 10px;
    background: rgba(26, 10, 36, .88);
    box-shadow: 0 0 14px rgba(255, 122, 18, .45);
}
.pk-card__limit span {
    display: block;
    padding: 2.5px 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: #f3e9ff;
}
.pk-card__limit b {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: #2a0e05;
    background: linear-gradient(to bottom, #ef02cb, #75027f);
}

/* ================= ЭКРАН ОТКРЫТИЯ (их /packs/<id>) ================= */
.pk-open {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    background: #07080b;
    -webkit-overflow-scrolling: touch;
}
.pk-open[hidden] { display: none; }
.pk-open__inner {
    position: relative;
    width: 100%;
    max-width: 430px;
    /* ALT-PKTOP (02.12.2026, владелец: «опустить пониже, задевает кнопки Telegram»):
       в fullscreen сверху висят панель клиента и нативная «Назад» — заголовок пака
       уезжал под них. Держим запас не меньше 76 px и учитываем safe-area. */
    padding: max(var(--pk-top, 76px), calc(var(--safe-top, 0px) + 20px)) 16px 40px;
}
.pk-open__close {
    position: absolute;
    top: calc(var(--pk-top, 76px) - 8px);
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* ---- сцена: их кадр 304 px (rocket-app.link, `a_` в 38bl3dn9ym-z7.js) ----
   Слои снизу вверх: сакура → затемнение под лентами → две тени под паком → виньетка →
   ленты → свечение/луч/пак → эффекты. Камера: `.pk-cam` (тряска) > `.pk-zoom` (наезд). */
.pk-scene {
    position: relative;
    width: 100%;
    height: 304px;
    margin: 0 -16px 12px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 90, 190, .18);
    background: #0b0713;
    isolation: isolate;
}
.pk-cam,
.pk-zoom {
    position: absolute;
    inset: 0;
    will-change: transform;
}
.pk-zoom { transform-origin: 50% 157px; }
.pk-scene__bg {
    position: absolute;
    inset: -8px;
    overflow: hidden;
    pointer-events: none;
}
.pk-scene__bg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 60%;
}
.pk-scene__shade {
    position: absolute;
    inset: -8px;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
}
/* их `t5` (тёплое пятно) и `t3` (тёмная тень) под паком + виньетка `t7` */
.pk-scene__shadow {
    position: absolute;
    left: 50%;
    top: 268px;
    width: 135px;
    height: 32px;
    margin: -16px 0 0 -67px;
    transform: translateZ(0) scaleY(.28);
    background: radial-gradient(closest-side, rgba(239, 2, 203, .35), rgba(239, 2, 203, 0));
    pointer-events: none;
}
.pk-scene__shadow2 {
    position: absolute;
    left: 50%;
    top: 279px;
    width: 56px;
    height: 8px;
    margin: -4px 0 0 -28px;
    transform: scaleY(.38);
    background: radial-gradient(closest-side, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0));
    pointer-events: none;
}
.pk-scene__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse 75% 70% at 50% 157px, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
}
.pk-scene__halo i {
    position: absolute;
    left: 50%;
    top: 12px;
    width: 560px;
    height: 380px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(239, 2, 203, .16), rgba(182, 2, 206, .06) 45%, rgba(182, 2, 206, 0));
}
/* полоса ленты: их B = stripRows(1) → top 104, height 196 */
.pk-strip {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    pointer-events: none;
}
.pk-strip__glow {
    position: absolute;
    left: 50%;
    top: -27px;
    width: 330px;
    height: 230px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(239, 2, 203, .22), rgba(182, 2, 206, .08) 55%, rgba(182, 2, 206, 0));
}
.pk-strip__grid {
    position: absolute;
    left: 50%;
    top: -27px;
    width: 340px;
    height: 250px;
    max-width: none;
    transform: translateX(-50%);
    pointer-events: none;
    /* ALT-3DSCENE: у них ленты лежат прямо на арте сцены, без сетки-подложки */
    display: none;
}
/* их указатели-капсулы сверху и снизу полосы (у них SVG лаймового цвета — наш розовый) */
.pk-strip__cap {
    position: absolute;
    left: 50%;
    width: 34px;
    height: 25px;
    margin-left: -17px;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 0 4px rgba(239, 2, 203, .9));
}
.pk-strip__cap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 9px;
    transform: translate(-50%, -50%);
    background: #ef02cb;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.pk-strip:not(.is-live) .pk-strip__cap { display: none; }
.pk-strip__cap--down { top: -8px; }
.pk-strip__cap--up { bottom: -8px; }
.pk-strip__cap--up::before { clip-path: polygon(50% 100%, 100% 0, 0 0); }
/* затемнение по краям кадра, как у них: rgba(0,0,0,.5) к центру */
.pk-strip__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 2;
}
.pk-strip__fade--l { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.pk-strip__fade--r { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.pk-row {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    will-change: transform, opacity;
}
.pk-row__track {
    position: absolute;
    left: 50%;
    top: 0;
    will-change: transform;
}
.pk-cell {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}
/* их плитка: фон #141416, обводка, скругление 15.5 и градиент акцента сверху */
.pk-cell__box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: calc(15.5px * var(--pks, 1));
    border: 1px solid rgba(255, 255, 255, .04);
    background-color: #141416;
    /* акцент сверху — только подсветка (у них 0.85/0.45/0.12, но фон тёмный #141416;
       плотный малиновый заливал плитку целиком и всё сливалось — владелец 02.12.2026) */
    background-image: linear-gradient(180deg,
        rgba(239, 2, 203, .38) 0%,
        rgba(239, 2, 203, .18) 40%,
        rgba(239, 2, 203, .06) 75%,
        rgba(239, 2, 203, 0) 100%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    overflow: hidden;
}
.pk-cell__box img {
    position: absolute;
    left: 8%;
    top: 11.2%;
    width: 84%;
    height: 50%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .55));
}
.pk-cell__box::after { content: none; }
/* тип приза (у них «Stars» / название NFT) — 11.5 px на 101-й строке плитки */
.pk-cell__kind {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 67.3%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: calc(11.5px * var(--pks, 1));
    line-height: calc(16px * var(--pks, 1));
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
}
/* значение (цена/номинал) — БЕЛОЕ, как у них: 14 px на 116.5-й строке */
.pk-cell__value {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 77.7%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: calc(14px * var(--pks, 1));
    line-height: calc(19px * var(--pks, 1));
    font-weight: 600;
    color: #fff;
}
/* полоска акцента тира — 41×5 на 138-й строке (их лайм → наш розовый) */
.pk-cell__tier {
    position: absolute;
    left: 50%;
    top: 92%;
    width: calc(41px * var(--pks, 1));
    height: calc(5px * var(--pks, 1));
    transform: translateX(-50%);
    border-radius: calc(2.6px * var(--pks, 1));
    background: #ef02cb;
}
.pk-cell__glow {
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(closest-side, rgb(255 0 204 / .45), rgb(255 0 204 / 0));
}
/* заголовок сцены — над кадром, как у них */
.pk-scene__head {
    position: relative;
    padding: 0 16px 10px;
    text-align: center;
    pointer-events: none;
}
.pk-scene__title { font-size: 28px; font-weight: 700; line-height: normal; }
.pk-scene__sub { margin-top: 9px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .6); }
/* их золотое свечение за паком (`O`): 380×330 на 139-й строке кадра, показывается
   только при «заряде» (opacity 0 → 1, scale .85 → 1.1) и гаснет на взрыве.
   Наш малиновый круг убран — владелец: «наш свет мешается». */
.pk-scene__glow {
    position: absolute;
    left: 50%;
    top: 139px;
    width: 380px;
    height: 330px;
    max-width: none;
    transform: translate(-50%, -50%) scale(.85);
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(closest-side,
        rgba(255, 225, 150, .9), rgba(255, 190, 90, .55) 45%,
        rgba(255, 160, 60, .2) 75%, rgba(255, 160, 60, 0));
}
.pk-pack {
    position: absolute;
    left: 50%;
    top: 157px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    will-change: transform, opacity;
}
.pk-pack__tilt {
    position: relative;
    transform-origin: 50% 100%;
    will-change: transform;
}
.pk-pack__spin {
    position: relative;
    transform-origin: 50% 100%;
    will-change: transform;
}
.pk-pack__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 260px;
    max-width: none;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(closest-side, rgba(239, 2, 203, .55), rgba(182, 2, 206, .25) 55%, rgba(182, 2, 206, 0));
}
.pk-pack__art {
    position: relative;
    display: block;
    height: 186px;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55));
}
.pk-pack__half {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform, opacity;
}
.pk-pack__half img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* их `tf`: луч из пака во время «заряда» */
.pk-pack__beam {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 65px;
    height: 240px;
    margin: 0;
    transform: translate(-50%, -50%) scale(.15, .7);
    transform-origin: 50% 50%;
    background: radial-gradient(closest-side, rgba(255, 236, 200, .9), rgba(255, 236, 200, .45) 45%, rgba(255, 236, 200, 0));
    opacity: 0;
    pointer-events: none;
    filter: blur(2px);
}
/* эффекты на «рывке» */
.pk-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}
.pk-fx__item { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.pk-fx__flash {
    width: 165px;
    height: 165px;
    margin: -82.5px 0 0 -82.5px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #fdb2f8 35%, rgba(255, 248, 196, 0) 70%);
}
.pk-fx__ring {
    width: 95px;
    height: 95px;
    margin: -47.5px 0 0 -47.5px;
    border: 2px solid #fff;
    border-radius: 50%;
}
.pk-fx__ring:nth-child(2n) { border-color: #ef02cb; }
.pk-fx__wave {
    position: absolute;
    left: 50%;
    top: 77px;
    width: 340px;
    height: 250px;
    max-width: none;
    transform: translateX(-50%);
    pointer-events: none;
    will-change: opacity, background;
}

/* ---- кнопки и служебные строки ---- */
.pk-acts { display: flex; flex-direction: column; gap: 12px; }
.pk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #ef02cb, #b602ce);
    box-shadow: 0 0 40px rgba(239, 2, 203, .28);
    transition: transform .15s ease, filter .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.pk-btn:active { transform: scale(.99); }
/* вторичная кнопка — стекло (наш стиль): «Понятно», «Скопировать ссылку» */
.pk-btn--ghost {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: none;
    color: rgba(255, 255, 255, .88);
}
.pk-btn[disabled] { opacity: .5; filter: grayscale(.4); pointer-events: none; }
.pk-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 8px;
    font-size: 16px;
    font-weight: 500;
}
.pk-total b { font-size: 18px; font-weight: 700; color: #ffd54d; }
.pk-rowline { display: flex; align-items: center; gap: 8px; }
.pk-rowline + .pk-rowline { margin-top: 10px; }
/* переключатель Fast — их Toggle */
.pk-switch {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    background: #1e1e20;
    cursor: pointer;
    transition: background .2s ease;
}
.pk-switch.is-on { background: linear-gradient(135deg, #ef02cb, #b602ce); }
.pk-switch i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}
.pk-switch.is-on i { transform: translateX(24px); }
.pk-switch__label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
/* x1 / x2 / x3 — их сегменты с ползунком */
.pk-seg {
    position: relative;
    display: flex;
    flex: 1;
    height: 46px;
    border-radius: 9px;
    overflow: hidden;
    background: #1e1e20;
}
.pk-seg__pill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff9ae0, #c9a2ff);
    transition: left .28s cubic-bezier(.3, .8, .4, 1), width .28s cubic-bezier(.3, .8, .4, 1);
}
.pk-seg button {
    position: relative;
    z-index: 1;
    flex: 1;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 700;
    color: #606060;
    cursor: pointer;
    transition: color .2s ease;
}
.pk-seg button.is-on { color: #0b0710; }

/* ---- «Что внутри?» — их PrizesGrid ---- */
.pk-inside-title {
    margin: 18px 0 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.pk-inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 12px; }
/* правая группа (друзья + «Что внутри»): на телефоне ведёт себя как раньше — плоский поток */
.pk-right { display: contents; }
.pk-prize {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 120px;
    min-height: 120px;
    overflow: hidden;
    border: 1.2px solid rgba(255, 255, 255, .28);
    border-radius: 22px;
    background: linear-gradient(to bottom, #212529, #0f1114 55%, #08090a);
    box-shadow: 0 10px 18px -4px rgba(0, 0, 0, .55);
}
.pk-prize::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 46%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .07), transparent);
}
.pk-prize img {
    position: absolute;
    left: 50%;
    top: 53.7%;
    width: 62%;
    height: 62%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55));
}
.pk-prize__val {
    position: absolute;
    top: 8.8px;
    right: 8.8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 5px 4px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    background: #07080b;
}
.pk-prize__val img, .pk-prize__val i { width: 15px; height: 15px; font-style: normal; font-size: 14px; line-height: 1; }
.pk-prize::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 -5px 6px rgba(0, 0, 0, .6), inset 0 2px 2px rgba(255, 255, 255, .14);
}

/* ================= ОКНО ВЫПАДЕНИЯ — как у них в кейсах (RubUP) =================
   Раскладка и слова их (окно выпадения `RubWin`, presentation `case-prize`):
   «Выпало N подарков», баланс, сетка карточек с [⇈ Улучшить][Продать N ⭐],
   внизу [Продать всё N ⭐][↻ Крутить ещё за N ⭐][Поделиться].
   Цвета — наши: розово-фиолетовое стекло вместо их сине-жёлтого. */
.pk-res {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(4, 2, 8, .62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .2s ease;
}
.pk-res.show { opacity: 1; }
.pk-res__sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: 100%;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(182, 2, 206, .22), transparent 70%),
        linear-gradient(180deg, #1a1026 0%, #0c0812 100%);
    box-shadow: 0 -18px 60px rgba(0, 0, 0, .6);
    transform: translateY(14px);
    transition: transform .26s cubic-bezier(.21, .81, .29, .98);
}
.pk-res.show .pk-res__sheet { transform: none; }
.pk-res__handle {
    align-self: center;
    width: 46px;
    height: 4px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}
.pk-res__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px 10px;
}
.pk-res__head-main { flex: 1; min-width: 0; }
.pk-res__title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}
.pk-res__balance {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 22px;
    font-weight: 900;
    color: #ffd54d;
}
.pk-res__balance i { font-style: normal; font-size: 19px; line-height: 1; }
.pk-res__round {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #fff;
    background: rgba(182, 2, 206, .38);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.pk-res__round:active { transform: scale(.94); }
.pk-res__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 2px 12px;
}
/* как у них: на широком экране — три карточки в ряд (их окно 600 px), на телефоне — две,
   иначе подписи кнопок не влезают */
@media (min-width: 520px) {
    .pk-res__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pk-res__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 8px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
}
.pk-res__card.is-sold { opacity: .55; }
.pk-res__pic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 74px;
}
.pk-res__pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.pk-res__name {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
}
.pk-res__price { font-size: 16px; font-weight: 900; color: #fff; }
.pk-res__card .pk-res__up,
.pk-res__card .pk-res__sell,
.pk-res__card .pk-res__paid {
    width: 100%;
    min-height: 32px;
    padding: 0 4px;
    border: 0;
    border-radius: 9px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -.1px;
    cursor: pointer;
}
/* их «Улучшить» жёлтая — у нас стеклянная с розовым кантом */
.pk-res__up {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(239, 2, 203, .45) !important;
}
.pk-res__up:active { transform: scale(.98); }
/* их «Продать» — наш основной градиент */
.pk-res__sell {
    color: #fff;
    background: linear-gradient(135deg, #ef02cb, #b602ce);
    box-shadow: 0 6px 18px rgba(239, 2, 203, .28);
}
.pk-res__sell:active { transform: scale(.98); }
.pk-res__card .pk-res__paid {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    border: 1px dashed rgba(255, 255, 255, .14);
}
/* ---- один приз: «Ваш подарок» (их вид x1: герой крупно, без сетки) ---- */
.pk-res--one .pk-res__sheet { max-width: 430px; }
.pk-res__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 2px 14px;
}
.pk-res__hero-pic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
}
.pk-res__hero-pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .6));
}
.pk-res__hero-name { font-size: 18px; font-weight: 700; color: #fff; text-align: center; }
.pk-res__hero-price { font-size: 24px; font-weight: 900; color: #fff; }
.pk-res__hero-acts {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}
.pk-res__hero-acts .pk-res__up,
.pk-res__hero-acts .pk-res__sell,
.pk-res__hero-acts .pk-res__paid {
    flex: 1 1 0;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.pk-res__hero-acts .pk-res__up {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(239, 2, 203, .45) !important;
}
.pk-res__hero-acts .pk-res__sell {
    color: #fff;
    background: linear-gradient(135deg, #ef02cb, #b602ce);
    box-shadow: 0 8px 20px rgba(239, 2, 203, .3);
}
.pk-res__hero-acts .pk-res__paid {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .55);
    border: 1px dashed rgba(255, 255, 255, .14);
    font-size: 13px;
}
.pk-res__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 2px 0;
}
.pk-res__foot button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}
.pk-res__all {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12) !important;
}
.pk-res__again {
    background: linear-gradient(135deg, #ef02cb, #b602ce);
    box-shadow: 0 10px 26px rgba(239, 2, 203, .3);
}
.pk-res__again[disabled],
.pk-res__all[disabled] { opacity: .45; pointer-events: none; }
.pk-res__share {
    background: rgba(182, 2, 206, .30);
    border: 1px solid rgba(255, 255, 255, .12) !important;
}
.pk-res__foot button:active { transform: scale(.99); }
@media (prefers-reduced-motion: reduce) {
    .pk-res, .pk-res__sheet { transition: none; }
}

/* ================= ПОДАРОК ЗА ДРУЗЕЙ (их «Реф кейс») =================
   Их раскладка: карточка «Твой подарок» + «Засчитано друзей N из M» + полоски
   по числу друзей + подпись «Скинь ссылку…» + [Позвать друзей][Скопировать ссылку].
   Цвета — наши (стекло, розово-фиолетовое свечение). */
.pk-friends { margin: 16px 0 0; }
.pk-friends__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 2px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.pk-friends__fallback {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(16, 9, 26, .72);
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

/* окно «Тебе выпал X» */
.pk-fr-win {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 2, 8, .68);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .2s ease;
}
.pk-fr-win.show { opacity: 1; }
.pk-fr-win__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    padding: 18px 16px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(182, 2, 206, .26), transparent 70%),
        linear-gradient(180deg, #1a1026, #0c0812);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    transform: translateY(10px) scale(.98);
    transition: transform .24s cubic-bezier(.21, .81, .29, .98);
}
.pk-fr-win.show .pk-fr-win__card { transform: none; }
.pk-fr-win__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.pk-fr-win__title {
    margin: 4px 0 10px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    color: #fff;
}
.pk-fr-win__art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 170px;
}
.pk-fr-win__art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .6));
}
.pk-fr-win__name { margin-top: 6px; font-size: 20px; font-weight: 800; color: #fff; }
.pk-fr-win__price { margin-top: 2px; font-size: 22px; font-weight: 900; color: #ffd54d; }
.pk-fr-win__hint {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, .66);
}
.pk-fr-win__acts { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 14px; }
.pk-fr-win__acts .pk-btn { min-height: 50px; }

@media (prefers-reduced-motion: reduce) {
    .pk-fr-win, .pk-fr-win__card { transition: none; }
}

/* ---- анимированная карточка Epic (их `EpicCaseAnimatedImage`, 604×704) ---- */
.pk-card__art--epic { position: relative; }
.pk-epic { position: relative; display: block; width: 100%; height: 100%; isolation: isolate; }
.pk-epic__bag { position: absolute; inset: 0; display: block; width: 100%; height: 100%; user-select: none; pointer-events: none; }
.pk-epic__bagWave {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    mix-blend-mode: plus-lighter;
    will-change: opacity, transform;
    background: radial-gradient(circle, #c484fc99 0%, #9333ea73 42%, #9333ea00 70%);
    animation: 2s ease-out 1s infinite pk-bag-wave;
}
.pk-epic__heartGlow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    mix-blend-mode: plus-lighter;
    will-change: opacity, transform;
    background: radial-gradient(closest-side, #ffffffd9, #d8c0ff59 45%, #d8c0ff00 72%);
    animation: 2s ease-out 1s infinite pk-heart-glow;
}
.pk-epic__heart { position: absolute; display: block; will-change: transform; animation: 2s ease-in-out 1s infinite pk-heart-beat; }
.pk-epic__push { position: absolute; display: block; will-change: transform; animation: 2s infinite pk-gift-push; }
.pk-epic__float { display: block; width: 100%; height: 100%; animation: 3.7s ease-in-out infinite pk-gift-float; }
.pk-epic__cap { --float: -4%; --tilt: 1.2deg; }
.pk-epic__mic { --float: -5%; --tilt: -1.5deg; animation-duration: 4.6s; }
.pk-epic__gem { --float: -3.5%; --tilt: 1deg; animation-duration: 5.3s; }
.pk-epic__watch { --float: -4.5%; --tilt: -1deg; animation-duration: 4.1s; }

@keyframes pk-bag-wave {
    0% { opacity: 0; transform: scale(.85); }
    6.4% { opacity: .5; transform: scale(.95); }
    19.2% { opacity: .26; transform: scale(1.1); }
    34% { opacity: .1; transform: scale(1.22); }
    48%, 100% { opacity: 0; transform: scale(1.32); }
}
@keyframes pk-heart-glow {
    0% { opacity: 0; transform: scale(.8); }
    6.4% { opacity: .6; transform: scale(1); }
    12.8% { opacity: .22; transform: scale(1.12); }
    19.2% { opacity: .34; transform: scale(1.18); }
    30.4%, 100% { opacity: 0; transform: scale(1.3); }
}
@keyframes pk-heart-beat {
    0%, 30.4%, 100% { transform: scale(1); }
    6.4% { transform: scale(1.085); }
    12.8% { transform: scale(1.005); }
    19.2% { transform: scale(1.055); }
}
@keyframes pk-gift-push {
    0%, 6.4% { animation-timing-function: cubic-bezier(.15,.85,.3,1); transform: translate(0); }
    14.4% { transform: translate(var(--push-x), var(--push-y)); animation-timing-function: cubic-bezier(.55,.08,.7,.7); }
    100% { transform: translate(0); }
}
@keyframes pk-gift-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(var(--float)) rotate(var(--tilt, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
    .pk-card, .pk-btn, .pk-switch, .pk-seg__pill { transition: none; }
    .pk-card__push, .pk-card__float { animation: none; }
    .pk-epic__bagWave, .pk-epic__heartGlow, .pk-epic__heart,
    .pk-epic__push, .pk-epic__float { animation: none; }
}

/* ── ALT-PACKSPC (22.11.2026) ─────────────────────────────────────────────────
   На ПК мобильная сцена (374×1655) растягивалась по ширине в 5142 px высоты, паки
   оставались 160 px и «плавали» в пустоте (владелец: «всё плывёт и улетает, паки
   маленькие»). Теперь шапка — широкий банер: фон cover, заголовок крупнее,
   паки ровной сеткой в 4 колонки. */
@media (min-width: 1024px) {
    .pk-hero {
        max-width: 1180px;
        margin: 0 auto;
        padding: 28px 40px 40px;
        border-radius: 28px;
        gap: 14px;
    }
    /* фон растягиваем на всю шапку, а не пропорцией мобильной сцены */
    .pk-hero__scene {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        min-height: 0;
        transform: none;
    }
    .pk-hero__scene > img.pk-hero__base { object-fit: cover; }
    /* декор мобильной сцены (свеча/фонарь/призрак) на ПК стоит не на месте — прячем */
    .pk-hero__scene > .pk-layer { display: none; }

    /* заголовок и его арт крупнее: дети считаются в процентах от блока, поэтому едут вместе */
    .pk-hero__title { width: 460px; height: 296px; }

    /* паки: ровная сетка в 3 колонки и крупные карточки (владелец: «паки маленькие») */
    .pk-hero__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px 24px;
        max-width: 1000px;
        margin: 0 auto;
    }
    .pk-card { height: 360px; padding-top: 4px; }
    /* в обложке пака есть прозрачные поля (канва 700×704, сам пак ~630) — на ПК даём больше,
       чтобы сам пак выглядел крупно, а бейджи стояли вплотную к нему */
    .pk-card__art { width: 268px; height: 292px; }
    /* бейджи вплотную к самому паку: в обложке сверху прозрачное поле, поэтому опускаем */
    .pk-card__off { top: 34px; }
    .pk-card__limit { top: 34px; }
    .pk-card__free { top: 48px; }

    /* ALT-PKFS (02.12.2026, владелец: «на пк должно быть всё это на весь экран»):
       экран пака на ПК — две колонки: слева крупный кадр сцены, справа действия.
       Телефонная раскладка (одна колонка, max 430) не меняется. */
    .pk-open { align-items: stretch; }
    .pk-open__inner {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        /* ALT-PKFS2 (02.12.2026, слово владельца): кнопка «Открыть пак» и блок под ней
           (стоимость + Fast/×1-×3) — СЛЕВА под кадром, справа — «Что внутри» */
        grid-template-areas:
            "head head"
            "scene right"
            "acts right"
            "total right"
            "row right";
        align-content: start;
        gap: 0 40px;
        max-width: none;
        width: 100%;
        padding: 28px 40px 40px;
    }
    .pk-scene__head { grid-area: head; padding-bottom: 18px; }
    .pk-scene__title { font-size: 40px; }
    .pk-scene__sub { font-size: 16px; }
    .pk-scene {
        grid-area: scene;
        align-self: start;
        /* сцену не растягиваем (все координаты внутри — пиксельные, 304 px): увеличиваем
           целиком через zoom, тогда лента/пак/тени остаются в их пропорциях */
        zoom: 1.7;
        margin: 0 auto 12px;
        width: 368px;
    }
    .pk-acts { grid-area: acts; align-self: start; }
    .pk-total { grid-area: total; }
    .pk-rowline { grid-area: row; }
    .pk-right { grid-area: right; display: flex; flex-direction: column; min-width: 0; }
    .pk-inside-title { order: -2; margin: 0 0 10px; }
    .pk-inside { order: -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pk-friends { order: 1; margin-top: 18px; }
    .pk-open__close { top: 22px; right: 26px; }
    /* кадр крупнее — клетки ленты держим в их пропорциях (плитка 124×150 на полосе 166) */
    .pk-strip { left: 0; right: 0; }
}
