html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    user-select: none;

    /* A ../ jelenti azt, hogy lépjen ki a styles mappából, és úgy menjen az images-be */
    background-image: url('../images/bg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    background-color: #050306; /* Biztonsági háttérszín, ha a kép nem töltene be */
}

.screen { display: none; position: fixed; inset: 0; z-index: 10; align-items: center; justify-content: center; }
.screen.active { display: flex; }
#game-screen.active, #zuma-screen.active { display: block; } 
#game, #zuma-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; }

body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 0, 150, 0.08), transparent 40%, rgba(0, 0, 0, 0.8) 90%); z-index: 2; }
body::after { content: " "; display: block; position: absolute; inset: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%); background-size: 100% 4px; z-index: 3; pointer-events: none; }

.menu { position: relative; background: rgba(5, 5, 10, 0.95); backdrop-filter: blur(15px); border: 1px solid rgba(0, 246, 255, 0.3); padding: 40px; border-radius: 12px; color: #e6e6ff; text-align: center; box-shadow: 0 0 40px rgba(0, 246, 255, 0.1); min-width: 320px; z-index: 20; }
.menu h1 { margin: 0 0 20px; color: #ff6ad5; text-shadow: 0 0 10px rgba(255,106,213,0.8); letter-spacing: 3px; }

.input-group input { display: block; width: 100%; padding: 12px; margin-bottom: 10px; background: rgba(0,0,0,0.5); border: 1px solid #444; color: #fff; border-radius: 4px; box-sizing: border-box; }
.input-group input:focus { outline: none; border-color: #00f6ff; box-shadow: 0 0 8px rgba(0,246,255,0.3); }
button.cyber-btn { display: block; width: 100%; margin: 8px 0; padding: 12px; background: rgba(0,0,0,0.4); border: 1px solid #00f6ff; color: #00f6ff; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: 0.2s; }
button.cyber-btn:hover { background: #00f6ff; color: #000; box-shadow: 0 0 15px #00f6ff; }

.player-list-container, .invite-container { border: 1px solid #333; background: rgba(0,0,0,0.3); border-radius: 8px; padding: 10px; height: 250px; overflow-y: auto; }
.player-list-container h3, .invite-container h3 { margin: 0 0 10px; font-size: 14px; color: #bbb; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 5px; }
ul#player-list { list-style: none; padding: 0; margin: 0; }
ul#player-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-bottom: 1px solid #222; font-size: 14px; }
ul#player-list li .name { color: #fff; font-weight: bold; }
ul#player-list li button { width: auto; margin: 0; padding: 4px 8px; font-size: 10px; }

.invite-card { background: rgba(0, 246, 255, 0.1); border: 1px solid #00f6ff; padding: 10px; margin-bottom: 10px; border-radius: 4px; text-align: center; animation: pulse 2s infinite; }
.invite-card p { margin: 0 0 10px 0; font-size: 14px; color: #fff; }
.invite-actions { display: flex; gap: 5px; justify-content: center; }
.invite-actions button { width: auto; padding: 5px 10px; font-size: 12px; margin: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 5px rgba(0,246,255,0.2); } 50% { box-shadow: 0 0 15px rgba(0,246,255,0.5); } 100% { box-shadow: 0 0 5px rgba(0,246,255,0.2); } }

#leaderboard-table, #zuma-leaderboard-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
#leaderboard-table th, #zuma-leaderboard-table th { text-align: left; color: #888; border-bottom: 1px solid #444; padding: 5px; }
#leaderboard-table td, #zuma-leaderboard-table td { text-align: left; padding: 8px 5px; border-bottom: 1px solid #222; font-weight: bold; }
#leaderboard-table tr:nth-child(1) td, #zuma-leaderboard-table tr:nth-child(1) td { color: gold; } 
#leaderboard-table tr:nth-child(2) td, #zuma-leaderboard-table tr:nth-child(2) td { color: silver; } 
#leaderboard-table tr:nth-child(3) td, #zuma-leaderboard-table tr:nth-child(3) td { color: #cd7f32; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; z-index: 100; }
.modal.active { display: flex; }

#score { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); font-size: 32px; color: #13a700; z-index: 20; text-shadow: 0 0 20px #00f6ff; }
#back-btn { position: fixed; top: 20px; left: 20px; z-index: 100; width: auto; padding: 10px 20px; background: rgba(0,0,0,0.6); border: 1px solid #ff0055; color: #ff0055; display: none; }
#role-display { position: fixed; bottom: 20px; left: 20px; color: #03A062; font-size: 12px; z-index: 20; }
#mobile-hint { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); color:rgba(255,255,255,0.3); pointer-events:none; font-size:12px; display:none; z-index: 15; }

/* JÁTÉK OVERLAY (Start / Vége) */
#game-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 50; display: none; 
    flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
#game-overlay.active { display: flex; }
#game-overlay h2 { font-size: 48px; color: #fff; text-shadow: 0 0 20px #00f6ff; margin-bottom: 10px; }
#game-overlay p { font-size: 18px; color: #ccc; margin-bottom: 30px; }