/* Import zewnętrznej czcionki (techniczny wygląd) */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

body {
    background-color: #333;
    background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png'); 
    font-family: 'Roboto Mono', monospace; 
    color: #ecf0f1;
    margin: 0;
    padding: 20px;
    position: relative; /* Potrzebne dla przycisku HOME */
}

/* --------------------------------- */
/* NOWE STYLE DLA PRZYCISKU HOME */
/* --------------------------------- */
.menu-home {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 15px;
    background-color: #f1c40f; /* Żółty kolor */
    color: #2c3e50; /* Ciemny tekst */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s, transform 0.1s;
    width: auto; /* Zmiana szerokości, by nie przejmować domyślnego 100% z button */
}

.menu-home:hover {
    background-color: #f39c12;
    transform: translateY(-2px);
}

/* --------------------------------- */
/* BLOKADA MOBILNA (Domyślnie UKRYTA) */
/* --------------------------------- */
#mobile-blocker {
    display: none; /* Domyślnie ukryty na dużych ekranach */
    background-color: #f1c40f; 
    color: #2c3e50;
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    margin: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    z-index: 1000;
}
#mobile-blocker button {
    background-color: #2c3e50;
    color: #f1c40f;
    padding: 10px 20px;
}
#mobile-blocker p {
    font-size: 1.1em;
}


/* --------------------------------- */
/* LOGIKA RESPONSIVE (BLOKOWANIE) */
/* --------------------------------- */
/* Ukryj grę i pokaż blokadę, jeśli szerokość ekranu jest zbyt mała (np. < 768px) */
@media (max-width: 800px) {
    #gra-kontener {
        display: none; /* Ukryj całą grę */
    }
    #mobile-blocker {
        display: flex; /* Pokaż blokadę */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .menu-home {
        display: none; /* Ukryj mały HOME button, bo blokada ma własny */
    }
}


/* --------------------------------- */
/* OGÓLNE STYLE GRY (BEZ ZMIAN) */
/* --------------------------------- */
header {
    text-align: center;
    margin-bottom: 30px;
    color: #f1c40f; 
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.7); 
}

#gra-kontener {
    display: flex;
    gap: 20px;
    max-width: 1300px; 
    margin: auto;
}

.panel {
    background-color: rgba(30, 40, 50, 0.95); 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); 
    flex: 1;
    border: 1px solid #444; 
}

#interakcja-panel {
    flex: 2; 
    min-width: 550px; 
}

h2 {
    border-bottom: 2px solid #f1c40f;
    padding-bottom: 5px;
    margin-top: 0;
    color: #f1c40f;
}

button {
    display: block;
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 10px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-weight: bold;
}

button:hover {
    background-color: #2ecc71;
    transform: translateY(-1px);
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#pieniadze { color: #2ecc71; font-weight: bold; }
#reputacja { color: #f1c40f; font-weight: bold; }
#materialy { color: #3498db; font-weight: bold; }

#lista-logow {
    list-style: none;
    padding: 0;
    font-size: 0.9em;
}

#lista-logow li {
    margin-bottom: 5px;
    padding-left: 10px;
    border-left: 2px solid #9b59b6;
}

.zlecenie-karta {
    background-color: rgba(44, 62, 80, 0.7); 
    border: 1px solid #f1c40f;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.zlecenie-karta button {
    background-color: #f1c40f;
    color: #2c3e50;
}