:root {
    --nation-primary: #ffd700;       /* Výchozí barva prvků (např. zlatá) */
    --nation-dark: #41392e;          /* Tmavá antická (pozadí panelů) */
    --nation-medium: #5f5144;        /* Střední antická (okraje) */
    --nation-light: #938471;         /* Světlá zemitá (texty, detaily) */
    --nation-glow: rgba(255, 215, 0, 0.15); /* Jemná záře */
}

html {
    /* Zaručí, že ty prázdné pruhy po stranách na 2560px monitoru budou mít správnou tmavou barvu */
    background-color: #1a1a1a; 
}
body { 
    background: #1c1712; /* Temná zemitá barva jako základ */
    background-image: radial-gradient(circle at top, var(--nation-dark) 0%, #15110d 100%); /* Jemný podbarvený gradient národa */
    color: #f5f2eb; /* Čistá, skvěle čitelná slonovinová kost pro veškeré prose texty */
    font-family: 'Courier New', Courier, monospace; 
    margin: 0; 
    padding: 0 20px;
    max-width: 1600px;
    margin: 0 auto;
}
        h1, h2, h3 { color: #eebb55; margin-top: 0; text-shadow: 1px 1px 3px #000000; }
        .container { max-width: 800px; margin: 0 auto; background: #2a2a2a; padding: 20px; border: 2px solid #555; box-shadow: 0 0 15px rgba(0,0,0,0.8); }
        .panel { 
            background: linear-gradient(135deg, #111111 0%, var(--nation-dark) 100%); 
            padding: 15px; 
            margin-bottom: 20px; 
            border: 1px solid var(--nation-medium); 
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.3);
        }
        .flex { display: flex; justify-content: space-between; }
.btn { 
    background: #2a221b;               /* Pevné, tmavě zemité pozadí tlačítka */
    color: #ffffff;                    /* 100% bílý a dokonale viditelný text */
    border: 1px solid #5f5144;         /* Střední antický okraj */
    padding: 8px 15px; 
    cursor: pointer; 
    font-weight: bold; 
    margin: 5px 0; 
    width: 100%; 
    text-transform: uppercase; 
    transition: all 0.15s ease-in-out;
    text-shadow: 1px 1px 2px #000000;  /* Stín pod písmem pro maximální ostrost textu */
}
.btn:hover { 
    background: var(--nation-primary); /* Pozadí se zalije jasnou barvou národa */
    color: #000000;                    /* Text se perfektně invertuje do černé */
    border-color: var(--nation-primary); 
    box-shadow: 0 0 12px var(--nation-glow); 
    text-shadow: none;                 /* Odstraníme stín, na světlém pozadí není třeba */
}
        .btn-admin { background: #883333; border-color: #ff5555; color: white; }
        .btn-admin:hover { background: #ff5555; }
        input, select { padding: 8px; width: calc(100% - 18px); background: #111; color: white; border: 1px solid var(--nation-medium); margin-bottom: 10px; }
        input:focus, select:focus { border-color: var(--nation-primary); outline: none; box-shadow: 0 0 5px var(--nation-glow); }
        #login-screen { text-align: center; margin-top: 100px; }
        #game-screen { display: none; }
        #log { height: 100px; overflow-y: scroll; background: #111; padding: 10px; font-size: 0.9em; border: 1px solid #444; color: #88ff88; }
        .warning { color: #ff5555; font-weight: bold; }
        .map-container { display: flex; justify-content: space-around; align-items: center; margin: 20px 0; background: #111; padding: 20px; border: 1px dashed #555; position: relative; }
        .province-node { width: 120px; text-align: center; padding: 10px; border: 2px solid #444; border-radius: 8px; position: relative; transition: all 0.3s; }
        .province-node.active { border-color: #eebb55; box-shadow: 0 0 10px #eebb55; transform: scale(1.05); }
        .province-node .player-tag { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background: #eebb55; color: black; font-size: 0.7em; padding: 2px 5px; border-radius: 4px; font-weight: bold; white-space: nowrap; }
        .map-line { height: 4px; background: #444; flex-grow: 1; margin: 0 -5px; z-index: 0; }
        .tabs { display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 2px solid #444; padding-bottom: 5px; }
        .tab-btn { background: #222; color: #aaa; border: 1px solid #444; padding: 10px 15px; cursor: pointer; font-weight: bold; flex-grow: 1; text-transform: uppercase; transition: 0.2s; }
        .tab-btn:hover { background: #333; color: #fff; }
        .tab-btn.active { background: var(--nation-primary); color: #1a1a1a; border-color: var(--nation-primary); box-shadow: 0 0 10px var(--nation-glow); }
        .tab-content { display: none; animation: fadeIn 0.3s; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        /* --- MOBILNÍ ZOBRAZENÍ --- */
        @media (max-width: 768px) {
            body { padding: 0; }
            .container { padding: 10px; width: 100%; box-sizing: border-box; border: none; box-shadow: none; margin: 0; }
            .flex { flex-direction: column; }
            .flex > div { width: 100% !important; box-sizing: border-box; margin-bottom: 15px; }
.panel { 
    background: #1b1612; /* Čisté tmavé pozadí panelu */
    border: 1px solid #5f5144; 
    padding: 15px; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}            #game-screen > div[style*="absolute"] { position: relative !important; right: auto !important; top: auto !important; align-items: stretch !important; margin-bottom: 20px; background: #222; padding: 10px; border: 1px solid #444; width: 100%; box-sizing: border-box; }
            #bug-board, #news-board { width: 100% !important; box-sizing: border-box; }
            #bug-text { width: 100% !important; box-sizing: border-box; margin-bottom: 8px !important; }
            .btn { padding: 12px 10px; font-size: 13px !important; margin: 4px 0; min-height: 42px; }
            input[type="text"], input[type="number"], select { min-height: 42px; font-size: 14px; }
            div[style*="display: flex"], div[style*="display:flex"] { flex-wrap: wrap; }
            .tabs { flex-wrap: wrap; justify-content: space-between; border-bottom: none; gap: 5px; }
            .tab-btn { flex: 1 1 48%; font-size: 11px; padding: 12px 2px; margin: 0; text-align: center; border: 1px solid #444; }
            table { display: block; overflow-x: auto; white-space: nowrap; width: 100%; }
        }