
.site-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px;
}
 
/* ---------- Оверлей попапу (прихований за замовчуванням) ---------- */
.popup-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
 
.popup-overlay.active {
    display: flex;
    opacity: 1;
}
 
/* ---------- Картка з колесом ---------- */
.app-container {
    --u: 1px; /* базова одиниця масштабування */
 
    width: 100%;
    max-width: 440px;
    height: calc(926 * var(--u));
    max-height: 100vh;
    position: relative;
    background-color: #F7EFE1;
    background-image: url('../images-popup/18.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.98);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
 
.popup-overlay.active .app-container {
    transform: scale(1);
}
 
/* ---------- Кнопка закриття ---------- */
.close-btn {
    position: absolute;
    top: calc(35 * var(--u));
    right: calc(24 * var(--u));
    padding: calc(10 * var(--u));
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10000px;
    outline: calc(1 * var(--u)) white solid;
    outline-offset: calc(-1 * var(--u));
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 50;
    transition: background 0.2s;
}
 
.close-btn:hover { background: rgba(0, 0, 0, 0.5); }
 
.close-btn svg {
    width: calc(14 * var(--u));
    height: calc(14 * var(--u));
}
 
/* ---------- Заголовки ---------- */
.title-container {
    position: absolute;
    top: calc(80 * var(--u));
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s ease;
    z-index: 10;
    pointer-events: none;
}
 
#initialTitle { opacity: 1; }
#wonTitle { opacity: 0; }
 
/* ---------- Колесо ---------- */
.wheel-assembly {
    position: absolute;
    top: calc(260 * var(--u));
    left: 50%;
    transform: translateX(-50%);
    width: calc(380 * var(--u));
    height: calc(380 * var(--u));
    transition: opacity 0.5s ease;
    z-index: 5;
}
 
.wheel-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}
 
.wheel-spin-content {
    position: absolute;
    top: calc(15 * var(--u));
    left: calc(15 * var(--u));
    width: calc(350 * var(--u));
    height: calc(350 * var(--u));
    border-radius: 50%;
    object-fit: contain;
    z-index: 1;
}
 
.wheel-arrow {
    position: absolute;
    top: calc(-10 * var(--u));
    left: 50%;
    transform: translateX(-50%);
    width: calc(60 * var(--u));
    z-index: 3;
}
 
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(110 * var(--u));
    z-index: 4;
    cursor: pointer;
    transition: transform 0.1s;
}
 
.wheel-center-btn:active { transform: translate(-50%, -50%) scale(0.95); }
 
@keyframes spinWheel {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(3600deg); }
}
 
.spinning { animation: spinWheel 4.5s cubic-bezier(0.15, 0.85, 0.25, 1) forwards; }
 
/* ---------- Приз ---------- */
.gift-assembly {
    position: absolute;
    top: calc(290 * var(--u));
    left: 50%;
    transform: translateX(-50%);
    width: calc(320 * var(--u));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 5;
}
 
@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(calc(-15 * var(--u))); }
}
 
.levitating { animation: levitate 3s ease-in-out infinite; }
 
/* ---------- Нижня панель ---------- */
.bottom-section {
    position: absolute;
    bottom: calc(40 * var(--u));
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}
 
.action-button {
    width: calc(380 * var(--u));
    padding: calc(16 * var(--u)) calc(20 * var(--u));
    background: linear-gradient(180deg, #FF2D4E 0%, #8A0023 81%, #AC000F 100%);
    box-shadow: 0 calc(4 * var(--u)) calc(4 * var(--u)) rgba(255, 255, 255, 0.25) inset,
                0 calc(-4 * var(--u)) calc(4 * var(--u)) rgba(255, 255, 255, 0.25) inset,
                0 0 calc(22.7 * var(--u)) rgba(255, 255, 255, 0.66);
    border-radius: calc(54 * var(--u));
    outline: calc(3 * var(--u)) white solid;
    outline-offset: calc(-3 * var(--u));
    text-align: center;
    font-size: calc(32 * var(--u));
    font-family: 'Onest', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: calc(2.56 * var(--u));
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    transition: transform 0.1s, filter 0.2s;
}
 
.action-button:active { transform: scale(0.97); }
 
.action-subtext {
    color: black;
    font-size: calc(14 * var(--u));
    font-family: 'Source Sans 3', sans-serif;
    font-style: italic;
    font-weight: 500;
    margin-top: calc(10 * var(--u));
    opacity: 0;
    transition: opacity 0.5s ease;
}
 
.footer-metrics {
    width: 100%;
    padding: 0 calc(24 * var(--u));
    margin-top: calc(15 * var(--u));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
 
.metric-item {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--u));
}
 
.metric-icon {
    width: calc(24 * var(--u));
    height: auto;
    object-fit: contain;
}
 
.metric-text {
    color: black;
    font-size: calc(12 * var(--u));
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: calc(14 * var(--u));
    letter-spacing: calc(0.8 * var(--u));
}
 
.lightning-icon {
    fill: none;
    stroke: #E12244;
    stroke-width: 2;
    width: calc(20 * var(--u));
    height: calc(24 * var(--u));
}
 
/* =============================================================================
   АДАПТИВ: на екранах <= 440px міняємо ЛИШЕ одну змінну —
   і всі calc(N * var(--u)) миттєво перетворюються з px у vw.
   0.227273vw = 100 / 440  (тобто 1 "дизайн-піксель" макета 440px)
   ============================================================================= */
@media (max-width: 440px) {
    .app-container { --u: 0.227273vw; }
}
 