* { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; height:100%; overflow:hidden; background:#1a0533; font-family:'Segoe UI',sans-serif; }
#c { display:block; width:100vw; height:100vh; touch-action:none; position:fixed; top:0; left:0; }

/* HUD */
#hud { position:fixed; top:0; left:0; right:0; z-index:10; pointer-events:none; padding:12px 16px; display:flex; justify-content:space-between; align-items:center; }
#profile { display:flex; align-items:center; gap:10px; background:rgba(0,0,0,0.35); backdrop-filter:blur(8px); border-radius:40px; padding:6px 14px 6px 6px; border:1px solid rgba(255,255,255,0.15); }
#profilePic { width:36px; height:36px; border-radius:50%; border:2px solid #fff; object-fit:cover; background:#7c3aed; display:flex; align-items:center; justify-content:center; overflow:hidden; }
#profilePic img { width:100%; height:100%; object-fit:cover; }
#profileName { color:#fff; font-size:13px; font-weight:600; max-width:120px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#scoreBox { background:rgba(0,0,0,0.35); backdrop-filter:blur(8px); border-radius:40px; padding:6px 18px; border:1px solid rgba(255,255,255,0.15); text-align:right; }
#scoreLabel { color:rgba(255,255,255,0.6); font-size:10px; letter-spacing:2px; text-transform:uppercase; }
#scoreVal { color:#ffd700; font-size:22px; font-weight:700; line-height:1; }

/* Lives */
#lives { position:fixed; top:72px; left:16px; z-index:10; display:flex; gap:6px; pointer-events:none; }
.heart { font-size:20px; transition:transform 0.3s; }
.heart.lost { opacity:0.25; transform:scale(0.8); }

/* Weather */
#weather { position:fixed; top:72px; right:16px; z-index:10; font-size:22px; pointer-events:none; }

/* Screens */
.screen { position:fixed; inset:0; z-index:20; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:32px; }
#startScreen { background:linear-gradient(160deg,#1a0533 0%,#0f2060 100%); }
#gameoverScreen { background:rgba(10,0,20,0.92); display:none; }

.game-logo { font-size:clamp(38px,9vw,64px); font-weight:900; color:#fff; text-align:center; line-height:1; letter-spacing:-1px; }
.game-logo span { color:#ffd700; }
.tagline { color:rgba(255,255,255,0.55); font-size:14px; margin-top:8px; text-align:center; font-style:italic; }

.controls-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:28px 0; width:100%; max-width:320px; }
.ctrl { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); border-radius:12px; padding:12px; text-align:center; }
.ctrl-icon { font-size:22px; }
.ctrl-label { color:rgba(255,255,255,0.7); font-size:11px; margin-top:4px; letter-spacing:0.5px; }

.btn-play { background:linear-gradient(135deg,#7c3aed,#db2777); color:#fff; border:none; border-radius:50px; font-size:18px; font-weight:700; padding:16px 48px; cursor:pointer; letter-spacing:1px; box-shadow:0 8px 32px rgba(124,58,237,0.5); transition:transform 0.15s; pointer-events:all; }
.btn-play:active { transform:scale(0.96); }

.go-title { font-size:48px; font-weight:900; color:#fff; }
.go-score { font-size:64px; font-weight:900; color:#ffd700; margin:8px 0; }
.go-label { color:rgba(255,255,255,0.5); font-size:13px; letter-spacing:2px; text-transform:uppercase; }
.go-best { color:rgba(255,255,255,0.7); font-size:18px; margin:8px 0 24px; }

/* Jump indicator */
#jumpHint { position:fixed; bottom:32px; left:50%; transform:translateX(-50%); z-index:10; color:rgba(255,255,255,0.4); font-size:12px; letter-spacing:2px; text-transform:uppercase; pointer-events:none; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:0.4} 50%{opacity:0.9} }

/* Coin popup */
#coinPopup { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:15; color:#ffd700; font-size:28px; font-weight:900; pointer-events:none; opacity:0; transition:opacity 0.2s; }