body {
    margin: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, #0b0d17 0%, #050510 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
    line-height: 1.4;
}

canvas { 
    display: block; 
    transition: filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Applique un flou au canvas quand un panneau est ouvert */
body.panel-is-open > canvas {
    filter: blur(4px);
    transform: scale(1.01); /* Léger zoom pour adoucir les bords du flou */
}

#ui-top-bar {
    position: absolute;
    top: 0; left: 0; width: 100%;
    min-height: 60px;
    background: rgba(15, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 172, 254, 0.3);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 5px 15px; box-sizing: border-box; z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    gap: 10px;
}

.top-bar-section { display: flex; align-items: center; gap: 10px; }
.top-bar-section.info { flex-grow: 1; }
.top-bar-section.actions { flex-wrap: wrap; justify-content: flex-end; }

.resource-group { display: flex; flex-wrap: wrap; gap: 10px; font-size: 1.1em; font-weight: bold; }

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9em;
    transition: all 0.2s;
}

.nav-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }

.nav-btn.primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #050510; font-weight: bold; border: none;
}
.nav-btn.primary:hover { box-shadow: 0 0 10px rgba(79, 172, 254, 0.5); }

.nav-btn.success {
    background: rgba(46, 204, 113, 0.2); border-color: #2ecc71; color: #2ecc71;
}
.nav-btn.success:hover { background: rgba(46, 204, 113, 0.4); }

/* Règle générale pour cacher les éléments. Les panneaux avec animations (gauche/bas) sont exclus par ID pour ne pas bloquer leurs transitions. */
.hidden:not(#ui-left-panel):not(#ui-bottom-panel) {
    display: none !important;
}

/* --- NOUVELLE UI HUD --- */
.hud-panel {
    position: absolute;
    background: rgba(10, 15, 25, 0.9);
    border: 1px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(12px);
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    will-change: transform, opacity;
    z-index: 20;
    box-sizing: border-box;
}

/* Bouton de fermeture des panneaux */
.panel-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.2);
    border: none;
    border-radius: 0 0 0 10px;
    color: #ff5e62;
    font-size: 24px;
    cursor: pointer;
    z-index: 50;
    transition: background 0.2s, color 0.2s;
}
.panel-close-btn:hover { background: rgba(255, 94, 98, 0.2); color: #fff; }

#ui-left-panel {
    top: 60px; left: 0; bottom: 0;
    width: 300px;
    border-left: none;
    border-radius: 0 10px 0 0;
    overflow-y: auto;
    transform: translateX(0);
}

#ui-bottom-panel {
    bottom: 0; left: 300px; right: 0;
    height: 240px;
    border-bottom: none;
    border-top: 1px solid rgba(79, 172, 254, 0.5);
    border-left: none;
    display: flex;
    gap: 0; /* Géré par le padding interne des sections */
    transform: translateY(0);
}

#ui-left-panel.hidden { transform: translateX(-100%); opacity: 0; pointer-events: none; }
#ui-bottom-panel.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }

.bottom-section {
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

h2 {
    margin-top: 0; 
    border-bottom: 1px solid rgba(79, 172, 254, 0.2);
    padding-bottom: 5px; 
    color: #4facfe;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.stat-box {
    margin: 4px 0; 
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 8px; 
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-box label { color: #aaa; }

/* Ratings Grid */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.rating-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.rating-box .icon { font-size: 1.2em; margin-bottom: 2px; }
.rating-box .val { font-weight: bold; color: #fff; }

/* Stats details */
.stat-val { font-weight: bold; font-size: 1.1em; color: #fff; }
.stat-max { font-size: 0.8em; color: #777; }
.stat-sub { font-size: 0.85em; margin-left: 5px; opacity: 0.8; }

.action-btn {
    width: 100%; margin-top: 15px; padding: 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.5); 
    color: #4facfe;
    cursor: pointer; border-radius: 6px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.2s;
}

.action-btn:hover:not(:disabled) { 
    background: rgba(79, 172, 254, 0.8); 
    color: #050510; 
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}
.action-btn:disabled {
    border-color: #555; color: #777;
    background: rgba(0,0,0,0.2); cursor: not-allowed;
}

/* Planet List Items */
.planet-list-item {
    padding: 5px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex; justify-content: space-between; align-items: center;
}
.planet-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}
.planet-list-item.selected {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.15) 0%, transparent 100%);
    border-left: 3px solid #4facfe;
}

#instructions {
    position: absolute; bottom: 10px; left: 10px;
    color: #666; font-size: 0.8em; pointer-events: none;
}

.building-badge {
    display: inline-block; background: #333; color: #aaa;
    padding: 2px 6px; border-radius: 4px; font-size: 0.75em;
    margin: 2px; border: 1px solid #555;
}

/* Style pour les files de construction (planète et chantier) */
.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    margin-bottom: 3px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    border: 1px solid #333;
    font-size: 0.9em;
}

