/* Motor Maniac — game-only styles on top of /assets/3d/kit.css (the house look). */

/* ---------- HUD: speedo, minimap ---------- */
.minimap {
  position: absolute; left: calc(16px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 150px; height: 150px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(10, 14, 30, 0.85), 0 6px 20px rgba(0, 0, 0, 0.35);
}
.speedo { position: absolute; right: calc(12px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); width: 170px; height: 170px; }
.hud-pill.wallet b { color: #ffd23f; }
.hud-pill.wallet.bump b { animation: cash-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cash-pop { 30% { transform: scale(1.3); color: #fff; } }
body:not(.timed) .timed-only { display: none !important; }
body:not(.run) .run-only { display: none !important; }
#timer-pill.hurry b { color: #ff6b5a; animation: cash-pop 1s ease-in-out infinite; }
#medal-pill b { font-size: 0.82em; }
.map-card .mc-best { display: block; font-size: 11px; font-weight: 900; color: #ffd23f; }

/* ---------- Combo: ring timer + multiplier + pot + the last tricks ---------- */
.combo {
  position: absolute; top: 86px; left: 50%; transform: translateX(-50%) scale(0.9);
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(10, 14, 30, 0.6); border: 2px solid rgba(255, 255, 255, 0.12);
  opacity: 0; transition: opacity 0.18s, transform 0.18s; pointer-events: none;
}
.combo.on { opacity: 1; transform: translateX(-50%) scale(1); }
.combo.maniac { border-color: #ff4fd8; box-shadow: 0 0 22px rgba(255, 79, 216, 0.55), 0 0 44px rgba(56, 225, 255, 0.35); animation: maniac 0.6s ease-in-out infinite alternate; }
@keyframes maniac { to { box-shadow: 0 0 34px rgba(56, 225, 255, 0.7), 0 0 60px rgba(255, 79, 216, 0.45); } }
.c-ring { position: relative; width: 58px; height: 58px; flex: none; }
.c-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.c-ring circle { fill: none; stroke-width: 5; }
.c-ring .track { stroke: rgba(255, 255, 255, 0.15); }
.c-ring .fill { stroke: var(--accent-2); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; }
.combo.maniac .c-ring .fill { stroke: #ff4fd8; }
.c-mult { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 23px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.c-mult.bump { animation: bump 0.3s ease-out; }
.c-pot { font-family: var(--display); font-size: 30px; line-height: 1; color: #ffd23f; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; }
.c-list { font-size: 13px; font-weight: 900; color: rgba(255, 255, 255, 0.8); white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Trick pop-ups (stacking, coloured by kind) ---------- */
.pops { position: absolute; top: 23%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; pointer-events: none; }
.pop {
  font-family: var(--display); font-size: clamp(26px, 4.4vw, 44px); line-height: 1.02; color: #fff; text-align: center; white-space: nowrap;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 18px rgba(0, 0, 0, 0.35);
  animation: pop 1.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.pop small { display: block; font-size: 0.55em; color: #ffd23f; }
.pop.flip { color: #7cf0ff; } .pop.air { color: #c6ff2e; } .pop.style { color: #ff9cf0; } .pop.drift { color: #ffb347; }
.pop.near { color: #ff6b6b; } .pop.ground { color: #fff3a0; } .pop.perfect { color: #ffd23f; font-size: clamp(30px, 5vw, 52px); }
.pop.bank { color: #ffd23f; font-size: clamp(34px, 6vw, 62px); text-shadow: 0 5px 0 #8a5a00, 0 0 30px rgba(255, 204, 31, 0.6); }
.pop.bail { color: #ffb0b0; } .pop.mega { color: #fff; font-size: clamp(40px, 7vw, 76px); text-shadow: 0 6px 0 var(--accent-deep), 0 0 40px rgba(255, 90, 31, 0.7); }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 14% { transform: scale(1.12); opacity: 1; } 24% { transform: scale(1); } 78% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-26px); } }

/* ---------- Season badge, goals, prompts ---------- */
.season {
  position: absolute; left: calc(16px + env(safe-area-inset-left)); bottom: calc(180px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(10, 14, 30, 0.55);
}
.s-ic { font-size: 26px; line-height: 1; }
.s-txt b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1; }
.s-txt small { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.75); }
/* A glow, not a scale: on touch and in split-screen the badge carries its own transform. */
.season.flash { animation: season-flash 0.5s ease-out 2; }
@keyframes season-flash { 40% { filter: brightness(1.5); box-shadow: 0 0 22px rgba(255, 210, 63, 0.7); } }
.goals { position: absolute; left: calc(14px + env(safe-area-inset-left)); top: 74px; display: flex; flex-direction: column; gap: 6px; }
.goal { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: rgba(10, 14, 30, 0.55); font-size: 13px; font-weight: 800; max-width: 230px; }
.goal i { font-style: normal; font-size: 16px; filter: grayscale(1) brightness(0.6); }
.goal.done { color: #c6ff2e; }
.goal.done i { filter: none; animation: star-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.prompt {
  position: absolute; left: 50%; bottom: 23%; transform: translateX(-50%); padding: 10px 20px; border-radius: 18px;
  background: rgba(10, 14, 30, 0.75); border: 2px solid var(--accent); font-family: var(--display); font-size: clamp(22px, 3.4vw, 32px);
  white-space: nowrap; opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
/* The kit's wiggle sets transform, which would drop the centring translate: keep it. */
.prompt.on { opacity: 1; animation: prompt-wiggle 0.9s ease-in-out infinite; }
@keyframes prompt-wiggle { 0%, 50%, 100% { transform: translateX(-50%); } 25% { transform: translateX(-50%) rotate(-3deg) scale(1.05); } 75% { transform: translateX(-50%) rotate(3deg) scale(1.05); } }
.prompt kbd { display: inline-block; padding: 0 10px; margin: 0 4px; border-radius: 9px; background: var(--accent); color: #1b1200; font-family: var(--display); }
#hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 9px 16px; border-radius: 12px; background: rgba(10, 14, 30, 0.62); font-size: 13px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; transition: opacity 1s; }
#hint b { color: #fff; }
#hint.fade { opacity: 0; }
body.touch #hint { display: none; }

/* Screen flash on banks / perfect landings. */
#flash { position: fixed; inset: 0; z-index: 12; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, 0.0) 30%, rgba(255, 255, 255, 0.75)); opacity: 0; }
#flash.on { animation: flash 0.32s ease-out; }
#flash.gold { background: radial-gradient(circle, rgba(255, 220, 80, 0) 30%, rgba(255, 200, 40, 0.7)); }
#flash.maniac { background: radial-gradient(circle, rgba(255, 79, 216, 0) 25%, rgba(120, 80, 255, 0.65)); }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Title extras ---------- */
.last-ride { font-weight: 900; font-size: 16px; padding: 6px 16px; border-radius: 999px; background: rgba(10, 14, 30, 0.6); color: #ffd23f; animation: card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ---------- Garage ---------- */
#garage { justify-content: flex-end; align-items: flex-end; padding: 18px; flex-direction: row; gap: 0; }
.garage-head { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; }
.garage-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6vw, 48px); text-shadow: 0 4px 0 var(--accent-deep), 0 8px 20px rgba(0, 0, 0, 0.4); }
.garage-head p { font-weight: 900; font-size: 18px; color: var(--pc, #fff); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.g-wallet b { color: #ffd23f; font-family: var(--display); font-weight: 400; font-size: 24px; }
.garage-card { width: min(400px, 94vw); margin: 0 2vw 2vh 0; text-align: left; }
.g-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.g-tabs .chip-btn { flex: 1; justify-content: center; }
.g-nav { display: flex; align-items: center; gap: 10px; }
.g-nav .round-btn { width: 52px; height: 52px; padding: 0; justify-content: center; font-size: 20px; flex: none; }
.g-names { flex: 1; text-align: center; }
.g-name { font-family: var(--display); font-size: 30px; line-height: 1.05; color: var(--accent); }
.g-name.locked { color: rgba(255, 255, 255, 0.7); }
.g-count { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); }
.g-blurb { margin: 10px 0 8px; font-size: 15px; color: rgba(255, 255, 255, 0.85); text-align: center; min-height: 2.6em; }
.g-stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin: 4px 0 10px; }
.g-stats span { font-size: 13px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.g-bar { display: flex; gap: 4px; }
.g-bar i { flex: 1; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.g-bar i.on { background: linear-gradient(90deg, var(--accent), #ffb21a); box-shadow: 0 0 8px rgba(255, 140, 40, 0.35); }
.g-badge { text-align: center; font-weight: 900; font-size: 15px; margin-bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.g-price { margin-bottom: 10px; text-align: center; }
.big-btn.locked { filter: grayscale(0.65) brightness(0.85); animation: none; }
.gp-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.gp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffd23f, var(--accent-2)); transition: width 0.4s; }
.g-price small { display: block; margin-top: 4px; font-weight: 900; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.zones { display: flex; gap: 6px; margin-bottom: 10px; }
.zones .chip-btn { flex: 1; justify-content: center; padding: 0 8px; font-size: 14px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); margin-bottom: 10px; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.25); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: #fff; transform: scale(1.12); box-shadow: 0 0 0 3px var(--accent), inset 0 -4px 0 rgba(0, 0, 0, 0.2); }
.finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; max-height: 30vh; overflow-y: auto; }
.fin { position: relative; padding: 7px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 2px solid transparent; font-size: 12px; font-weight: 900; text-align: center; }
.fin small { display: block; color: #ffd23f; font-size: 11px; }
.fin.on { border-color: var(--accent); background: rgba(255, 255, 255, 0.14); }
.fin.locked { opacity: 0.6; }
.fin.locked small { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 700px), (orientation: portrait) {
  #garage { justify-content: center; padding: 10px; }
  .garage-card { margin: 0 auto; padding: 14px 16px; max-height: 64vh; }
  .g-blurb { min-height: 0; margin: 6px 0; font-size: 14px; }
  .garage-head { top: 64px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  #garage { padding: 8px; }
  .garage-card { width: 340px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 8px 12px; margin: 0; }
  .g-blurb, .g-count { display: none; }
  .g-nav .round-btn { width: 42px; height: 42px; }
  .g-name { font-size: 24px; }
  .g-stats { gap: 3px 10px; margin: 4px 0 6px; }
  .g-bar i { height: 9px; }
  .g-badge { margin-bottom: 6px; padding: 3px 8px; font-size: 13px; }
  .garage-card .btns { flex-direction: row; gap: 8px; }
  .garage-card .big-btn { height: 46px; font-size: 20px; flex: 2; white-space: nowrap; }
  .garage-card .chip-btn { white-space: nowrap; }
  .garage-head { left: 30%; top: 12px; }
  .garage-head h2 { font-size: 28px; }
  .swatches { grid-template-columns: repeat(16, 1fr); gap: 4px; padding: 5px; }
}

/* ---------- Map select ---------- */
#maps { justify-content: flex-end; align-items: center; padding: 18px; }
.maps-card { width: min(860px, 96vw); }
.map-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 14px; }
.map-card { position: relative; padding: 12px 8px 10px; border-radius: 18px; border: 3px solid transparent; background: linear-gradient(160deg, var(--mc1), var(--mc2)); text-align: center; color: #fff; box-shadow: inset 0 -40px 40px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.map-card:hover { transform: translateY(-2px); }
.map-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.4), inset 0 -40px 40px rgba(0, 0, 0, 0.25); }
.map-card .em { display: block; font-size: 36px; line-height: 1.1; }
.map-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; margin-top: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.map-card small { display: block; font-size: 12px; font-weight: 800; line-height: 1.3; margin-top: 4px; color: rgba(255, 255, 255, 0.92); }
.map-card .mc-stars { display: block; margin-top: 4px; font-size: 18px; line-height: 1; letter-spacing: 2px; }
.map-card .mc-stars i { font-style: normal; color: rgba(0, 0, 0, 0.35); }
.map-card .mc-stars i.on { color: #ffd23f; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.map-card .mc-letters { display: block; font-size: 11px; font-weight: 900; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.8); }
.map-card.locked { filter: grayscale(0.7) brightness(0.7); }
.map-card.locked .em::after { content: " 🔒"; font-size: 20px; }
.mode-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.mode-row .chip-btn { flex: 1; justify-content: center; white-space: nowrap; }
body:not(.two) #mode-battle, body.two #mode-free, body.two #mode-run { display: none; }
@media (max-width: 900px) {
  .map-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .map-grid { grid-template-columns: 1fr; gap: 6px; }
  .map-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; text-align: left; padding: 8px 12px; gap: 0 8px; }
  .map-card .em { grid-row: span 2; font-size: 30px; }
  .map-card b { font-size: 18px; margin: 0; }
  .map-card small { display: none; }
  .map-card .mc-stars { grid-row: span 2; margin: 0; }
}
@media (max-height: 560px) and (orientation: landscape) {
  #maps { padding: 8px; }
  .maps-card { padding: 10px 12px; }
  .map-card { padding: 6px 4px; }
  .map-card .em { font-size: 24px; }
  .map-card b { font-size: 15px; }
  .map-card small { display: none; }
  .maps-card .btns { flex-direction: row; gap: 8px; }
  .maps-card .big-btn { height: 46px; font-size: 22px; flex: 2; white-space: nowrap; }
  .maps-card .chip-btn { flex: 1; white-space: nowrap; }
}

/* ---------- Results ---------- */
.medals { display: flex; justify-content: center; gap: 10px; margin: 8px 0 0; font-size: 40px; }
.medals i { font-style: normal; filter: grayscale(1) brightness(0.45); transform: scale(0.8); }
.medals i.on { filter: none; transform: scale(1); animation: star-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.res-next { color: var(--accent-2) !important; font-weight: 900; margin: 6px 0 12px !important; }
body.two .stats { margin-top: 6px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.podium:empty { display: none; }
.podium div { width: 40%; border-radius: 14px 14px 0 0; background: rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 8px 4px; font-weight: 900; font-size: 14px; }
.podium div b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.podium .p1 { height: 120px; background: linear-gradient(180deg, rgba(255, 204, 31, 0.5), rgba(255, 204, 31, 0.1)); }
.podium .p2 { height: 90px; background: linear-gradient(180deg, rgba(200, 210, 225, 0.4), rgba(200, 210, 225, 0.08)); }
.new-best-tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(135deg, #d13dd1, #7a4fff); font-size: 13px; color: #fff; animation: wiggle 0.9s ease-in-out infinite; }

/* ---------- Pause ---------- */
.pause-card { width: min(460px, 94vw); }
.slider { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); font-weight: 900; font-size: 14px; }
.slider input { width: 100%; accent-color: var(--accent); touch-action: auto; }
.slider b { text-align: right; font-variant-numeric: tabular-nums; }
.card .row.wrap { flex-wrap: wrap; }
.card .row.wrap .chip-btn { flex: 1 1 30%; font-size: 13px; padding: 0 8px; white-space: nowrap; }
body:not(.touch) #p-autogas { display: none; }

/* ---------- Unlock moment ---------- */
#unlock { align-items: flex-end; padding-bottom: 6vh; background: radial-gradient(circle at 50% 40%, rgba(8, 10, 22, 0) 30%, rgba(8, 10, 22, 0.7)); }
.unlock-card h2 { font-size: clamp(40px, 9vw, 64px); color: #ffd23f; animation: logo-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ---------- Touch controls: steer left, tricks + brake + gas right ---------- */
#touch .pad-r { align-items: flex-end; gap: 10px; }
#touch .tcol { display: flex; flex-direction: column; gap: 10px; }
.tbtn.trick { width: 70px; height: 70px; font-size: 26px; border-color: rgba(198, 255, 46, 0.55); }
body.air .tbtn.trick { border-color: var(--accent-2); background: rgba(198, 255, 46, 0.25); box-shadow: 0 0 16px rgba(198, 255, 46, 0.5); }
body.autogas #t-gas { display: none; }
@media (max-width: 460px), (max-height: 420px) {
  .tbtn { width: 64px; height: 64px; font-size: 24px; }
  .tbtn.trick { width: 56px; height: 56px; font-size: 21px; }
  .tbtn.action { width: 78px; height: 78px; }
  #touch .tcol, #touch .pad-r, #touch .pad { gap: 7px; }
  #touch { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- Split-screen: one HUD half per player ---------- */
.ph { position: absolute; inset: 0; pointer-events: none; }
.ph.p1, .ph-name, .split-only { display: none; }
body.split .ph.p0 { right: 50%; }
body.split .ph.p1 { display: block; left: 50%; }
body.split .split-only { display: block; }
body.split #hint, body.split .goals, body.split .wallet { display: none !important; }
body.split .combo { top: 70px; transform: translateX(-50%) scale(0.8); }
body.split .combo.on { transform: translateX(-50%) scale(0.85); }
body.split .ph-name { display: block; position: absolute; top: 148px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(10, 14, 30, 0.55); font-weight: 900; font-size: 13px; white-space: nowrap; transition: opacity 1s; }
body.split .ph-name.fade { opacity: 0; }
.ph-cash { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 14px; background: rgba(10, 14, 30, 0.6); text-align: center; }
.ph-cash small { display: block; font-size: 11px; font-weight: 900; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.1em; }
.ph-cash b { font-family: var(--display); font-weight: 400; font-size: 26px; color: #ffd23f; }
body.split .minimap { width: 110px; height: 110px; }
body.split .speedo { width: 130px; height: 130px; }
body.split .season { left: auto; right: 150px; bottom: 16px; transform: scale(0.85); transform-origin: right bottom; }
body.split .pops .pop { font-size: clamp(20px, 3vw, 32px); }
body[data-screen="play"].split::after { content: ""; position: fixed; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: #0a0c18; z-index: 19; pointer-events: none; }
body.touch #btn-2p { display: none; } /* split-screen needs two players on one keyboard */

/* ---------- Phones: the HUD moves out of the thumbs' way ---------- */
@media (max-width: 760px), (max-height: 500px) {
  .minimap { width: 104px; height: 104px; }
  .speedo { width: 120px; height: 120px; }
  .season { bottom: calc(132px + env(safe-area-inset-bottom)); }
  .goals { display: none; }
}
body.touch .minimap { top: 70px; bottom: auto; left: calc(14px + env(safe-area-inset-left)); width: 96px; height: 96px; }
body.touch .speedo { top: 62px; bottom: auto; right: calc(8px + env(safe-area-inset-right)); width: 112px; height: 112px; }
body.touch .season { left: 50%; bottom: auto; top: 150px; transform: translateX(-50%) scale(0.85); }
body.touch .prompt { bottom: 40%; }
@media (max-width: 520px) and (orientation: portrait) {
  .hud-top { top: 70px; }
  .combo { top: 140px; }
  .pops { top: 30%; }
  body.touch .minimap { top: 150px; }
  body.touch .speedo { top: 142px; }
  body.touch .season { top: 216px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .combo { top: 64px; transform: translateX(-50%) scale(0.8); }
  .combo.on { transform: translateX(-50%) scale(0.82); }
  body.touch .season { left: calc(14px + env(safe-area-inset-left)); top: 174px; transform: scale(0.75); transform-origin: left top; }
  .hud-top { top: 10px; transform: translateX(-50%) scale(0.85); }
}
