/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', 'Consolas', monospace;
    background: #1a1a2e;
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ============ SETUP SCREEN ============ */
#setup-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    gap: 12px;
    overflow-y: auto;
    padding: 30px 20px;
}

#setup-screen h1 {
    font-size: 48px;
    color: #e94560;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
    letter-spacing: 4px;
}

#setup-screen h2 {
    color: #888;
    font-weight: normal;
    margin-bottom: 20px;
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #16213e;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #0f3460;
    min-width: 400px;
}

.setup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.setup-row label {
    font-size: 14px;
    color: #aaa;
    min-width: 120px;
}

.setup-row input {
    background: #0d1b2a;
    border: 1px solid #0f3460;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    font-family: inherit;
}

.setup-row input:focus {
    outline: none;
    border-color: #e94560;
}

.tribe-setup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tribe-num {
    color: #888;
    font-size: 14px;
    min-width: 20px;
    text-align: right;
}

.tribe-setup-row .tribe-name-input {
    background: #0d1b2a;
    border: 1px solid #0f3460;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    font-family: inherit;
}

.tribe-setup-row .tribe-name-input:focus {
    outline: none;
    border-color: #e94560;
}

.tribe-control-toggle {
    padding: 6px 12px;
    border: 1px solid #0f3460;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
    transition: all 0.2s;
}

.tribe-control-toggle[data-control="human"] {
    background: #1a4a1a;
    color: #44cc44;
    border-color: #44cc44;
}

.tribe-control-toggle[data-control="ai"] {
    background: #3a2a1a;
    color: #cc8844;
    border-color: #cc8844;
}

.tribe-archetype-select {
    background: #0d1b2a;
    border: 1px solid #0f3460;
    color: #e0e0e0;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    min-width: 110px;
    cursor: pointer;
}

.tribe-archetype-select:focus {
    outline: none;
    border-color: #cc8844;
}

#btn-start {
    margin-top: 10px;
    padding: 12px 24px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 2px;
    transition: background 0.2s;
}

#btn-start:hover {
    background: #ff5a75;
}

/* ============ GAME CONTAINER ============ */
#game-container {
    display: none; /* shown after setup */
    grid-template-rows: 50px 1fr 180px;
    grid-template-columns: 220px 1fr 280px;
    grid-template-areas:
        "header header header"
        "players map actions"
        "news news news";
    height: 100vh;
    width: 100vw;
}

/* ============ HEADER ============ */
#header {
    grid-area: header;
    background: #16213e;
    border-bottom: 1px solid #0f3460;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}

#header h1 {
    font-size: 18px;
    color: #e94560;
    letter-spacing: 2px;
    margin-right: auto;
}

#player-toggle {
    padding: 6px 14px;
    background: #0d1b2a;
    border: 2px solid #e94560;
    color: #e94560;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s;
}

#player-toggle:hover {
    background: #1a2a4a;
}

#tick-display {
    font-size: 14px;
    color: #aaa;
    min-width: 80px;
}

.speed-controls {
    display: flex;
    gap: 4px;
}

.speed-btn {
    padding: 4px 10px;
    background: #0d1b2a;
    border: 1px solid #0f3460;
    color: #aaa;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.speed-btn.active {
    background: #0f3460;
    color: #e0e0e0;
    border-color: #4488ff;
}

.speed-btn:hover {
    background: #1a2a4a;
}

#btn-pause {
    padding: 4px 14px;
    background: #0d1b2a;
    border: 1px solid #e94560;
    color: #e94560;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

#btn-pause:hover {
    background: #2a1020;
}

#btn-newgame {
    padding: 4px 14px;
    background: #0d1b2a;
    border: 1px solid #cc8844;
    color: #cc8844;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

#btn-newgame:hover {
    background: #2a2010;
}

/* ============ PLAYERS PANEL ============ */
#players-panel {
    grid-area: players;
    background: #16213e;
    border-right: 1px solid #0f3460;
    overflow-y: auto;
    padding: 10px;
}

.player-card {
    background: #0d1b2a;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #0f3460;
}

.player-card.active {
    border-color: #4488ff;
    box-shadow: 0 0 6px rgba(68, 136, 255, 0.2);
}

.player-card.eliminated {
    opacity: 0.5;
}

.player-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.player-stat {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 2px 0;
}

.stat-label { color: #888; }
.stat-value { color: #e0e0e0; font-weight: bold; min-width: 40px; text-align: right; }
.stat-delta { font-size: 11px; min-width: 55px; text-align: right; }
.stat-delta.positive { color: #44aa44; }
.stat-delta.negative { color: #ff4444; }

.crisis-warning {
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    margin-top: 4px;
    border-radius: 3px;
    animation: pulse 1s infinite;
}

.crisis-warning.bankruptcy { background: #4a2000; color: #ff8800; }
.crisis-warning.invasion { background: #4a0000; color: #ff4444; }
.crisis-warning.civilwar { background: #4a4a00; color: #ffff44; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.player-card.inspected {
    border-color: #f9c74f;
    box-shadow: 0 0 8px rgba(249, 199, 79, 0.3);
}

/* ============ TRIBE VIEW ============ */
.tribe-view {
    font-size: 12px;
}

.tribe-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1a3050;
}

.tribe-view-close {
    padding: 2px 8px;
    font-size: 11px;
    background: #1a2a4a;
    border: 1px solid #0f3460;
    color: #aaa;
}

.tribe-view-resource {
    margin-bottom: 12px;
}

.tribe-view-res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.tribe-view-group {
    margin-bottom: 2px;
}

.tribe-view-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 4px;
    font-size: 11px;
    border-radius: 2px;
}

.tribe-view-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.tribe-view-positive .tribe-view-value {
    color: #44aa44;
    font-weight: bold;
}

.tribe-view-negative .tribe-view-value {
    color: #ff4444;
    font-weight: bold;
}

.tribe-view-label {
    color: #aaa;
}

.tribe-view-buildings {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #1a3050;
    font-size: 11px;
    color: #888;
}

.tribe-view-demobilize {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #1a3050;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-demobilize {
    background: #3a2a1a;
    color: #cc8844;
    border-color: #cc8844;
    padding: 4px 10px;
    font-size: 11px;
}
.btn-demobilize:hover { background: #4a3a2a; }

.btn-mobilize {
    background: #1a3a1a;
    color: #44cc44;
    border-color: #44cc44;
    padding: 4px 10px;
    font-size: 11px;
}
.btn-mobilize:hover { background: #2a4a2a; }

.demob-status { font-size: 11px; }
.demob-off { color: #cc8844; }
.demob-on { color: #556; }

.crisis-warning.demobilized { background: #2a2a1a; color: #cc8844; }

/* ============ MAP ============ */
#map-container {
    grid-area: map;
    overflow: auto;
    background: #111122;
    cursor: grab;
    user-select: none;
}

#map-container.panning {
    cursor: grabbing;
}

#map-scale-wrapper {
    position: relative;
    /* width/height set dynamically by applyMapZoom() */
}

#map-grid {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    gap: 0;
    transform-origin: 0 0;
    /* transform: scale() set dynamically by applyMapZoom() */
}

.tile {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    border: 1px solid #333;
    transition: filter 0.1s;
    user-select: none;
    overflow: hidden;
    line-height: 1;
}

.tile:hover {
    filter: brightness(1.3);
    z-index: 1;
}

/* ============ ACTION PANEL ============ */
#action-panel {
    grid-area: actions;
    background: #16213e;
    border-left: 1px solid #0f3460;
    overflow-y: auto;
    padding: 10px;
}

.action-placeholder {
    color: #666;
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
}

.tile-info {
    margin-bottom: 12px;
}

.tile-info h3 {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 6px;
}

.tile-detail {
    font-size: 12px;
    color: #aaa;
    padding: 2px 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.btn {
    padding: 8px 12px;
    border: 1px solid #0f3460;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all 0.2s;
    text-align: left;
}

.btn-claim {
    background: #1a4a1a;
    color: #44aa44;
    border-color: #44aa44;
}

.btn-claim:hover { background: #2a6a2a; }

.btn-build {
    background: #1a2a4a;
    color: #88bbee;
    border-color: #4488cc;
}

.btn-build:hover { background: #2a3a5a; }
.btn-build.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-attack {
    background: #4a1a1a;
    color: #ff4444;
    border-color: #ff4444;
    font-weight: bold;
}

.btn-attack:hover { background: #6a2a2a; }

.btn-demolish {
    background: #3a2a1a;
    color: #cc8844;
    border-color: #cc8844;
}

.btn-demolish:hover { background: #4a3a2a; }

.btn-war { background: #4a1a1a; color: #ff4444; border-color: #ff4444; }
.btn-war:hover { background: #6a2a2a; }

.btn-peace { background: #1a3a1a; color: #44cc44; border-color: #44cc44; }
.btn-peace:hover { background: #2a4a2a; }


.action-disabled {
    font-size: 11px;
    color: #666;
    padding: 4px;
}

.build-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.build-menu strong {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 2px;
}

.diplomacy-section {
    border-top: 1px solid #0f3460;
    padding-top: 10px;
    margin-top: 10px;
}

.diplomacy-section h4 {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}

.diplo-status {
    font-size: 12px;
    color: #888;
    padding: 2px 0;
}

.diplo-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.diplomacy-summary {
    border-top: 1px solid #0f3460;
    padding-top: 10px;
    margin-top: 10px;
}

.diplomacy-summary h4 {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}

.diplo-row {
    font-size: 12px;
    color: #ccc;
}

/* ============ GAME OVERVIEW ============ */
.game-overview {
    padding: 4px 0;
}

.overview-title {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #0f3460;
}

.overview-section {
    margin-bottom: 14px;
}

.overview-heading {
    font-size: 13px;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

.overview-war { background: #4a1a1a; color: #ff6666; }
.overview-battle { background: #3a2a1a; color: #ffaa44; }

.overview-pair {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    font-size: 12px;
    border-bottom: 1px solid #0a1525;
}

.overview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.overview-vs {
    color: #ff4444;
    font-weight: bold;
    font-size: 10px;
}

.overview-link {
    color: #888;
    font-weight: bold;
    font-size: 14px;
}

.overview-empty {
    font-size: 11px;
    color: #555;
    padding: 2px 8px;
    font-style: italic;
}

.overview-battle-count {
    font-size: 10px;
    color: #888;
    margin-left: auto;
}

.overview-battle-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 11px;
    color: #aaa;
    border-bottom: 1px solid #0a1525;
    cursor: pointer;
}

.overview-battle-item:hover {
    background: #1a2a3a;
}

.overview-battle-icon {
    font-size: 14px;
    color: #ff8844;
}

.overview-hint {
    font-size: 11px;
    color: #444;
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}

/* ============ NEWS PANEL ============ */
#news-panel {
    grid-area: news;
    background: #16213e;
    border-top: 1px solid #0f3460;
    overflow-y: auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.news-filters {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.news-filter-btn {
    padding: 3px 8px;
    background: #0d1b2a;
    border: 1px solid #0f3460;
    color: #888;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    text-transform: capitalize;
}

.news-filter-btn.active {
    background: #0f3460;
    color: #e0e0e0;
}

.news-filter-btn:hover {
    background: #1a2a4a;
}

.news-items {
    overflow-y: auto;
    flex: 1;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 3px 0;
    font-size: 12px;
    border-bottom: 1px solid #0a1525;
}

.news-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-tick {
    color: #555;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-msg {
    color: #ccc;
}

.news-empty {
    color: #555;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #4a1a1a;
    color: #ff8888;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #ff4444;
    font-size: 13px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ VICTORY OVERLAY ============ */
.victory-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.victory-message {
    text-align: center;
    font-size: 36px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ============ DEBUG TOGGLE (SETUP) ============ */
.debug-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
}

.debug-toggle input[type="checkbox"] {
    accent-color: #e94560;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.debug-label {
    color: #888;
}

/* ============ DEBUG PANEL ============ */
#debug-panel {
    position: fixed;
    bottom: 190px;
    right: 10px;
    width: 290px;
    max-height: 60vh;
    overflow-y: auto;
    background: #0d1b2a;
    border: 2px solid #e94560;
    border-radius: 8px;
    padding: 10px;
    z-index: 500;
    font-size: 12px;
}

#debug-panel h3 {
    color: #e94560;
    font-size: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e94560;
    padding-bottom: 4px;
}

.debug-section {
    margin-bottom: 10px;
}

.debug-section h4 {
    color: #cc8844;
    font-size: 12px;
    margin-bottom: 4px;
}

.debug-player-section {
    border: 1px solid #1a3050;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 6px;
}

.debug-player-name {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
}

.debug-resource-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.debug-resource-row span {
    min-width: 70px;
    color: #aaa;
}

.debug-btn {
    padding: 2px 6px;
    background: #1a2a4a;
    border: 1px solid #0f3460;
    color: #88bbee;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
}

.debug-btn:hover {
    background: #2a3a5a;
}

.debug-btn-danger {
    background: #4a1a1a;
    border-color: #ff4444;
    color: #ff6666;
}

.debug-btn-danger:hover {
    background: #6a2a2a;
}

.debug-btn-warn {
    background: #3a2a1a;
    border-color: #cc8844;
    color: #cc8844;
}

.debug-btn-warn:hover {
    background: #4a3a2a;
}

.debug-diplo-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.debug-diplo-label {
    color: #888;
    font-size: 11px;
    min-width: 120px;
}

#debug-toggle-btn {
    position: fixed;
    bottom: 190px;
    right: 10px;
    padding: 4px 10px;
    background: #4a1a1a;
    border: 1px solid #e94560;
    color: #e94560;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    z-index: 501;
}

#debug-toggle-btn:hover {
    background: #6a2a2a;
}

/* ============ SCENARIO CARDS ============ */
.setup-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-howtoplay {
    padding: 8px 18px;
    background: #0d1b2a;
    border: 1px solid #4488cc;
    color: #88bbee;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-howtoplay:hover {
    background: #1a2a4a;
    border-color: #88bbee;
}

.scenario-section {
    max-width: 600px;
    text-align: center;
}

.scenario-heading {
    color: #888;
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scenario-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.scenario-card {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    text-align: center;
    min-width: 90px;
    transition: all 0.2s;
}

.scenario-card:hover {
    border-color: #e94560;
    background: #1a2a4a;
}

.scenario-card.selected {
    border-color: #e94560;
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.3);
    background: #1a2a4a;
}

.scenario-card h4 {
    color: #e94560;
    font-size: 13px;
    margin-bottom: 3px;
}

.scenario-card p {
    color: #666;
    font-size: 10px;
    margin: 0;
}

.scenario-card .scenario-size {
    color: #555;
    font-size: 9px;
    margin-top: 2px;
}

/* ============ HOW TO PLAY MODAL ============ */
#howtoplay-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.howtoplay-content {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 30px;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    color: #e0e0e0;
    line-height: 1.6;
}

.howtoplay-content h2 {
    color: #e94560;
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
}

.howtoplay-content h3 {
    color: #f9c74f;
    font-size: 15px;
    margin-top: 18px;
    margin-bottom: 6px;
}

.howtoplay-content p, .howtoplay-content li {
    color: #ccc;
    font-size: 13px;
    margin-bottom: 6px;
}

.howtoplay-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.howtoplay-content .htp-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    font-size: 12px;
    margin: 8px 0;
    padding: 8px;
    background: #0d1b2a;
    border-radius: 4px;
}

.howtoplay-content .htp-grid span:nth-child(odd) {
    color: #f9c74f;
    font-weight: bold;
}

.howtoplay-content .htp-tip {
    background: #0d2b1a;
    border-left: 3px solid #44aa44;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
}

.howtoplay-close {
    margin: 20px auto 0;
    padding: 10px 30px;
    background: #e94560;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    display: block;
    letter-spacing: 1px;
}

.howtoplay-close:hover {
    background: #ff5a75;
}

.tribe-ai-label {
    padding: 6px 12px;
    background: #3a2a1a;
    color: #cc8844;
    border: 1px solid #cc8844;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}

/* ============ NOTIFICATION BANNERS ============ */
#notification-container {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.notification-banner {
    padding: 12px 28px;
    border-radius: 6px;
    border: 2px solid;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    min-width: 300px;
}

.notification-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-banner.war {
    background: #2a0808;
    border-color: #ff2222;
    color: #ff7777;
}

.notification-banner.economy {
    background: #2a1a00;
    border-color: #ffaa00;
    color: #ffcc44;
}

.notification-banner.military {
    background: #1a0808;
    border-color: #ff6600;
    color: #ff9944;
}

.notification-banner.happiness {
    background: #0a1a0a;
    border-color: #44dd88;
    color: #66ee99;
}
