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

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

.game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    border: 3px solid #333;
    background: #2a2a2a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #444;
    min-width: 250px;
    z-index: 10;
}

.hud-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.hud-item:last-child {
    margin-bottom: 0;
}

.hud-label {
    font-weight: bold;
    margin-right: 10px;
    color: #ffa500;
    min-width: 90px;
}

.health-bar {
    flex: 1;
    height: 20px;
    background: #333;
    border: 2px solid #666;
    border-radius: 5px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    transition: width 0.3s;
}

.wanted-stars {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 18px;
    color: #666;
}

.star.active {
    color: #ffa500;
    text-shadow: 0 0 10px #ffa500;
}

#speedometer {
    color: #4CAF50;
    font-weight: bold;
}

.mission-display {
    background: rgba(4, 11, 18, 0.5);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #082a41;
}

#missionText {
    color: #3498db;
    font-style: italic;
}

#vehicleStatus {
    color: #2196F3;
    font-weight: bold;
}

#moneyDisplay {
    color: #4CAF50;
    font-weight: bold;
}

.controls-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #444;
    z-index: 10;
}

.controls-info h3 {
    color: #ffa500;
    margin-bottom: 10px;
    font-size: 16px;
}

.controls-info p {
    margin: 5px 0;
    font-size: 13px;
}

#interaction-prompt {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid #a2a2a2;
    font-size: 18px;
    z-index: 15;
    color: #fff;
    font-weight: bold;
}

.controls-info strong {
    color: #4CAF50;
}

.hidden {
    display: none;
}

#casinoInterface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#slotMachine {
    background: #2c3e50;
    padding: 30px;
    border-radius: 15px;
    border: 5px solid #f1c40f;
    text-align: center;
    box-shadow: 0 0 30px #f1c40f;
}

#slotMachine h2 {
    color: #f1c40f;
    margin-bottom: 20px;
    font-size: 28px;
}

#reels {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.reel {
    width: 80px;
    height: 80px;
    background: #ecf0f1;
    border: 3px solid #34495e;
    border-radius: 10px;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#spinButton, #exitCasino {
    background: #f1c40f;
    color: #2c3e50;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

#spinButton:hover, #exitCasino:hover {
    background: #f39c12;
}

#winnings {
    margin-top: 15px;
    font-size: 18px;
    color: #2ecc71;
    min-height: 25px;
}
