:root {
  --navy: #0b1a36;
  --card: rgba(10, 24, 52, 0.62);
  --card-2: rgba(12, 30, 66, 0.86);
  --line: rgba(140, 210, 255, 0.28);
  --cyan: #5fe0ff;
  --blue: #1e8cff;
  --gold: #ffcf4a;
  --red: #ff4d5e;
  --green: #4fd18b;
  --text: #f2f7ff;
  --muted: #a9bddb;
  --font-display: 'Baloo 2', 'Arial Black', 'Segoe UI Black', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #cfe0f3; color: var(--text); font-family: var(--font); user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden, [hidden] { display: none !important; }

/* ---------- telas ---------- */
.screen { position: fixed; inset: 0; display: none; z-index: 20; }
.screen.show { display: flex; }
.modal { align-items: center; justify-content: center; background: rgba(6, 14, 32, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px; z-index: 30; }
.modal.top { z-index: 40; }
.panel { background: linear-gradient(180deg, rgba(16, 38, 82, 0.96), rgba(8, 20, 46, 0.97)); border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 10, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 10px; }
.panel.narrow { width: min(380px, 100%); text-align: center; }
.panel.wide { width: min(860px, 100%); }
.panel h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: 0.5px; text-align: center; background: linear-gradient(180deg, #fff, #9fe6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel h3 { margin: 10px 0 4px; font-size: 13px; letter-spacing: 1.5px; color: var(--cyan); }
.panel p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.muted { color: var(--muted); font-size: 12px; text-align: center; }

.btn { display: block; width: 100%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); padding: 13px 18px; border-radius: 14px; font-weight: 800; letter-spacing: 1.2px; font-size: 15px; transition: transform 0.12s, background 0.15s, box-shadow 0.15s; }
.btn:hover, .btn:focus-visible { background: rgba(120, 200, 255, 0.16); transform: translateY(-1px); outline: none; box-shadow: 0 0 0 2px rgba(95, 224, 255, 0.35); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary { background: linear-gradient(180deg, #38b6ff, #1565e0); border-color: rgba(160, 230, 255, 0.6); box-shadow: 0 6px 22px rgba(30, 140, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); text-shadow: 0 1px 2px rgba(0, 30, 90, 0.5); }
.btn.primary:hover { background: linear-gradient(180deg, #52c3ff, #1d72f0); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: linear-gradient(180deg, #ff6b78, #d92c42); border-color: rgba(255, 180, 190, 0.6); }
.btn.small { width: auto; padding: 8px 14px; font-size: 12px; }

/* ---------- carregando ---------- */
#loading { align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #2a5aa8, #0b1a36); z-index: 50; }
body.ready #loading { display: none; }
.load-box { text-align: center; font-weight: 700; letter-spacing: 1px; }
.spinner { width: 46px; height: 46px; margin: 0 auto 14px; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#nogl { align-items: center; justify-content: center; background: #0b1a36; z-index: 60; }

/* ---------- menu ---------- */
#menu { align-items: stretch; justify-content: flex-start; background: linear-gradient(90deg, rgba(8, 22, 52, 0.72) 0%, rgba(8, 22, 52, 0.45) 34%, rgba(8, 22, 52, 0) 58%); }
.menu-col { width: min(430px, 100%); padding: calc(28px + var(--safe-t)) 28px 28px calc(36px + var(--safe-l)); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.logo { position: relative; line-height: 0.82; filter: drop-shadow(0 6px 18px rgba(0, 20, 70, 0.55)); }
.logo-peaks { width: 170px; height: auto; display: block; margin: 0 0 -10px 4px; }
.logo-1, .logo-2 { font-family: var(--font-display); font-weight: 800; font-style: italic; letter-spacing: 0.5px; transform: skewX(-6deg); }
.logo-1 { font-size: 64px; color: #fff; -webkit-text-stroke: 2px #0d3d8f; }
.logo-2 { font-size: 54px; background: linear-gradient(180deg, #a9f0ff 10%, #2ea8ff 55%, #1559d6 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px rgba(5, 30, 80, 0.7); }
.logo-tag { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 6px; color: var(--cyan); text-transform: uppercase; line-height: 1; }
.menu-btns { display: flex; flex-direction: column; gap: 10px; }
.menu-btns .btn.primary { font-size: 22px; padding: 16px; font-family: var(--font-display); letter-spacing: 3px; }
.menu-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.menu-stats span { display: block; font-size: 10px; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; }
.menu-stats b { font-family: var(--font-display); font-size: 22px; }
.menu-stats .lvl { grid-column: 1 / -1; }
.menu-stats .lvl span b { font-size: 14px; color: var(--cyan); }
.lvl-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 6px 0 4px; }
.lvl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 8px; }
.menu-stats small { color: var(--muted); font-size: 11px; }
.menu-foot { position: absolute; bottom: calc(14px + var(--safe-b)); right: 20px; font-size: 12px; color: rgba(20, 40, 80, 0.75); font-weight: 600; background: rgba(255, 255, 255, 0.55); padding: 6px 12px; border-radius: 20px; }
body.touch .menu-foot { display: none; }

/* ---------- configurações ---------- */
.set-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.set-row label { font-size: 13px; font-weight: 700; color: #dbe8ff; }
.set-row output { font-size: 12px; color: var(--cyan); min-width: 40px; text-align: right; font-weight: 700; }
.set-row .seg, .set-row > button { grid-column: 2 / 4; }
.seg { display: flex; background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.8px; color: var(--muted); }
.seg button.on { background: linear-gradient(180deg, #38b6ff, #1565e0); color: #fff; box-shadow: 0 2px 10px rgba(30, 140, 255, 0.4); }
input[type=range] { width: 100%; accent-color: var(--cyan); }

/* ---------- como jogar ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.how-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.how-grid li { margin-bottom: 6px; }
.how-grid b { color: #fff; }
.c-cyan { color: var(--cyan) !important; } .c-gold { color: var(--gold) !important; } .c-green { color: var(--green) !important; }
.keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.keys td { padding: 5px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); }
.keys td:first-child { white-space: nowrap; color: #fff; }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; margin: 0 2px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-bottom-width: 2px; font: 700 11px var(--font); text-align: center; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.hud-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 20, 60, 0.25); }
.lbl { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #bfe9ff; }
.big { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: 0.5px; text-shadow: 0 2px 8px rgba(0, 30, 90, 0.4); transition: transform 0.15s; }
.big.bump { transform: scale(1.12); color: var(--gold); }
.hud-tl { top: calc(14px + var(--safe-t)); left: calc(14px + var(--safe-l)); min-width: 170px; }
.xp-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--font-display); font-size: 20px; color: var(--cyan); }
.xp-row .lbl-xp { font-size: 12px; font-weight: 800; letter-spacing: 1px; font-family: var(--font); }
.ico-xp { width: 16px; height: 16px; fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
.gain { font-size: 15px; color: #fff; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.gain.show { opacity: 1; transform: none; }
.hud-tc { position: absolute; top: calc(16px + var(--safe-t)); left: 50%; transform: translateX(-50%); text-align: center; text-shadow: 0 1px 6px rgba(0, 30, 80, 0.55); }
#hDist { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; color: #fff; }
#hZone { font-size: 10px; letter-spacing: 3px; font-weight: 800; color: #e8f6ff; margin-top: 2px; }
.hud-tr { top: calc(14px + var(--safe-t)); right: calc(70px + var(--safe-r)); width: 210px; }
.flow-head { display: flex; justify-content: space-between; align-items: baseline; }
#hMult { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--gold); text-shadow: 0 0 12px rgba(255, 200, 60, 0.45); }
.flow-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-top: 6px; }
.flow-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #1e8cff, #5fe0ff 60%, #ffe27a); border-radius: 10px; box-shadow: 0 0 10px rgba(95, 224, 255, 0.7); transition: width 0.12s linear; }
.hud-tr.max .flow-bar i { animation: flowmax 0.6s ease-in-out infinite alternate; }
@keyframes flowmax { from { filter: brightness(1); } to { filter: brightness(1.5); } }
.chain { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold); margin-top: 5px; min-height: 14px; }
.hud-bl { bottom: calc(14px + var(--safe-b)); left: calc(14px + var(--safe-l)); width: 150px; height: 92px; padding: 6px 10px; }
.speedo { width: 130px; height: 76px; position: absolute; left: 10px; top: 6px; }
.speedo path { fill: none; stroke-width: 9; stroke-linecap: round; }
.speedo-bg { stroke: rgba(255, 255, 255, 0.14); }
.speedo-fg { stroke: url(#none); stroke: var(--cyan); stroke-dasharray: 151; stroke-dashoffset: 151; transition: stroke-dashoffset 0.1s linear; filter: drop-shadow(0 0 4px rgba(95, 224, 255, 0.8)); }
.speed-txt { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; }
.speed-txt b { font-family: var(--font-display); font-size: 32px; line-height: 1; display: block; }
.speed-txt span { font-size: 10px; letter-spacing: 2px; font-weight: 800; color: var(--muted); }
.hud-br { bottom: calc(14px + var(--safe-b)); right: calc(14px + var(--safe-r)); display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.ico-tree { width: 30px; height: 30px; fill: var(--green); filter: drop-shadow(0 0 4px rgba(79, 209, 139, 0.5)); }
#hHits { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.pips { display: flex; gap: 5px; }
.pips i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); }
.pips i.on { background: var(--red); border-color: #ffc2c8; box-shadow: 0 0 10px var(--red); }
.hud-br.warn { border-color: rgba(255, 90, 100, 0.7); }
.hud-br.warn .ico-tree { fill: var(--red); }
.hud-br.shake { animation: hudshake 0.5s; }
@keyframes hudshake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) scale(1.1); } 40% { transform: translateX(7px) scale(1.1); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.icon-btn { position: absolute; pointer-events: auto; top: calc(14px + var(--safe-t)); right: calc(14px + var(--safe-r)); width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; fill: #fff; }

#hitFlash { position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: 0; background: radial-gradient(ellipse at center, rgba(255, 60, 80, 0) 45%, rgba(255, 40, 70, 0.55) 100%); transition: opacity 0.5s; }
#hitFlash.on { opacity: 1; transition: none; }
#flowGlow { position: fixed; inset: 0; pointer-events: none; z-index: 8; opacity: 0; background: radial-gradient(ellipse at center, rgba(95, 224, 255, 0) 55%, rgba(60, 170, 255, 0.35) 100%); transition: opacity 0.6s; }

/* ---------- popups ---------- */
.pop { position: fixed; left: 50%; top: 27%; transform: translate(-50%, -50%) scale(0.6); opacity: 0; text-align: center; pointer-events: none; z-index: 12; white-space: nowrap; }
.pop.show { animation: popin 1.6s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes popin { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 22% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; transform: translate(-50%, -60%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -75%) scale(0.95); } }
.t-title { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 40px; line-height: 1; color: #fff; -webkit-text-stroke: 1.5px #0d3d8f; text-shadow: 0 4px 16px rgba(0, 40, 120, 0.55); }
.t-pts { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--gold); -webkit-text-stroke: 1.2px #7a4b00; text-shadow: 0 3px 12px rgba(120, 70, 0, 0.45); }
.t-meta { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: #fff; background: rgba(10, 30, 70, 0.6); display: inline-block; padding: 4px 10px; border-radius: 20px; margin-top: 4px; }
.t-meta:empty { display: none; }
.pop.bad .t-title { color: #ffd0d5; -webkit-text-stroke-color: #7a0d1c; font-size: 32px; }
.pop.bad .t-pts { display: none; }
.pop.near .t-title { font-size: 26px; color: #d6fbff; }
.pop.near .t-pts { font-size: 24px; }
.banner { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 12; pointer-events: none; opacity: 0; text-align: center; padding: 10px 26px; border-radius: 16px; background: rgba(8, 24, 60, 0.7); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: 1px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.banner small { display: block; font-family: var(--font); font-size: 12px; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.banner.cp { color: var(--cyan); border-color: rgba(95, 224, 255, 0.8); box-shadow: 0 0 30px rgba(60, 180, 255, 0.5); }
.banner.hit { color: #ffd6da; border-color: rgba(255, 90, 100, 0.8); background: rgba(70, 10, 25, 0.7); }
.banner.miss { color: #c8d3e6; }
.banner.zone { color: #fff; top: 33%; }
.banner.show { animation: banner 1.7s ease forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.9); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%); } }
.count { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 12; pointer-events: none; font-family: var(--font-display); font-weight: 800; font-size: 120px; color: #fff; -webkit-text-stroke: 3px #0d3d8f; text-shadow: 0 6px 30px rgba(0, 40, 120, 0.5); opacity: 0; }
.count.show { animation: countin 0.75s ease forwards; }
@keyframes countin { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } }

/* ---------- controles de toque ---------- */
#touch { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; pointer-events: none; padding: 0 calc(14px + var(--safe-r)) calc(14px + var(--safe-b)) calc(14px + var(--safe-l)); display: flex; justify-content: space-between; align-items: flex-end; }
.tbtn { pointer-events: auto; touch-action: none; border: 1px solid rgba(160, 225, 255, 0.45); background: rgba(10, 28, 64, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 20, 60, 0.3); }
.tbtn.on { background: rgba(40, 150, 255, 0.75); transform: scale(0.95); }
.tbtn svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tc-left { display: flex; gap: 14px; }
.steer { width: 78px; height: 78px; }
.tc-right { display: flex; align-items: flex-end; gap: 12px; }
.tc-small { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-small .tbtn.grab { grid-column: 1 / -1; justify-self: center; }
.tbtn.small { width: 62px; height: 62px; display: flex; flex-direction: column; justify-content: center; }
.tbtn.small span { font-size: 18px; line-height: 1; }
.tbtn.small em { font-style: normal; font-size: 7.5px; font-weight: 800; letter-spacing: 0.4px; margin-top: 3px; opacity: 0.85; }
.tbtn.jump { width: 98px; height: 98px; background: linear-gradient(180deg, rgba(56, 182, 255, 0.85), rgba(21, 101, 224, 0.85)); font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.tc-hint { position: absolute; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); font-size: 10px; font-weight: 700; color: rgba(10, 30, 70, 0.75); background: rgba(255, 255, 255, 0.55); padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
body.touch .hud-bl, body.touch .hud-br { bottom: auto; top: calc(96px + var(--safe-t)); }
body.touch .hud-bl { left: calc(14px + var(--safe-l)); width: 112px; height: 70px; }
body.touch .hud-bl .speedo { width: 96px; height: 56px; left: 7px; }
body.touch .speed-txt b { font-size: 24px; }
body.touch .hud-br { right: calc(14px + var(--safe-r)); padding: 8px 12px; }

/* ---------- fim de jogo ---------- */
.over-panel { width: min(520px, 100%); text-align: center; background: radial-gradient(circle at 50% 0%, rgba(110, 70, 220, 0.45), transparent 60%), linear-gradient(180deg, rgba(22, 26, 78, 0.97), rgba(8, 14, 40, 0.98)); }
.over-title { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 60px; line-height: 1; background: linear-gradient(180deg, #ffffff 15%, #7fd8ff 60%, #3f7dff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 14px rgba(60, 120, 255, 0.5)); }
.over-sub { color: #ffc4cb; font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.record-badge { align-self: center; background: linear-gradient(180deg, #ffe27a, #ffb21e); color: #4a2b00; font-weight: 900; letter-spacing: 2px; padding: 6px 16px; border-radius: 20px; font-size: 13px; box-shadow: 0 0 24px rgba(255, 200, 60, 0.6); animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.07); } }
.over-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.stat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px 10px; text-align: left; }
.stat span { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 800; }
.stat b { font-family: var(--font-display); font-size: 24px; line-height: 1.15; }
.stat.main b { color: #fff; font-size: 32px; }
.stat.xp b { color: var(--cyan); font-size: 32px; }
.stat.wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.stat.wide b { font-size: 18px; }
.stat.best b { color: var(--gold); font-size: 24px; }
.over-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- responsivo ---------- */
@media (max-width: 760px) {
  .logo-1 { font-size: 48px; } .logo-2 { font-size: 40px; } .logo-peaks { width: 120px; }
  #menu { background: linear-gradient(180deg, rgba(8, 22, 52, 0.55) 0%, rgba(8, 22, 52, 0.15) 45%, rgba(8, 22, 52, 0.65) 100%); }
  .menu-col { width: 100%; padding: calc(22px + var(--safe-t)) 20px calc(20px + var(--safe-b)); justify-content: space-between; }
  .menu-btns { gap: 8px; }
  .how-grid { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 1fr auto; }
  .set-row input[type=range] { grid-column: 1 / 2; grid-row: 2; }
  .set-row output { grid-row: 2; }
  .set-row .seg, .set-row > button { grid-column: 1 / -1; }
  .hud-tl { min-width: 0; padding: 8px 12px; }
  .big { font-size: 28px; }
  .xp-row { font-size: 16px; }
  .hud-tr { width: 132px; right: calc(66px + var(--safe-r)); padding: 8px 10px; }
  #hMult { font-size: 22px; }
  .hud-tc { top: calc(100px + var(--safe-t)); }
  #hDist { font-size: 18px; }
  .t-title { font-size: 28px; } .t-pts { font-size: 26px; }
  .over-title { font-size: 44px; }
  .count { font-size: 90px; }
  .banner { font-size: 20px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .menu-col { gap: 12px; justify-content: flex-start; }
  .menu-btns { margin-top: auto; }
  .menu-btns .btn { padding: 11px; }
  .menu-stats { padding: 10px 12px; }
  .hud-tc { top: calc(150px + var(--safe-t)); }
  #touch { align-items: flex-end; }
  .steer { width: 66px; height: 66px; }
  .tc-left { gap: 10px; }
  .tc-right { flex-direction: column; align-items: flex-end; gap: 10px; }
  .tc-small { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tc-small .tbtn.grab { grid-column: auto; }
  .tbtn.small { width: 52px; height: 52px; }
  .tbtn.jump { width: 88px; height: 88px; }
  .tc-hint { display: none; }
}
@media (max-height: 500px) {
  .menu-col { gap: 10px; padding-top: calc(12px + var(--safe-t)); padding-bottom: 12px; justify-content: center; width: min(400px, 60%); }
  .logo-1 { font-size: 36px; } .logo-2 { font-size: 30px; } .logo-peaks, .logo-tag { display: none; }
  .menu-stats .lvl { display: none; }
  .menu-btns .btn { padding: 8px; } .menu-btns .btn.primary { font-size: 18px; padding: 10px; }
  .menu-stats { padding: 8px 10px; } .menu-stats b { font-size: 18px; }
  .panel { padding: 16px; }
  .over-title { font-size: 38px; }
  .over-grid { grid-template-columns: repeat(4, 1fr); }
  .stat.wide { grid-column: span 2; }
  .steer { width: 64px; height: 64px; } .tbtn.jump { width: 82px; height: 82px; } .tbtn.small { width: 52px; height: 52px; }
  body.touch .hud-bl, body.touch .hud-br { top: calc(104px + var(--safe-t)); }
  .hud-tc { top: calc(14px + var(--safe-t)); }
}
