* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

header h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1em;
    font-weight: bold;
}

.cockpit {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.parameters-panel {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.parameters-panel h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.parameter {
    margin-bottom: 25px;
}

.parameter label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.gauge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.gauge-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #fbbf24 50%, #ef4444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: width 0.5s ease;
    border-radius: 10px;
}

#speed-gauge {
    width: 75%;
}

#altitude-gauge {
    width: 100%;
}

.alignment-indicator {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 50px;
    position: relative;
    margin-bottom: 5px;
}

.alignment-bar {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.alignment-pointer {
    width: 20px;
    height: 40px;
    background: #ef4444;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    transition: left 0.5s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.target {
    font-size: 0.9em;
    opacity: 0.9;
    font-style: italic;
}

.status {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.status.active {
    background: #4ade80;
}

.players-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.player-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #e9ecef;
}

.player-section h3 {
    color: #667eea;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.3em;
}

.controls {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.dice-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.die {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 0.8em;
    text-align: center;
    padding: 5px;
}

.die:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.die.placed {
    opacity: 0.5;
    cursor: not-allowed;
}

.die.speed { background: #ef4444; color: white; }
.die.altitude { background: #3b82f6; color: white; }
.die.alignment { background: #8b5cf6; color: white; }
.die.brakes { background: #f59e0b; color: white; }
.die.communication { background: #10b981; color: white; }
.die.wild { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }

.zones-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zone {
    background: white;
    border: 3px dashed #ccc;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.zone:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.zone.has-die {
    border-color: #10b981;
    background: #d1fae5;
    border-style: solid;
}

.zone.has-die .die {
    margin: 0 auto;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.game-over {
    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;
}

.game-over.hidden {
    display: none;
}

.game-over-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-over-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #667eea;
}

.game-over-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #666;
}

@media (max-width: 1200px) {
    .cockpit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .players-panel {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
}

