* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0d09; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; touch-action: none; }
#app { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; }
#game { display: block; background: #131a12; box-shadow: 0 0 40px rgba(0,0,0,0.7); touch-action: none; }

#hud { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; pointer-events: none; z-index: 5; }
.hud-item { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 6px 10px; background: rgba(10,14,8,0.55); border: 1px solid rgba(190,255,150,0.12); border-radius: 12px; backdrop-filter: blur(4px); }
.hud-item .label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #b9e6a0; opacity: 0.85; }
.hud-item span:last-child { font-size: 17px; font-weight: 800; color: #f2ffe8; }
#ammo { letter-spacing: 2px; font-size: 14px !important; color: #ffd86b !important; }

#banner { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%) scale(1); font-size: 40px; font-weight: 900; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.85); pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 6; white-space: nowrap; }
#banner.hidden { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
#banner.good { color: #b6ff6b; } #banner.bad { color: #ff7a6b; } #banner.gold { color: #ffd86b; }

#hint { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 5; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #16260f; background: linear-gradient(180deg, #d8ffb0, #9ce86b); border-radius: 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.4); white-space: nowrap; }
#hint.hidden { display: none; }

#start-screen { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 24px; background: radial-gradient(circle at 50% 30%, rgba(28,44,20,0.92), rgba(8,12,6,0.97)); text-align: center; color: #eaf7dd; }
#start-screen.hidden { display: none; }
#start-screen h1 { font-size: 40px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 4px 20px rgba(0,0,0,0.6); }
#start-screen .acc { color: #9ce86b; }
.tagline { font-size: 15px; opacity: 0.9; }
#name-input { width: 240px; padding: 13px 16px; font-size: 17px; text-align: center; color: #16260f; background: #eaf7dd; border: none; border-radius: 14px; font-weight: 700; }
#name-input::placeholder { color: #7a9464; font-weight: 500; }
.stat-row { display: flex; gap: 14px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(255,255,255,0.08); padding: 10px 18px; border-radius: 14px; }
.s-label { font-size: 11px; color: #b9e6a0; opacity: 0.8; }
.stat span:last-child { font-size: 24px; font-weight: 800; }
#start-screen button { padding: 14px 46px; font-size: 20px; font-weight: 800; color: #16260f; background: linear-gradient(180deg, #b6ff6b, #6fc93a); border: none; border-radius: 40px; cursor: pointer; box-shadow: 0 8px 24px rgba(111,201,58,0.4); }
#start-screen button:active { transform: scale(0.95); }
#start-screen button.secondary { background: rgba(255,255,255,0.12); color: #eaf7dd; box-shadow: none; padding: 12px 32px; font-size: 16px; }
#start-screen button.link { background: none; box-shadow: none; color: #a8cc8f; font-size: 13px; padding: 4px; text-decoration: underline; }
#name-box, #welcome-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#welcome-box.hidden, #name-box.hidden { display: none; }
.hint2 { font-size: 12px; opacity: 0.6; max-width: 330px; line-height: 1.45; }
