* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #062a73; color: #fff; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overscroll-behavior: none; }
body { background: radial-gradient(circle at 30% 20%, #1466e0 0%, #062a73 55%, #031a4d 100%); }
#app { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; display: none; overflow-y: auto; padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); }
.screen.on { display: block; }
.hidden { display: none !important; }
.center { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 0; }
.logo { font-size: 30px; font-weight: 900; color: #ffe45c; letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
.sub { font-size: 16px; font-weight: 700; margin-bottom: 14px; opacity: 0.9; }
.h1 { font-size: 26px; font-weight: 900; margin: 8px 0; }
.h2 { font-size: 20px; font-weight: 800; margin: 6px 0; }
.giant { font-size: 72px; font-weight: 900; color: #ffe45c; line-height: 1; margin: 6px 0; }
p { font-size: 15px; opacity: 0.9; max-width: 360px; }
.pixy { width: 96px; height: auto; margin-bottom: 4px; }
.hero { width: 150px; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35)); }
.lbl { margin-top: 6px; font-weight: 800; font-size: 17px; }
input[type=tel], input[type=text] { width: 100%; max-width: 340px; font-size: 26px; font-weight: 800; padding: 12px 16px; border-radius: 16px; border: 3px solid #fff; margin: 8px 0 12px; text-align: center; color: #062a73; letter-spacing: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; max-width: 360px; font-size: 13px; line-height: 1.35; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 10px; }
.consent input { width: 24px; height: 24px; flex: none; margin: 0; }
.err { color: #ffb3b3; font-weight: 800; min-height: 22px; margin: 8px 0; font-size: 15px; }
.btn { appearance: none; border: 0; border-radius: 40px; padding: 12px 28px; font-size: 17px; font-weight: 900; color: #062a73; background: #fff; margin: 6px; box-shadow: 0 4px 0 rgba(0,0,0,0.3); }
.btn.big { font-size: 22px; padding: 14px 44px; background: #ffe45c; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); box-shadow: none; font-size: 15px; }
.btn:active { transform: translateY(2px); }
.pill { display: inline-block; background: #f26a21; padding: 8px 22px; border-radius: 30px; font-weight: 900; font-size: 20px; margin: 10px 0; }
.tips { font-size: 14px; line-height: 1.5; opacity: 0.9; margin: 8px 0 12px; }
#pickGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 380px; margin: 10px 0; }
.pick { border-radius: 20px; border: 4px solid; padding: 8px; background: rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; }
.pick img { width: 96px; height: 96px; object-fit: contain; }
.pick .nm { font-weight: 900; font-size: 19px; margin-top: 4px; }
.pick .st { font-size: 12px; opacity: 0.85; }
.pick.taken { filter: grayscale(1); opacity: 0.4; }
.pick:active { transform: scale(0.96); }
@media (orientation: landscape) and (max-height: 500px) {
  #pickGrid { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
  .hero { width: 100px; }
  .giant { font-size: 56px; }
}
.spin { width: 46px; height: 46px; border: 6px solid rgba(255,255,255,0.25); border-top-color: #ffe45c; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* play */
#s-play { padding: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
#playTop { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 8px; padding: 6px max(12px, env(safe-area-inset-left)); background: rgba(0,0,0,0.25); font-weight: 900; z-index: 2; }
#playImg { width: 44px; height: 44px; object-fit: contain; }
#playName { font-size: 20px; }
.grow { flex: 1; }
.lbls { font-size: 13px; opacity: 0.8; }
#playScore { font-size: 34px; color: #ffe45c; min-width: 70px; text-align: right; }
#playTime { font-size: 18px; background: rgba(0,0,0,0.3); padding: 4px 12px; border-radius: 20px; margin-left: 8px; }
#pads { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; display: flex; }
#joyZone, #bashZone { flex: 1; position: relative; touch-action: none; }
#joyBase { position: absolute; width: 170px; height: 170px; margin: -85px 0 0 -85px; left: 50%; top: 55%; border-radius: 50%; background: rgba(255,255,255,0.14); border: 4px solid rgba(255,255,255,0.55); }
#joyKnob { position: absolute; width: 82px; height: 82px; left: 40px; top: 40px; border-radius: 50%; background: #fff; box-shadow: 0 5px 0 rgba(0,0,0,0.3); }
.zoneHint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-weight: 900; opacity: 0.5; font-size: 14px; letter-spacing: 2px; }
#bashBtn { position: absolute; left: 26%; top: 30%; width: 120px; height: 120px; margin: -60px 0 0 -60px; font-size: 26px !important; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8fb8, #e3207a 60%, #a3105a); box-shadow: 0 8px 0 rgba(0,0,0,0.35), inset 0 -6px 0 rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 36px; letter-spacing: 1px; }
#bashBtn.down { transform: translateY(5px) scale(0.97); box-shadow: 0 3px 0 rgba(0,0,0,0.35); }
#bashBtn.cool { filter: saturate(0.4) brightness(0.85); }
#bashBtn svg { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); transform: rotate(-90deg); }
.ringBg { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 5; }
.ring { fill: none; stroke: #ffe45c; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 0; }
#bashBtn span { position: relative; text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
#rotateHint { position: absolute; left: 0; right: 0; top: 60px; text-align: center; font-size: 13px; background: rgba(255,228,92,0.9); color: #062a73; font-weight: 800; padding: 4px; display: none; z-index: 3; }
@media (orientation: portrait) {
  #rotateHint { display: block; }
  #pads { top: 90px; }
  #joyBase { top: 60%; }
  #bashBtn { left: 50%; top: 26%; width: 104px; height: 104px; margin: -52px 0 0 -52px; font-size: 21px !important; }
  #jumpBtn { left: 50%; top: 66%; width: 140px; height: 140px; margin: -70px 0 0 -70px; font-size: 24px; }
}
.fxo { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; font-weight: 900; pointer-events: none; z-index: 5; }
.fxo div { font-size: 64px; text-shadow: 0 4px 0 rgba(0,0,0,0.35); }
.fxo.on { display: flex; animation: fxpop 0.3s ease-out; }
#fxBau { background: rgba(120,200,40,0.45); color: #eaffc0; }
#fxDizzy { background: rgba(255,210,40,0.35); color: #fff; }
#fxIntro { background: rgba(43,29,110,0.55); }
@keyframes fxpop { from { transform: scale(1.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.flash { animation: flash 0.25s; }
@keyframes flash { 50% { filter: brightness(1.5); } }
#offline { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); background: #e3203d; padding: 6px 16px; border-radius: 20px; font-weight: 800; z-index: 20; }
@media (orientation: landscape) and (max-height: 500px) {
  #s-join .pixy, #s-queue .pixy { display: none; }
  .logo { font-size: 24px; }
  .sub { margin-bottom: 4px; }
  input[type=tel], input[type=text] { font-size: 22px; padding: 8px 14px; margin: 4px 0 8px; }
  .btn.big { padding: 10px 36px; font-size: 20px; }
  .tips { font-size: 13px; margin: 4px 0 6px; }
  .h2 { font-size: 18px; margin: 2px 0; }
  .center { padding: 8px 0; }
  .pill { margin: 6px 0; }
}
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
@media (orientation: landscape) and (max-height: 500px) {
  #s-result p { margin: 4px 0; }
  #s-result .hero, #s-wait .hero { width: 80px; }
}
.note { font-size: 13px; opacity: 0.75; margin: -6px 0 6px; }
.dim { opacity: 0.8; font-size: 16px; }
.wordmark { width: 280px; max-width: 80vw; height: auto; margin: 0 0 6px; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35)); }
@media (orientation: landscape) and (max-height: 500px) { .wordmark { width: 200px; } }
#jumpBtn { position: absolute; left: 63%; top: 63%; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b8ffd9, #2fd17a 60%, #138a4f); box-shadow: 0 8px 0 rgba(0,0,0,0.35), inset 0 -6px 0 rgba(0,0,0,0.15); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 30px; letter-spacing: 1px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
#jumpBtn small { font-size: 11px; font-weight: 800; letter-spacing: 0; line-height: 1.15; opacity: 0.9; text-align: center; margin-top: 2px; }
#jumpBtn.down { transform: translateY(5px) scale(0.97); box-shadow: 0 3px 0 rgba(0,0,0,0.35); }
@media (orientation: portrait) {
  #bashBtn { left: 50%; top: 24%; width: 100px; height: 100px; margin: -50px 0 0 -50px; font-size: 20px !important; }
  #jumpBtn { left: 50%; top: 64%; width: 136px; height: 136px; margin: -68px 0 0 -68px; font-size: 22px; }
}

/* Gacha Catch: DORONG (biru) kecil di atas, LOMPAT (emas) besar di bawah, sama seperti tata letak Bounce and Bash */
#bashBtn { background: radial-gradient(circle at 35% 30%, #8fe8ff, #1e8fff 60%, #0a4fc9) !important; }
#jumpBtn { background: radial-gradient(circle at 35% 30%, #fff3b0, #ffc83a 60%, #d48a00) !important; color: #5a3200 !important; text-shadow: 0 2px 0 rgba(255,255,255,0.4) !important; }
#fxBau { background: rgba(200,30,50,0.55) !important; color: #fff !important; }
.pixy { width: 120px; border-radius: 26px; }
