/* Hill Climb Racing - mobile-first landscape game UI */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #101510;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  font-family: "Baloo 2", "Comic Sans MS", "Chalkboard SE", "Segoe UI Rounded", system-ui, sans-serif;
}
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --font: "Baloo 2", "Comic Sans MS", "Chalkboard SE", "Segoe UI Rounded", system-ui, sans-serif;
}
.hidden { display: none !important; }

#game-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ---------- Rotate overlay ---------- */
#rotate-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: #14201a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 16px;
}
.rotate-phone { font-size: 64px; animation: rock 1.2s ease-in-out infinite; }
@keyframes rock { 0%,100% { transform: rotate(-15deg);} 50% { transform: rotate(15deg);} }
.rotate-text { font-size: 20px; font-weight: 700; }

/* ---------- Generic buttons ---------- */
.btn {
  font-family: var(--font);
  font-weight: 800;
  border: none;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, #ffb340, #f08c1a);
  box-shadow: 0 5px 0 #b4650f, 0 8px 14px rgba(0,0,0,.35);
  text-shadow: 0 2px 2px rgba(0,0,0,.25);
  cursor: pointer;
  letter-spacing: .5px;
  transition: transform .06s ease, box-shadow .06s ease, filter .15s ease;
  min-height: 48px; min-width: 48px;
}
.btn:active, .btn.pressed {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #b4650f, 0 3px 6px rgba(0,0,0,.35);
  filter: brightness(.92);
}
.btn.green { background: linear-gradient(180deg, #7ed957, #3fa83f); box-shadow: 0 5px 0 #2a7a2a, 0 8px 14px rgba(0,0,0,.35); }
.btn.green:active { box-shadow: 0 1px 0 #2a7a2a, 0 3px 6px rgba(0,0,0,.35); }
.btn.red { background: linear-gradient(180deg, #ff6b6b, #d63c3c); box-shadow: 0 5px 0 #992626, 0 8px 14px rgba(0,0,0,.35); }
.btn.red:active { box-shadow: 0 1px 0 #992626, 0 3px 6px rgba(0,0,0,.35); }
.btn.blue { background: linear-gradient(180deg, #5db9ff, #2b7fd6); box-shadow: 0 5px 0 #1d5a99, 0 8px 14px rgba(0,0,0,.35); }
.btn.blue:active { box-shadow: 0 1px 0 #1d5a99, 0 3px 6px rgba(0,0,0,.35); }
.btn.big { font-size: 26px; padding: 14px 44px; border-radius: 22px; }
.btn.med { font-size: 19px; padding: 10px 26px; }
.btn.small { font-size: 15px; padding: 8px 16px; border-radius: 14px; min-height: 44px; }
/* after all color/size variants so it always wins on equal specificity */
.btn:disabled, .btn.disabled {
  background: linear-gradient(180deg, #7a847a, #525a52);
  box-shadow: 0 3px 0 #363c36, 0 5px 8px rgba(0,0,0,.3);
  color: rgba(255,255,255,.6);
  text-shadow: none;
  pointer-events: none;
}

.icon-btn {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,30,25,.75);
  border: 2px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer;
  backdrop-filter: blur(2px);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 28px; height: 28px; }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px; width: 12px; height: 12px;
  background: #ff4757; border-radius: 50%; border: 2px solid #fff;
}

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#hud button { pointer-events: auto; }
.hud-top-left {
  position: absolute; top: calc(8px + var(--sat)); left: calc(12px + var(--sal));
  display: flex; align-items: center; gap: 8px;
}
.fuel-icon { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.fuel-bar-outer {
  width: min(150px, 22vw); height: 16px; border-radius: 9px;
  background: rgba(0,0,0,.5); border: 2px solid #fff;
  overflow: hidden;
}
#fuel-bar { height: 100%; width: 100%; background: linear-gradient(90deg,#7ed957,#b8e986); border-radius: 6px; transition: width .15s linear; }
#fuel-bar.low { background: linear-gradient(90deg,#ff4040,#ff7b7b); animation: fuelblink .4s steps(2) infinite; }
@keyframes fuelblink { 50% { filter: brightness(1.6); } }

.hud-top-center {
  position: absolute; top: calc(6px + var(--sat)); left: 50%; transform: translateX(-50%);
  text-align: center; color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.6);
}
#distance-value { font-size: 30px; font-weight: 800; line-height: 1; }
#best-value { font-size: 13px; font-weight: 700; opacity: .85; }

.hud-top-right {
  position: absolute; top: calc(8px + var(--sat)); right: calc(12px + var(--sar));
  display: flex; align-items: center; gap: 10px;
}
#run-coins {
  display: flex; align-items: center; gap: 6px;
  color: #ffd94d; font-size: 22px; font-weight: 800;
  text-shadow: 0 2px 3px rgba(0,0,0,.6);
}
.coin-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe98a, #f5b301 60%, #c98a00);
  border: 2px solid #a86e00;
  display: inline-block;
}
#pause-btn {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(20,30,25,.75); border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#pause-btn:active { transform: scale(.92); }
.pause-bars { width: 16px; height: 20px; border-left: 6px solid #fff; border-right: 6px solid #fff; }

#countdown {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%);
  font-size: 110px; font-weight: 900; color: #fff;
  text-shadow: 0 6px 0 rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.5);
  animation: countpop .9s ease-out;
}
@keyframes countpop { 0% { transform: translate(-50%,-50%) scale(2.2); opacity: 0;} 30% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1); } }

#bonus-popups {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none;
}
.bonus-popup {
  font-size: 26px; font-weight: 900; color: #ffe14d;
  text-shadow: 0 3px 0 #a86e00, 0 5px 12px rgba(0,0,0,.5);
  animation: bonusfly 1.4s ease-out forwards;
  white-space: nowrap;
}
.bonus-popup.record { color: #7ef0ff; text-shadow: 0 3px 0 #1d7a99, 0 5px 12px rgba(0,0,0,.5); }
@keyframes bonusfly {
  0% { transform: scale(.3); opacity: 0; }
  15% { transform: scale(1.25); opacity: 1; }
  30% { transform: scale(1); }
  75% { opacity: 1; }
  100% { transform: translateY(-46px) scale(.9); opacity: 0; }
}

/* ---------- Pedals ---------- */
#pedal-zones { position: fixed; inset: 0; z-index: 30; }
.pedal-zone { position: absolute; top: 35%; bottom: 0; }
.pedal-zone.left { left: 0; width: 46%; }
.pedal-zone.right { right: 0; width: 46%; }

#pedals { position: fixed; inset: 0; z-index: 31; pointer-events: none; }
.pedal {
  position: absolute;
  bottom: calc(14px + var(--sab));
  width: clamp(96px, 26vw, 190px);
  height: 26vh; min-height: 96px; max-height: 200px;
  border-radius: 22px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 12px;
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.4);
  border: 3px solid rgba(255,255,255,.55);
  transition: transform .07s ease, filter .07s ease;
}
.pedal.left { left: calc(16px + var(--sal)); background: linear-gradient(180deg, #e74c3cdd, #b03024dd); box-shadow: 0 6px 0 #7a1f17cc; }
.pedal.right { right: calc(16px + var(--sar)); background: linear-gradient(180deg, #58cc58dd, #2f8f2fdd); box-shadow: 0 6px 0 #1e5e1ecc; }
.pedal.held { transform: translateY(6px) scale(.97); filter: brightness(.72); }
.pedal.held.left { box-shadow: 0 1px 0 #7a1f17cc; }
.pedal.held.right { box-shadow: 0 1px 0 #1e5e1ecc; }

#speedo {
  position: absolute;
  right: calc(24px + var(--sar));
  bottom: calc(26vh + 26px + var(--sab));
  width: 76px; opacity: .9;
}

/* ---------- Screens ---------- */
#ui-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.screen {
  position: absolute; inset: 0;
  pointer-events: auto;
  display: flex; flex-direction: column;
  padding: calc(10px + var(--sat)) calc(16px + var(--sar)) calc(12px + var(--sab)) calc(16px + var(--sal));
}
.screen.dim { background: rgba(8, 14, 10, .72); }

.screen-header { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.screen-title {
  font-size: 30px; font-weight: 900; color: #fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 5px 12px rgba(0,0,0,.4);
  flex: 1; text-align: center;
}
.coin-balance {
  display: flex; align-items: center; gap: 7px;
  background: rgba(20,30,25,.8); border: 2px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 7px 16px;
  color: #ffd94d; font-weight: 900; font-size: 19px;
}
.header-spacer { width: 52px; }

/* Main menu */
#main-menu { justify-content: flex-end; }
#menu-logo {
  position: absolute; top: calc(6px + var(--sat)); left: 50%; transform: translateX(-50%);
  font-size: clamp(30px, 6.5vh, 52px); font-weight: 900; color: #fff;
  text-shadow: 0 4px 0 #2a6e2a, 0 8px 18px rgba(0,0,0,.5);
  letter-spacing: 1px; text-align: center; line-height: 1.05;
  pointer-events: none;
}
#menu-logo .accent { color: #ffd94d; }
.menu-corner { position: absolute; display: flex; gap: 10px; }
.menu-corner.tl { top: calc(10px + var(--sat)); left: calc(14px + var(--sal)); flex-direction: column; }
.menu-corner.tr { top: calc(10px + var(--sat)); right: calc(14px + var(--sar)); }
.menu-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  width: 100%;
}
.menu-bottom .spacer { width: 120px; }

/* Carousels (stage & vehicle select) */
.carousel-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.carousel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 40vw;
  scrollbar-width: none;
  width: 100%; height: 100%;
  align-items: center;
}
.carousel::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(64vw, 46vh * 1.5);
  border-radius: 22px;
  background: rgba(18, 28, 22, .85);
  border: 3px solid rgba(255,255,255,.28);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  color: #fff;
  position: relative;
}
.card.locked { filter: saturate(.35); }
.card-art {
  width: 100%; aspect-ratio: 16/8; border-radius: 14px;
  overflow: hidden; position: relative;
}
.card-art canvas { width: 100%; height: 100%; display: block; }
.card-name { font-size: 22px; font-weight: 900; text-align: center; text-shadow: 0 2px 3px rgba(0,0,0,.5); }
.card-sub { font-size: 14px; text-align: center; opacity: .85; font-weight: 700; }
.stars { text-align: center; font-size: 17px; letter-spacing: 2px; color: #ffd94d; }
.stars .off { color: rgba(255,255,255,.28); }
.card .buy-row { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; }
.owned-tag { font-weight: 900; color: #7ed957; font-size: 17px; }
.price-tag { font-weight: 900; color: #ffd94d; font-size: 18px; display: flex; align-items: center; gap: 6px; }

.stat-rows { display: flex; flex-direction: column; gap: 3px; }
.stat-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.stat-row .lbl { width: 86px; text-align: right; opacity: .9; }
.stat-bar { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
.stat-bar > div { height: 100%; background: linear-gradient(90deg,#5db9ff,#7ef0ff); border-radius: 6px; }

.select-footer { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }

/* Upgrades */
#upgrades .body { flex: 1; display: flex; gap: 14px; min-height: 0; align-items: stretch; }
#upgrade-vehicle-pane {
  flex: 0 0 34%; border-radius: 20px; background: rgba(18,28,22,.8);
  border: 3px solid rgba(255,255,255,.22);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px; position: relative; overflow: hidden;
}
#upgrade-vehicle-pane canvas { width: 100%; }
#upgrade-vehicle-name { color: #fff; font-weight: 900; font-size: 19px; text-shadow: 0 2px 3px rgba(0,0,0,.5); }
.upgrade-grid {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
}
.upgrade-card {
  border-radius: 18px; background: rgba(18,28,22,.85);
  border: 3px solid rgba(255,255,255,.22);
  padding: 8px 12px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
}
.upgrade-card .u-head { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 16px; }
.upgrade-card .u-head svg { width: 26px; height: 26px; flex: 0 0 auto; }
.upgrade-card .lvl-bar { height: 12px; border-radius: 7px; background: rgba(255,255,255,.15); overflow: hidden; }
.upgrade-card .lvl-bar > div { height: 100%; background: linear-gradient(90deg,#ffb340,#ffd94d); border-radius: 7px; transition: width .3s ease; }
.upgrade-card .lvl-text { font-size: 12px; font-weight: 800; opacity: .85; }
.upgrade-card .u-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upgrade-card.maxed { border-color: #ffd94d; }
.upgrade-card .max-tag { color: #ffd94d; font-weight: 900; font-size: 18px; text-align: center; }
.upgrade-card.flash { animation: uflash .45s ease; }
@keyframes uflash { 0% { filter: brightness(2);} 100% { filter: none;} }

/* Pause / results overlays */
.overlay-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.panel {
  background: rgba(16, 26, 20, .92);
  border: 3px solid rgba(255,255,255,.28);
  border-radius: 24px; padding: 18px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff;
  max-height: calc(100dvh - 48px); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.panel-title { font-size: 34px; font-weight: 900; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.panel-title.crash { color: #ff6b6b; }
.panel-title.fuel { color: #ffd94d; }
.panel-title.record { color: #7ef0ff; animation: recordpulse .8s ease infinite alternate; }
@keyframes recordpulse { from { transform: scale(1);} to { transform: scale(1.08);} }
.panel .big-dist { font-size: 42px; font-weight: 900; }
.result-lines { width: min(78vw, 420px); display: flex; flex-direction: column; gap: 3px; font-size: 17px; font-weight: 800; }
.result-lines .rline { display: flex; justify-content: space-between; gap: 20px; }
.result-lines .rline.total { border-top: 2px solid rgba(255,255,255,.35); padding-top: 5px; margin-top: 4px; font-size: 21px; color: #ffd94d; }
.result-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(78vw, 420px); font-size: 18px; font-weight: 800; }
.toggle {
  width: 64px; height: 36px; border-radius: 999px; border: 2px solid #fff;
  background: rgba(255,255,255,.15); position: relative; cursor: pointer; flex: 0 0 auto;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 4px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; transition: left .15s ease, background .15s ease;
}
.toggle.on { background: #3fa83f; }
.toggle.on::after { left: 30px; background: #fff; }
.seg { display: flex; border: 2px solid #fff; border-radius: 12px; overflow: hidden; }
.seg button { background: transparent; color: #fff; border: none; padding: 8px 16px; font-family: var(--font); font-weight: 800; font-size: 15px; cursor: pointer; }
.seg button.on { background: #fff; color: #17301f; }
.reset-input {
  font-family: var(--font); font-size: 18px; font-weight: 800; padding: 8px 14px;
  border-radius: 12px; border: 2px solid #fff; background: rgba(255,255,255,.12); color: #fff;
  width: 120px; text-transform: uppercase; text-align: center;
}

/* Daily reward */
.daily-grid { display: flex; gap: 8px; }
.daily-cell {
  width: clamp(58px, 10vw, 96px); aspect-ratio: .8;
  border-radius: 14px; background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; font-weight: 800; font-size: 13px;
}
.daily-cell .amt { color: #ffd94d; font-size: 15px; }
.daily-cell.done { background: rgba(126,217,87,.25); border-color: #7ed957; }
.daily-cell.today { border-color: #ffd94d; border-width: 3px; animation: recordpulse .8s ease infinite alternate; }
.daily-cell.locked { opacity: .45; }

/* Achievements */
.ach-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.ach-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(18,28,22,.85); border: 2px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 8px 14px; color: #fff;
}
.ach-row .a-text { flex: 1; min-width: 0; }
.ach-row .a-name { font-weight: 900; font-size: 16px; }
.ach-row .a-desc { font-size: 12.5px; opacity: .85; font-weight: 700; }
.ach-row .a-bar { height: 8px; border-radius: 5px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 4px; }
.ach-row .a-bar > div { height: 100%; background: linear-gradient(90deg,#7ed957,#b8e986); }
.ach-row .a-reward { color: #ffd94d; font-weight: 900; font-size: 14px; white-space: nowrap; }
.ach-row.claimed { opacity: .55; }

/* Tutorial hints */
#tutorial-hints { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.hint {
  position: absolute; transform: translate(-50%, 0);
  background: rgba(16,26,20,.92); color: #fff;
  border: 2px solid #ffd94d; border-radius: 14px;
  padding: 8px 14px; font-weight: 800; font-size: 15px;
  text-align: center; max-width: 200px;
  animation: hintbob 1s ease-in-out infinite alternate;
}
.hint::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  border: 6px solid transparent; border-top: 8px solid #ffd94d;
}
@keyframes hintbob { from { margin-top: 0; } to { margin-top: -8px; } }

/* Upgrade pointer (first-run nudge) */
.pointer-ring {
  position: absolute; border: 4px solid #ffd94d; border-radius: 22px;
  animation: recordpulse .7s ease infinite alternate; pointer-events: none;
  box-shadow: 0 0 24px #ffd94daa;
}

/* Loading */
#loading { background: #14201a; align-items: center; justify-content: center; }
#loading .load-bar-outer { width: min(60vw, 320px); height: 18px; border-radius: 10px; background: rgba(255,255,255,.14); border: 2px solid #fff; overflow: hidden; }
#loading .load-bar { height: 100%; width: 0%; background: linear-gradient(90deg,#7ed957,#ffd94d); border-radius: 8px; transition: width .2s ease; }
#loading .load-text { color: #fff; font-weight: 800; margin-top: 10px; font-size: 14px; opacity: .8; }

/* Small phones: tighten up */
@media (max-height: 420px) {
  #menu-logo { font-size: 30px; }
  .screen-title { font-size: 20px; }
  .screen-header { min-height: 40px; }
  .panel-title { font-size: 20px; }
  .btn.big { font-size: 18px; padding: 8px 26px; min-height: 40px; }
  .btn.med { font-size: 14px; padding: 7px 18px; min-height: 38px; }
  .btn.small { font-size: 12px; padding: 6px 12px; min-height: 34px; }
  #distance-value { font-size: 24px; }
  .pedal { height: 30vh; font-size: 18px; }

  /* overlay panels: everything visible without scrolling at 390px */
  .panel { padding: 8px 16px; gap: 6px; border-radius: 18px; max-height: calc(100dvh - 16px); }
  .overlay-center { gap: 6px; }
  .panel .big-dist { font-size: 26px; }
  .result-lines { width: min(88vw, 500px); display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; font-size: 12px; gap: 2px; }
  .result-lines .rline.total { grid-column: 1 / -1; font-size: 15px; padding-top: 3px; margin-top: 2px; }
  .result-btns { gap: 8px; }

  /* settings: compact rows fit the short viewport */
  .settings-row { width: min(88vw, 520px); font-size: 13px; gap: 10px; }
  .toggle { width: 46px; height: 26px; }
  .toggle::after { top: 2px; left: 3px; width: 18px; height: 18px; }
  .toggle.on::after { left: 22px; }
  .seg button { padding: 5px 10px; font-size: 12px; }
  .reset-input { font-size: 13px; padding: 5px 8px; width: 84px; }

  /* stage & vehicle cards: full card visible, nothing clipped */
  .carousel { padding: 2px 40vw; gap: 14px; }
  .card { width: min(56vw, 38vh * 1.6); padding: 8px; gap: 4px; border-radius: 16px; }
  .card-art { aspect-ratio: 16/6; border-radius: 10px; }
  .card-name { font-size: 15px; }
  .stars { font-size: 12px; }
  .card-sub { font-size: 11px; }
  .stat-row { font-size: 10px; gap: 6px; }
  .stat-row .lbl { width: 62px; }
  .stat-bar { height: 7px; }
  .card .buy-row { min-height: 30px; gap: 8px; }
  .owned-tag { font-size: 13px; }
  .price-tag { font-size: 14px; }
  .select-footer { min-height: 44px; }

  /* achievements rows tighter */
  .ach-row { padding: 6px 10px; gap: 8px; }
  .ach-row .a-name { font-size: 13px; }
  .ach-row .a-desc { font-size: 10.5px; }
  .ach-row .a-reward { font-size: 12px; }
  .daily-cell { width: clamp(48px, 8vw, 72px); font-size: 11px; }
  .daily-cell .amt { font-size: 12px; }
}
