/* ============================================
   WORLD DICTATOR - PHOTOREALISTIC STYLES
   ============================================ */

/* CSS Variables for Theming */
:root {
    --primary-gold: #d4af37;
    --primary-dark: #1a1a2e;
    --primary-darker: #0f0f1a;
    --accent-red: #8b0000;
    --accent-blood: #660000;
    --nuke-glow: #ff4444;
    --nuke-orange: #ff8c00;
    --text-light: #e8e8e8;
    --text-dim: #888;
    --panel-bg: rgba(20, 20, 35, 0.95);
    --panel-border: rgba(212, 175, 55, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    --gradient-blood: linear-gradient(180deg, #8b0000 0%, #660000 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: var(--primary-darker);
    color: var(--text-light);
}

body {
    background: 
        radial-gradient(ellipse at center, rgba(30, 30, 50, 1) 0%, rgba(10, 10, 20, 1) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    background-size: cover, 3px 3px;
}

.hidden {
    display: none !important;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
}

.loading-globe {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #4a90d9 0%, #1e5799 30%, #0a2463 70%, #051937 100%);
    box-shadow: 
        0 0 60px rgba(30, 87, 153, 0.5),
        inset -20px -20px 40px rgba(0, 0, 0, 0.5),
        inset 10px 10px 30px rgba(255, 255, 255, 0.1);
    animation: globeSpin 3s linear infinite, globePulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.loading-globe::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 30%;
    background: rgba(100, 180, 100, 0.4);
    border-radius: 50% 50% 30% 70%;
    filter: blur(5px);
}

.loading-globe::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 30%;
    height: 20%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(10px);
}

@keyframes globeSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes globePulse {
    0%, 100% { box-shadow: 0 0 60px rgba(30, 87, 153, 0.5), inset -20px -20px 40px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 80px rgba(30, 87, 153, 0.8), inset -20px -20px 40px rgba(0, 0, 0, 0.5); }
}

#loading-screen h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 10px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 10px;
}

.loading-text {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 20px;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-gold);
    animation: loadProgress 3s ease-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   SETUP SCREEN
   ============================================ */
#setup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.setup-container {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 20px 60px var(--shadow-dark),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.setup-container h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dictator-portrait {
    text-align: center;
    margin-bottom: 30px;
}

#portrait-canvas {
    border-radius: 50%;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.portrait-controls button {
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portrait-controls button:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setup-form label {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.setup-form input,
.setup-form select {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.setup-form input:focus,
.setup-form select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.start-btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--gradient-blood);
    border: 2px solid var(--accent-red);
    color: var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
}

/* ============================================
   MAIN GAME SCREEN
   ============================================ */
#game-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Top Status Bar */
#top-bar {
    height: 60px;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    z-index: 100;
}

.status-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dictator-mini-portrait {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    overflow: hidden;
}

#mini-portrait {
    width: 100%;
    height: 100%;
}

.dictator-info {
    display: flex;
    flex-direction: column;
}

#dictator-title {
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 0.9rem;
}

#power-level {
    font-size: 0.8rem;
    color: var(--text-dim);
}

#power-level .value {
    color: var(--nuke-glow);
    font-weight: 700;
}

.resources-bar {
    display: flex;
    gap: 25px;
}

.resource {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.gold-icon {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.military-icon {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 0 10px rgba(74, 85, 104, 0.5);
}

.population-icon {
    background: linear-gradient(135deg, #48bb78 0%, #276749 100%);
    box-shadow: 0 0 10px rgba(72, 187, 120, 0.5);
}

.fear-icon {
    background: linear-gradient(135deg, #e53e3e 0%, #9b2c2c 100%);
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

.loyalty-icon {
    background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
    box-shadow: 0 0 10px rgba(66, 153, 225, 0.5);
}

.nuke-icon {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4444 100%);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    animation: nukeGlow 2s ease-in-out infinite;
}

@keyframes nukeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 140, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.8); }
}

.resource span {
    font-size: 0.85rem;
    font-weight: 600;
}

.time-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

#game-date {
    font-size: 1rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.speed-controls {
    display: flex;
    gap: 5px;
}

.speed-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--panel-border);
    background: var(--glass-bg);
    color: var(--text-light);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.speed-controls button:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

