/* Jack's Street Sesh — arcade sticker look borrowed from the mascot art:
   thick navy outlines, orange fur, cream belly, gold glasses, tweed brown. */
:root {
  --navy: #0d1f33;
  --navy-2: #16304c;
  --ink: #081422;
  --orange: #f58a1f;
  --orange-2: #ffb054;
  --cream: #fdf0d3;
  --gold: #e3b04b;
  --tweed: #7a4a22;
  --good: #7be07b;
  --bad: #ff5a4e;
  --focus: #ffd84a;
  --display: "Bungee", "Impact", "Arial Black", system-ui, sans-serif;
  --body: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); overflow: hidden; }
body { font-family: var(--body); -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- overlays ---------- */
#speedlines {
  position: absolute; inset: -10%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.0) 0deg 4deg, rgba(255,255,255,.55) 4.4deg 4.8deg, rgba(255,255,255,0) 5.2deg 11deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 38%, #000 75%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 38%, #000 75%);
  mix-blend-mode: screen; transition: opacity .15s linear;
}
#flash { position: absolute; inset: 0; pointer-events: none; background: var(--cream); opacity: 0; }
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 60%, rgba(5,12,22,.55) 100%); }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.hud-brand { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: calc(14px + env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; }
.hud-brand img { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--orange), 3px 4px 0 3px var(--ink); object-fit: cover; object-position: 50% 12%; }
.hud-brand-txt { display: flex; flex-direction: column; line-height: 1; }
.hud-brand-txt b { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: .04em; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); }
.hud-brand-txt span { font-size: 15px; font-weight: 800; letter-spacing: .14em; color: var(--orange); text-shadow: 1px 1px 0 var(--ink); margin-top: 4px; }
.hud-mission { position: absolute; top: calc(76px + env(safe-area-inset-top, 0px)); left: calc(14px + env(safe-area-inset-left, 0px)); max-width: 260px; font-size: 15px; font-weight: 700; letter-spacing: .06em; background: rgba(8,20,34,.72); border-left: 4px solid var(--gold); padding: 6px 10px; border-radius: 0 8px 8px 0; color: var(--cream); }
.hud-mission em { font-style: normal; color: var(--gold); display: block; font-size: 12px; letter-spacing: .16em; }
.hud-mission .prog { color: var(--orange-2); }

.hud-score { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); text-align: right; line-height: 1; }
.hud-score .lbl { font-weight: 800; letter-spacing: .2em; font-size: 14px; color: var(--orange); text-shadow: 1px 1px 0 var(--ink); }
.hud-score .lbl.sm { font-size: 13px; color: var(--cream); opacity: .85; margin-top: 4px; }
.hud-score .val { font-family: var(--display); font-size: 40px; color: var(--cream); text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink); font-variant-numeric: tabular-nums; }
#pauseBtn { position: absolute; top: calc(92px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); pointer-events: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 3px solid var(--ink); background: var(--navy-2); color: var(--cream); font-family: var(--display); font-size: 16px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }

.hud-time { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 44px; color: var(--cream); text-shadow: 3px 3px 0 var(--ink); background: rgba(8,20,34,.55); padding: 2px 18px; border-radius: 14px; border: 3px solid var(--ink); font-variant-numeric: tabular-nums; }
.hud-time.low { color: var(--bad); animation: pulse .5s infinite alternate; }

.hud-combo { position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); top: 34%; text-align: right; opacity: 0; transform: translateX(30px); transition: opacity .15s, transform .15s; max-width: min(52vw, 440px); }
.hud-combo.on { opacity: 1; transform: none; }
.combo-mult { font-family: var(--display); font-size: 30px; color: var(--orange); text-shadow: 3px 3px 0 var(--ink); }
.combo-pts { font-family: var(--display); font-size: 26px; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); font-variant-numeric: tabular-nums; }
.combo-list { margin-top: 4px; font-weight: 800; font-size: 17px; letter-spacing: .05em; color: var(--cream); text-shadow: 1px 1px 0 var(--ink), 0 0 6px rgba(0,0,0,.6); line-height: 1.15; }
.combo-list .live { color: var(--gold); }
.hud-combo.focus .combo-mult { color: var(--focus); }
.hud-combo.bump .combo-mult { animation: bump .18s ease-out; }

