{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Na mobile lepiej od góry */
    align-items: center;
    padding: 40px 0;
    
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

.title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 100%;
}

/* --- BOX 1: GŁÓWNY LICZNIK --- */
.counter-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 90%;
    margin-bottom: 25px;
}

.time-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.number { font-size: 3rem; font-weight: 700; }
.label { font-size: 0.85rem; text-transform: uppercase; font-weight: 300; }

/* --- OGÓLNE STYLE DLA BOXÓW STATYSTYK --- */
.geek-stats {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
}

.geek-stats h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
    color: #ff9a9e;
    letter-spacing: 2px;
}

/* --- STYLE DLA KOSMICZNYCH (GRID) --- */
.stat-item {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: 1.5fr 2fr 0.5fr; /* Trzy kolumny */
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.stat-label { text-align: left; }
.stat-value { 
    font-weight: 700; 
    color: #00f2fe; 
    text-align: center; /* WYŚRODKOWANIE NIEBIESKIEGO */
}
.stat-unit { text-align: right; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }

/* --- STYLE DLA "INNYMI SŁOWY" --- */
.alt-units { text-align: center; }
.alt-label { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); margin: 5px 0; }
.alt-item { font-size: 1.2rem; margin: 2px 0; }
.alt-value { font-weight: 700; font-size: 1.5rem; }
#total-seconds { color: #ffd700; }

.server-status {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#current-server-time {
    color: #00f2fe; /* Ten sam błękit co w statystykach */
    font-weight: 700;
    margin-left: 5px;
}

/* Na bardzo małych telefonach chowamy lub przesuwamy, żeby nie zasłaniało tytułu */
@media (max-width: 400px) {
    .server-status {
        top: 5px;
        right: 5px;
        font-size: 0.6rem;
        padding: 4px 8px;
    }
}


/* --- MOBILE --- */
@media (max-width: 600px) {
    body { padding: 20px 0; }
    
    .counter-box {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 20px;
    }
    
    .time-section { min-width: 0; }
    .number { font-size: 2rem; }
    .label { font-size: 0.65rem; }

    .stat-item {
        grid-template-columns: 1fr; /* Na telefonie wszystko w pionie */
        text-align: center;
        gap: 5px;
    }
    .stat-label, .stat-value, .stat-unit { text-align: center; }
    
    /* Zmiana tła na mobilne jeśli je masz */
    body {
        background-attachment: scroll;
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('background-mobile.jpg');
    }
}