/* ============================================
   MAIN AREA LAYOUT
   ============================================ */
#main-area {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Command Panel (Left) */
#command-panel {
    width: 320px;
    background: var(--panel-bg);
    border-right: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px var(--shadow-dark);
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--panel-border);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.panel-header h2 {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--primary-gold);
}

.command-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 10px;
    border-bottom: 1px solid var(--panel-border);
}

.category-btn {
    padding: 10px 5px;
    background: var(--glass-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
}

.category-btn .btn-icon {
    font-size: 1.2rem;
}

.category-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-light);
}

.category-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.command-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.command-list::-webkit-scrollbar {
    width: 6px;
}

.command-list::-webkit-scrollbar-track {
    background: transparent;
}

.command-list::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 3px;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--glass-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--panel-border);
    transform: translateX(5px);
}

.command-item.nuclear-cmd {
    background: rgba(139, 0, 0, 0.2);
    border-color: rgba(139, 0, 0, 0.3);
}

.command-item.nuclear-cmd:hover {
    background: rgba(139, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.command-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.command-info h3 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.command-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================
   GLOBE CONTAINER (Center)
   ============================================ */
#globe-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at center, rgba(20, 40, 80, 0.3) 0%, transparent 70%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    overflow: hidden;
}

#globe-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

#globe-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

#globe-controls button:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

/* Earth Image Wrapper */
#earth-wrapper {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 700px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#earth-img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 60px rgba(30, 87, 153, 0.6));
    animation: earthRotate 120s linear infinite;
    user-select: none;
    /* Circular clip to cut out from black background */
    clip-path: circle(50% at 50% 50%);
    -webkit-clip-path: circle(50% at 50% 50%);
    /* Smooth edges */
    image-rendering: high-quality;
}

@keyframes earthRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#earth-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
    z-index: 2;
}

#nuclear-winter-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(50, 50, 70, 0);
    transition: background 2s ease;
    z-index: 3;
}

#nuclear-winter-overlay.active {
    background: rgba(40, 45, 60, 0.7);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

#nuclear-winter-overlay.severe {
    background: rgba(30, 35, 50, 0.85);
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.7);
    animation: winterPulse 4s ease-in-out infinite;
}

@keyframes winterPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

#earth-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: 4;
}

#effects-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

#location-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 15px 25px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-dark);
}

#location-info h3 {
    color: var(--primary-gold);
    margin-bottom: 5px;
}

#location-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ============================================
   INFO PANEL (Right)
   ============================================ */
#info-panel {
    width: 300px;
    background: var(--panel-bg);
    border-left: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px var(--shadow-dark);
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--panel-border);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.tab-btn:hover {
    color: var(--text-light);
    background: var(--glass-bg);
}

.tab-btn.active {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 2px solid var(--primary-gold);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-item {
    padding: 12px;
    background: var(--glass-bg);
    border-left: 3px solid var(--primary-gold);
    border-radius: 0 8px 8px 0;
    animation: slideIn 0.3s ease;
}

.event-item.urgent {
    border-left-color: var(--nuke-glow);
    background: rgba(255, 68, 68, 0.1);
}

.event-item.success {
    border-left-color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.event-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.event-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Intel Section */
.intel-section {
    margin-bottom: 20px;
}

.intel-section h3 {
    color: var(--primary-gold);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--panel-border);
}

.intel-item {
    margin-bottom: 12px;
}

.intel-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.intel-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.intel-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fear-bar .intel-fill {
    background: linear-gradient(90deg, #e53e3e 0%, #9b2c2c 100%);
}

.resistance-bar .intel-fill {
    background: linear-gradient(90deg, #805ad5 0%, #553c9a 100%);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* ============================================
   BOTTOM BAR
   ============================================ */
#bottom-bar {
    height: 50px;
    background: var(--panel-bg);
    border-top: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.quick-actions {
    display: flex;
    gap: 10px;
}

.quick-btn {
    padding: 8px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.quick-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
}

.quick-btn.nuke-btn {
    background: rgba(139, 0, 0, 0.3);
    border-color: var(--accent-red);
    animation: nukePulse 2s ease-in-out infinite;
}

.quick-btn.nuke-btn:hover {
    background: rgba(139, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

@keyframes nukePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 68, 68, 0.6); }
}

#notification-area {
    flex: 1;
    text-align: right;
}

#notification-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ============================================
   MODALS
   ============================================ */
#modal-overlay {
    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: 5000;
    backdrop-filter: blur(5px);
}

#modal-content {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px var(--shadow-dark);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: var(--glass-bg);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-red);
}

