* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fb4dc; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #1c2430; touch-action: none; user-select: none; -webkit-user-select: none; }
#app canvas { display: block; }

#menu {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center; overflow-y: auto;
  background: linear-gradient(#8fb4dcee, #f2f7f8ee 50%, #8fb4dcee);
}
#menu[hidden] { display: none; }
h1 { font-size: clamp(40px, 9vw, 84px); margin: 0; letter-spacing: 2px; color: #3a3a3a; text-shadow: 0 4px 0 #8c8c8c; }
.sub { margin: 6px 0 22px; opacity: .75; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
button {
  font: 700 20px system-ui, sans-serif; padding: 16px 28px; border-radius: 14px; border: 0; cursor: pointer;
  background: #4f4f4f; color: #fff; box-shadow: 0 5px 0 #2c2c2c;
}
button:active { transform: translateY(3px); box-shadow: 0 2px 0 #2c2c2c; }
button:disabled { opacity: .45; cursor: default; }
button.secondary { background: #8c8c8c; box-shadow: 0 5px 0 #5d5d5d; }
.help { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; max-width: 820px; margin-top: 24px; }
.help > div { flex: 1 1 300px; background: #ffffffaa; border-radius: 12px; padding: 10px 16px; text-align: left; font-size: 15px; }
.help h3 { margin: 4px 0; }
.goal { margin-top: 18px; }
#load-error { color: #b00; font-weight: 700; }

#touch-ui[hidden], #touch-ui.off { display: none; }
#stick { position: fixed; left: 40px; bottom: 60px; width: 120px; height: 120px; border-radius: 50%; background: #ffffff44; border: 2px solid #fff8; opacity: .35; pointer-events: none; }
#knob { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: #fffc; }
#touch-ui button { position: fixed; padding: 0; font-size: 16px; opacity: .85; }
#btn-jump { right: 28px; bottom: 50px; width: 96px; height: 96px; border-radius: 50%; }
#btn-view { right: 140px; bottom: 40px; width: 70px; height: 50px; }
#btn-respawn { right: 30px; top: 70px; width: 50px; height: 50px; }
