* { 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: radial-gradient(circle at center, #8b4513, #3e2723); 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: space-between; 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 25px; font-size: 32px; color: #d32f2f; box-shadow: 0 8px 0 #b71c1c, 0 15px 25px rgba(0,0,0,0.3); }
.screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); 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 #b71c1c); animation: bounceFloat 2s infinite alternate; }
@keyframes bounceFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } }
h1 { font-size: 80px; background: linear-gradient(180deg, #ffcdd2 0%, #f44336 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 0 #b71c1c); 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, #ff5252 0%, #d32f2f 100%); color: white; padding: 20px 70px; font-size: 48px; border-radius: 50px; border: 4px solid #ffcdd2; cursor: pointer; box-shadow: 0 12px 0 #b71c1c, 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 #b71c1c, 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; } }
/* CG-batch-overlay-fix */
#game-canvas, canvas#game-canvas { touch-action: none; }
#game-ui.screen,
#game-ui.screen.active { pointer-events: none !important; }
