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

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #fff;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#game-canvas {
    display: block;
    background: #2d5016;
    image-rendering: pixelated;
}

/* HUD Styles */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    z-index: 100;
}

#hud > div {
    margin-bottom: 10px;
}

.hud-label {
    color: #ffd700;
    font-weight: bold;
    margin-right: 10px;
}

#money-value {
    color: #00ff00;
    font-weight: bold;
}

#wanted-stars {
    color: #ff0000;
}

/* Minimap */
#minimap-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #ffd700;
    border-radius: 5px;
    z-index: 100;
}

#minimap {
    width: 100%;
    height: 100%;
    display: block;
}

/* Mission Panel */
#mission-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 10px;
    border: 3px solid #ffd700;
    min-width: 400px;
    z-index: 200;
}

#mission-panel h2 {
    color: #ffd700;
    margin-bottom: 20px;
}

#mission-panel button {
    margin: 10px 10px 0 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
}

#mission-panel button:hover {
    background: #ffed4e;
}

/* Casino Panel */
#casino-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 0, 0, 0.95);
    padding: 30px;
    border-radius: 10px;
    border: 3px solid #ffd700;
    min-width: 400px;
    z-index: 200;
}

#casino-panel h2 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
}

#casino-content button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
}

#casino-content button:hover {
    background: #ffed4e;
}

/* Slot Machine */
#slot-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 0, 0, 0.95);
    padding: 30px;
    border-radius: 10px;
    border: 3px solid #ffd700;
    min-width: 500px;
    z-index: 200;
    text-align: center;
}

#slot-panel h2 {
    color: #ffd700;
    margin-bottom: 20px;
}

#slot-reels {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.reel {
    font-size: 80px;
    margin: 0 10px;
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
    border: 3px solid #ffd700;
}

#slot-result {
    font-size: 20px;
    color: #00ff00;
    margin: 20px 0;
    min-height: 30px;
}

#slot-panel button {
    margin: 10px 10px 0 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
}

#slot-panel button:hover {
    background: #ffed4e;
}

/* Roulette */
#roulette-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 100, 0, 0.95);
    padding: 30px;
    border-radius: 10px;
    border: 3px solid #ffd700;
    min-width: 500px;
    z-index: 200;
    text-align: center;
}

#roulette-panel h2 {
    color: #ffd700;
    margin-bottom: 20px;
}

#roulette-wheel {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    background: linear-gradient(45deg, #8b0000 25%, #000 25%, #000 50%, #8b0000 50%, #8b0000 75%, #000 75%, #000);
    background-size: 40px 40px;
    border-radius: 50%;
    border: 5px solid #ffd700;
}

#roulette-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#roulette-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px #000;
}

#roulette-bets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.bet-btn {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
}

.bet-btn:hover {
    background: #ffed4e;
}

#roulette-result {
    font-size: 20px;
    color: #00ff00;
    margin: 20px 0;
    min-height: 30px;
}

#roulette-panel button#exit-roulette {
    margin: 10px 10px 0 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
}

/* Controls Info */
#controls-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 100;
}

#controls-info h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

#controls-info p {
    margin: 5px 0;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Animation */
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.spinning {
    animation: spin 2s linear infinite;
}
