
:root {
    --primary: #6c5ce7;     
    --accent: #00cec9;      
    --dark: #1e1e2e;        
    --glass: rgba(255, 255, 255, 0.08); 
    --red: #ff7675;         
    --blue: #74b9ff;        
    --gold: #fdcb6e;        
}

* {
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top, #2d3436, var(--dark));
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden; 
}


.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(10px);
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 99999; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo { 
    font-weight: 900; 
    font-size: 1.1rem; 
    letter-spacing: 1px;
    cursor: pointer;
}
.logo span { color: var(--accent); }

.btn-login { 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.3); 
    color: white; 
    padding: 6px 12px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 0.75rem; 
}

.btn-exit {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.75rem;
    margin-left: 10px;
    cursor: pointer;
}


#ekran_start {
    padding-top: 80px; 
    padding-bottom: 40px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh;
}

.hero-content { 
    width: 100%; 
    max-width: 600px; 
    padding: 20px; 
    text-align: center; 
}

h1 { 
    font-size: 2.2rem; 
    margin: 0; 
    line-height: 1.1; 
}
.subtitle { 
    color: #a29bfe; 
    margin-bottom: 30px; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-top: 5px;
}

.grid-kategorie {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-bottom: 30px;
}

.btn-kat {
    background: var(--glass); 
    border: 1px solid rgba(255,255,255,0.1);
    color: white; 
    padding: 15px 10px; 
    border-radius: 16px; 
    cursor: pointer;
    transition: 0.2s; 
    position: relative; 
    overflow: hidden;
    min-height: 110px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-kat.aktywny {
    border-color: var(--primary); 
    background: rgba(108, 92, 231, 0.25);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3); 
    transform: scale(1.02);
}

.btn-kat.locked { opacity: 0.6; filter: grayscale(0.8); border-style: dashed; }
.lock-icon { position: absolute; top: 8px; right: 8px; font-size: 1rem; }

/* --- GRACZE --- */
.tagi-graczy { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 15px; 
    min-height: 30px; 
}

.gracz-tag {
    background: var(--primary); 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-container-big {
    display: flex; 
    align-items: center; 
    background: rgba(255,255,255,0.1);
    border-radius: 50px; 
    border: 2px solid rgba(255,255,255,0.2); 
    padding: 5px; 
}

.big-input {
    flex: 1; 
    background: transparent; 
    border: none; 
    color: white; 
    font-size: 1.1rem; 
    padding: 15px; 
    outline: none;
    width: 100%;
}

.btn-plus-big {
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    border: none; 
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white; 
    font-size: 1.8rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.btn-start {
    width: 100%; 
    padding: 22px; 
    font-size: 1.3rem; 
    font-weight: 900; 
    color: white;
    background: var(--primary); 
    border: none; 
    border-radius: 50px; 
    margin-top: 25px;
    cursor: pointer; 
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    margin-bottom: 30px;
}


#ekran_gry { 
    height: 100vh; 
    width: 100vw; 
    overflow: hidden; 
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 60px; 
}

.top-bar-game {
    position: absolute; 
    top: 60px; 
    left: 0; 
    width: 100%; 
    padding: 10px; 
    text-align: center;
    z-index: 10;
    pointer-events: none; 
}

.split-screen { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    width: 100%; 
}

.polowa { 
    flex: 1; 
    width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    position: relative; 
}

.polowa:active { filter: brightness(0.9); transform: scale(0.98); transition: 0.1s; }

.lewa { background: var(--blue); } 
.prawa { background: var(--red); }

.polowa h2 { 
    font-size: 2.5rem; 
    text-shadow: 0 3px 6px rgba(0,0,0,0.2); 
    text-transform: uppercase;
    letter-spacing: 2px;
}


.overlay {
    position: fixed; top:0; left:0; width:100%; height:100%; 
    background: rgba(0,0,0,0.9); 
    backdrop-filter: blur(8px);
    z-index: 200; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 20px;
    animation: popIn 0.2s;
}

.karta-content {
    background: #2d3436; 
    color: white; 
    padding: 30px 20px; 
    border-radius: 30px; 
    width: 100%; 
    max-width: 400px; 
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
}

.akcje {
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    margin-top: 30px;
    width: 100%;
}

.akcje button {
    width: 100%;            
    padding: 25px 20px;     
    border-radius: 50px;    
    border: none;
    font-size: 1.4rem;      
    font-weight: 900;       
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.akcje button:active { transform: scale(0.95); }

.btn-ok { 
    background: linear-gradient(135deg, #00b894, #00cec9); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.btn-fail { 
    background: linear-gradient(135deg, #ff7675, #d63031); 
    color: white; 
}


@media (min-width: 768px) {
    .grid-kategorie { grid-template-columns: 1fr 1fr 1fr; }

    .split-screen { flex-direction: row; }
    
    .polowa { height: 100%; width: 50%; }
    .polowa:hover { flex: 1.2; transition: 0.3s; }
    
    .akcje { flex-direction: row; }
}

@keyframes popIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }