/* Raid Out - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111;
    overflow: hidden;
    font-family: 'Courier New', 'Consolas', monospace;
    color: #ddd;
    cursor: none;
}

#game-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    cursor: none;
}

#ui-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
    cursor: default;
}

.screen {
    background: rgba(10, 12, 8, 0.92);
    border: 2px solid #556B2F;
    border-radius: 8px;
    padding: 32px 48px;
    text-align: center;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(85, 107, 47, 0.3), inset 0 0 60px rgba(0,0,0,0.5);
}

.screen::-webkit-scrollbar {
    width: 6px;
}
.screen::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
.screen::-webkit-scrollbar-thumb {
    background: #556B2F;
    border-radius: 3px;
}

/* Title */
.game-title {
    font-size: 64px;
    font-weight: bold;
    letter-spacing: 16px;
    color: #8B9B5A;
    text-shadow: 0 0 20px rgba(139, 155, 90, 0.5), 0 4px 8px rgba(0,0,0,0.8);
    margin-bottom: 8px;
    -webkit-text-stroke: 1px #4A5A28;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 8px;
    color: #777;
    margin-bottom: 40px;
}

.version {
    margin-top: 24px;
    font-size: 11px;
    color: #555;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 8px auto;
    padding: 12px 24px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 3px;
    border: 2px solid #556B2F;
    background: rgba(85, 107, 47, 0.15);
    color: #aab87a;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
}

.btn:hover {
    background: rgba(85, 107, 47, 0.35);
    border-color: #8B9B5A;
    color: #dde8aa;
    box-shadow: 0 0 15px rgba(85, 107, 47, 0.3);
}

.btn:active {
    transform: scale(0.97);
    background: rgba(85, 107, 47, 0.5);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: rgba(85, 107, 47, 0.3);
    border-color: #8B9B5A;
    color: #dde8aa;
}

.btn-primary:hover {
    background: rgba(85, 107, 47, 0.5);
    box-shadow: 0 0 20px rgba(139, 155, 90, 0.4);
}

.btn-danger {
    border-color: #8B2020;
    color: #CC4444;
    background: rgba(139, 32, 32, 0.1);
}

.btn-danger:hover {
    background: rgba(139, 32, 32, 0.3);
    border-color: #CC4444;
}

.btn-small {
    display: inline-block;
    width: auto;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 4px;
}

.menu-buttons {
    margin-top: 20px;
}

/* Stash Screen */
.stash-screen {
    max-width: 800px;
}

.stash-layout {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    text-align: left;
}

.stash-panel, .loadout-panel, .money-panel {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
}

.stash-panel h3, .loadout-panel h3 {
    font-size: 13px;
    color: #8B9B5A;
    letter-spacing: 3px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.stash-category {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 4px;
}

.stash-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stash-item.empty {
    color: #555;
}

.stash-item .count {
    color: #8B9B5A;
}

.stash-item.empty .count {
    color: #444;
}

/* Loadout */
.loadout-slot {
    margin-bottom: 10px;
}

.loadout-slot label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loadout-slot select {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid #556B2F;
    color: #ddd;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 12px;
    padding: 6px 8px;
    cursor: pointer;
}

.loadout-slot select:hover {
    border-color: #8B9B5A;
}

.fixed-item {
    font-size: 12px;
    color: #777;
    font-style: italic;
}

/* Money */
.money-display {
    font-size: 28px;
    font-weight: bold;
    color: #8B9B5A;
    text-align: center;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(139, 155, 90, 0.3);
}

.stat-line {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin: 4px 0;
}

.stash-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.stash-buttons .btn {
    width: auto;
    padding: 10px 30px;
}

/* Shop */
.shop-screen {
    max-width: 600px;
}

.shop-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    text-align: left;
}

.shop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px 14px;
}

.shop-item.disabled {
    opacity: 0.5;
}

.shop-name {
    font-size: 14px;
    flex: 1;
}

.shop-owned {
    font-size: 12px;
    color: #777;
    margin: 0 16px;
}

/* Briefing */
.briefing-screen {
    max-width: 550px;
}

.briefing-content {
    text-align: left;
    margin: 20px 0;
}

.mission-name {
    font-size: 18px;
    font-weight: bold;
    color: #8B9B5A;
    margin-bottom: 10px;
}

.mission-desc {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 16px;
}

.mission-reward {
    font-size: 14px;
    color: #aab87a;
    margin-bottom: 16px;
}

.bonus-section, .extract-info {
    border-top: 1px solid #333;
    padding-top: 12px;
    margin-top: 12px;
}

.bonus-section h4, .extract-info h4 {
    font-size: 12px;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.bonus-item, .extract-point {
    font-size: 13px;
    color: #aaa;
    padding: 3px 0;
}

.extract-point {
    color: #4488DD;
}

.briefing-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.briefing-buttons .btn {
    width: auto;
    padding: 10px 30px;
}

/* Results */
.results-screen {
    max-width: 500px;
}

.result-extract {
    color: #44CC44;
    font-size: 36px;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(68, 204, 68, 0.4);
}

.result-kia {
    color: #CC2222;
    font-size: 36px;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(204, 34, 34, 0.4);
}

.results-content {
    text-align: left;
    margin: 20px 0;
}

.result-line {
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.result-success { color: #44CC44; }
.result-fail { color: #CC4444; }

.result-total {
    font-size: 18px;
    font-weight: bold;
    color: #8B9B5A;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #556B2F;
}

.result-lost {
    font-size: 16px;
    color: #CC4444;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

.result-loot {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #333;
}

.loot-item {
    display: inline-block;
    background: rgba(85, 107, 47, 0.2);
    border: 1px solid #556B2F;
    padding: 3px 8px;
    margin: 3px;
    font-size: 11px;
    border-radius: 3px;
}

/* Paused */
.paused-screen {
    max-width: 350px;
}

/* Controls */
.controls-screen {
    max-width: 400px;
}

.controls-grid {
    text-align: left;
    margin: 20px 0;
}

.control-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}

.control-row span:first-child {
    color: #8B9B5A;
    font-weight: bold;
}

h2 {
    font-size: 22px;
    letter-spacing: 6px;
    color: #8B9B5A;
    margin-bottom: 16px;
}

h3 {
    font-size: 14px;
    color: #8B9B5A;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .stash-layout {
        flex-direction: column;
    }
    .game-title {
        font-size: 40px;
        letter-spacing: 8px;
    }
    .screen {
        padding: 20px 24px;
    }
}
