body { margin: 0; background: #000; display: flex; justify-content: center; align-items: center; height: 100vh; font-family: 'Segoe UI', sans-serif; overflow: hidden; color: white; touch-action: none; }
#game-container { position: relative; border: 4px solid #333; box-shadow: 0 0 50px rgba(0,0,0,0.9); width: 400px; height: 600px; max-width: 100vw; max-height: 100vh; transition: all 0.3s; }
#game-container.invincible { border-color: #00d4ff; box-shadow: 0 0 40px #00d4ff; }
canvas { background: #111; display: block; cursor: none; width: 100%; height: 100%; }

.overlay-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; z-index: 10; }

.legend-leader-container { display: flex; gap: 15px; align-items: start; margin: 15px 0; flex-wrap: wrap; justify-content: center; }
.legend { display: grid; grid-template-columns: 40px 1fr; gap: 8px; text-align: left; max-width: 180px; }
.legend img { width: 28px; height: 28px; object-fit: contain; background: #222; border-radius: 5px; padding: 2px; }
.legend-text b { font-size: 10px; color: #3498db; display: block; }
.legend-text span { font-size: 8px; color: #aaa; }

.leaderboard { text-align: left; min-width: 220px; background: rgba(255,255,255,0.05); padding: 12px; border-radius: 10px; border: 1px solid #334155; }
.leaderboard h3 { color: #f1c40f; margin: 0 0 8px 0; font-size: 14px; text-transform: uppercase; border-bottom: 1px solid #444; }

.leader-entry { 
    display: grid; 
    grid-template-columns: 30px 1fr 60px; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 13px; 
    color: #eee; 
    margin-bottom: 5px; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 2px;
}
.leader-rank { color: #555; }
.leader-name { color: #fbbf24; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 5px; }
.leader-score { text-align: right; color: #fff; }

h1 { font-size: 32px; margin: 0; color: #3498db; text-transform: uppercase; letter-spacing: 3px; }
#auth-status { font-family: monospace; font-size: 10px; color: #666; margin-top: -5px; margin-bottom: 10px; }
button { padding: 12px 30px; font-size: 18px; cursor: pointer; background: #3498db; color: white; border: none; border-radius: 5px; font-weight: bold; margin-top: 10px; }
#version-tag { position: absolute; bottom: 5px; right: 10px; font-size: 10px; color: #444; font-family: monospace; }
.stat-label { font-size: 18px; color: #aaa; margin: 5px 0; }
.stat-value { color: #fff; font-weight: bold; }