.queue-item-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ccc;
}

.queue-item-status {
    display: flex;
    align-items: center;
    margin: 0 8px;
    color: #888;
    font-size: 0.9em;
}

.queue-item-cancel {
    background: none; border: none; color: #ff5e62; cursor: pointer;
    font-size: 1.2em; padding: 0 5px; opacity: 0.6; transition: opacity 0.2s;
}
.queue-item-cancel:hover { opacity: 1; }

#planet-buildings-list .building-badge {
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

h4 {
    margin: 5px 0 8px 0;
    font-size: 0.95em;
    color: #4facfe;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(79, 172, 254, 0.2);
}

/* --- NOUVEAUX STYLES POUR LA LISTE DE CONSTRUCTION --- */

.build-filter-container {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.build-filter-btn {
    background: #333;
    border: 1px solid #555;
    color: #aaa;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s;
}

.build-filter-btn:hover {
    background: #444;
    color: #fff;
}

.build-filter-btn.active {
    background: #4facfe;
    color: #050510;
    border-color: #4facfe;
    font-weight: bold;
}

.build-list-container {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 5px;
}

.build-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.build-item:hover:not(.disabled) {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.5);
}

.build-item.disabled { color: #666; cursor: not-allowed; opacity: 0.7; }
.build-item-icon { font-size: 1.2em; margin-right: 8px; width: 20px; text-align: center; }
.build-item-name { flex-grow: 1; font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.build-item-cost { display: flex; align-items: center; font-size: 0.85em; color: #aaa; margin-left: 10px; }
.build-item-cost .maint { color: #ff5e62; margin-left: 8px; }

/* Styles pour le menu de construction */
#build-actions {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

/* Tech Tree Visualization */
.tech-tree {
    display: flex;
    flex-direction: row;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px;
    align-items: flex-start;
}

.tech-tier {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 140px;
    position: relative;
}

.tech-node {
    background: rgba(30, 35, 50, 0.9);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.tech-node.unlocked {
    border-color: #4facfe;
    background: rgba(79, 172, 254, 0.15);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.tech-node.available {
    border-color: #f1c40f;
    cursor: pointer;
    background: rgba(241, 196, 15, 0.1);
}
.tech-node.available:hover {
    background: rgba(241, 196, 15, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.tech-node.queued {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.tech-node.locked {
    opacity: 0.5;
    border-style: dashed;
    background: rgba(0,0,0,0.2);
}

.tech-name { font-weight: bold; font-size: 0.9em; margin-bottom: 5px; color: #fff; }
.tech-cost { font-size: 0.8em; color: #aaa; }
.tech-node.unlocked .tech-cost { color: #4facfe; }

/* Lignes de l'arbre technologique */
#tech-lines-svg path {
    stroke: #555;
    stroke-width: 2px;
    fill: none;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
::-webkit-scrollbar-thumb { background: #4facfe; border-radius: 3px; }

/* Start Screen */
#start-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 16, 0.95);
    z-index: 100;
    display: flex; justify-content: center; align-items: center;
}

#start-screen .panel {
    background: rgba(20, 25, 40, 0.9);
    border: 1px solid #4facfe;
    padding: 40px; border-radius: 15px;
    box-shadow: 0 0 50px rgba(79, 172, 254, 0.2);
    width: 400px; text-align: center;
}

.top-bar-btn {
    margin-left: 10px;
    padding: 5px 12px;
    border: 1px solid #666;
    background: #444;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s, border-color 0.2s;
}
.top-bar-btn:hover {
    background: #555;
    border-color: #888;
}
.top-bar-btn.purple { background: #6c5ce7; border-color: #6c5ce7; }
.top-bar-btn.purple:hover { background: #8270f8; }
.top-bar-btn.green { background: #27ae60; border-color: #27ae60; }
.top-bar-btn.green:hover { background: #2ecc71; }

.form-group {
    margin-bottom: 20px; text-align: left;
}
.form-group label {
    display: block; margin-bottom: 8px; color: #aaa; font-weight: bold;
}
.form-group select, .form-group input {
    width: 100%; padding: 10px;
    background: rgba(0,0,0,0.3); border: 1px solid #555;
    color: #fff; border-radius: 5px;
    font-size: 1em;
}
::-webkit-scrollbar-thumb:hover { background: #00f2fe; }

/* Notifications */
#notification-panel {
    position: absolute; bottom: 230px; /* Au dessus du panneau bas */ left: 320px;
    width: 350px; max-height: 200px;
    overflow-y: auto;
    display: flex; flex-direction: column;
    pointer-events: none; /* Let clicks pass through if empty areas */
}

.notification-item {
    background: rgba(0, 0, 0, 0.6);
    border-left: 3px solid #aaa;
    margin-top: 5px; padding: 8px;
    font-size: 0.85em; color: #ddd;
    pointer-events: auto;
    animation: fadeIn 0.3s ease-out;
}
.notification-item.combat { border-color: #ff5e62; color: #ffcccc; }
.notification-item.success { border-color: #2ecc71; color: #d4fc79; }
.notification-item.info { border-color: #4facfe; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Global Fleet Manager */
.fleet-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px; margin-bottom: 5px;
    border-radius: 5px;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.fleet-item button {
    background: #4facfe; border: none; color: #000;
    padding: 5px 10px; border-radius: 3px; cursor: pointer;
    font-weight: bold;
}
.fleet-item button:hover { background: #fff; }

/* --- SHIP DESIGNER --- */
#ship-designer-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 90vw !important;
    max-width: 1200px !important;
    height: 85vh !important;
    display: flex;
    flex-direction: column;
    background: rgba(12, 18, 30, 0.98) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 1px solid #4facfe;
}

#ship-designer-content {
    flex: 1;
    height: auto !important;
    overflow: hidden;
    padding-bottom: 10px;
}

.designer-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px; /* Palette | Preview | Stats */
    gap: 15px;
    height: 100%;
    box-sizing: border-box;
}

.module-palette {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    overflow-y: auto;
}

.ship-preview {
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.05) 0%, rgba(0,0,0,0.3) 80%);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    display: flex; flex-direction: column; align-items: center;
    overflow-y: auto;
    position: relative;
}

.design-stats {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9em;
    display: flex; flex-direction: column;
}

.module-item {
    padding: 10px; margin-bottom: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border: 1px solid #444; 
    border-left: 3px solid #666;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 4px;
    transition: all 0.2s;
}
.module-item:hover { 
    background: rgba(255,255,255,0.08); 
    transform: translateX(3px);
    border-color: #666;
}

.ship-slots-container {
    display: flex; flex-direction: column; gap: 15px; width: 100%; margin-top: 20px; align-items: center;
}

.slot-row { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.ship-slot {
    width: 64px; height: 64px;
    background: rgba(10, 15, 25, 0.8);
    border: 2px solid #444;
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    font-size: 0.75em; color: #888; text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.2s;
    padding: 2px;
    position: relative;
}
.ship-slot:hover {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
    color: #fff;
}
.ship-slot.filled { 
    border-color: #4facfe; 
    color: #fff; 
    background: rgba(79, 172, 254, 0.15); 
    text-shadow: 0 0 5px #4facfe;
}
.ship-slot.weapon { border-color: #ff5e62; }
.ship-slot.defense { border-color: #4facfe; }
.ship-slot.utility { border-color: #2ecc71; }

/* Inputs styling in designer */
.design-stats input[type="text"], .design-stats select {
    width: 100%;
    background: #1a1a25;
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    box-sizing: border-box;
}

/* --- Styles pour les modales et panneaux nettoyés --- */
#tech-modal, #global-fleet-panel, #fleet-modal, #settings-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

#tech-modal {
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
}

#global-fleet-panel {
    width: 90vw;
    max-width: 600px;
    max-height: 80vh;
    border-color: #6c5ce7;
    z-index: 25;
}

#settings-modal {
    width: 90vw;
    max-width: 550px;
    max-height: 80vh;
}

#fleet-modal {
    width: 90vw;
    max-width: 700px;
    height: 80vh;
    max-height: 600px;
    z-index: 30;
}

#combat-modal {
    border-color: #ff5e62; /* Bordure rouge par défaut, changée dynamiquement en JS */
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.fleet-modal-content {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

.fleet-modal-column {
    flex: 1;
    border: 1px solid #444;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- Styles pour le panneau du bas --- */
#bottom-section-queue {
    flex: 0 0 20%;
    border-right: 1px solid rgba(79, 172, 254, 0.3);
    padding-right: 10px;
}

#bottom-section-info {
    flex: 0 0 25%;
    border-right: 1px solid rgba(79, 172, 254, 0.3);
    padding-left: 10px;
    padding-right: 10px;
}

#bottom-section-actions {
    flex: 1;
    padding-left: 15px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Ajuster la taille de police de base */
    }

    #ui-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .top-bar-section.actions { justify-content: center; }
    .nav-btn { flex: 1; text-align: center; }
    
    #ui-left-panel {
        width: 85vw;
        max-width: 320px;
        height: 100%;
        top: 0;
        border-radius: 0 10px 10px 0;
        z-index: 100; /* Doit passer au-dessus de tout */
        padding-top: 40px; /* Espace pour le bouton fermer */
    }

    #ui-bottom-panel {
        flex-direction: column;
        left: 0;
        width: 100%;
        height: 50vh; /* Prend la moitié basse de l'écran */
        bottom: 0;
        border-top: 1px solid rgba(79, 172, 254, 0.5);
        border-left: none;
        overflow-y: auto; /* Permet de scroller tout le panneau d'un coup */
        padding-top: 30px; /* Espace pour le bouton fermer */
    }

    #bottom-section-queue, #bottom-section-info, #bottom-section-actions {
        flex: none; /* Annule le flex-basis */
        width: 100%;
        height: auto; /* Laisse le contenu définir la hauteur */
        border-right: none;
        border-bottom: 1px solid rgba(79, 172, 254, 0.3);
        padding: 10px !important;
    }
    #bottom-section-actions { border-bottom: none; }
    
    /* Réorganisation : On veut les Actions (Production) en premier sur mobile */
    #bottom-section-actions { order: -1; border-bottom: 1px solid rgba(79, 172, 254, 0.3); }
    #bottom-section-queue { order: 0; }
    #bottom-section-info { order: 1; }

    .designer-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto; /* Palette | Preview | Stats */
        height: 100%;
        overflow-y: auto;
    }
    
    #ship-designer-modal {
        width: 100vw !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        border: none !important;
        max-width: 100% !important;
    }

    .fleet-modal-content { flex-direction: column; }
    #fleet-modal { width: 95vw; height: 90vh; }

    #notification-panel {
        bottom: 10px; left: 10px; right: 10px;
        width: auto; z-index: 100;
        bottom: calc(env(safe-area-inset-bottom, 10px));
    }

    #ui-bottom-panel:not(.hidden) ~ #notification-panel {
        bottom: calc(50vh + 10px);
        transition: bottom 0.3s ease;
    }
}

/* --- Panneau de contrôle du jeu (temps & vue) --- */
#game-controls {
    position: absolute;
    top: 70px; /* Sous la top-bar */
    right: 15px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    background: rgba(15, 20, 35, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.time-controls button, .view-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.time-controls button:hover, .view-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.time-speed-btn.active {
    background: #4facfe;
    color: #050510;
    border-color: #4facfe;
    font-weight: bold;
}

.turn-counter {
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    justify-content: center;
}

.view-controls div {
    cursor: pointer; background: rgba(255, 255, 255, 0.1); padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 5px;
    color: white; font-size: 0.9em; text-align: center; flex: 1;
}
}