.hud-balance { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); width: 220px; height: 16px; border-radius: 10px; background: linear-gradient(90deg, var(--bad), #f7c548 30%, var(--good) 45% 55%, #f7c548 70%, var(--bad)); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.hud-balance span { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 12px; letter-spacing: .25em; text-shadow: 1px 1px 0 var(--ink); }
.bal-needle { position: absolute; top: -7px; left: 50%; width: 6px; height: 24px; margin-left: -3px; background: var(--cream); border: 2px solid var(--ink); border-radius: 3px; }

.hud-bottom-left { position: absolute; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hud-tokens { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 22px; text-shadow: 2px 2px 0 var(--ink); }
.tok-ico { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2b8, var(--gold) 45%, #a86f12); border: 3px solid var(--ink); display: inline-block; }
.hud-boost { position: relative; width: 150px; height: 14px; border-radius: 8px; background: rgba(8,20,34,.7); border: 3px solid var(--ink); overflow: hidden; }
.boost-fill { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform-origin: left; }
.hud-boost span { position: absolute; inset: 0; font-size: 10px; font-weight: 800; letter-spacing: .3em; text-align: center; line-height: 9px; color: var(--ink); }
.hud-focus { font-family: var(--display); color: var(--focus); text-shadow: 2px 2px 0 var(--ink); font-size: 18px; animation: pulse .4s infinite alternate; }

.hud-keys { position: absolute; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 60vw; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--cream); opacity: .85; }
.hud-keys span { display: inline-flex; align-items: center; gap: 4px; text-shadow: 1px 1px 0 var(--ink); }
kbd { font-family: var(--body); font-weight: 800; font-size: 12px; background: var(--cream); color: var(--ink); border-radius: 5px; padding: 1px 6px; border-bottom: 3px solid #b9a77f; }

#popups { position: absolute; left: 50%; top: 30%; width: 0; height: 0; }
.pop { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--display); color: var(--cream); text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink); animation: popUp 1.1s ease-out forwards; }
.pop.big { font-size: 46px; color: var(--orange); }
.pop.mid { font-size: 30px; }
.pop.sm { font-size: 20px; color: var(--gold); }
.pop.bad { color: var(--bad); font-size: 34px; }
.pop.gap { color: #8fe3ff; font-size: 24px; }

#banner { position: absolute; left: 0; right: 0; top: 18%; text-align: center; pointer-events: none; }
.bn { display: inline-block; font-family: var(--display); font-size: clamp(32px, 7vw, 72px); color: var(--orange); text-shadow: 4px 4px 0 var(--ink), -2px -2px 0 var(--ink); animation: bannerIn 1.5s cubic-bezier(.2,1.4,.4,1) forwards; letter-spacing: .02em; }
.bn.gold { color: var(--focus); }

#toasts { position: absolute; left: 50%; top: calc(70px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--gold), 4px 5px 0 3px var(--ink); border-radius: 12px; padding: 8px 18px; text-align: center; animation: toastIn 3.2s ease forwards; }
.toast em { display: block; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .25em; color: var(--gold); }
.toast b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--cream); }
.toast.secret { box-shadow: 0 0 0 3px #b388ff, 4px 5px 0 3px var(--ink); }
.toast.secret em { color: #c9a8ff; }

/* ---------- touch ---------- */
#touch { position: absolute; inset: 0; pointer-events: none; }
#stickZone { position: absolute; left: 0; bottom: 0; width: 45%; height: 70%; pointer-events: auto; }
#camZone { position: absolute; right: 0; top: 0; width: 55%; height: 45%; pointer-events: auto; }
#stickBase { position: absolute; width: 130px; height: 130px; border-radius: 50%; left: calc(40px + env(safe-area-inset-left, 0px)); bottom: calc(46px + env(safe-area-inset-bottom, 0px)); background: rgba(13,31,51,.45); border: 3px solid rgba(253,240,211,.45); }
#stickKnob { position: absolute; width: 60px; height: 60px; left: 35px; top: 35px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.tbtns { position: absolute; right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: 300px; height: 250px; pointer-events: none; }
.tb { position: absolute; pointer-events: auto; border-radius: 50%; border: 3px solid var(--ink); font-family: var(--display); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); touch-action: none; font-size: 12px; padding: 0; }
.tb.on { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); filter: brightness(1.15); }
.tb-jump { width: 96px; height: 96px; right: 8px; bottom: 10px; background: var(--orange); font-size: 16px; }
.tb-grind { width: 66px; height: 66px; right: 112px; bottom: 6px; background: var(--gold); }
.tb-boost { width: 60px; height: 60px; right: 20px; bottom: 116px; background: #8fe3ff; font-size: 11px; }
.tb-t1, .tb-t2, .tb-t3, .tb-t4, .tb-t5 { width: 52px; height: 52px; background: var(--cream); font-size: 11px; }
.tb-t1 { right: 186px; bottom: 30px; }
.tb-t2 { right: 176px; bottom: 92px; }
.tb-t3 { right: 130px; bottom: 140px; }
.tb-t4 { right: 84px; bottom: 182px; }
.tb-t5 { right: 240px; bottom: 120px; background: #c9a8ff; }
.tb-reset { width: 54px; height: 32px; border-radius: 10px; left: calc(14px + env(safe-area-inset-left, 0px)); top: calc(140px + env(safe-area-inset-top, 0px)); background: var(--navy-2); color: var(--cream); font-size: 10px; }
body.touch .hud-keys { display: none; }
body.touch .hud-bottom-left { bottom: auto; top: calc(186px + env(safe-area-inset-top, 0px)); }
body.touch .hud-mission { max-width: 200px; font-size: 13px; }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; display: none; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.screen.show { display: flex; }
#loading { flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 40%, var(--navy-2), var(--ink) 70%); z-index: 10; }
#loadLogo { width: 140px; height: auto; filter: drop-shadow(4px 6px 0 rgba(0,0,0,.5)); animation: bob 1s ease-in-out infinite alternate; }
.load-title { font-family: var(--display); font-size: 26px; color: var(--orange); text-shadow: 3px 3px 0 var(--ink); text-align: center; }
.load-bar { width: min(280px, 70vw); height: 14px; border-radius: 8px; border: 3px solid var(--ink); background: var(--navy); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.load-msg { font-weight: 700; letter-spacing: .12em; opacity: .8; }

#menu { flex-direction: column; justify-content: center; background: linear-gradient(90deg, rgba(8,20,34,.88) 0%, rgba(8,20,34,.55) 42%, rgba(8,20,34,0) 70%); }
.menu-inner { display: flex; flex-direction: column; gap: 22px; max-width: 520px; padding-left: max(2vw, env(safe-area-inset-left, 0px)); }
.title-kicker { font-weight: 800; letter-spacing: .32em; font-size: 14px; color: var(--gold); }
.title { margin: 4px 0 0; font-family: var(--display); font-weight: 400; line-height: .88; display: flex; flex-direction: column; text-wrap: balance; }
.title span { font-size: clamp(44px, 9vw, 96px); color: var(--cream); text-shadow: 5px 5px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink); }
.title .t2 { color: var(--orange); font-size: clamp(36px, 7.4vw, 80px); transform: rotate(-3deg); transform-origin: left; margin-top: 6px; }
.menu-buttons { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.mbtn { pointer-events: auto; font-family: var(--display); font-size: 20px; text-align: left; padding: 10px 18px; border-radius: 14px; border: 3px solid var(--ink); background: var(--navy-2); color: var(--cream); box-shadow: 4px 5px 0 var(--ink); cursor: pointer; transition: transform .08s, background .12s; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mbtn small { font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: .14em; opacity: .85; }
.mbtn:hover, .mbtn:focus-visible { background: var(--tweed); transform: translateX(6px); outline: none; }
.mbtn.primary { background: var(--orange); color: var(--ink); }
.mbtn.primary:hover, .mbtn.primary:focus-visible { background: var(--orange-2); }
.mbtn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.mbtn.back { margin-top: 18px; align-self: flex-start; }
.menu-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-chip { background: rgba(8,20,34,.75); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.stat-chip b { font-family: var(--display); font-weight: 400; color: var(--orange); margin-left: 6px; font-variant-numeric: tabular-nums; }
.menu-foot { position: absolute; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); right: 16px; font-size: 12px; letter-spacing: .15em; opacity: .55; }

.panel-screen { align-items: center; justify-content: center; background: rgba(5,12,22,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow-y: auto; }
.panel { pointer-events: auto; width: min(860px, 100%); max-height: 100%; overflow-y: auto; background: var(--navy); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 0 0 4px var(--orange), 8px 10px 0 4px var(--ink); padding: 22px 26px; margin: auto; }
.panel.narrow { width: min(440px, 100%); }
.panel h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--orange); text-shadow: 3px 3px 0 var(--ink); }
.panel h3 { margin: 16px 0 6px; font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--gold); letter-spacing: .04em; }
.panel p { margin: 0 0 8px; font-size: 17px; line-height: 1.35; font-weight: 500; max-width: 65ch; }
.panel p.lead { font-size: 19px; font-weight: 700; color: var(--cream); }
.howto-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.howto-grid > div { min-width: 0; }
.ctl { width: 100%; border-collapse: collapse; font-size: 16px; }
.ctl td { padding: 5px 4px; border-bottom: 1px solid rgba(253,240,211,.12); vertical-align: top; }
.ctl td:first-child { white-space: nowrap; padding-right: 12px; }

.ch-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card { pointer-events: auto; text-align: left; border-radius: 14px; border: 3px solid var(--ink); background: var(--navy-2); color: var(--cream); padding: 12px 14px; box-shadow: 4px 5px 0 var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-family: var(--body); }
.mode-card b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--orange); }
.mode-card span { font-size: 15px; font-weight: 600; }
.mode-card em { font-style: normal; font-weight: 800; letter-spacing: .14em; color: var(--gold); font-size: 13px; }
.mode-card:hover, .mode-card:focus-visible { background: var(--tweed); outline: none; }
.mission-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mission-list li { display: flex; align-items: center; gap: 10px; background: rgba(8,20,34,.6); border-radius: 10px; padding: 8px 10px; border: 2px solid var(--ink); font-weight: 700; font-size: 16px; letter-spacing: .03em; min-width: 0; }
.mission-list li .num { font-family: var(--display); font-size: 13px; color: var(--gold); width: 34px; flex: none; }
.mission-list li .txt { flex: 1; min-width: 0; }
.mission-list li .chk { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(253,240,211,.15); flex: none; }
.mission-list li.done { background: rgba(245,138,31,.18); }
.mission-list li.done .chk { background: var(--good); }
.mission-list li .p { display: block; font-size: 13px; opacity: .7; }
.secrets-line { margin-top: 12px; font-weight: 800; letter-spacing: .12em; color: #c9a8ff; }

.set-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(253,240,211,.12); font-size: 19px; font-weight: 700; letter-spacing: .05em; }
.tog { pointer-events: auto; min-width: 74px; padding: 6px 12px; border-radius: 10px; border: 3px solid var(--ink); font-family: var(--display); font-size: 14px; background: var(--orange); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.tog.off { background: var(--navy-2); color: var(--cream); }
.tog.wide { min-width: 120px; }
.set-note { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: .7; }
.set-btns { display: flex; gap: 8px; }
.tog.danger { background: var(--bad); color: var(--ink); }

.results { text-align: center; }
.res-kicker { font-family: var(--display); font-size: 26px; color: var(--orange); text-shadow: 3px 3px 0 var(--ink); }
.res-label { margin-top: 10px; font-weight: 800; letter-spacing: .3em; font-size: 14px; color: var(--gold); }
.res-score { font-family: var(--display); font-size: 64px; color: var(--cream); text-shadow: 4px 4px 0 var(--ink); font-variant-numeric: tabular-nums; }
.res-new { font-family: var(--display); color: var(--focus); animation: pulse .4s infinite alternate; margin-bottom: 6px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 18px; text-align: left; }
.res-grid div { background: rgba(8,20,34,.6); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.res-grid b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--orange); font-variant-numeric: tabular-nums; }
.pause-stats { margin-top: 14px; font-size: 15px; font-weight: 700; letter-spacing: .08em; opacity: .85; line-height: 1.5; }

