.lootbox-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.lootbox-image {
    flex-shrink: 0;
}

.lootbox-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.lootbox-text {
    flex: 1;
}

.lootbox-text .pix-title {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.lootbox-text .pix-desc {
    margin: 0;
    color: #cfd8dc;
    font-size: 1rem;
    line-height: 1.4;
}

.loot-reel-wrapper {
    position: relative;
    margin: 20px auto;
    padding: 0px;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #2b3242;
    border-bottom: 1px solid #2b3242;
    height: 160px;
}

.reel-center-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    color: #4CAF50;
    z-index: 2;
    width: 250px;
    height: 934px;
}

.reel-center-indicator svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.8));
    transform: scaleX(0.15);
    transform-origin: center;
    opacity: 1;
}

.reel-center-indicator svg path:first-child {
    stroke-width: 1px;
    opacity: 0.3;
}

.reel-center-indicator svg path:nth-child(2),
.reel-center-indicator svg path:nth-child(3) {
    stroke-width: 0.5px;
    opacity: 0.2;
}

.reel-center-indicator svg path:nth-child(4),
.reel-center-indicator svg path:nth-child(5) {
    transform: scale(8);
    transform-origin: center;
    stroke-width: 2px;
    opacity: 0.6;
}

.loot-reel-wrapper::before {
    content: '';
    position: absolute;
    left: 49.5%;
    top: 12px;
    transform: translateX(-50%);
    width: 117px;
    height: 130px;
    border: 2px dashed rgba(76, 175, 80, 0.5);
    border-radius: 12px;
    z-index: 1;
    animation: centerIndicator 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes centerIndicator {

    0%,
    100% {
        border-color: rgba(76, 175, 80, 0.3);
    }

    50% {
        border-color: rgba(76, 175, 80, 0.6);
    }
}

.reel-track {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100%;
    transition: none;
    will-change: transform;
}

.reel-track.spinning {
    animation: reelGlow 0.5s ease-in-out infinite alternate;
}

.reel-track.fast-spinning {
    animation: reelGlowFast 0.2s ease-in-out infinite alternate;
}

.reel-track.initial-float {
    animation: initialFloat 3s ease-in-out infinite;
}

@keyframes reelGlow {
    0% {
        filter: brightness(1) contrast(1);
    }

    100% {
        filter: brightness(1.1) contrast(1.1);
    }
}

@keyframes reelGlowFast {
    0% {
        filter: brightness(1) contrast(1) hue-rotate(0deg);
    }

    100% {
        filter: brightness(1.2) contrast(1.2) hue-rotate(10deg);
    }
}

@keyframes initialFloat {

    0%,
    100% {
        transform: translateX(var(--initial-x, 0)) translateY(0px);
    }

    50% {
        transform: translateX(var(--initial-x, 0)) translateY(-2px);
    }
}

.reel-item {
    min-width: 120px;
    max-width: 120px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1f2430 0%, #242730 100%);
    border: 1px solid #2b3242;
    opacity: 0.7;
    transform: scale(0.92);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reel-item.is-center {
    opacity: 1;
    transform: scale(1.1);
    border-color: #4CAF50;
    box-shadow:
        0 0 20px rgba(76, 175, 80, 0.4),
        0 0 40px rgba(76, 175, 80, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #4CAF50 0%, #45a049 100%);
    animation: winningPulse 2s ease-in-out infinite;
}

@keyframes winningPulse {
    0% {
        box-shadow:
            0 0 20px rgba(76, 175, 80, 0.4),
            0 0 40px rgba(76, 175, 80, 0.2),
            0 4px 15px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow:
            0 0 30px rgba(76, 175, 80, 0.6),
            0 0 60px rgba(76, 175, 80, 0.3),
            0 4px 20px rgba(0, 0, 0, 0.5);
    }

    100% {
        box-shadow:
            0 0 20px rgba(76, 175, 80, 0.4),
            0 0 40px rgba(76, 175, 80, 0.2),
            0 4px 15px rgba(0, 0, 0, 0.4);
    }
}

.reel-item img {
    width: 100%;
    max-height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
}

.reel-item.is-center img {
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.reel-name {
    margin-top: 6px;
    font-size: 12px;
    color: #cfd8dc;
    white-space: normal;
    overflow: visible;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    word-wrap: break-word;
}

.reel-item.is-center .reel-name {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.reel-value {
    margin-top: 4px;
    font-size: 11px;
    color: #4CAF50;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reel-item.is-center .reel-value {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.loot-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.loot-actions .btn-buy-scratchcard-main {
    flex: 1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
}

.loot-actions .btn-auto-toggle {
    min-width: 60px;
    min-height: 60px;
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loot-actions .btn-auto-toggle i {
    font-size: 18px;
    margin: 0;
}

.loot-actions .btn-auto-toggle.active {
    background: #FFD54F;
    color: #111;
    border-color: #FFD54F;
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.3);
}

.loot-actions .btn-auto-toggle.active:hover {
    background: #FFCA28;
    border-color: #FFCA28;
    box-shadow: 0 0 20px rgba(255, 213, 79, 0.4);
}

@media (max-width: 768px) {
    .loot-reel-wrapper::before {
        left: 48.2%;
    }

    .lootbox-main {
        margin-top: 20px;
    }

    .lootbox-text .pix-title {
        font-size: 1rem;
    }

    .lootbox-image img {
        width: 80px;
    }

    .loot-actions {
        max-width: 100%;
        padding: 0 20px;
    }

    .loot-actions .btn-buy-scratchcard-main {
        font-size: 14px;
        padding: 10px 16px;
        min-height: 50px;
    }

    .loot-actions .btn-auto-toggle {
        min-width: 50px;
        min-height: 50px;
        padding: 10px 12px;
        font-size: 16px;
    }
}

.loading-prizes,
.error-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #cfd8dc;
    font-size: 16px;
    text-align: center;
    width: 100%;
}

.loading-prizes {
    animation: pulse 1.5s ease-in-out infinite;
}

.error-loading {
    color: #ff6b6b;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}