body {
    background-color: #1a1a2e;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.container { text-align: center; width: 800px; }

/* Roleta */
.roulette-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    background: #16213e;
    border: 4px solid #0f3460;
    overflow: hidden; /* Esconde os itens fora da visão */
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.selector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #e94560;
    z-index: 10;
    box-shadow: 0 0 10px #e94560;
}

.roulette {
    display: flex;
    transition: transform 5s cubic-bezier(0.1, 0, 0, 1); /* Efeito de frenagem */
    will-change: transform;
}

.item {
    min-width: 100px;
    height: 100px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

/* Raridades */
.common { background: linear-gradient(135deg, #7f8c8d, #34495e); border: 2px solid #bdc3c7; }
.rare { background: linear-gradient(135deg, #2980b9, #2c3e50); border: 2px solid #3498db; }
.epic { background: linear-gradient(135deg, #8e44ad, #2c3e50); border: 2px solid #9b59b6; }
.legendary { background: linear-gradient(135deg, #f39c12, #2c3e50); border: 2px solid #f1c40f; box-shadow: inset 0 0 15px gold; }

/* Inventário */
.inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    background: #16213e;
    padding: 20px;
    border-radius: 8px;
    min-height: 100px;
}

.inv-item {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

button {
    padding: 15px 30px;
    background: #e94560;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

button:disabled { background: #555; cursor: not-allowed; }