#rotateHint { display: none; position: absolute; left: 50%; bottom: 40%; transform: translateX(-50%); background: var(--navy); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--orange); padding: 10px 16px; border-radius: 12px; font-weight: 800; letter-spacing: .08em; text-align: center; pointer-events: none; }
@media (orientation: portrait) and (max-width: 700px) { body.touch.playing #rotateHint { display: block; animation: toastIn 4s forwards; } }

@media (max-width: 760px) {
  .howto-grid, .ch-modes, .mission-list { grid-template-columns: 1fr; }
  .hud-score .val { font-size: 30px; }
  .hud-brand img { width: 42px; height: 42px; }
  .hud-brand-txt b { font-size: 12px; }
  .combo-mult { font-size: 22px; }
  .combo-pts { font-size: 20px; }
  .combo-list { font-size: 14px; }
  .hud-time { font-size: 32px; }
  .menu-inner { gap: 16px; }
  .mbtn { font-size: 17px; padding: 8px 14px; }
  #menu { background: linear-gradient(180deg, rgba(8,20,34,.25) 0%, rgba(8,20,34,.85) 55%); justify-content: flex-end; }
}
@media (max-height: 520px) {
  .menu-inner { gap: 8px; max-width: 440px; }
  .title-kicker { font-size: 11px; }
  .title span { font-size: 36px; } .title .t2 { font-size: 30px; margin-top: 2px; }
  .mbtn { font-size: 14px; padding: 6px 12px; border-radius: 11px; box-shadow: 3px 4px 0 var(--ink); }
  #menu .menu-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  #menu .menu-buttons .primary { grid-column: 1 / -1; }
  .menu-stats { gap: 6px; } .stat-chip { font-size: 12px; padding: 3px 8px; }
  .menu-foot { display: none; }
  .panel { padding: 14px 18px; } .panel h2 { font-size: 26px; margin-bottom: 6px; }
  .menu-buttons { gap: 6px; }
  #menu { justify-content: center; background: linear-gradient(90deg, rgba(8,20,34,.88) 0%, rgba(8,20,34,.5) 45%, rgba(8,20,34,0) 70%); }
  .tbtns { transform: scale(.86); transform-origin: right bottom; }
  #stickBase { transform: scale(.86); transform-origin: left bottom; }
  .hud-combo { top: 26%; }
  .hud-mission { top: calc(64px + env(safe-area-inset-top, 0px)); }
}

@keyframes popUp { 0% { transform: translate(-50%, -20%) scale(.5); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -160%) scale(1); opacity: 0; } }
@keyframes bannerIn { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 18% { transform: scale(1.1) rotate(-3deg); opacity: 1; } 30% { transform: scale(1) rotate(-3deg); } 80% { opacity: 1; } 100% { transform: scale(1.05) rotate(-3deg); opacity: 0; } }
@keyframes toastIn { 0% { transform: translateY(-20px); opacity: 0; } 8% { transform: none; opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes pulse { from { opacity: 1; } to { opacity: .55; } }
@keyframes bump { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .pop, .bn, .toast, #loadLogo { animation-duration: .01s !important; } }
