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

body {
    background-color: #000;
    font-family: Arial, sans-serif;
    color: #fff;
    touch-action: manipulation;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 568px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}


@media screen and (min-width: 768px) {
    #game-container {
        transform: scale(0.7);
        transform-origin: center center;
    }
}

@media screen and (min-height: 932px) {
    #game-container {
        height: 932px;
    }
}

@media screen and (max-height: 931px) {
    #game-container {
        height: 100vh;
        transform: scale(calc(100vh / 932));
    }
}


#top-bar {
    height: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.exit-btn, .support-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
}

.id-display {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 5px 15px;
    font-size: 14px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #666;
}


#info-bar {
    height: 30px;
    background-color: #000;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin: 5px 0;
}

.balance-display {
    color: #ff3333;
    font-size: 14px;
}


#slot-machine {
    flex: 1;
    position: relative;
    padding: 5px;
    background-color: #4a2702;
}

.slot-border {
    border: 6px solid #9c27b0;
    border-radius: 8px;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #300a4c;
    padding: 0;
}

.lights {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

.reels-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    height: 100%;
    gap: 0px;
    padding: 0;
}

.reel-cell {
    background-color: #510980;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 2px;
}

.center-display {
    grid-column: 2 / 7;
    grid-row: 2 / 7;
    background-color: #000;
    border: 3px solid #f5cf67;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    margin: auto;
}

.center-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.symbol-image {
    width: 88% !important;
    height: 88% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
    transition: transform 0.2s ease;
}


#control-panel {
    position: absolute;
    bottom: 7.5%; 
    left: 50%;
    transform: translateX(-50%);
    width: 88%; 
    height: 26%; 
    background-color: transparent; 
    padding: 0; 
}

.control-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px; 
    margin-bottom: 5px;
}

.control-btn {
    background-color: transparent;
    border-radius: 0;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 11px; 
    cursor: pointer;
}

.control-btn:active {
    background-color: transparent; 
}

.start-btn {
    background-color: transparent; 
}

.start-btn:active {
    background-color: transparent; 
}

.pay-table {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px; 
}

.pay-item {
    background-color: transparent;
    border-radius: 0;
    height: 32px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 9px; 
    cursor: pointer;
}

.pay-item:hover {
    background-color: transparent; 
    transform: none; 
}


.selected-bet {
    background-color: transparent; 
    box-shadow: none; 
    border: none; 
}


#bottom-menu {
    height: 50px;
    background-color: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
}


#bottom-menu .multiplier,
#bottom-menu ~ .multiplier,
#bottom-menu + .multiplier,
.menu-item .multiplier,
.menu-item > .multiplier,
.menu-item ~ .multiplier {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f5cf67;
    font-size: 10px;
}

.menu-icon {
    font-size: 14px;
    margin-bottom: 2px;
}


.symbol {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.reel-cell:hover .symbol-image {
    transform: scale(1.1);
}

.multiplier {
    position: absolute;
    bottom: 1px;
    right: 1px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffeb3b;
    font-size: 10px;
    padding: 1px 2px;
    border-radius: 2px;
}


@keyframes win-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.win-effect {
    animation: win-animation 0.5s ease-in-out;
}


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


.bet-display {
    margin-top: 8px;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.bet-counter-row {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
}

.bet-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin: 3px; 
    width: 58px; 
    height: 58px; 
}

.bet-symbol {
    font-size: 22px; 
    margin-bottom: 0;
}

.bet-amount {
    color: #fff;
    font-family: digital, monospace;
    font-size: 15px; 
}


.reel-cell.active {
    border: 3px solid #ffeb3b;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
    transform: scale(1.05);
    z-index: 10;
}


.indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 3px solid #ffeb3b;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
    z-index: 5;
    pointer-events: none;
} 