@keyframes animacjaPojawienia {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000072;
    background: radial-gradient(circle at center, #001f7a, #00004d);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    color: white;
}

.tytul-gry {
    font-size: 60px;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.kontener-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: animacjaPojawienia 0.5s ease-out;
    width: 100%;
    max-width: 900px;
    z-index: 5;
}

.przycisk-menu, .przycisk-startu, .przycisk-powtorki {
    background-color: #32cd32;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    min-width: 250px;
    margin: 10px 0;
    transition: all 0.2s;
    text-transform: uppercase;
    box-shadow: 0 5px 0 #228b22;
}

.przycisk-menu:hover, .przycisk-startu:hover, .przycisk-powtorki:hover {
    background-color: #40e040;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #228b22;
}

.przycisk-niemozliwy {
    background-color: #9400d3 !important;
    box-shadow: 0 5px 0 #4b0082 !important;
}

.przycisk-powrotu {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.grupa-wejsciowa {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    align-items: center;
}

#wejscie-nicku, #pole-kodu-dolaczania {
    padding: 12px;
    font-size: 22px;
    text-align: center;
    border-radius: 10px;
    border: none;
    width: 250px;
    font-weight: bold;
    color: #333;
}

.dzielone-menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border-radius: 20px;
    gap: 30px;
    backdrop-filter: blur(5px);
}

.sekcja-dzielona {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.separator {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 20px;
    opacity: 0.6;
}

.przyciski-trudnosci {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.maly-przycisk {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px;
    width: 80%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 0 #2a60a2;
}

.ramka-kodu-lobby {
    background: rgba(0,0,0,0.4);
    padding: 15px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.kod-gry {
    font-size: 45px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 8px;
    margin-top: 5px;
}

.kontener-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.karta-gracza {
    background: white;
    color: #333;
    width: 200px;
    height: 180px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.karta-gracza.host { border-bottom: 5px solid limegreen; }
.karta-gracza.gosc { border-bottom: 5px solid #ff4444; }

.nazwa-tekst {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    word-break: break-all;
    padding: 0 10px;
}

.rola-tekst {
    position: absolute;
    top: 10px;
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: bold;
}

.status-tekst {
    position: absolute;
    bottom: 10px;
    font-size: 12px;
    color: limegreen;
    font-weight: bold;
}

.odznaka-vs {
    background: #ffd700;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}

.ladowarka-mala {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4444;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: obrotStal 1s linear infinite;
    margin-top: 10px;
}

.ikona-wyjscia-aktywna {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    z-index: 100;
}

.tekst-pulsujacy { animation: pulsacja 1.5s infinite; }

@keyframes pulsacja { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

.ladowarka {
    border: 5px solid #f3f3f3;
    border-top: 5px solid yellow;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: obrotStal 1s linear infinite;
    margin-top: 20px;
}

@keyframes obrotStal { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.belka-gorna {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 40px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kontener-startowy, .kontener-wejsciowy {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: animacjaPojawienia 1s ease-out;
}

.kontener-wejsciowy { display: none; }

.stoper { font-size: 24px; margin-bottom: 30px; }
.stoper.czerwony { color: #ff4444; font-weight: bold; }

.wynik, .rekord, .ostatni-wynik {
    font-size: 20px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stopka {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
}

.zawartosc-stopki {
    width: 90%;
    display: flex;
    justify-content: center;
    gap: 120px;
    align-items: center;
}

.element-stopki { display: flex; align-items: center; gap: 1px; }
.ikona-stopki { height: 70px !important; }

.zawartosc-stopki button {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
}

#pole-wpisywania {
    border-radius: 15px;
    height: 50px;
    width: 400px;
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
    border: 3px solid white;
    margin-bottom: 20px;
    color: black;
}

.panel-zgloszen-border {
    border: 1px solid #32cd3233 !important;
    border-radius: 20px !important;
}


.swal2-confirm:hover {
    box-shadow: 0 0 15px #32cd3288 !important;
    transform: translateY(-2px);
    transition: all 0.2s;
}

#online-counter {
    position: absolute;
    top: 80px;
    right: 20px;
    font-size: 13px;
    color: #32cd32;
    font-weight: 800;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(50, 205, 50, 0.3);
    pointer-events: none;
}

#ver-tag {
    position: absolute;
    right: 20px;
    font-size: 10px;
    opacity: 0.4;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

#ver-tag:hover {
    opacity: 1;
    color: #32cd32;
}

.admin-report-card {
    background: #222;
    border-left: 4px solid #32cd32;
    padding: 12px;
    margin-bottom: 12px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.admin-report-msg {
    font-size: 14px;
    color: #ddd;
    margin: 8px 0;
    line-height: 1.4;
    word-break: break-word;
}

.admin-report-date {
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
}

.admin-btn-del {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    transition: 0.2s;
}

.admin-btn-del:hover {
    background: #cc0000;
}

#ekran-blokady-rozmiar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #001f7a, #00004d);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

@media screen and (max-width: 900px), screen and (max-height: 600px) {
    #ekran-blokady-rozmiar {
        display: flex;
    }
}