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: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 600px;
    padding-bottom: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

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

.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;
}

@media (max-width: 768px) {
    .game-steps {
        white-space: normal;
        font-size: 1.2rem;
        max-width: 100%;
        padding: 1rem 2rem;
    }
}

/* Dice Styles */
.dice-container {
    width: 111px;
    height: 111px;
    perspective: 1200px;
    margin: 0 auto;
    position: relative;
}

.dice {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.dice.rolling {
    animation: roll 3s cubic-bezier(0.45, 0.02, 0.09, 0.98) forwards;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff2fc;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.dot {
    display: none;
}

/* Face Positions */
.front {
    transform: translateZ(50px);
    background-image: url('/img/dice1.png');
}

.back {
    transform: translateZ(-50px) rotateY(180deg);
    background-image: url('/img/dice2.png');
}

.right {
    transform: translateX(50px) rotateY(90deg);
    background-image: url('/img/dice3.png');
}

.left {
    transform: translateX(-50px) rotateY(-90deg);
    background-image: url('/img/dice4.png');
}

.top {
    transform: translateY(-50px) rotateX(90deg);
    background-image: url('/img/dice5.png');
}

.bottom {
    transform: translateY(50px) rotateX(-90deg);
    background-image: url('/img/dice6.png');
}

/* Game Controls */
.game-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

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

.choice-btn {
    width: 60px;
    height: 32px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    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);
}

/* Roll Animation */
@keyframes roll {
    0% {
        transform: var(--current-rotation);
        animation-timing-function: cubic-bezier(0.45, 0.02, 0.09, 0.98);
    }
    50% {
        transform: rotateX(720deg) rotateY(900deg) rotateZ(360deg);
        animation-timing-function: cubic-bezier(0.45, 0.02, 0.09, 0.98);
    }
    90% {
        transform: rotateX(1080deg) rotateY(1440deg) rotateZ(720deg);
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    100% {
        transform: var(--final-rotation);
    }
}

/* Modal Styles */
.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

#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;
}

.roll-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;
}

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

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

.play-again-btn {
    margin-top: 1rem;
    min-width: 150px;
}

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 0;
    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-value {
    text-align: center;
    font-family: var(--font-logo);
    font-size: 0.9rem;
    color: var(--pink-primary);
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

.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);
}

.lucky-text {
    font-family: var(--font-main);
    font-size: 1.4rem;
    color: var(--pink-primary);
    text-align: center;
    margin: 1rem 0;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

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

/* 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); }
}

@media (max-width: 768px) {
    .game-stats {
        font-size: 0.7rem;
        flex-wrap: wrap;
        justify-content: center;
    }
} 