* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { background: radial-gradient(circle at 50% 30%, #4f6d8f 0%, #22324a 70%, #141e2e 100%); color: #fff; touch-action: none; user-select: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
#hud #restart { margin-left: auto; }
.pill { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; }
.btn { pointer-events: auto; cursor: pointer; border: none; color: #fff; background: #ff7043; box-shadow: 0 4px 0 #c63f17; transition: transform 0.08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c63f17; }
#hint { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.35); padding: 8px 14px; border-radius: 10px; font-size: 13px; text-align: center; max-width: 92vw; pointer-events: none; transition: opacity 0.6s; }
#overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 16, 28, 0.55); transition: opacity 0.3s; }
#overlay.hidden { opacity: 0; pointer-events: none; }
.card { background: #fff; color: #263238; border-radius: 20px; padding: 28px 36px; text-align: center; min-width: 260px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.card h2 { font-size: 28px; margin-bottom: 8px; }
.card p { margin-bottom: 20px; color: #546e7a; }
.btn.big { font-size: 18px; font-weight: 800; padding: 12px 32px; border-radius: 14px; }
