body {
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sections-wrapper {
    max-width: 1280px;
    margin: 1rem auto;
    margin-top: 90px;
    width: 100%;
}

.game-container {
    background: var(--window-bg);
    border: var(--window-border);
    box-shadow: var(--btn-shadow);
    width: 100%;
    margin: 0;
}

.game-content {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 500px;
    padding-bottom: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.game-right {
    width: 100%;
    max-width: 800px;
    position: relative;
    margin-top: 1rem;
    padding: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border: var(--window-border);
    box-shadow: var(--window-shadow);
    background: #fff2fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.game-description {
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.game-description h2 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    color: var(--pink-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.game-description p {
    font-size: 1.3rem;
    color: #444;
    line-height: 1.5;
}

.coin-container {
    width: 130px;
    height: 130px;
    perspective: 1000px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
}

.coin {
    width: 130px;
    height: 130px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    transition: transform 0.1s ease;
    will-change: transform;
}

.coin.flipping {
    --final-rotation: 5400deg;
    animation: spin 6s cubic-bezier(0.45, 0.02, 0.09, 0.98) forwards;
}

.coin.flipping-from-heads {
    --final-rotation: 5400deg;
    animation: spin-from-heads 6s cubic-bezier(0.45, 0.02, 0.09, 0.98) forwards;
}

.coin.flipping-from-tails {
    --final-rotation: 5400deg;
    animation: spin-from-tails 6s cubic-bezier(0.45, 0.02, 0.09, 0.98) forwards;
}

.heads, .tails {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
}

.heads {
    background: url('/img/head.png') no-repeat center center;
    background-size: cover;
}

.tails {
    background: url('/img/tails.png') no-repeat center center;
    background-size: cover;
    transform: rotateY(180deg);
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.choice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    position: relative;
}

.choice-btn {
    flex: 1;
    height: 32px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    max-width: 120px;
    letter-spacing: 1px;
}

.choice-btn.selected {
    background: var(--pink-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 153, 0.3);
}

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    padding-bottom: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.bet-controls label {
    font-family: var(--font-logo);
    font-size: 0.9rem;
    color: var(--pink-primary);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
}

.bet-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

#bet-amount {
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    font-family: var(--font-main);
    font-size: 1.2rem;
    border: var(--window-border);
    background: white;
    border-radius: 4px;
}

.bet-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.flip-btn {
    height: 32px;
    font-size: 0.8rem;
    background: var(--pink-gradient);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 150px;
    letter-spacing: 1px;
    position: relative;
}

.flip-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 153, 0.4);
}

.flip-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Result Modal */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--window-bg);
    border: var(--window-border);
    box-shadow: var(--window-shadow);
    text-align: center;
    min-width: 300px;
    position: relative;
}

.modal-header {
    background: var(--window-header);
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header span {
    color: white;
    font-family: var(--font-logo);
    font-size: 0.9rem;
}

.modal-header .window-controls {
    display: flex;
    gap: 2px;
}

.modal-body {
    padding: 2rem;
}

.result-title {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--pink-primary);
}

/* Bet Slider */
.bet-slider-container {
    width: 100%;
    position: relative;
    margin: 0.5rem 0;
}

.bet-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: var(--pink-light);
    outline: none;
    margin: 1rem 0;
}

.bet-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--pink-primary);
    border: 1px solid white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bet-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--pink-primary);
    border: 1px solid white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bet-value {
    text-align: center;
    font-family: var(--font-logo);
    font-size: 0.9rem;
    color: var(--pink-primary);
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

@keyframes spin {
    0% {
        transform: rotateY(0);
        animation-timing-function: cubic-bezier(0.45, 0, 0.55, 0);
    }
    90% {
        transform: rotateY(5040deg);
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    100% {
        transform: rotateY(var(--final-rotation));
    }
}

@keyframes spin-from-heads {
    0% {
        transform: rotateY(0deg);
        animation-timing-function: cubic-bezier(0.45, 0, 0.55, 0);
    }
    90% {
        transform: rotateY(5040deg);
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    100% {
        transform: rotateY(var(--final-rotation));
    }
}

@keyframes spin-from-tails {
    0% {
        transform: rotateY(180deg);
        animation-timing-function: cubic-bezier(0.45, 0, 0.55, 0);
    }
    90% {
        transform: rotateY(5220deg);
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    100% {
        transform: rotateY(calc(var(--final-rotation) + 180deg));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sections-wrapper {
        margin-top: 70px;
        padding: 0;
    }

    .game-content {
        padding: 1rem;
    }

    .game-description {
        max-width: 100%;
    }

    .game-right {
        max-width: 100%;
        margin-top: 1rem;
        padding: 1rem;
        padding-top: 2rem;
    }

    .game-description h2 {
        font-size: 1.5rem;
    }

    .game-description p {
        font-size: 1rem;
    }
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;

    background: var(--window-bg);
    border: var(--window-border);
    box-shadow: var(--window-shadow);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.music-control .music-off {
    display: none;
}

.music-control.muted .music-on {
    display: none;
}

.music-control.muted .music-off {
    display: block;
}

/* Wallet Dropdown */
.wallet-connect-container {
    position: relative;
}

.wallet-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--window-bg);
    border: var(--window-border);
    box-shadow: var(--window-shadow);
    min-width: 220px;
    display: none;
    z-index: 1000;
    padding: 4px;
}
body.dark-theme {
    margin-left: 1rem;
    margin-right: 1rem;
}
.wallet-dropdown.show {
    display: block;
}

.wallet-option {
    width: 100%;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
}

.wallet-option:hover {
    background: rgba(255, 51, 153, 0.1);
    border-color: var(--pink-primary);
}

.wallet-option img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.wallet-option span {
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.wallet-option:not(:last-child) {
    margin-bottom: 2px;
}

/* Add JavaScript to handle the 3D effect */
.coin:hover {
    transform: none;
}

/* Style the game steps */
.game-steps {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
    font-family: var(--font-main);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Clean minimal stats design */
.game-stats {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.stat-label {
    color: #888;
    font-family: var(--font-logo);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-bets {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-family: var(--font-main);
    font-size: 1.15rem;
    width: 100%;
}

.bet-entry {
    animation: fadeIn 0.3s ease-in-out;
    padding: 0.2rem;

}

.wallet-address {
    color: var(--pink-primary);
}

.bet-result.won {
    color: #4CAF50;
}

.bet-result.lost {
    color: #f44336;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
} 