:root {
    --gold: #ffc107;
    --dark-bg: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.05);
}

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

body {
    background: radial-gradient(circle at top, #16213e, #0f3460);
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    padding-top: 90px;
}
#displayEvent, #freeSpinCounter {
    color: #000;
}

header {
    position: fixed; top: 0; width: 100%; height: 70px;
    background: rgba(240, 248, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
    color: #1a1a2e;
    overflow: visible;
}

.stats-bar {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}

.stat img { height: 30px;
    width: auto;
    vertical-align: middle;
}
.stat { display: flex;
    align-items: center;
    gap: 8px; font-size: 1.1rem;
    color: #1a1a2e;
    font-weight: 800;
}

.reel-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.frame {
    width: 100px;
    height: 130px;
    background-color: #1a1a2e;
    border: 3px solid var(--gold);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.frame > div {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.symbol {
    animation: symbol-spin 0.5s ease-out forwards;
}

@keyframes symbol-spin {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}


#apple {
    background-image: url("../images/apple.png");
}
#cherries {
    background-image: url("../images/cherries.png");
}
#grapes {
    background-image: url("../images/grapes.png");
}
#lemon {
    background-image: url("../images/lemon.png");
}
#orange {
    background-image: url("../images/orange.png");
}
#plum {
    background-image: url("../images/plum.png");
}
#watermelon {
    background-image: url("../images/watermelon.png");
}


.game-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    padding: 1rem;
}
.slot-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.controls {
    display: grid;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}
.btn-spin {
    background: var(--gold);
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}
.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 2rem;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .frame {
        width: 70px;
        height: 100px;
    }
    .reel-container {
        gap: 8px;
    }
    header {
        padding: 0 1rem;
    }
    .stat {
        font-size: 0.9rem;
    }
    .stat img {
        height: 20px;
    }
}

.controls {
    width: 100%;
    max-width: 300px;
}

.btn-spin, .btn-sub {
    padding: 18px;
    font-size: 1rem;
    min-height: 45px;
}

h2 { font-size: 1.2rem; }
p { font-size: 0.9rem; }

body {
    overflow-x: hidden;
    padding-top: 80px;
}