/* ══════════════════════════════════════════════════════════
   Fortune Wheel → Slot Machine — CSS
   Стиль: Arena Night (concept_v2_arena_night)
   Тёмное стекло + gold/orange рамка + тёмные карточки
   3D пластиковая кнопка с glossy бликом
   ══════════════════════════════════════════════════════════ */

/* ── Slot Container ───────────────────────────────────── */
.slot-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto var(--space-lg);
}

/* ── Slot Viewport — тёмный контейнер с gold/orange gradient border ── */
.slot-viewport {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 18px;
    /* Тёмный полупрозрачный фон (frosted dark glass) */
    background: rgba(12, 16, 32, 0.88);
    /* Warm glow around container */
    box-shadow:
        0 0 25px rgba(255, 160, 60, 0.15),
        0 0 80px rgba(255, 122, 0, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.35),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
}

/* Gradient border via pseudo (border-image kills border-radius) */
.slot-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2.5px;
    background: linear-gradient(135deg, #FF7A00 0%, #FFAA00 50%, #FFB800 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 20;
    pointer-events: none;
}

/* Градиентная маска — мягкое затемнение на краях */
.slot-viewport::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(180deg,
        rgba(10, 18, 35, 0.80) 0%,
        rgba(10, 18, 35, 0.15) 10%,
        transparent 15%,
        transparent 85%,
        rgba(10, 18, 35, 0.15) 90%,
        rgba(10, 18, 35, 0.80) 100%);
    z-index: 10;
    pointer-events: none;
}

/* ── Slot Reel ────────────────────────────────────────── */
.slot-reel {
    position: relative;
    z-index: 15;
    display: flex;
    flex-direction: column;
    will-change: transform;
    gap: 6px;
    padding: 0 8px;
}

/* ── Prize Row (тёмная полупрозрачная строка) ──────────── */
.slot-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 72px;
    flex-shrink: 0;
    /* Dark charcoal gradient background */
    background: linear-gradient(90deg, #1e222e 0%, #262b38 50%, #282d3a 100%);
    border-radius: 12px;
    /* Subtle inner depth */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Иконка ──────────────────────────────────────────── */
.slot-item__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
    /* Subtle icon bg */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

/* ── Текст ───────────────────────────────────────────── */
.slot-item__content {
    flex: 1;
    text-align: left;
}

.slot-item__name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.slot-item__desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
}

/* ── Badge ─────────────────────────────────────── */
.slot-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent-orange-lt) 0%, var(--accent-red-org) 100%);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

/* ── "ХИТ" badge variant ──────────────────────── */
.slot-item__badge--hit {
    background: var(--brand-red);
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 8px;
    position: absolute;
    top: -2px;
    right: 10px;
    box-shadow: 0 2px 10px rgba(229, 32, 46, 0.45);
    font-style: normal;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}


/* ── Winner Row (оранжевое свечение + pop-эффект) ─────── */
.slot-item--winner {
    transform: scale(1.03);
    z-index: 15;
    background: linear-gradient(90deg, rgba(255, 122, 0, 0.12) 0%, rgba(255, 140, 0, 0.18) 50%, rgba(255, 122, 0, 0.12) 100%);
    border: 2px solid rgba(255, 140, 0, 0.85) !important;
    border-radius: 12px;
    box-shadow:
        0 0 30px rgba(255, 140, 0, 0.35),
        0 0 65px rgba(255, 140, 0, 0.15),
        inset 0 0 15px rgba(255, 140, 0, 0.1);
    animation: winner-glow 1.5s ease-in-out infinite;
}

.slot-item--winner .slot-item__badge {
    background: linear-gradient(135deg, #FF8C33 0%, #D4400A 100%);
    box-shadow: 0 3px 12px rgba(255, 122, 0, 0.5);
    transform: scale(1.08);
}

@keyframes winner-glow {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(255, 140, 0, 0.2),
            0 0 50px rgba(255, 140, 0, 0.08);
    }
    50% {
        box-shadow:
            0 0 35px rgba(255, 140, 0, 0.3),
            0 0 70px rgba(255, 140, 0, 0.12);
    }
}