/* Nuclear Launch Modal */
#nuke-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.nuke-modal-content {
    background: linear-gradient(180deg, #1a0000 0%, #0a0000 100%);
    border: 3px solid var(--nuke-glow);
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 100px rgba(255, 68, 68, 0.5);
    animation: nukeModalPulse 1s ease-in-out infinite;
}

@keyframes nukeModalPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 0 100px rgba(255, 68, 68, 0.6); }
}

.warning-stripes {
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        #ff4444,
        #ff4444 10px,
        #000 10px,
        #000 20px
    );
    margin: -40px -40px 20px;
    border-radius: 7px 7px 0 0;
}

.warning-stripes:last-child {
    margin: 20px -40px -40px;
    border-radius: 0 0 7px 7px;
}

.nuke-modal-content h1 {
    color: var(--nuke-glow);
    font-size: 1.5rem;
    margin-bottom: 20px;
    animation: warningFlash 0.5s ease-in-out infinite;
}

@keyframes warningFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nuke-target-info {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.nuke-target-info p {
    margin: 10px 0;
    font-size: 1rem;
}

.nuke-target-info span {
    color: var(--nuke-orange);
    font-weight: 700;
}

.launch-codes {
    margin-bottom: 20px;
}

.launch-codes label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.launch-codes input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--nuke-glow);
    border-radius: 10px;
    color: var(--nuke-orange);
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 5px;
    font-family: monospace;
}

.nuke-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.abort-btn,
.launch-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.abort-btn {
    background: #333;
    border: 2px solid #666;
    color: var(--text-light);
}

.abort-btn:hover {
    background: #444;
}

.launch-btn {
    background: var(--nuke-glow);
    border: 2px solid #ff6666;
    color: white;
    text-transform: uppercase;
}

.launch-btn:hover {
    background: #ff6666;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
    transform: scale(1.05);
}

/* Execution Modal */
#execution-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6000;
}

.execution-content {
    background: var(--panel-bg);
    border: 2px solid var(--accent-blood);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
}

.execution-content h2 {
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 20px;
}

.prisoner-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.prisoner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--glass-bg);
    border-radius: 8px;
    margin-bottom: 8px;
}

.prisoner-item input {
    width: 20px;
    height: 20px;
}

.prisoner-name {
    flex: 1;
    margin-left: 15px;
}

.prisoner-crime {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.execution-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.execution-controls select {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-light);
}

.execution-controls button {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.execution-controls button:first-of-type {
    background: var(--accent-red);
    border: none;
    color: white;
}

.execution-controls button:last-of-type {
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-light);
}

/* Statue Modal */
#statue-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6000;
}

.statue-content {
    background: var(--panel-bg);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
}

.statue-content h2 {
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 20px;
}

.statue-preview {
    text-align: center;
    margin-bottom: 20px;
}

#statue-preview-canvas {
    background: linear-gradient(180deg, #1e3a5f 0%, #0a1628 100%);
    border-radius: 10px;
    border: 1px solid var(--panel-border);
}

.statue-options {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    align-items: center;
    margin-bottom: 20px;
}

.statue-options label {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.statue-options select,
.statue-options input[type="range"] {
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-light);
}

.statue-cost {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: 10px;
    margin-bottom: 20px;
}

.statue-cost span {
    color: var(--primary-gold);
}

.statue-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.statue-buttons button {
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.statue-buttons button:first-child {
    background: var(--gradient-gold);
    border: none;
    color: var(--primary-dark);
    font-weight: 700;
}

.statue-buttons button:last-child {
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-light);
}

/* ============================================
   SPECIAL EFFECTS OVERLAYS
   ============================================ */
