* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; -webkit-user-select: none; touch-action: none; }
body { background-color: #000; font-family: 'Fredoka One', cursive, sans-serif; overflow: hidden; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; }
#game-container { position: relative; width: 100%; height: 100%; background: linear-gradient(135deg, #1a237e, #4a148c); overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; }
#ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
#top-bar { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: center; pointer-events: auto; z-index: 10; }
.stat-box { background: linear-gradient(180deg, #fff 0%, #eee 100%); border: 4px solid #fff; border-radius: 30px; padding: 10px 40px; font-size: 32px; color: #3949ab; box-shadow: 0 8px 0 #283593, 0 15px 25px rgba(0,0,0,0.3); }

/* Mobile Controls */
#mobile-controls { position: absolute; bottom: 20px; left: 0; width: 100%; display: flex; justify-content: center; gap: 15px; pointer-events: auto; padding: 0 20px; }
.ctrl-btn { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 2px solid #fff; color: #fff; font-size: 30px; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); box-shadow: 0 5px 0 rgba(0,0,0,0.3); cursor: pointer; }
.ctrl-btn:active { transform: translateY(5px); box-shadow: 0 0px 0 rgba(0,0,0,0.3); background: rgba(255,255,255,0.4); }

.screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 35, 126, 0.8); backdrop-filter: blur(15px); display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: auto; z-index: 100; }
.hidden { display: none !important; }
.logo-box { font-size: 100px; margin-bottom: 20px; filter: drop-shadow(0 10px 0 #ffeb3b); animation: float 2s infinite alternate; }
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }
h1 { font-size: 80px; background: linear-gradient(180deg, #ffffff 0%, #00e5ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 0 #00b0ff); margin-bottom: 10px; text-align: center; }
p { color: #fff; font-size: 32px; margin-bottom: 40px; background: rgba(255,255,255,0.2); padding: 10px 30px; border-radius: 20px; }
.ui-button { font-family: 'Fredoka One', cursive; background: linear-gradient(180deg, #00e5ff 0%, #00b0ff 100%); color: white; padding: 20px 70px; font-size: 48px; border-radius: 50px; border: 4px solid #b2ebf2; cursor: pointer; box-shadow: 0 12px 0 #0091ea, 0 20px 30px rgba(0,0,0,0.4); transition: all 0.1s; }
.ui-button:active { transform: translateY(12px) !important; box-shadow: 0 0px 0 #0091ea, 0 5px 10px rgba(0,0,0,0.4); }

@media (max-width: 768px) { h1 { font-size: 56px; } .stat-box { font-size: 24px; padding: 5px 15px; } .ctrl-btn { width: 60px; height: 60px; font-size: 24px; } }
@media (min-width: 769px) { .mobile-only { display: none !important; } }
/* CG-batch-overlay-fix */
#game-canvas, canvas#game-canvas { touch-action: none; }
#game-ui.screen,
#game-ui.screen.active { pointer-events: none !important; }