/* ── Указатели (белые стрелки) ────────────────────────── */
.slot-pointers {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 25;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.slot-pointer {
    width: 18px;
    height: 30px;
    position: relative;
}

.slot-pointer svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(255,255,255,0.3));
}

.slot-pointer--left svg,
.slot-pointer--right svg {
    color: white;
}

/* Центральная зона — оранжевое свечение */
.slot-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 110px;
    z-index: 5;
    pointer-events: none;
    border-top: 1.5px solid rgba(255, 140, 0, 0.4);
    border-bottom: 1.5px solid rgba(255, 140, 0, 0.4);
    background: linear-gradient(90deg,
        rgba(255, 140, 0, 0.08) 0%,
        rgba(255, 140, 0, 0.03) 40%,
        rgba(255, 140, 0, 0.03) 60%,
        rgba(255, 140, 0, 0.08) 100%);
}


/* ── CTA Кнопка «ВРАЩАТЬ» (3D orange pill — Arena Night) ─ */
.slot-spin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    height: 64px;
    margin: 0 auto;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--gradient-button);
    color: white;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 21px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow:
        0 8px 0 var(--brand-orange-dark),
        0 10px 25px rgba(234,88,12,0.6),
        inset 0 2px 0 rgba(255,255,255,0.25);
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Glossy convex highlight — plastic reflection */
.slot-spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 50%;
    border-radius: 50px 50px 50% 50%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.40) 0%,
        rgba(255,255,255,0.18) 25%,
        rgba(255,255,255,0.03) 60%,
        transparent 100%);
    pointer-events: none;
}

.slot-spin-btn--ready {
    animation: spin-btn-pulse 2.5s ease-in-out infinite;
}

@keyframes spin-btn-pulse {
    0%, 100% {
        box-shadow:
            0 6px 0 var(--brand-orange-dark),
            0 8px 20px rgba(234,88,12,0.5),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    50% {
        box-shadow:
            0 6px 0 var(--brand-orange-dark),
            0 8px 35px rgba(234,88,12,0.8),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
}

.slot-spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow:
        0 11px 0 var(--brand-orange-dark),
        0 14px 35px rgba(234,88,12,0.8),
        inset 0 2px 0 rgba(255,255,255,0.25);
}

.slot-spin-btn:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow:
        0 4px 0 var(--brand-orange-dark),
        0 6px 15px rgba(234,88,12,0.4),
        inset 0 2px 0 rgba(255,255,255,0.25);
}

.slot-spin-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
    filter: none;
}

.slot-spin-btn__emoji {
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 4px rgba(255, 100, 0, 0.5));
}


/* ── Footer ──────────────────────────────────────────── */
.slot-footer {
    margin-top: var(--space-md);
    text-align: center;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1.5;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.slot-footer a {
    color: rgba(255, 255, 255, 0.30);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.slot-footer a:hover {
    color: var(--accent-orange);
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
    .slot-viewport { height: 210px; }
    .slot-item { padding: 14px 16px; min-height: 64px; gap: var(--space-sm); }
    .slot-item__icon { width: 36px; height: 36px; font-size: 1.4rem; }
    .slot-item__name { font-size: 0.82rem; }
    .slot-item__badge { padding: 4px 10px; font-size: 0.72rem; }
    .slot-highlight { height: 98px; }
    .slot-spin-btn { padding: 16px 24px; font-size: 1.05rem; letter-spacing: 3px; }
    .slot-reel { gap: 4px; padding: 0 6px; }
}

@media (min-width: 481px) {
    .slot-viewport { height: 270px; }
    .slot-item { padding: 20px 24px; min-height: 82px; }
    .slot-item__icon { width: 48px; height: 48px; font-size: 1.8rem; }
    .slot-highlight { height: 120px; }
}

@media (min-width: 768px) {
    .slot-container { max-width: 480px; }
    .slot-viewport { height: 280px; }
    .slot-item { padding: 22px 28px; min-height: 88px; }
    .slot-item__icon { width: 52px; height: 52px; font-size: 2rem; }
    .slot-item__name { font-size: 1rem; }
    .slot-item__badge { padding: 6px 16px; font-size: 0.85rem; }
    .slot-highlight { height: 128px; }
    .slot-spin-btn { max-width: 480px; padding: 20px 40px; font-size: 1.4rem; }
}