#explosion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8000;
    background: radial-gradient(circle at center, 
        rgba(255, 200, 100, 0.8) 0%, 
        rgba(255, 100, 50, 0.6) 20%, 
        rgba(255, 50, 0, 0.3) 40%, 
        transparent 60%);
    animation: explosionFlash 1s ease-out forwards;
}

@keyframes explosionFlash {
    0% { opacity: 1; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2); }
}

#radiation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7000;
    background: 
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 255, 0, 0.05) 100%);
    animation: radiationPulse 3s ease-in-out infinite;
}

@keyframes radiationPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

#victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.victory-content {
    text-align: center;
    animation: victoryIn 1s ease;
}

.victory-content h1 {
    font-size: 4rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: victoryGlow 2s ease-in-out infinite;
}

@keyframes victoryIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes victoryGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 1)); }
}

/* ============================================
   PHOTOREALISTIC ENHANCEMENTS
   ============================================ */

/* Atmospheric Lighting */
.atmospheric-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(ellipse at center, 
        rgba(100, 150, 255, 0.1) 0%, 
        transparent 50%);
    pointer-events: none;
    animation: atmosphereShift 10s ease-in-out infinite;
}

@keyframes atmosphereShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* Realistic Shadows */
.deep-shadow {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.1);
}

/* Glass Morphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Metal Texture */
.metal-surface {
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 50%, 
            rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(45deg, #2a2a3a, #1a1a2a);
}

/* Gold Emboss */
.gold-emboss {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3));
}

/* Particle Effect Container */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Screen Flicker Effect */
.screen-flicker {
    animation: screenFlicker 0.1s ease-in-out;
}

@keyframes screenFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* Scanline Effect */
.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    #command-panel {
        width: 280px;
    }
    
    #info-panel {
        width: 260px;
    }
    
    .resources-bar {
        gap: 15px;
    }
    
    .resource {
        padding: 5px 8px;
    }
}

@media (max-width: 900px) {
    #main-area {
        flex-direction: column;
    }
    
    #command-panel,
    #info-panel {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    #globe-container {
        height: 50vh;
    }
    
    .resources-bar {
        flex-wrap: wrap;
    }
}

/* ============================================
   ANIMATIONS LIBRARY
   ============================================ */

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 1s ease-in-out infinite;
}

/* Fade In Up */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Rotate */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ============================================
   ADDITIONAL MODAL STYLES
   ============================================ */

/* Decree Modal */
.decree-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.decree-item {
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.decree-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

.decree-item h3 {
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.decree-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 3px 0;
}

/* Territory List for Invasion */
.territory-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.territory-item {
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.territory-item:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: var(--accent-red);
}

.territory-item h3 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.territory-item p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 2px 0;
}

.territory-item.controlled {
    background: rgba(72, 187, 120, 0.1);
    border-color: rgba(72, 187, 120, 0.3);
}

.territory-item.controlled span:last-child {
    color: #48bb78;
}

.territory-item.independent span:last-child {
    color: var(--accent-red);
}

/* Ration Controls */
.ration-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.ration-controls button {
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.ration-controls button:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
}

/* Policy Options */
.policy-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.policy-options button {
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.policy-options button:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
}

/* DEFCON Options */
.defcon-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.defcon-options button {
    padding: 20px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.defcon-options button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Doomsday Buttons */
.doomsday-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.doomsday-buttons button {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doomsday-buttons button:hover {
    transform: scale(1.05);
}

/* Modal Header Styles */
#modal-body h2 {
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#modal-body p {
    text-align: center;
    margin-bottom: 10px;
}

/* Territories in Info Panel */
#territories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#territories-list .territory-item {
    padding: 10px;
    font-size: 0.85rem;
}

/* Screen Shake Animation */
@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px) rotate(-1deg); }
    20% { transform: translateX(10px) rotate(1deg); }
    30% { transform: translateX(-10px) rotate(-1deg); }
    40% { transform: translateX(10px) rotate(1deg); }
    50% { transform: translateX(-5px) rotate(-0.5deg); }
    60% { transform: translateX(5px) rotate(0.5deg); }
    70% { transform: translateX(-5px) rotate(-0.5deg); }
    80% { transform: translateX(5px) rotate(0.5deg); }
    90% { transform: translateX(-2px); }
}

body.shake {
    animation: screenShake 0.5s ease-in-out;
}

