:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-hover: #1e1e1e;
    --accent: #ff2b3a;
    --accent-hover: #ff4d5a;
    --accent-shadow: rgba(255, 43, 58, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --danger: #ff2b3a;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle;
    user-select: none;
}

.nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

header {
    background-color: var(--bg-card);
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-hover);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-shadow);
}

.wallet-display {
    background: rgba(20, 20, 20, 0.8);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--bg-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.main-container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-card);
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-right: 1px solid var(--bg-hover);
}

.nav-item {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--bg-hover) 0%, transparent 100%);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: 4px 12px 12px 4px;
}

.content-area {
    flex: 1;
    padding: 3rem;
    background: radial-gradient(circle at top right, #111, var(--bg-dark));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    border: 1px solid var(--bg-hover);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: radial-gradient(circle at center, var(--accent-shadow), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.game-icon {
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 10px var(--accent-shadow));
}

.game-icon .material-symbols-outlined {
    font-size: 4.5rem;
    font-variation-settings: 'FILL' 1;
}

.btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--accent-shadow);
}

.game-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 550px;
    border: 1px solid var(--bg-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-hover);
}

.game-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
}

input[type="number"],
select {
    background-color: var(--bg-dark);
    border: 1px solid var(--bg-hover);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="number"]:focus,
select:focus {
    border-color: var(--accent);
}

@keyframes plinko-bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }
}

.multiplier-box.bounce {
    animation: plinko-bounce 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}