* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
body { font-family: 'Lato', system-ui, sans-serif; overflow: hidden; background: #1a202c; touch-action: none; color: #fff; }
#game-root { position: relative; width: 100vw; height: 100vh; }
canvas { display: block; width: 100%; height: 100%; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15, 20, 30, 0.85); backdrop-filter: blur(8px); z-index: 10; transition: opacity 0.3s; }
.hidden { opacity: 0; pointer-events: none; }

h1 { font-family: 'Cinzel', serif; font-size: 4rem; margin-bottom: 1rem; text-align: center; color: #fbbf24; text-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); letter-spacing: 2px; }
p { font-size: 1.2rem; margin-bottom: 2.5rem; text-align: center; max-width: 500px; color: #e2e8f0; line-height: 1.6; }

.ui-btn { font-family: 'Cinzel', serif; padding: 15px 50px; font-size: 1.6rem; font-weight: bold; color: #1a202c; background: linear-gradient(180deg, #fbbf24, #d97706); border: 2px solid #fff; border-radius: 8px; cursor: pointer; box-shadow: 0 6px 0 #92400e, 0 15px 20px rgba(0,0,0,0.4); transition: all 0.1s; text-transform: uppercase; }
.ui-btn:active { transform: translateY(6px); box-shadow: 0 0px 0 #92400e, 0 5px 10px rgba(0,0,0,0.4); }

#hud { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none; }
.hud-pill { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); padding: 10px 20px; border-radius: 8px; border: 1px solid rgba(251, 191, 36, 0.4); font-size: 1.2rem; color: #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hud-pill strong { color: #fbbf24; font-size: 1.4rem; margin-left: 5px; }

#tower-bar { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 12px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1); width: 95%; max-width: 600px; }
.tbtn { flex: 1; padding: 10px 5px; font-family: 'Lato', sans-serif; font-size: 1rem; font-weight: bold; color: #fff; background: #2d3748; border: 2px solid #4a5568; border-radius: 8px; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tbtn span { font-size: 0.8rem; color: #fbbf24; margin-top: 4px; }
.tbtn.selected { background: #4a5568; border-color: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,0.5); }
.tbtn.wave { background: #e53e3e; border-color: #c53030; font-family: 'Cinzel', serif; font-size: 1.2rem; }
.tbtn.wave:active { background: #c53030; }
