﻿:root {
    --primary: #ffae39;
    --bg-dark: #0f1115;
    --card-bg: #16181e;
    --text-muted: #6d7280;
    --border-color: #2a2c35;
    --error-color: #ff4444;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: #fff;
}

/* --- 1. SLIDER DE CAIXAS --- */
.hunter-drops-main-wrapper {
    padding-top: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

#selection-screen h2 {
    margin-left: 20px;
    font-weight: 800;
    color: white;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.cases-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.cases-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    scrollbar-width: none;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

    .cases-grid::-webkit-scrollbar {
        display: none;
    }

.case-card {
    flex: 0 0 220px;
    aspect-ratio: 270 / 375;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .case-card:hover {
        transform: translateY(-10px) scale(1.02);
        z-index: 10;
    }

.case-content {
    height: 100%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
}

.case-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.case-card:hover .case-image {
    transform: scale(1.1);
}

.case-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.case-price {
    margin-top: auto;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(0,0,0,0.7);
    padding: 5px;
    border-radius: 4px;
}

.nav-drop-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: 0.2s;
    position: absolute;
}

    .nav-drop-btn:hover {
        background: rgba(255,255,255,0.2);
    }

.btn-left {
    left: 10px;
}

.btn-right {
    right: 10px;
}

/* --- 2. GRADE DE ITENS --- */
.case-contents-wrapper {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.contents-title {
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    width: 100%;
}

.content-item {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

    .content-item:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,0.05);
    }

    .content-item img {
        width: 100%;
        height: 120px;
        object-fit: contain;
        margin-bottom: 15px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    }

    .content-item span {
        font-size: 0.85rem;
        color: #ccc;
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
    }

/* --- 3. SPINNER (INTERFACE DE GIRO) --- */
.spinner-bg-blur {
    position: absolute;
    inset: 0;
    z-index: 0;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    opacity: 0.2;
    pointer-events: none;
}

    .spinner-bg-blur img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(20px);
    }

.spinner-header {
    position: relative;
    z-index: 10;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-back-action {
    background: var(--primary);
    color: #0b0e11;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0% 20%);
    transition: 0.2s;
    box-shadow: 0 0 20px rgba(255, 174, 57, 0.2);
}

    .btn-back-action:hover {
        color: #fff;
        transform: scale(1.05);
    }

.case-info {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 10px;
}

    .case-info h2 {
        color: #fff;
        font-size: 2.2rem;
        margin: 0;
        font-weight: 900;
        letter-spacing: 1px;
        text-shadow: 0 5px 15px rgba(0,0,0,0.5);
        font-style: italic;
    }

    .case-info p {
        color: #5a5f70;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-top: 5px;
    }

.spinner-main-area {
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
    padding: 30px 0;
}

.spinner-window {
    position: relative;
    width: 100%;
    height: 280px;
    background: #16181e;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    box-shadow: inset 0 0 50px #000;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.spinner-marker {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    z-index: 50;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary);
}

    .spinner-marker::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 20px solid var(--primary);
    }

    .spinner-marker::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 20px solid var(--primary);
    }

.spinner-track {
    display: flex;
    height: 100%;
    align-items: center;
    will-change: transform;
    margin-left: calc(50% - 100px);
}

@keyframes idleSlide {
    0% {
        transform: translateX(-400px);
    }

    100% {
        transform: translateX(-2000px);
    }
}

.track-idle {
    animation: idleSlide 40s linear infinite alternate;
}

.spinner-item {
    min-width: 190px;
    height: 230px;
    margin: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e2029;
    background-image: radial-gradient(circle at 50% 0, rgba(255,255,255,0.03), transparent 70%);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

    .spinner-item img {
        width: 90%;
        height: 140px;
        object-fit: contain;
        filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
    }

.spinner-controls {
    text-align: center;
    margin-top: 10px;
    position: relative;
    z-index: 20;
}

.btn-spin-confirm {
    background: var(--primary);
    color: #0b0e11;
    border: none;
    padding: 18px 60px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0% 20%);
    transition: 0.2s;
    box-shadow: 0 0 20px rgba(255, 174, 57, 0.2);
}

    .btn-spin-confirm:hover {
        background: #ffc266;
        box-shadow: 0 0 40px rgba(255, 174, 57, 0.5);
        transform: scale(1.02);
    }

    .btn-spin-confirm:disabled {
        background: #333;
        color: #555;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

/* --- 4. MODAL DE RECOMPENSA (WIN) --- */
#reward-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    #reward-modal.active {
        display: flex;
        opacity: 1;
    }

.pc-card-wrapper {
    perspective: 1000px;
    width: 320px;
    height: 480px;
    position: relative;
}

.pc-card {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    position: relative;
    background: #141414;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 50px rgba(255, 174, 57, 0.2);
    border: 1px solid rgba(255,174,57,0.3);
}

.pc-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateZ(30px);
    padding: 20px;
    text-align: center;
}

.reward-img-container {
    height: 250px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(255,174,57,0.4));
    transform: translateZ(50px);
}

    .reward-img-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.reward-info h3 {
    font-size: 1.5rem;
    color: #ffae39;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.reward-info p {
    color: #ccc;
    margin: 5px 0 20px 0;
    font-size: 0.9rem;
}

.btn-collect {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transform: translateZ(40px);
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

    .btn-collect:hover {
        background: #ffae39;
        box-shadow: 0 5px 25px rgba(255,174,57,0.4);
    }

/* --- 5. MODAL DE AVISO (NOVO - SUBSTITUI ALERT) --- */
#status-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    #status-modal.active {
        display: flex;
        opacity: 1;
    }

.status-box {
    background: #16181e;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s;
}

#status-modal.active .status-box {
    transform: scale(1);
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.status-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.status-message {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-modal-close {
    background: var(--primary);
    color: #0b0e11;
    border: none;
    padding: 12px 30px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0% 20%);
    transition: 0.2s;
}

    .btn-modal-close:hover {
        background: #fff;
        transform: scale(1.05);
    }

/* Variação de Erro */
.status-box.error {
    border-top-color: var(--error-color);
}

    .status-box.error .status-title {
        color: var(--error-color);
    }

    .status-box.error .btn-modal-close {
        background: var(--error-color);
        color: white;
    }
