.game-page {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.game-header p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.game-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.game-area {
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--color-border);
}

.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-panel,
.info-panel {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--color-border);
}

.stats-panel h3,
.info-panel h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--color-text-muted);
}

.stat-value {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.info-panel ul {
    list-style: none;
    padding: 0;
}

.info-panel li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.info-panel li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 1.5rem;
    line-height: 1.3;
}

.dice-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    min-height: 120px;
}

.dice {
    width: 100px;
    height: 100px;
    background-color: var(--color-text);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dice.rolling {
    animation: roll 0.6s ease-out;
}

@keyframes roll {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
}

.dice-face {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.game-result {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-result.win {
    background-color: rgba(74, 124, 89, 0.2);
    color: #6ABF7E;
    border: 2px solid #4A7C59;
}

.game-result.lose {
    background-color: rgba(191, 106, 106, 0.2);
    color: #FF6B6B;
    border: 2px solid #BF6A6A;
}

.betting-area {
    margin-top: 2rem;
}

.betting-area h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.bet-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.bet-btn {
    padding: 1.25rem;
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.bet-btn:hover {
    border-color: var(--color-secondary);
    background-color: var(--color-bg-light);
}

.bet-btn.active {
    background-color: var(--color-secondary);
    color: var(--color-bg);
    border-color: var(--color-secondary);
}

.bet-amount {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.bet-amount label {
    font-weight: 600;
    color: var(--color-text);
}

.bet-amount input {
    width: 150px;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.tokens-label {
    color: var(--color-secondary);
    font-weight: 600;
}

#roll-btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 1.25rem;
}

.slots-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    min-height: 200px;
}

.slot-reel {
    width: 120px;
    height: 180px;
    background-color: var(--color-bg);
    border: 4px solid var(--color-secondary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.slot-symbols {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear;
}

.slot-symbols.spinning {
    top: 0;
    left: 50%;
}

.slot-symbol {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

#spin-btn {
    width: 100%;
    max-width: 400px;
    font-size: 1.3rem;
    padding: 1.5rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    min-height: 280px;
    flex-wrap: wrap;
}

.card {
    width: 140px;
    height: 200px;
    background-color: var(--color-text);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 3px solid var(--color-border);
}

.card.flipped {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.card:hover:not(.matched):not(.flipped) {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.card.matched {
    background-color: var(--color-success);
    border-color: var(--color-success);
    cursor: default;
    opacity: 0.7;
}

.card-back {
    font-size: 3rem;
    color: var(--color-primary);
}

.card-front {
    display: none;
    font-size: 4.5rem;
}

.card.flipped .card-back {
    display: none;
}

.card.flipped .card-front {
    display: block;
}

.card.matched .card-front {
    display: block;
}

.card.matched .card-back {
    display: none;
}

.game-controls {
    text-align: center;
    margin-top: 2rem;
}

.game-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        flex-direction: row;
    }

    .stats-panel,
    .info-panel {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2.5rem;
    }

    .game-area {
        padding: 2rem;
    }

    .dice-container {
        gap: 2rem;
    }

    .dice {
        width: 80px;
        height: 80px;
    }

    .dice-face {
        font-size: 2.5rem;
    }

    .bet-options {
        grid-template-columns: 1fr;
    }

    .slots-container {
        gap: 1rem;
    }

    .slot-reel {
        width: 100px;
        height: 150px;
    }

    .slot-symbol {
        height: 150px;
        font-size: 3rem;
    }

    .cards-container {
        gap: 1rem;
    }

    .card {
        width: 100px;
        height: 140px;
    }

    .card-front {
        font-size: 3rem;
    }

    .game-sidebar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dice {
        width: 60px;
        height: 60px;
    }

    .dice-face {
        font-size: 2rem;
    }

    .slot-reel {
        width: 80px;
        height: 120px;
    }

    .slot-symbol {
        height: 120px;
        font-size: 2.5rem;
    }

    .card {
        width: 70px;
        height: 100px;
    }

    .card-front {
        font-size: 2rem;
    }
}