/* Enhanced Button Hover Effects */
.command-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.command-item:hover::after {
    transform: translateX(100%);
}

.command-item {
    position: relative;
    overflow: hidden;
}

/* Photorealistic Panel Borders */
#command-panel,
#info-panel {
    background: 
        linear-gradient(180deg, rgba(30, 30, 50, 0.98) 0%, rgba(15, 15, 25, 0.98) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Globe Container Atmosphere */
#globe-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: atmospherePulse 8s ease-in-out infinite;
}

@keyframes atmospherePulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* Resource Bar Glow Effects */
.resource {
    position: relative;
}

.resource::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.3;
    z-index: -1;
}

/* Event Item Animations */
.event-item {
    opacity: 0;
    animation: eventFadeIn 0.5s ease forwards;
}

@keyframes eventFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nuclear Button Danger Glow */
.quick-btn.nuke-btn {
    position: relative;
}

.quick-btn.nuke-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff6600, #ff0000);
    border-radius: 22px;
    z-index: -1;
    animation: nukeButtonGlow 2s linear infinite;
    opacity: 0.5;
}

@keyframes nukeButtonGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Stat Box Hover */
.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

/* Category Button Active State */
.category-btn.active {
    position: relative;
}

.category-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-gold);
}

/* Loading Screen Enhancement */
#loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Victory Particles */
#victory-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #d4af37, transparent),
        radial-gradient(2px 2px at 40px 70px, #ffd700, transparent),
        radial-gradient(2px 2px at 50px 160px, #d4af37, transparent),
        radial-gradient(2px 2px at 90px 40px, #ffd700, transparent),
        radial-gradient(2px 2px at 130px 80px, #d4af37, transparent),
        radial-gradient(2px 2px at 160px 120px, #ffd700, transparent);
    background-size: 200px 200px;
    animation: particleFall 5s linear infinite;
    opacity: 0.6;
}

@keyframes particleFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================
   DEATH TRACKER & POPULATION TRACKER
   ============================================ */

.death-tracker {
    margin-top: 20px;
    padding: 15px;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 10px;
}

.death-tracker h3 {
    color: #ff4444;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.death-total {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.death-label {
    color: var(--text-dim);
}

.death-value {
    color: #ff4444;
    font-weight: 700;
    font-size: 1.1rem;
}

.death-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.death-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.death-item span:first-child {
    color: var(--text-dim);
}

.death-item span:last-child {
    color: #ff6666;
    font-weight: 600;
}

.population-tracker {
    margin-top: 15px;
    padding: 15px;
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 10px;
}

.population-tracker h3 {
    color: #48bb78;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.pop-current {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

#pop-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #48bb78;
}

.pop-change {
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.pop-change.decreasing {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.pop-change.increasing {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.pop-change .change-value {
    font-weight: 700;
}

.food-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.food-status > span:first-child {
    color: var(--text-dim);
    white-space: nowrap;
}

.food-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.food-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444 0%, #ffcc00 50%, #48bb78 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
    width: 100%;
}

#food-percent {
    color: var(--text-light);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Population decrease animation */
@keyframes popDecrease {
    0% { color: #48bb78; }
    50% { color: #ff4444; transform: scale(1.1); }
    100% { color: #48bb78; }
}

.pop-decrease-flash {
    animation: popDecrease 0.5s ease;
}

/* ============================================
   MAIN MENU STYLES
   ============================================ */

#main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.menu-earth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    object-fit: cover;
    opacity: 0.3;
    animation: menuEarthRotate 120s linear infinite;
    filter: blur(3px);
}

@keyframes menuEarthRotate {
    from { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    to { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(10, 10, 30, 0.7) 0%, rgba(0, 0, 0, 0.95) 100%),
        linear-gradient(180deg, transparent 0%, rgba(139, 0, 0, 0.2) 100%);
}

.menu-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
}

.menu-title h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 15px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 30%, #d4af37 60%, #aa8c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8)); }
}

.menu-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    letter-spacing: 5px;
    margin-bottom: 60px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.menu-btn {
    width: 300px;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid var(--panel-border);
    color: var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.menu-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.menu-btn.primary-btn {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8) 0%, rgba(80, 0, 0, 0.8) 100%);
    border-color: var(--accent-red);
}

.menu-btn.primary-btn:hover {
    background: linear-gradient(135deg, rgba(180, 0, 0, 0.9) 0%, rgba(120, 0, 0, 0.9) 100%);
    box-shadow: 0 0 40px rgba(139, 0, 0, 0.5);
}

.menu-btn.exit-btn:hover {
    background: rgba(100, 100, 100, 0.3);
    border-color: #666;
}

.menu-btn .btn-icon {
    font-size: 1.5rem;
}

.menu-footer {
    margin-top: 60px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Return to Menu Button */
.menu-return-btn {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.menu-return-btn:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

/* ============================================
   VICTORY SCREEN STYLES
   ============================================ */

#victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(20, 20, 40, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.victory-content {
    text-align: center;
    animation: victoryIn 1s ease;
}

.victory-earth {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.victory-earth-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    clip-path: circle(50%);
    animation: victoryEarthPulse 2s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
}

@keyframes victoryEarthPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 80px rgba(212, 175, 55, 0.8); }
}

.victory-crown {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    animation: crownBounce 1s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.victory-content h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.victory-subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.victory-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.v-stat {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v-stat span:first-child {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.v-stat span:last-child {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.victory-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.victory-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(170, 140, 44, 0.3) 100%);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.victory-btn:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================
   GAME OVER SCREEN STYLES
   ============================================ */

#gameover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(40, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.gameover-content {
    text-align: center;
    animation: gameoverIn 0.5s ease;
}

@keyframes gameoverIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.gameover-skull {
    font-size: 8rem;
    margin-bottom: 20px;
    animation: skullPulse 1s ease-in-out infinite;
}

@keyframes skullPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.8)); }
}

.gameover-content h1 {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.gameover-reason {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.gameover-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.go-stat {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.4);
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.go-stat span:first-child {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.go-stat span:last-child {
    color: #ff6666;
    font-size: 1.5rem;
    font-weight: 700;
}

.gameover-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gameover-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #ff4444;
    color: #ff6666;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gameover-btn:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.05);
}

/* ============================================
   NUCLEAR TARGET SELECTION
   ============================================ */

#nuke-target-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8000;
}

.nuke-target-content {
    background: linear-gradient(180deg, rgba(40, 10, 10, 0.95) 0%, rgba(20, 5, 5, 0.95) 100%);
    border: 2px solid #ff4444;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 68, 68, 0.3);
}

.nuke-target-content h2 {
    color: #ff4444;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.nuke-target-content > p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.target-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.target-item {
    padding: 15px 20px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.target-item:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
    transform: scale(1.02);
}

.target-item.controlled {
    opacity: 0.5;
    cursor: not-allowed;
}

.target-info {
    text-align: left;
}

.target-name {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.target-pop {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.target-casualties {
    color: #ff4444;
    font-weight: 700;
    font-size: 0.9rem;
}

.target-buttons {
    display: flex;
    justify-content: center;
}

.cancel-btn {
    padding: 12px 30px;
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid #666;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(100, 100, 100, 0.5);
}

/* ============================================
   VIRUS MODAL STYLES
   ============================================ */

#virus-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8000;
}

.virus-modal-content {
    background: linear-gradient(180deg, rgba(10, 40, 10, 0.95) 0%, rgba(5, 20, 5, 0.95) 100%);
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.3);
}

.virus-modal-content h2 {
    color: #00ff00;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.virus-modal-content > p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.virus-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.virus-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.virus-option label {
    color: #00ff00;
    font-size: 0.9rem;
}

.virus-option input,
.virus-option select {
    padding: 10px;
    background: rgba(0, 50, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.virus-option input:focus,
.virus-option select:focus {
    outline: none;
    border-color: #00ff00;
}

.virus-warning {
    background: rgba(255, 100, 0, 0.2);
    border: 1px solid rgba(255, 100, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    color: #ff9900;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.virus-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.release-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 150, 0, 0.8) 0%, rgba(0, 100, 0, 0.8) 100%);
    border: 2px solid #00ff00;
    border-radius: 10px;
    color: #00ff00;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.release-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

/* ============================================
   LAWS MODAL STYLES
   ============================================ */

#laws-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 10, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8000;
}

.laws-modal-content {
    background: linear-gradient(180deg, rgba(40, 20, 60, 0.95) 0%, rgba(20, 10, 30, 0.95) 100%);
    border: 2px solid #9966ff;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(153, 102, 255, 0.3);
}

.laws-modal-content h2 {
    color: #9966ff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.laws-modal-content > p {
    color: var(--text-dim);
    margin-bottom: 20px;
    text-align: center;
}

.laws-country-select {
    margin-bottom: 20px;
}

.laws-country-select label {
    color: #9966ff;
    display: block;
    margin-bottom: 8px;
}

.laws-country-select select {
    width: 100%;
    padding: 12px;
    background: rgba(50, 25, 75, 0.5);
    border: 1px solid rgba(153, 102, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.laws-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.law-item {
    background: rgba(50, 25, 75, 0.3);
    border: 1px solid rgba(153, 102, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.law-info {
    flex: 1;
}

.law-name {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 5px;
}

.law-description {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.law-effect {
    font-size: 0.8rem;
    margin-top: 5px;
}

.law-effect.positive {
    color: #48bb78;
}

.law-effect.negative {
    color: #ff4444;
}

.law-toggle {
    display: flex;
    gap: 5px;
}

.law-toggle button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.law-toggle .enact-btn {
    background: rgba(153, 102, 255, 0.3);
    color: #9966ff;
    border: 1px solid #9966ff;
}

.law-toggle .enact-btn:hover {
    background: #9966ff;
    color: white;
}

.law-toggle .repeal-btn {
    background: rgba(255, 68, 68, 0.3);
    color: #ff6666;
    border: 1px solid #ff4444;
}

.law-toggle .repeal-btn:hover {
    background: #ff4444;
    color: white;
}

.law-toggle button.active {
    opacity: 1;
}

.law-toggle button.inactive {
    opacity: 0.5;
}

.laws-buttons {
    display: flex;
    justify-content: center;
}

/* ============================================
   AMBASSADOR MODAL STYLES
   ============================================ */

#ambassador-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8000;
}

.ambassador-modal-content {
    background: linear-gradient(180deg, rgba(20, 40, 80, 0.95) 0%, rgba(10, 20, 40, 0.95) 100%);
    border: 2px solid #4488ff;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(68, 136, 255, 0.3);
}

.ambassador-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(68, 136, 255, 0.3);
}

.ambassador-portrait {
    width: 80px;
    height: 80px;
    background: rgba(68, 136, 255, 0.2);
    border: 2px solid #4488ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ambassador-info h2 {
    color: #4488ff;
    margin-bottom: 5px;
}

.ambassador-info p {
    color: var(--text-dim);
}

.ambassador-message {
    background: rgba(68, 136, 255, 0.1);
    border-left: 3px solid #4488ff;
    padding: 15px;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
}

.ambassador-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.amb-stat {
    background: rgba(68, 136, 255, 0.1);
    border: 1px solid rgba(68, 136, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.amb-stat-label {
    color: var(--text-dim);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
}

.amb-stat-value {
    color: #4488ff;
    font-size: 1.2rem;
    font-weight: 700;
}

.amb-stat-value.negative {
    color: #ff4444;
}

.amb-stat-value.positive {
    color: #48bb78;
}

.ambassador-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dismiss-btn {
    padding: 12px 30px;
    background: rgba(68, 136, 255, 0.2);
    border: 1px solid #4488ff;
    border-radius: 8px;
    color: #4488ff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dismiss-btn:hover {
    background: #4488ff;
    color: white;
}

.execute-amb-btn {
    padding: 12px 30px;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    border-radius: 8px;
    color: #ff4444;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.execute-amb-btn:hover {
    background: #ff4444;
    color: white;
}

/* Virus spread overlay effect */
.virus-spread-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    animation: virusSpread 2s ease-out forwards;
    z-index: 10;
}

@keyframes virusSpread {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(2); }
}

/* Ambassador List in Modal */
.ambassador-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.ambassador-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(68, 136, 255, 0.1);
    border: 1px solid rgba(68, 136, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ambassador-item:hover {
    background: rgba(68, 136, 255, 0.2);
    border-color: #4488ff;
    transform: translateX(5px);
}

.amb-flag {
    font-size: 2rem;
}

.amb-details {
    flex: 1;
}

.amb-details strong {
    color: var(--text-light);
}

.amb-details small {
    color: var(--text-dim);
}

/* Quick Action Buttons in Top Bar */
.quick-actions {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.quick-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 50, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-btn:hover {
    transform: scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.quick-btn.virus-btn:hover {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.quick-btn.laws-btn:hover {
    border-color: #9966ff;
    box-shadow: 0 0 15px rgba(153, 102, 255, 0.5);
}

.quick-btn.amb-btn:hover {
    border-color: #4488ff;
    box-shadow: 0 0 15px rgba(68, 136, 255, 0.5);
}

.quick-btn.nuke-btn:hover {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

/* Ambassador Confrontation Modal */
#ambassador-confront-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.confront-content {
    background: linear-gradient(180deg, rgba(30, 20, 50, 0.98) 0%, rgba(15, 10, 25, 0.98) 100%);
    border: 2px solid #ff6600;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 102, 0, 0.4);
}

.confront-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
}

.confront-portrait {
    font-size: 4rem;
}

.confront-title h2 {
    color: #ff6600;
    margin-bottom: 5px;
}

.confront-title p {
    color: var(--text-dim);
}

.confront-message {
    background: rgba(255, 102, 0, 0.1);
    border-left: 4px solid #ff6600;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.confront-action-info {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.confront-action-info h4 {
    color: #ff4444;
    margin-bottom: 10px;
}

.action-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-stat {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
}

.action-stat span:last-child {
    color: #ff4444;
    font-weight: 700;
}

.confront-question {
    text-align: center;
    color: #ff6600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.response-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.response-btn {
    padding: 15px 20px;
    background: rgba(50, 30, 70, 0.5);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.response-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: #ff6600;
    transform: translateX(5px);
}

.response-btn.aggressive {
    border-color: rgba(255, 68, 68, 0.5);
}

.response-btn.aggressive:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

.confront-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.continue-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.5), rgba(200, 80, 0, 0.5));
    border: 2px solid #ff6600;
    border-radius: 10px;
    color: #ff6600;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    background: #ff6600;
    color: #000;
}

/* Sound Toggle Button */
.sound-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 50, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.sound-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

/* ============================================
   EXTINCTION OVERLAY - ALL HUMANS DEAD
   ============================================ */

#extinction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 0, 0, 0.98) 0%, rgba(0, 0, 0, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: extinctionFadeIn 2s ease-out;
}

@keyframes extinctionFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.extinction-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.extinction-skull {
    font-size: 8rem;
    animation: skullPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.8));
}

@keyframes skullPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.extinction-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8),
                 0 0 40px rgba(255, 0, 0, 0.6),
                 0 0 60px rgba(255, 0, 0, 0.4);
    letter-spacing: 15px;
    margin: 20px 0;
    animation: titleFlicker 3s ease-in-out infinite;
}

@keyframes titleFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
    52% { opacity: 1; }
    54% { opacity: 0.8; }
}

.extinction-bones {
    font-size: 3rem;
    margin: 15px 0;
    letter-spacing: 20px;
    animation: bonesRattle 1s ease-in-out infinite;
}

@keyframes bonesRattle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.extinction-message {
    font-size: 1.3rem;
    color: #999;
    line-height: 2;
    margin: 30px 0;
}

.extinction-highlight {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4444;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.extinction-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(100, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
}

.ext-stat {
    text-align: center;
}

.ext-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ext-value {
    display: block;
    color: #ff4444;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.extinction-epitaph {
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
    margin: 30px 0;
    padding: 20px;
    border-left: 3px solid #333;
}

.extinction-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.ext-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #ff0000;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(150, 0, 0, 0.5), rgba(80, 0, 0, 0.5));
    color: #ff4444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ext-btn:hover {
    background: #ff0000;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

.ext-btn.secondary {
    background: rgba(50, 50, 50, 0.5);
    border-color: #666;
    color: #999;
}

.ext-btn.secondary:hover {
    background: #666;
    color: #fff;
    box-shadow: 0 0 20px rgba(100, 100, 100, 0.5);
}
