/* Mobile Salon Empire — MOBALON / Mr. Hair Art
   Candy / toy-like 3D App Store chrome (art bible locked). */

:root {
  --gold: #ffd24a;
  --gold-2: #ffe99a;
  --gold-deep: #e8a812;
  --magenta: #ff4db8;
  --magenta-deep: #e0187a;
  --teal: #3ef0d0;
  --teal-deep: #14b89a;
  --violet: #9b6cff;
  --violet-deep: #6a3ad4;
  --navy: #120c22;
  --ink: #1a1430;
  --cream: #fff8ef;
  --panel: rgba(28, 18, 52, 0.88);
  --panel-bright: rgba(48, 28, 88, 0.92);
  --stroke: rgba(255, 210, 74, 0.42);
  --candy-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
  --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);
  --stage-scale: 1;
  --stage-scale: min(
    calc((100vw - 8px) / 1280px),
    calc((100vh - 8px) / 720px)
  );
  --stage-scale: min(
    calc((100vw - 8px) / 1280px),
    calc((100dvh - 8px) / 720px)
  );
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100dvh;
  min-height: 100svh;
  background: #0a0714;
  color: var(--cream);
  font-family: Nunito, Outfit, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  position: fixed;
  inset: 0;
}

#mse-mount {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background: #0a0714;
}

#app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255, 77, 184, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(62, 240, 208, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 40%, rgba(255, 210, 74, 0.08), transparent 55%),
    #0a0714;
}

#letterbox-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0714;
}
#letterbox-bg img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(18px) saturate(1.12) brightness(0.72);
  transform: scale(1.12);
}
#letterbox-bg.on img { display: block; }

#stage-slot {
  position: absolute;
  left: 0;
  top: 0;
  flex: 0 0 auto;
  width: calc(1280px * var(--stage-scale));
  height: calc(720px * var(--stage-scale));
  overflow: hidden;
  z-index: 2;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  flex: none;
  width: 1280px;
  height: 720px;
  transform: scale(var(--stage-scale));
  transform-origin: 0 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(255, 210, 74, 0.35),
    0 0 0 6px rgba(155, 108, 255, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 77, 184, 0.18);
  background: #120c22;
}

canvas#c {
  position: absolute;
  inset: 0;
  width: 1280px;
  height: 720px;
  display: block;
  touch-action: none;
}

/* Coach GIF road+buses — raised band, stretch/fill edge-to-edge (tops visible) */
.map-road-gif {
  position: absolute;
  left: 0;
  top: 470px;
  width: 1280px;
  height: 250px;
  object-fit: fill; /* stretch to full width + band height */
  object-position: center center;
  pointer-events: none;
  z-index: 2;
  display: none;
  background: transparent;
  /* GIF already has alpha around buses — let canvas town show through */
}
.map-road-gif.show { display: block; }

#ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}
#ui > * { pointer-events: auto; }

.hud {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none !important;
  z-index: 45;
  flex-wrap: nowrap;
}

.hud-left, .hud-right {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 46%;
}
.hud-left { pointer-events: auto; }
.hud-right {
  flex-wrap: wrap;
  max-width: 46%;
  flex: 0 1 auto;
  gap: 5px;
  justify-content: flex-end;
  margin-left: auto;
  pointer-events: none;
}
.hud-center {
  pointer-events: none;
  flex: 0 0 auto;
  margin-top: 2px;
}

.chip {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(58, 36, 98, 0.95), rgba(24, 14, 48, 0.92));
  border: 2px solid rgba(255, 210, 74, 0.38);
  border-radius: 999px;
  box-shadow: var(--candy-shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.chip b { color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(0,0,0,0.35); }
.chip .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.chip.warn .dot { background: #ff6b4a; box-shadow: 0 0 10px #ff6b4a; }
.chip.warn { border-color: rgba(255, 107, 74, 0.65); }

.chip-ico { font-size: 13px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4)); }

.cash-chip {
  background: linear-gradient(180deg, #5a3a12, #2a1808);
  border-color: #ffd24a;
  box-shadow: 0 5px 0 #8a6010, inset 0 1px 0 rgba(255,255,200,0.25);
  gap: 8px;
}
.cash-chip b { color: #ffe99a; font-size: 15px; }
.coin-ico {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd24a 45%, #e8a812 75%, #b87808);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25), 0 0 8px rgba(255,210,74,0.55);
  position: relative;
  flex-shrink: 0;
}
.coin-ico::after {
  content: "$";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: Fredoka, Oswald, sans-serif;
  font-weight: 700; font-size: 12px; color: #8a6010;
}

.energy-chip {
  border-color: rgba(62, 240, 208, 0.55);
  background: linear-gradient(180deg, rgba(20, 70, 68, 0.95), rgba(12, 28, 40, 0.92));
}
.energy-chip b { color: var(--teal); }
.bolt-ico { color: #7dffef; }

.water-chip { border-color: rgba(120, 190, 255, 0.45); }
.water-chip b { color: #9ad0ff; }

.star-chip b { color: var(--gold-2); }
.stretch-chip b { color: #ff9ad4; }
.hud-right .chip {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hud-right .chip b { font-size: 13px; }
.hud-right .loc-chip {
  max-width: 11.5em;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
  height: auto;
  text-align: center;
}
.day-chip .sun-ico { color: #ffd24a; }

.brand-mini {
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  background: linear-gradient(180deg, #6a3ad4, #3a1a78);
  border: 2px solid rgba(255, 210, 74, 0.7);
  gap: 6px;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 47;
  position: relative;
}
.brand-logo {
  width: auto;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4));
}
#btn-home-title {
  pointer-events: auto !important;
  cursor: pointer;
}
.brand-mini:hover { filter: brightness(1.12); }
.brand-mini .crown { color: var(--gold); font-size: 14px; }

.loc-chip {
  background: linear-gradient(180deg, rgba(255, 77, 184, 0.35), rgba(40, 16, 48, 0.9));
  border-color: rgba(255, 77, 184, 0.5);
  max-width: 11.5em;
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  line-height: 1.15;
  text-align: center;
  height: auto;
  flex-shrink: 0;
}

.goal-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-radius: 16px;
  padding: 8px 14px 9px;
  background: linear-gradient(180deg, rgba(40, 24, 72, 0.95), rgba(20, 12, 40, 0.92));
}
.goal-chip .goal-lab {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 800;
}
.goal-chip > span, .goal-chip > b { display: inline; }
.goal-chip .goal-div { opacity: 0.45; margin: 0 2px; }
.goal-bar {
  position: relative;
  width: 148px;
  height: 8px;
  background: rgba(0,0,0,0.45);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 2px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
.goal-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--magenta));
  border-radius: 99px;
}
.goal-bar em {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 12px;
  background: var(--gold);
  opacity: 0.9;
}
.goal-bar em.stretch { background: var(--magenta); }

.hud.salon-mode #hFuelChip { display: none; }
/* Water lives once, on the right tank gauge. Hide the top Water % pill in salon and on the road. */
body.playing-drive #hWaterChip,
.hud.salon-mode #hWaterChip { display: none !important; }
.hud:not(.salon-mode) #hWaterChip,
.hud:not(.salon-mode) #hGoalChip { display: none; }
.hud:not(.salon-mode) .hud-center { display: none; }

/* Coach stamina on top, Fuel stacked under it */
.coach-fuel-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.coach-fuel-stack .chip {
  justify-content: flex-start;
}

/* Salon shift clock — hand sweeps clockwise and blacks out the face behind it. */
.sun-clock {
  --t: 0;
  --face: #1fdb62;
  width: 88px;
  height: 88px;
  position: relative;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
}
.clock-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,0.16), transparent 40%),
    conic-gradient(
      from 0deg,
      #07060c 0turn,
      #07060c calc(var(--t) * 1turn),
      var(--face) calc(var(--t) * 1turn),
      var(--face) 1turn
    );
  box-shadow:
    0 0 0 3px #ffd24a,
    0 0 0 6px #5a2080,
    inset 0 0 0 2px rgba(255,255,255,0.18);
}
.clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 42px;
  margin-left: -4px;
  margin-top: -42px;
  transform-origin: 50% 100%;
  transform: rotate(calc(var(--t) * 360deg));
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #fff 0%, #f4fff8 28%, #12081c 78%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.7), 0 0 8px rgba(255,255,255,0.45);
  z-index: 3;
  pointer-events: none;
}
.clock-word {
  position: absolute;
  inset: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Fredoka, Oswald, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #5dff9a;
  text-shadow:
    0 0 6px #39ff88,
    0 0 14px #14e06a,
    0 0 22px #0a8f42;
  pointer-events: none;
}
.sun-clock.is-late .clock-ring {
  animation: clock-blink 0.7s steps(2, end) infinite;
}
@keyframes clock-blink {
  0%, 45% { filter: brightness(1); }
  50%, 100% { filter: brightness(1.65); }
}
.sun-clock.is-closed .clock-word {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #ff4d8d;
  text-shadow:
    0 0 6px #ff2d78,
    0 0 14px #ff4d9a,
    0 0 22px #c4005a;
}
.sun-clock.is-closed .clock-ring {
  animation: none;
  box-shadow:
    0 0 0 3px #141018,
    0 0 0 6px #07060c,
    inset 0 0 0 2px rgba(255,255,255,0.06);
}
@media (prefers-reduced-motion: reduce) {
  .sun-clock.is-late .clock-ring { animation: none; }
}

/* ----- screens ----- */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 28px 36px;
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(255, 77, 184, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(62, 240, 208, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(10,8,22,0.62), rgba(10,8,22,0.88));
}
.screen.show { display: flex; }

#sc-title {
  padding: 0;
  background: #0a0714;
  overflow: hidden;
  z-index: 80;
}
.title-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0714;
  pointer-events: none;
}
.title-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04);
  pointer-events: none;
}
.title-slide.on { opacity: 1; }
.title-hero.blink .title-slide { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .title-hero.blink .title-slide.on { opacity: 1 !important; }
}
.title-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(8,5,18,0.28) 0%, rgba(8,5,18,0.18) 34%, rgba(8,5,18,0.12) 52%, rgba(8,5,18,0.38) 100%),
    linear-gradient(180deg, rgba(12,6,28,0.12) 0%, transparent 42%, rgba(8,5,18,0.62) 100%);
  pointer-events: none;
}
.title-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 22px 36px 18px;
  height: 100%;
  max-width: 720px;
}
.title-logo {
  width: auto;
  height: 118px;
  margin: 0 0 4px;
  object-fit: contain;
  align-self: flex-start;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.5));
  pointer-events: none;
}

.kicker {
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--teal);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
h1.title {
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 72px;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 8px 0 6px;
  color: #fff;
  filter: drop-shadow(0 6px 0 rgba(60, 20, 100, 0.85)) drop-shadow(0 12px 28px rgba(255, 77, 184, 0.35));
}
h1.title .t-mobile {
  display: block;
  font-size: 34px;
  letter-spacing: 0.22em;
  color: #fff;
  text-shadow: 0 3px 0 #2a1850, 0 0 18px rgba(255,255,255,0.25);
}
h1.title .t-salon {
  display: block;
  font-size: 78px;
  line-height: 0.9;
  background: linear-gradient(180deg, #ff9ad4 0%, #ff4db8 45%, #e0187a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 4px 0 #4a1060);
  letter-spacing: 0.04em;
}
h1.title .t-empire {
  display: inline-block;
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: 0.2em;
  padding: 6px 18px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe99a, #ffd24a 40%, #e8a812);
  color: #3a2208;
  -webkit-text-fill-color: #3a2208;
  box-shadow: 0 5px 0 #8a6010, inset 0 1px 0 rgba(255,255,255,0.45);
}
h1.title .t-tag {
  display: block;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
  margin-top: 14px;
  opacity: 0.85;
  font-family: Nunito, Outfit, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
/* Candy lockup: cream Mobile + pink Salon + gold EMPIRE text, left column only */
h1.title.mse-sign {
  font-size: inherit;
  line-height: 1;
  text-transform: none;
  filter: none;
  margin: 8px 0 6px;
  width: fit-content;
  max-width: 320px;
}
.mse-sign-board {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 320px;
  padding: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.mse-script {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  line-height: 0.92;
}
.mse-word-mobile {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.01em;
  color: #fff6c8;
  text-transform: none;
  text-shadow: 0 2px 0 #2a1850, 0 0 10px rgba(255, 210, 74, 0.35);
}
.mse-word-salon {
  font-family: Fredoka, Oswald, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: none;
  background: linear-gradient(180deg, #ffb3de 0%, #ff4db8 42%, #e0187a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #4a1060) drop-shadow(0 0 8px rgba(255, 77, 184, 0.4));
}
.mse-empire {
  display: block;
  align-self: flex-start;
  margin: 1px 0 0 2px;
  padding: 0;
  font-family: Fredoka, Oswald, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffd24a;
  -webkit-text-fill-color: #ffd24a;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 2px 0 #6a4a08, 0 0 8px rgba(255, 210, 74, 0.35);
  filter: none;
}
.mse-rule {
  display: block;
  width: 132px;
  height: 3px;
  margin: 6px 0 4px 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff4db8, #ffd24a 55%, #3ef0d0);
  box-shadow: none;
}
h1.title.mse-sign .t-tag {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
/* Splash art already paints Mobile Salon EMPIRE at every width. Hide the small HTML duplicate. */
h1.title.mse-sign .mse-script,
h1.title.mse-sign .mse-empire,
h1.title.mse-sign .mse-rule,
h1.title.mse-sign .t-tag {
  display: none;
}
/* Desktop: a little more room for the official mark. */
@media (min-width: 1100px) {
  .title-logo { height: 84px; }
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 10px 0 4px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: Fredoka, Oswald, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, #8b5cff, #5a2ec8);
  border: 2px solid #ffd24a;
  box-shadow: 0 4px 0 #3a1880, inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand-pill .scissors { color: #ff9ad4; font-size: 15px; }

.motto {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: rgba(255, 246, 234, 0.88);
  max-width: 640px;
  margin: 10px 0 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
/* Title only: a dark pill so the tagline reads over the splash. */
#sc-title .motto {
  width: fit-content;
  max-width: min(620px, 100%);
  margin: 8px 0 14px;
  padding: 6px 16px 7px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.78);
  color: #fff6ea;
  line-height: 1.35;
  text-shadow: none;
  box-shadow: 0 3px 0 rgba(0,0,0,0.28);
}

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.title-actions { margin-top: 4px; }

.btn {
  appearance: none;
  border: 2px solid rgba(255, 210, 74, 0.55);
  background: linear-gradient(180deg, #3a2a58, #1a1230);
  color: var(--cream);
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s, filter 0.12s;
  box-shadow: 0 6px 0 rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn.chunky { border-radius: 22px; padding: 14px 26px; }
.btn:hover { transform: translateY(-2px); border-color: var(--gold); filter: brightness(1.06); box-shadow: 0 8px 0 rgba(0,0,0,0.35), 0 0 24px rgba(255,210,74,0.28); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.btn.primary {
  background: linear-gradient(180deg, #ffe99a, #ffd24a 40%, #e8a812);
  color: #2a1808;
  border-color: #fff0b8;
  text-shadow: none;
  box-shadow: 0 6px 0 #8a6010, inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn.primary:hover { box-shadow: 0 8px 0 #8a6010, 0 0 28px rgba(255,210,74,0.4); }
.btn.ghost { background: transparent; }
.btn.teal {
  background: linear-gradient(180deg, #7affdf, #3ef0d0 40%, #14b89a);
  color: #042820;
  border-color: #b8fff0;
  box-shadow: 0 6px 0 #0a7a64, inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn.mag {
  background: linear-gradient(180deg, #ff9ad4, #ff4db8 40%, #e0187a);
  color: #2a0716;
  border-color: #ffc4e4;
  box-shadow: 0 6px 0 #8a1050, inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

.hint {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,246,234,0.72);
  max-width: 560px;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
#sc-title .hint {
  width: fit-content;
  max-width: min(640px, 100%);
  margin-top: 12px;
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.78);
  color: rgba(255, 246, 234, 0.94);
  line-height: 1.4;
  text-shadow: none;
  box-shadow: 0 3px 0 rgba(0,0,0,0.28);
}
/* Short landscape: one line, starting past the painted vertical MOBALON sign. */
@media (max-height: 520px) and (orientation: landscape) {
  #sc-title .motto {
    margin-left: 430px;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1;
    max-width: none;
    white-space: nowrap;
    margin-bottom: 6px;
    padding: 3px 12px 4px;
  }
  #sc-title .hint {
    font-size: 12px;
    max-width: 500px;
    margin-top: 8px;
    margin-left: 0;
  }
}

/* map — candy district cards (match Upgrade Shop / Depot chrome) */
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.map-head .kicker {
  font: 800 11px/1 Fredoka, Oswald, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3ef0d0;
  text-shadow: 0 0 12px rgba(62,240,208,0.45);
}
h2 {
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 32px;
  color: #fff6ea;
  text-shadow: 0 3px 0 rgba(60, 20, 100, 0.55), 0 0 18px rgba(255,77,184,0.25);
}
.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  padding-bottom: 8px;
}
.loc-card {
  position: relative;
  padding: 18px 16px 42px 18px;
  border-radius: 24px;
  border: 2.5px solid rgba(255,210,74,0.35);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(255,77,184,0.28), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(62,240,208,0.18), transparent 50%),
    linear-gradient(165deg, rgba(88, 48, 140, 0.92) 0%, rgba(28, 16, 56, 0.96) 60%, rgba(14, 10, 32, 0.98) 100%);
  cursor: pointer;
  overflow: hidden;
  min-height: 148px;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  box-shadow: 0 9px 0 rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.14);
}
.loc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, #ffd24a, #ff4db8, #3ef0d0);
  border-radius: 24px 0 0 24px;
  box-shadow: 0 0 12px rgba(255,210,74,0.35);
}
.loc-card::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,74,0.2), transparent 70%);
  pointer-events: none;
}
.loc-card .pin {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  color: #1a1428;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55), transparent 55%),
    var(--pin, #ff4db8);
  border: 3px solid #fff;
  box-shadow: 0 6px 0 rgba(0,0,0,0.22), 0 0 0 3px var(--pin, #ff4db8);
  z-index: 1;
}
.loc-card .pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38px;
  width: 14px; height: 14px;
  background: var(--pin, #ff4db8);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}
.loc-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: #ffd24a;
  box-shadow: 0 14px 0 rgba(0,0,0,0.3), 0 0 32px rgba(255,210,74,0.28);
}
.loc-card .tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dffef;
  font-weight: 800;
}
.loc-card h3 {
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 24px;
  margin: 6px 0 8px;
  letter-spacing: 0.03em;
  padding-right: 48px;
  color: #fff6ea;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
.loc-card p { font-size: 13px; color: rgba(255,246,234,0.78); line-height: 1.35; max-width: 92%; }
.loc-card .pay {
  position: absolute;
  bottom: 12px; right: 14px;
  color: #ffe99a;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(90,50,18,0.95), rgba(30,16,8,0.95));
  border: 1.5px solid rgba(255,210,74,0.55);
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}
.loc-card.home {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255,210,74,0.35), transparent 55%),
    linear-gradient(135deg, rgba(255,210,74,0.28), rgba(40,24,72,0.92));
  border-color: rgba(255,210,74,0.65);
}

/* shop — candy Sally / App Store card grid */
.shop-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 16px;
  margin-top: 14px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.shop-col {
  background: linear-gradient(180deg, rgba(40, 24, 72, 0.75), rgba(16,14,32,0.82));
  border: 2px solid var(--stroke);
  border-radius: 20px;
  padding: 16px;
  overflow: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
  min-height: 0;
}
#shop-list.shop-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: #ffd24a rgba(18, 12, 34, 0.55);
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(255,77,184,0.12), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 100%, rgba(255,210,74,0.08), transparent 50%),
    linear-gradient(180deg, rgba(40, 24, 72, 0.78), rgba(16,14,32,0.88));
}
#sc-shop.show .shop-col {
  /* Radio is a top-corner button on shop screens, so the last buy row only needs a little air. */
  padding-bottom: 36px;
}
#shop-list.shop-col::-webkit-scrollbar { width: 10px; }
#shop-list.shop-col::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd24a, #e8a812);
  border-radius: 999px;
  border: 2px solid rgba(18, 12, 34, 0.6);
}
.shop-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(165deg, rgba(72, 40, 120, 0.92), rgba(22, 14, 44, 0.96));
  border: 2px solid rgba(255, 210, 74, 0.38);
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  min-width: 0;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 74, 0.7);
}
.shop-card-icon {
  width: 100%;
  aspect-ratio: 1.05;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 210, 74, 0.55);
  background:
    linear-gradient(145deg, rgba(155,108,255,0.95), rgba(224,24,122,0.9) 55%, rgba(255,210,74,0.55));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 24px rgba(255, 210, 74, 0.18), 0 3px 0 rgba(0,0,0,0.2);
}
.shop-card-icon img,
.shop-card-icon canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: transparent;
  /* Knock out the black plate on product art so the candy frame shows through. */
  mix-blend-mode: lighten;
}
.shop-card-ph {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  user-select: none;
}
.shop-card-body { min-width: 0; flex: 1; }
.shop-card h4 {
  font-size: 15px;
  font-family: Fredoka, Oswald, sans-serif;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.shop-card p {
  font-size: 12px;
  color: rgba(255,246,234,0.62);
  margin-top: 4px;
  line-height: 1.35;
}
.shop-card .shop-buy {
  width: 100%;
  margin-top: 2px;
  font-weight: 800;
}
/* legacy list rows (kept for safety) */
.upgrade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.upgrade:last-child { border-bottom: 0; }
.upgrade h4 { font-size: 16px; font-family: Fredoka, Oswald, sans-serif; }
.upgrade p { font-size: 13px; color: rgba(255,246,234,0.65); margin-top: 2px; }
.owned { color: var(--teal); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(40, 24, 72, 0.95), rgba(16,10,32,0.95));
  border: 2px solid var(--gold);
  color: var(--gold-2);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  display: none;
  pointer-events: none;
  z-index: 8;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 0 rgba(0,0,0,0.3), 0 0 20px rgba(255,210,74,0.25);
}
.toast.show { display: block; animation: pop 0.25s ease; }
/* Pull-in toast sits under the HUD, not on the depot footer hint. */
body.in-garage .toast {
  top: 76px;
  bottom: auto;
  z-index: 50;
  max-width: min(540px, calc(100% - 280px));
}

body.playing-drive .drive-help-wrap {
  /* Narrow pill, bottom-center. Not lifted onto the old full-width radio dock. */
  bottom: 12px;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: min(440px, calc(100% - 380px));
  transform: translateX(-50%);
  z-index: 46;
}
body.playing-drive .toast {
  /* Wreck / street toasts sit under the HUD, never on the radio or the instructions. */
  top: 86px;
  bottom: auto;
  z-index: 48;
  max-width: min(520px, calc(100% - 280px));
}
.drive-help-wrap {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 45;
  display: none;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  max-width: min(520px, calc(100% - 300px));
  width: min(520px, calc(100% - 300px));
  pointer-events: auto;
}
.drive-help-btn {
  border: 2px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 16px;
  font: 800 12px/1.1 Fredoka, Oswald, sans-serif;
  letter-spacing: 0.1em;
  color: #fff6ea;
  background: linear-gradient(180deg, rgba(245,197,66,0.42), rgba(40,24,12,0.94));
  box-shadow: 0 4px 0 rgba(0,0,0,0.28);
  cursor: pointer;
  touch-action: manipulation;
}
.drive-help-btn[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(62,240,208,0.4), rgba(12,28,32,0.94));
  color: #ffe9a8;
}
.drive-help {
  width: 100%;
  max-width: 520px;
  min-height: 118px;
  background: var(--panel);
  border: 2px solid var(--stroke);
  border-radius: 18px;
  padding: 10px 10px 8px;
  font-size: 13px;
  color: rgba(255,246,234,0.85);
  line-height: 1.4;
  box-shadow: 0 5px 0 rgba(0,0,0,0.25);
  touch-action: pan-y;
}
.drive-help[hidden] { display: none !important; }
.drive-help-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.drive-help-copy {
  flex: 1;
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2px 4px 0;
}
.drive-help-copy b {
  display: block;
  color: var(--gold);
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.06em;
  font-size: 13px;
  margin-bottom: 4px;
}
.drive-help-copy p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,246,234,0.85);
  line-height: 1.4;
}
.drive-help-arrow {
  flex: 0 0 44px;
  width: 44px;
  min-height: 88px;
  border: 0;
  border-radius: 14px;
  background: rgba(155,108,255,0.35);
  color: #fff6ea;
  font: 700 28px/1 Oswald, sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}
.drive-help-arrow:active { transform: translateY(1px); }
.drive-help-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.drive-help-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,246,234,0.28);
}
.drive-help-dots span.on {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255,210,74,0.55);
}
.salon-help-wrap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: min(440px, 46vw);
  pointer-events: auto;
}
.salon-help-btn {
  border: 2px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  font: 800 11px/1.1 system-ui, sans-serif;
  letter-spacing: 0.05em;
  color: #fff6ea;
  background: linear-gradient(180deg, rgba(46,230,197,0.35), rgba(20,40,48,0.92));
  box-shadow: 0 4px 0 rgba(0,0,0,0.28);
  cursor: pointer;
  text-transform: uppercase;
}
.salon-help-btn[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(245,197,66,0.45), rgba(40,30,12,0.92));
  color: #ffe9a8;
}
.salon-help {
  max-width: 440px;
  background: var(--panel);
  border: 2px solid var(--stroke);
  border-radius: 18px;
  padding: 11px 12px 10px;
  font-size: 13px;
  color: rgba(255,246,234,0.85);
  line-height: 1.4;
  box-shadow: 0 5px 0 rgba(0,0,0,0.25);
  touch-action: pan-y;
}
.salon-help[hidden] { display: none !important; }

.close-shop {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.touch-pad {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 3px solid rgba(255, 210, 74, 0.7);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.16), transparent 52%),
    radial-gradient(circle at 50% 50%, rgba(72,40,120,0.7), rgba(8,6,16,0.92));
  display: none;
  z-index: 120;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 0 rgba(0,0,0,0.35), 0 0 18px rgba(255,210,74,0.22);
  touch-action: none;
  pointer-events: auto !important;
}
.stick-knob {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd24a, #c9a227);
  border: 3px solid #fff6ea;
  box-shadow: 0 4px 0 rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.45);
  pointer-events: none;
  transform: translate(0, 0);
  will-change: transform;
}
.gas-btn {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #1a1020;
  background-color: #ffd24a;
  background-image: linear-gradient(180deg, #fff6c4 0%, #ffd24a 46%, #e39a08 100%);
  color: #140814;
  -webkit-text-fill-color: #140814;
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: none;
  z-index: 120;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-shadow: none;
  box-shadow: 0 6px 0 #6a4808, 0 0 0 3px #fff6ea, 0 0 18px rgba(255, 210, 74, 0.65);
  touch-action: none;
  pointer-events: auto !important;
  opacity: 1;
  filter: none;
}
.gas-btn:active {
  filter: none;
  opacity: 1;
  background-color: #ffe99a;
  transform: translateY(2px);
}

body.playing-drive .touch-pad,
body.playing-drive .gas-btn { display: flex; }

.day-banner {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  display: none;
  z-index: 9;
}
.day-banner.show { display: block; animation: pop 0.4s ease; }
.day-banner h2 { font-size: 56px; color: var(--gold); font-family: Fredoka, Oswald, sans-serif; }
.day-banner p { color: var(--cream); opacity: 0.85; margin-top: 6px; }

@keyframes pop {
  from { transform: translate(-50%, -40%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.fly {
  position: absolute;
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #7dffb2;
  pointer-events: none;
  animation: fly 0.9s ease-out forwards;
  z-index: 10;
  text-shadow: 0 2px 8px #000;
}
@keyframes fly {
  from { transform: translate(-50%, 0); opacity: 1; }
  to { transform: translate(-50%, -70px); opacity: 0; }
}
.fly.hudward {
  animation: flyHud 0.85s ease-in forwards;
}
@keyframes flyHud {
  from { transform: translate(-50%, 0) scale(1); opacity: 1; }
  to { transform: translate(-280px, -220px) scale(0.4); opacity: 0; }
}

.results { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  background: linear-gradient(180deg, rgba(48, 28, 88, 0.85), rgba(16,14,32,0.85));
  border: 2px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 5px 0 rgba(0,0,0,0.22);
}
.stat em { display: block; font-style: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 800; }
.stat strong { font-family: Fredoka, Oswald, sans-serif; font-size: 28px; color: var(--gold); }
.stat.warn { border-color: rgba(255, 107, 107, 0.55); }
.stat.warn em { color: #ff8a8a; }
.stat.warn strong { color: #ff6b6b; }
.stat.acc-total { border-color: rgba(255, 210, 74, 0.7); grid-column: 1 / -1; }
#sc-dayend { overflow-y: auto; }
.accident-tally {
  margin-top: 12px;
  padding: 12px 14px 14px;
  border-radius: 20px;
  border: 2px solid rgba(255, 107, 107, 0.4);
  background: linear-gradient(165deg, rgba(72, 18, 36, 0.55), rgba(18, 12, 32, 0.72));
  box-shadow: 0 6px 0 rgba(0,0,0,0.28);
}
.accident-tally .kicker { color: #ff8a8a; margin-bottom: 6px; }
.accident-results { margin-top: 8px; }
.accident-results .stat { padding: 10px 12px; }
.accident-results .stat strong { font-size: 22px; }
.accident-note {
  font-size: 13px;
  font-weight: 800;
  color: #ffe9a8;
  margin: 0 0 10px;
  line-height: 1.4;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.accident-results { margin-top: 8px; }

.howto {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  max-width: 680px;
  font-size: 13px;
  color: rgba(255,246,234,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.howto b { color: var(--gold); }

.title-chips {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  max-width: 700px;
}
.title-chips[hidden] { display: none !important; }
.title-chip {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,246,234,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,10,36,0.78), rgba(8,5,18,0.72));
  border: 2px solid rgba(255,210,74,0.45);
  box-shadow: 0 3px 0 rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}
.title-chip b {
  color: var(--gold);
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.title-chip:nth-child(1) { border-color: rgba(74, 214, 200, 0.55); }
.title-chip:nth-child(2) { border-color: rgba(255, 77, 184, 0.55); }
.title-chip:nth-child(3) { border-color: rgba(255, 210, 74, 0.65); }
.title-chip:nth-child(4) { border-color: rgba(139, 92, 255, 0.55); }
.title-chip:nth-child(5) { border-color: rgba(255, 210, 74, 0.7); }
.title-chip:nth-child(6) { border-color: rgba(74, 214, 200, 0.55); }
.title-chip:nth-child(7),
.title-chip-franchise {
  border-color: rgba(255, 122, 217, 0.7);
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(48, 18, 56, 0.88), rgba(18, 8, 36, 0.82));
}
.title-chip-franchise b { color: #ff7ad9; }
#btn-howto {
  font-size: 14px;
  padding-left: 16px;
  padding-right: 16px;
}
@media (max-width: 720px) {
  .title-chips { grid-template-columns: 1fr; }
  .mse-word-mobile { font-size: 22px; }
  .mse-word-salon { font-size: 28px; }
  .mse-empire { font-size: 11px; padding: 0; letter-spacing: 0.16em; }
  .mse-sign-board { padding: 0; max-width: 260px; }
  h1.title.mse-sign { max-width: 260px; }
  h1.title.mse-sign .t-tag { font-size: 9px; letter-spacing: 0.04em; }
}

.star-row {
  display: flex;
  gap: 10px;
  font-size: 42px;
  margin: 6px 0 8px;
  color: rgba(255,246,234,0.18);
  letter-spacing: 0.12em;
}
.star-row span.on {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255,210,74,0.65);
}

.garage-help {
  position: absolute;
  left: 16px;
  bottom: 16px; /* parallel with Town map + Upgrade Shop buttons */
  max-width: min(520px, 42vw); /* left side; clear right buttons */
  background:
    radial-gradient(ellipse 90% 80% at 10% 0%, rgba(255,210,74,0.18), transparent 55%),
    linear-gradient(165deg, rgba(72, 40, 120, 0.94), rgba(18, 12, 40, 0.96));
  border: 2px solid rgba(255, 210, 74, 0.55);
  border-radius: 18px;
  padding: 10px 18px;
  font-size: 13px;
  color: rgba(255,246,234,0.9);
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 6px 0 rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  white-space: normal;
}
.garage-help b {
  color: #ffd24a;
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.03em;
}

.radio-btn {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255,210,74,0.45);
  background: linear-gradient(180deg, rgba(48, 28, 88, 0.92), rgba(16,14,32,0.9));
  color: var(--cream);
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.28);
  flex: 0 0 auto;
  box-sizing: border-box;
}
.radio-btn b { color: var(--teal); }
.radio-btn.off b { color: #888; }
.radio-eq {
  width: 14px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) 0 100%/3px 40%,
    linear-gradient(currentColor, currentColor) 5px 100%/3px 80%,
    linear-gradient(currentColor, currentColor) 10px 100%/3px 55%;
  background-repeat: no-repeat;
  color: var(--teal);
}
.radio-btn.off .radio-eq { color: #666; }
.radio-btn:not(.off) .radio-eq { animation: eq 0.8s ease-in-out infinite alternate; }
@keyframes eq {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

#sc-shop {
  padding-top: 100px; /* clear wrapped HUD chips */
  overflow: hidden;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(255, 77, 184, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(8,7,18,0.72), rgba(8,7,18,0.88));
}
#sc-map {
  padding-top: 100px; /* clear wrapped HUD chips so map-head / End Day don't collide */
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(142, 212, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 90% 70% at 10% 80%, rgba(126, 220, 104, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 210, 74, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(110, 190, 255, 0.55), rgba(80, 160, 90, 0.72));
  /* Full-screen map layer must not eat radio clicks at the bottom-right. */
  pointer-events: none !important;
}
#sc-map .map-head,
#sc-map .loc-card,
#sc-map .btn { pointer-events: auto !important; }
#sc-map #map-hint {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid rgba(255,210,74,0.35);
  background: linear-gradient(165deg, rgba(72,40,120,0.75), rgba(18,12,40,0.9));
  color: rgba(255,246,234,0.85);
  box-shadow: 0 5px 0 rgba(0,0,0,0.28);
  pointer-events: none;
}

.radio-wrap {
  position: absolute;
  right: 16px;
  top: 108px; /* drive: sit fully below the HUD chip row */
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto !important;
  isolation: isolate;
  overflow: visible;
  min-height: 44px;
}
/* Title: full bar used to clip the right edge of the painted MOBILE word.
   Stack it on the right edge, under the mark, so the art title stays clear. */
#sc-title.show ~ .radio-wrap {
  top: 176px;
  right: 12px;
  left: auto;
  width: max-content;
  max-width: 248px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  z-index: 90;
}
#sc-title.show ~ .radio-wrap .radio-btn {
  max-width: 248px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}
/* Depot (garage): full bar along the bottom. Shop / map / bank use the corner button instead. */
body.in-garage .radio-wrap {
  top: auto;
  bottom: 8px;
  left: 12px;
  right: 12px;
  width: auto;
  max-width: none;
  z-index: 90;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(10, 7, 20, 0.94);
  border: 2px solid rgba(255, 210, 74, 0.5);
  box-shadow: 0 6px 0 rgba(0,0,0,0.35);
}
/* Drive, map, and shop: small RADIO button in the top corner. Tap opens the full bar. */
body.radio-corner .radio-wrap {
  top: 12px;
  bottom: auto;
  left: auto;
  right: 12px;
  width: max-content;
  max-width: 280px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(10, 7, 20, 0.94);
  border: 2px solid rgba(255, 210, 74, 0.5);
  box-shadow: 0 4px 0 rgba(0,0,0,0.35);
  overflow: visible;
}
body.radio-corner .radio-wrap:not(.drive-open) {
  flex-direction: row;
  align-items: center;
  padding: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
body.radio-corner .radio-wrap.drive-open .radio-vol { order: 2; }
body.radio-corner .radio-wrap.drive-open .radio-stn-col { order: 3; }
body.radio-corner .radio-wrap.drive-open .radio-btn { order: 4; }
body.radio-corner .radio-wrap.drive-open .radio-expand { order: 1; }
body.radio-corner .radio-wrap:not(.drive-open) .radio-stn-col,
body.radio-corner .radio-wrap:not(.drive-open) .radio-vol,
body.radio-corner .radio-wrap:not(.drive-open) .radio-btn { display: none !important; }
body.radio-corner .radio-wrap.drive-open .radio-btn { font-size: 12px; letter-spacing: 0.06em; }
body.radio-corner .radio-stn-tip { display: none; }
body.radio-corner .radio-stn { min-width: 0; max-width: 12rem; }
body.radio-corner .radio-vol { padding: 4px 8px; gap: 6px; }
body.radio-corner .radio-vol input[type="range"] { width: 88px; }
.radio-expand {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 210, 74, 0.55);
  background: linear-gradient(180deg, rgba(72, 24, 88, 0.94), rgba(16, 14, 32, 0.92));
  color: #ffd24a;
  font: 800 16px/1 Fredoka, Oswald, sans-serif;
  cursor: pointer;
}
body.radio-corner .radio-expand { display: inline-flex; width: auto; min-width: 72px; height: 36px; padding: 0 12px; letter-spacing: 0.08em; font-size: 13px; }
body.in-garage #btn-garage-shop.close-shop,
body.in-garage #btn-garage-map.close-shop,
body.in-garage .garage-help {
  bottom: calc(var(--radio-dock, 112px) + 6px);
}

.radio-wrap .radio-btn { position: relative !important; top: auto !important; right: auto !important; z-index: 61; }
.radio-stn {
  appearance: none;
  padding: 8px 12px;
  min-width: 7.5rem;
  max-width: 11.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255,210,74,0.45);
  background: linear-gradient(180deg, rgba(48, 28, 88, 0.92), rgba(16,14,32,0.9));
  color: var(--cream);
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.28);
}
.radio-stn b { color: var(--gold); }
.radio-wrap.off .radio-stn b { color: #888; }
.radio-stn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 11.5rem;
}
#sc-map.show ~ .radio-wrap .radio-stn-col,
#sc-shop.show ~ .radio-wrap .radio-stn-col,
#sc-shop-hub.show ~ .radio-wrap .radio-stn-col,
#sc-bank.show ~ .radio-wrap .radio-stn-col,
#sc-dayend.show ~ .radio-wrap .radio-stn-col,
body.in-garage .radio-wrap .radio-stn-col,
body.playing-drive .radio-wrap .radio-stn-col {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: none;
}
.radio-stn-tip {
  font: 700 11px/1.2 Nunito, system-ui, sans-serif;
  color: rgba(255, 246, 234, 0.86);
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  max-width: 9.2rem;
  pointer-events: none;
}
.radio-wrap.off .radio-stn-tip { color: rgba(160,160,160,0.65); }
.radio-wrap.live .radio-stn {
  border-color: rgba(255, 77, 184, 0.9);
  box-shadow: 0 4px 0 rgba(0,0,0,0.28), 0 0 14px rgba(255, 77, 184, 0.45);
}
.radio-wrap.live .radio-stn b { color: #ff9ad4; }


.radio-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 77, 184, 0.45);
  background: linear-gradient(180deg, rgba(72, 24, 88, 0.94), rgba(16, 14, 32, 0.92));
  box-shadow: 0 4px 0 rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.radio-vol-ico {
  color: var(--pink, #ff4db8);
  text-shadow: 0 0 8px rgba(255, 77, 184, 0.45);
}
.radio-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46, 230, 197, 0.25), rgba(255, 77, 184, 0.55));
  outline: none;
  border: 1px solid rgba(255,210,74,0.35);
  cursor: pointer;
}
.radio-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6ea, #ffd24a 45%, #ff4db8);
  border: 2px solid rgba(255,246,234,0.9);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 0 10px rgba(255, 77, 184, 0.55);
  cursor: pointer;
}
.radio-vol input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6ea, #ffd24a 45%, #ff4db8);
  border: 2px solid rgba(255,246,234,0.9);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
  cursor: pointer;
}
.radio-wrap.off .radio-vol-ico { color: #888; text-shadow: none; }


/* ===== SCENARIOS — resource crisis (water / fuel) ===== */
.crisis-screen {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
}
.crisis-screen.show {
  display: flex !important;
}
body.crisis-open #radio-wrap,
body.crisis-open .close-shop,
body.crisis-open .touch-pad,
body.crisis-open .gas-btn {
  pointer-events: none !important;
}
.crisis-actions .btn {
  position: relative;
  z-index: 3;
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
}
.crisis-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 24, 48, 0.22), rgba(60, 0, 14, 0.34) 72%),
    rgba(90, 0, 18, 0.28);
  animation: crisisPulse 1.8s ease-in-out infinite alternate;
}
@keyframes crisisPulse {
  from { opacity: 0.7; }
  to { opacity: 0.88; }
}
.crisis-card {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: min(520px, 92%);
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 3px solid #ff5a6a;
  background:
    linear-gradient(165deg, rgba(90, 12, 28, 0.96) 0%, rgba(36, 6, 14, 0.98) 55%, rgba(20, 4, 10, 0.98)),
    #2a0810;
  box-shadow:
    0 0 0 4px rgba(255, 80, 90, 0.25),
    0 18px 0 rgba(0, 0, 0, 0.45),
    0 0 48px rgba(255, 40, 60, 0.45),
    inset 0 1px 0 rgba(255, 200, 200, 0.18);
  text-align: center;
}
.crisis-kicker {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff9aa8;
  margin-bottom: 6px;
}
.crisis-title {
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 40px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff0f2;
  text-shadow: 0 3px 0 #8a1020, 0 0 24px rgba(255, 60, 80, 0.65);
  margin: 0 0 10px;
  line-height: 1.05;
}
.crisis-blurb {
  font-family: Nunito, Outfit, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 236, 240, 0.9);
  margin: 0 0 10px;
}
.crisis-area {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #ffc4a8;
  margin: 0 0 18px;
}
.crisis-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.crisis-actions .btn {
  width: 100%;
  justify-content: center;
}
.crisis-buy:disabled {
  opacity: 0.45;
}

.crisis-buy { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.crisis-ico { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex: 0 0 auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.35)); }


/* ===== Shop hub — candy cards (+ locked Franchise Fleet tease) ===== */
#sc-shop-hub {
  padding-top: 100px;
  overflow: hidden;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(255, 77, 184, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(62, 240, 208, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(8,7,18,0.72), rgba(8,7,18,0.88));
}
.hub-blurb {
  margin: 8px 0 18px;
  color: rgba(255,246,234,0.78);
  font-size: 15px;
  line-height: 1.45;
  max-width: 720px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  padding-right: 6px;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: #ffd24a rgba(18, 12, 34, 0.55);
}
.hub-grid::-webkit-scrollbar { width: 10px; }
.hub-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd24a, #e8a812);
  border-radius: 999px;
  border: 2px solid rgba(18, 12, 34, 0.6);
}
.hub-card {
  appearance: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 20px;
  border-radius: 22px;
  border: 3px solid rgba(255, 210, 74, 0.55);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255,77,184,0.22), transparent 55%),
    linear-gradient(165deg, rgba(72, 40, 120, 0.95), rgba(18, 12, 40, 0.98));
  box-shadow: 0 8px 0 rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.1);
  color: var(--cream);
  transition: transform 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
  min-height: 220px;
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 210, 74, 0.95);
  filter: brightness(1.06);
}
.hub-card:active { transform: translateY(-1px); }
.hub-card-ico {
  font-size: 42px;
  line-height: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 2px solid rgba(255,210,74,0.5);
  background: linear-gradient(145deg, rgba(155,108,255,0.95), rgba(224,24,122,0.88) 55%, rgba(255,210,74,0.55));
  box-shadow: inset 0 0 20px rgba(255,210,74,0.2);
}
.hub-card-ico-thumb {
  width: 200px;
  max-width: 85%;
  height: 112px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  margin: 0 0 10px 0;
  align-self: flex-start;
  flex-shrink: 0;
  display: block;
  border-radius: 16px;
  border: 2px solid rgba(255,210,74,0.5);
  background: linear-gradient(165deg, rgba(18, 10, 36, 0.95), rgba(72, 28, 96, 0.55));
  box-sizing: border-box;
  box-shadow: inset 0 0 20px rgba(255,210,74,0.12);
}
.hub-card-ico-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hub-card h3 {
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 26px;
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}
.hub-card p {
  margin: 0;
  color: rgba(255,246,234,0.72);
  line-height: 1.45;
  font-size: 14px;
}
.hub-card-business { border-color: rgba(255, 122, 217, 0.55); }
.hub-card-operator { border-color: rgba(62, 240, 208, 0.5); }
.hub-card-bus { border-color: rgba(255, 210, 74, 0.65); }
.hub-card-franchise {
  border-color: rgba(255, 122, 217, 0.65);
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(255,210,74,0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(155,108,255,0.28), transparent 50%),
    linear-gradient(165deg, rgba(72, 28, 96, 0.95), rgba(18, 10, 36, 0.98));
}
.hub-card.is-locked {
  cursor: pointer;
  filter: saturate(0.92);
}
.hub-card.is-locked:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 217, 0.95);
  filter: brightness(1.05) saturate(1);
}
.hub-coming-soon {
  color: #000;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
}
.hub-card-franchise .hub-lock-badge {
  font-size: 13px;
  padding: 7px 14px;
}
.hub-lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-family: Fredoka, Oswald, sans-serif;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1a1028;
  background: linear-gradient(180deg, #ffd24a, #ff9a3c);
  border: 2px solid rgba(255,246,234,0.55);
  box-shadow: 0 3px 0 rgba(0,0,0,0.28);
  white-space: nowrap;
}
.hub-card-franchise .hub-card-ico {
  background: linear-gradient(145deg, rgba(255,210,74,0.95), rgba(255,77,184,0.88) 55%, rgba(155,108,255,0.7));
}
.hub-card-franchise .hub-card-ico-fleet {
  width: 200px;
  max-width: 85%;
  height: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  margin: 0 0 10px 0;
  align-self: flex-start;
  flex-shrink: 0;
  background: linear-gradient(165deg, rgba(18, 10, 36, 0.95), rgba(72, 28, 96, 0.55));
  box-sizing: border-box;
}
.hub-card-franchise .hub-card-ico-fleet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
}
#sc-shop-hub.show ~ .radio-wrap {
  top: auto;
  bottom: 8px;
  left: 12px;
  right: 12px;
  z-index: 90;
}



/* ===== Cash stack + Borrow (MOBALON Bank) ===== */
/* Neutral = free-flowing candy (purple/gold/teal + pink hints) — not palette-locked */
.cash-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  pointer-events: auto;
}
.cash-stack .cash-chip { pointer-events: none; }
.borrow-btn {
  appearance: none;
  pointer-events: auto;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 210, 74, 0.85);
  background: linear-gradient(180deg, #2ecc71, #1a9f55 55%, #0e6b38);
  color: #0a1a0c;
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255,255,220,0.25);
  box-shadow: 0 3px 0 #0a4a28, inset 0 1px 0 rgba(255,255,200,0.22);
  white-space: nowrap;
  max-width: 100%;
}
.borrow-btn:hover {
  filter: brightness(1.1);
  border-color: #ffd24a;
}
.borrow-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #0a4a28; }
.borrow-btn.has-loan {
  border-color: rgba(255, 210, 74, 0.9);
  background: linear-gradient(180deg, #1abf6a, #0e7a42 55%, #085530);
  color: #0a1a0c;
}
.btn.bank-dayend {
  background: linear-gradient(180deg, #2ecc71, #1a9f55 45%, #0e6b38);
  border-color: rgba(255, 210, 74, 0.8);
  color: #0a1a0c;
  text-shadow: 0 1px 0 rgba(255,255,220,0.25);
  box-shadow: 0 6px 0 #0a4a28, inset 0 1px 0 rgba(255,255,200,0.18);
  font-size: 14px;
  padding: 12px 18px;
}

/* ===== MOBALON Bank screen ===== */
#sc-bank {
  padding-top: 100px;
  overflow-y: auto;
  /* Green transparent stage — purple cards stay as-is */
  background:
    radial-gradient(ellipse 85% 60% at 20% 0%, rgba(46, 204, 113, 0.42), transparent 58%),
    radial-gradient(ellipse 70% 50% at 90% 25%, rgba(255, 210, 74, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(14, 107, 56, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(10, 48, 28, 0.78), rgba(6, 28, 18, 0.9));
}
#sc-bank .kicker {
  color: #ffe9a8;
}
#sc-bank .bank-head h2 {
  color: #ffe9a8;
  text-shadow: 0 2px 0 rgba(0,40,20,0.35);
}
#sc-bank .bank-head h2 {
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 28px;
  margin: 4px 0 0;
}
.bank-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 16px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 2px solid rgba(255, 210, 74, 0.55);
  /* Purple box kept on green stage */
  background:
    linear-gradient(120deg, rgba(72, 32, 120, 0.88), rgba(24, 12, 48, 0.92));
  box-shadow: 0 6px 0 rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}
.bank-hero img {
  width: 200px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: rgba(0,0,0,0.25);
  border-radius: 16px;
  border: 2px solid rgba(255, 210, 74, 0.55);
  flex: 0 0 auto;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}
.bank-tagline {
  margin: 0;
  color: rgba(255, 246, 234, 0.85);
  font-size: 15px;
  line-height: 1.45;
  max-width: 520px;
}
.bank-active {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid rgba(62, 240, 208, 0.45);
  background: linear-gradient(165deg, rgba(48, 28, 88, 0.92), rgba(16, 12, 36, 0.96));
  box-shadow: 0 5px 0 rgba(0,0,0,0.28);
}
.bank-active h3 {
  font-family: Fredoka, Oswald, sans-serif;
  margin: 0 0 10px;
  font-size: 20px;
  color: #9affef;
}
.bank-active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.bank-active-grid .stat em { color: rgba(255,246,234,0.65); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.bank-active-grid .stat strong { display: block; font-size: 20px; color: var(--gold); margin-top: 2px; }
.bank-active-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bank-payback {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(62, 240, 208, 0.28);
  background: rgba(0, 0, 0, 0.22);
}
.bank-payback-label {
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9affef;
  margin-bottom: 8px;
}
.bank-payback-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.bank-pay-lab {
  font-size: 13px;
  color: rgba(255,246,234,0.75);
}
.bank-pay-amt {
  width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid rgba(155, 108, 255, 0.45);
  background: rgba(12, 8, 28, 0.9);
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}
.bank-pay-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bank-active-actions .btn.on {
  border-color: rgba(62, 240, 208, 0.85);
  box-shadow: 0 0 0 2px rgba(62, 240, 208, 0.25);
}
.bank-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.loan-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
  padding: 16px 14px 14px;
  border-radius: 18px;
  border: 2px solid rgba(180, 120, 255, 0.5);
  background:
    radial-gradient(ellipse 90% 60% at 20% 0%, rgba(155, 108, 255, 0.25), transparent 55%),
    linear-gradient(165deg, rgba(56, 28, 96, 0.95), rgba(16, 10, 36, 0.98));
  color: var(--cream);
  box-shadow: 0 6px 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.12s ease, border-color 0.12s, filter 0.12s;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loan-card:hover:not(.locked):not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 74, 0.9);
  filter: brightness(1.05);
}
.loan-card:disabled, .loan-card.locked {
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.25);
}
.loan-card.gold {
  border-color: rgba(255, 210, 74, 0.85);
  background:
    radial-gradient(ellipse 90% 60% at 30% 0%, rgba(255, 210, 74, 0.28), transparent 55%),
    linear-gradient(165deg, rgba(90, 60, 20, 0.95), rgba(40, 24, 8, 0.98));
  box-shadow: 0 6px 0 #6a4810, inset 0 1px 0 rgba(255,255,200,0.2);
}
.loan-card.gold .loan-amt { color: #ffe99a; }
.loan-card .loan-amt {
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #e8d0ff;
  letter-spacing: 0.02em;
}
.loan-card .loan-fee { font-size: 13px; color: rgba(255,246,234,0.78); }
.loan-card .loan-total { font-size: 14px; font-weight: 800; color: var(--gold); }
.loan-card .loan-lock {
  margin-top: auto;
  font-size: 12px;
  color: rgba(255, 200, 160, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
}
.loan-card .loan-lock .pad { font-size: 16px; }
.loan-card .loan-go {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7affdf;
}
.bank-vip {
  margin-top: 8px;
  margin-bottom: 28px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 210, 74, 0.55);
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(255, 210, 74, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(48, 28, 88, 0.92), rgba(16, 10, 32, 0.96));
  box-shadow: 0 6px 0 rgba(0,0,0,0.28);
}
.bank-vip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bank-vip-badge {
  display: inline-grid;
  place-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe99a, #e8a812);
  color: #2a1808;
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.bank-vip h3 {
  margin: 0;
  font-family: Fredoka, Oswald, sans-serif;
  font-size: 22px;
  color: #ffe9a8;
}
.bank-vip-blurb {
  margin: 0 0 12px;
  color: rgba(255,246,234,0.72);
  font-size: 14px;
  line-height: 1.45;
  max-width: 640px;
}
.bank-vip-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.bank-vip-lab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,246,234,0.7);
}
.bank-vip-lab input {
  width: 140px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 210, 74, 0.45);
  background: rgba(8, 6, 20, 0.85);
  color: var(--cream);
  font-family: Nunito, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.bank-vip-preview {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,210,74,0.25);
  color: #ffe9a8;
  font-size: 14px;
  font-weight: 700;
}
.bank-mode-row {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.bank-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,246,234,0.85);
  cursor: pointer;
}
.bank-mode input { accent-color: #ffd24a; width: 16px; height: 16px; }

#sc-bank.show ~ .radio-wrap {
  z-index: 90;
}

@media (max-width: 700px) {
  .bank-hero { flex-direction: column; align-items: flex-start; }
  .bank-hero img { width: 160px; height: auto; }
  .borrow-btn { font-size: 10px; padding: 4px 10px; }
}

/* ===== Resource gauges column (water above fuel) ===== */
.resource-gauges {
  position: absolute;
  right: 36px;
  bottom: 88px;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  /* No parent drop-shadow — it stamped a ghost copy under ON THE ROLL. */
  filter: none;
}
.resource-gauges.show { display: flex; }
.resource-gauges.salon {
  right: 28px;
  bottom: 96px;
}
.resource-gauges.drive {
  right: 118px;
  bottom: 16px;
}
.resource-gauges.salon .fuel-gauge-mode { display: none; }

/* Water tank HUD — 3D H2O tank above fuel; grows STOCK → LARGE → XL */
.water-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.water-tank-hud {
  display: block;
  width: 72px;
  height: 96px;
  pointer-events: none;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.28));
  transition: width 0.28s ease, height 0.28s ease;
  flex: 0 0 auto;
}
.water-gauge-pct {
  margin-top: 14px;
  padding: 2px 8px 1px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.9);
  font: 800 16px/1 Fredoka, Oswald, sans-serif;
  color: #bfe8ff;
  text-shadow: none;
  letter-spacing: 0.02em;
  position: static;
  z-index: 2;
}
.water-gauge-mode {
  margin-top: 6px;
  padding: 3px 8px 2px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.9);
  font: 800 12px/1.2 Nunito, system-ui, sans-serif;
  letter-spacing: 0.03em;
  color: #d7f3ff;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  max-width: none;
  position: static;
  z-index: 2;
}
.water-gauge.warn .water-gauge-pct { color: #ffb070; }
.water-gauge.crit .water-gauge-pct { color: #ff6b4a; animation: fuel-pulse 0.9s ease-in-out infinite; }

/* Round fuel gauge (drive + salon) — sits under water in column */
.fuel-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fuel-gauge-dial {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(30,24,48,0.95) 0 38%, transparent 39%),
    #1a1428;
  border: 3px solid rgba(255, 210, 74, 0.55);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), 0 0 18px rgba(46,230,197,0.18);
  filter: drop-shadow(0 5px 0 rgba(0,0,0,0.32));
}
.fuel-gauge-fill {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  /* Full sweep 270deg: empty at 225deg, full at -45deg via conic from top */
  background: conic-gradient(
    from 225deg,
    #ff4d4a 0deg,
    #ffb020 calc(var(--fuel, 1) * 270deg * 0.35),
    #2ee6c5 calc(var(--fuel, 1) * 270deg),
    rgba(255,255,255,0.08) calc(var(--fuel, 1) * 270deg),
    rgba(255,255,255,0.08) 270deg,
    transparent 270deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
}
.fuel-gauge-cap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.fuel-gauge-ico {
  font-size: 22px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4));
  transform: translateY(-2px);
}
.fuel-gauge-e, .fuel-gauge-f {
  position: absolute;
  bottom: 18px;
  font: 800 11px/1 Fredoka, Oswald, sans-serif;
  color: rgba(255,246,234,0.7);
  letter-spacing: 0.04em;
}
.fuel-gauge-e { left: 16px; color: #ff8b7a; }
.fuel-gauge-f { right: 16px; color: #7dffef; }
.fuel-gauge-pct {
  margin-top: 2px;
  padding: 2px 8px 1px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.9);
  font: 800 18px/1 Fredoka, Oswald, sans-serif;
  color: #ffe99a;
  text-shadow: none;
  letter-spacing: 0.02em;
}
.fuel-gauge-mode {
  font: 800 10px/1.2 Nunito, system-ui, sans-serif;
  letter-spacing: 0.08em;
  color: #b8fff6;
  text-transform: uppercase;
  text-shadow: none;
  -webkit-text-stroke: 0;
  filter: none;
  background: rgba(8, 12, 24, 0.94);
  padding: 3px 8px 2px;
  border-radius: 999px;
}
.fuel-gauge.warn .fuel-gauge-dial { border-color: rgba(255, 140, 70, 0.85); box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), 0 0 16px rgba(255,140,70,0.35); }
.fuel-gauge.warn .fuel-gauge-pct { color: #ffb070; }
.fuel-gauge.crit .fuel-gauge-dial { border-color: rgba(255, 77, 74, 0.95); animation: fuel-pulse 0.9s ease-in-out infinite; }
.fuel-gauge.crit .fuel-gauge-pct { color: #ff6b4a; }
@keyframes fuel-pulse {
  0%, 100% { box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), 0 0 10px rgba(255,77,74,0.35); }
  50% { box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), 0 0 22px rgba(255,77,74,0.7); }
}
body.crisis-open #resource-gauges { opacity: 0.35; }


/* ===== Name your mobile salon bus ===== */
.biz-name-btn {
  display: block; width: 100%; text-align: left;
  appearance: none; border: 2px solid rgba(255,210,74,0.35);
  border-radius: 18px; padding: 12px 14px 10px;
  background: linear-gradient(180deg, rgba(48,28,88,0.55), rgba(16,14,32,0.85));
  color: inherit; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.biz-name-btn:hover { border-color: rgba(255,210,74,0.7); }
.biz-name-btn:disabled { opacity: 0.72; cursor: default; }
.biz-name-btn #shop-vname {
  font-family: Fredoka, Oswald, sans-serif; font-size: 26px; margin: 4px 0 2px;
  color: #ffe99a;
}
.shop-chassis {
  font: 700 11px/1.2 Nunito, system-ui, sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(126,255,239,0.85); margin-bottom: 4px;
}
.biz-name-hint {
  font: 700 11px/1.3 Nunito, system-ui, sans-serif;
  color: rgba(255,246,234,0.55);
}
.biz-name-btn.unlocked .biz-name-hint { color: #ffd24a; }
#sc-biz-name {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,6,18,0.62); backdrop-filter: blur(4px);
  pointer-events: auto;
}
#sc-biz-name.show { display: flex !important; }
.biz-name-card {
  width: min(420px, 92%);
  background: var(--panel, #1a1428);
  border: 2px solid rgba(255,210,74,0.45);
  border-radius: 22px; padding: 22px 22px 18px;
  box-shadow: 0 10px 0 rgba(0,0,0,0.35);
}
.biz-name-card h3 {
  font-family: Fredoka, Oswald, sans-serif; font-size: 24px; margin: 6px 0 8px; color: #fff6ea;
}
#biz-name-input {
  width: 100%; box-sizing: border-box;
  margin-top: 10px; padding: 12px 14px;
  border-radius: 12px; border: 2px solid rgba(255,210,74,0.4);
  background: rgba(0,0,0,0.35); color: #fff6ea;
  font: 700 16px Nunito, system-ui, sans-serif;
}
.biz-name-err { color: #ff8b7a; font: 700 12px Nunito, sans-serif; margin-top: 8px; }


/* Garage bottom buttons — keep Town map clear of Upgrade Shop */
#btn-garage-shop.close-shop {
  right: 16px;
  bottom: 16px;
  z-index: 8;
}
#btn-garage-map.close-shop {
  right: 300px;
  bottom: 16px;
  z-index: 8;
}


/* ===== MOBALON Bank — Neutral black + emerald + gold lettering ===== */
.bank-hero {
  border: 2px solid rgba(255, 210, 74, 0.6) !important;
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(46, 204, 113, 0.38), transparent 55%),
    linear-gradient(120deg, rgba(14, 14, 18, 0.97), rgba(6, 8, 10, 0.99)) !important;
  box-shadow: 0 6px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(46, 204, 113, 0.22) !important;
}
.bank-tagline { color: #ffe9a8 !important; }
.bank-active {
  border: 2px solid rgba(46, 204, 113, 0.55) !important;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(46, 204, 113, 0.3), transparent 55%),
    linear-gradient(165deg, rgba(14, 14, 18, 0.97), rgba(6, 8, 10, 0.99)) !important;
}
.bank-active h3 { color: #ffe9a8 !important; }
.loan-card {
  border: 2px solid rgba(46, 204, 113, 0.5) !important;
  background:
    radial-gradient(ellipse 90% 60% at 20% 0%, rgba(46, 204, 113, 0.34), transparent 55%),
    linear-gradient(165deg, rgba(14, 14, 18, 0.98), rgba(6, 8, 10, 0.99)) !important;
  box-shadow: 0 6px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(46, 204, 113, 0.18) !important;
}
.loan-card .loan-amt { color: #ffe9a8 !important; }
.loan-card .loan-total { color: #ffd24a !important; }
.loan-card .loan-go { color: #2ecc71 !important; }
.loan-card.gold {
  border-color: rgba(255, 210, 74, 0.9) !important;
  background:
    radial-gradient(ellipse 90% 60% at 30% 0%, rgba(255, 210, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(46, 204, 113, 0.2), transparent 50%),
    linear-gradient(165deg, rgba(20, 18, 10, 0.98), rgba(8, 8, 8, 0.99)) !important;
}
.bank-vip {
  border: 2px dashed rgba(255, 210, 74, 0.6) !important;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(46, 204, 113, 0.3), transparent 50%),
    linear-gradient(165deg, rgba(14, 14, 18, 0.97), rgba(6, 8, 10, 0.99)) !important;
}
.bank-vip h3 { color: #ffe9a8 !important; }
.bank-vip-preview { color: #ffe9a8 !important; border-color: rgba(46, 204, 113, 0.35) !important; }


/* ===== ENTER DEPOT / PARK & OPEN arrive button ===== */
.btn-park-sign {
  position: absolute;
  left: 50%;
  bottom: 248px;
  transform: translateX(-50%);
  z-index: 8;
  border: 3px solid #1a1020;
  background: linear-gradient(180deg, #ffd24a 0%, #e8a812 100%);
  color: #1a1020;
  padding: 12px 28px 10px;
  min-width: 220px;
  border-radius: 18px;
  cursor: pointer;
  font: 800 20px/1 Oswald, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 0 #1a1020, 0 10px 18px rgba(0,0,0,0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-park-sign:hover { transform: translateX(-50%) translateY(-2px) scale(1.03); }
.btn-park-sign:active { transform: translateX(-50%) translateY(2px) scale(0.98); box-shadow: 0 3px 0 #1a1020; }
.btn-park-sign.is-depot {
  background: linear-gradient(180deg, #ff6ec8 0%, #c01870 100%);
  color: #fff6ea;
  border-color: #ffe99a;
  box-shadow: 0 6px 0 #6a1040, 0 10px 18px rgba(0,0,0,0.35);
}
.btn-park-sign #btn-park-lab { display: block; pointer-events: none; }
.btn-park-sign img { display: none; }
body.crisis-open .btn-park-sign { pointer-events: none; opacity: 0.35; }

/* Zoomed stage: drag pans the whole game; pinch still zooms. */
#app.is-zoomed {
  touch-action: none;
}
#app.is-zoomed:not(.is-play-zoom) { cursor: grab; }
#app.is-zoomed:not(.is-play-zoom):active { cursor: grabbing; }
#app.is-zoomed #shop-list,
#app.is-zoomed .hub-grid,
#app.is-zoomed .shop-col {
  touch-action: none;
}

/* Phones held upright: don't squash the 16:9 stage into a strip. */
.rotate-gate {
  display: none;
}
@media (orientation: portrait) and (max-width: 900px) {
  #stage-slot,
  .touch-pad,
  .gas-btn { visibility: hidden !important; }
  .rotate-gate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px 24px;
    text-align: center;
    background:
      radial-gradient(ellipse 80% 50% at 50% 18%, rgba(255, 77, 184, 0.32), transparent 55%),
      radial-gradient(ellipse 60% 40% at 50% 100%, rgba(62, 240, 208, 0.16), transparent 50%),
      #0a0714;
    pointer-events: auto;
  }
  .rotate-gate img {
    width: min(168px, 46vw);
    height: auto;
    filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5));
  }
  .rotate-gate p {
    margin: 0;
    max-width: 12em;
    font-family: Fredoka, Oswald, sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #fff6ea;
    text-shadow: 0 3px 0 #3a1880, 0 0 18px rgba(255, 77, 184, 0.35);
  }
}

/* Short landscape phones: stage scale shrinks HUD type. Bump it back up. */
@media (orientation: landscape) and (max-height: 540px) {
  .chip { font-size: 24px; padding: 10px 16px; }
  .chip b { font-size: 26px; }
  .cash-chip b { font-size: 28px; }
  .hud-right .chip { font-size: 20px; padding: 8px 12px; }
  .hud-right .chip b { font-size: 22px; }
  .hud-right .loc-chip { font-size: 18px; max-width: 8.6em; }
  .brand-mini { font-size: 20px; letter-spacing: 0.08em; }
  .brand-logo { height: 40px; }
  .goal-chip .goal-lab { font-size: 14px; }
  .goal-bar { width: 170px; height: 10px; }
  .borrow-btn { font-size: 15px; padding: 7px 12px; }
  .sun-clock { width: 104px; height: 104px; }
  .clock-word { font-size: 15px; }
  .coin-ico { width: 26px; height: 26px; }
  .water-gauge-pct { font-size: 18px; }
  .water-gauge-mode { font-size: 13px; max-width: none; white-space: nowrap; }
  .fuel-gauge-pct { font-size: 22px; }
  .fuel-gauge-mode { font-size: 12px; }
  body.menu-hud .coach-fuel-stack,
  body.menu-hud #hWaterChip,
  body.menu-hud .goal-chip,
  body.menu-hud .hud-right .star-chip {
    display: none !important;
  }
  body.menu-hud .chip { font-size: 14px; padding: 6px 10px; }
  body.menu-hud .chip b,
  body.menu-hud .cash-chip b { font-size: 16px; }
  body.menu-hud .brand-logo { height: 28px; }
  body.menu-hud .sun-clock { width: 72px; height: 72px; }
  body.menu-hud .hud-right .loc-chip { font-size: 14px; max-width: 9em; }
  body.menu-hud #sc-map,
  body.menu-hud #sc-shop,
  body.menu-hud #sc-shop-hub,
  body.menu-hud #sc-bank,
  body.menu-hud #sc-dayend { padding-top: var(--menu-hud-pad, 108px); }
  body.picker-open .goal-chip,
  body.picker-open #hFuelChip,
  body.picker-open .hud-right .star-chip,
  body.picker-open .hud-center { visibility: hidden !important; }
}

/* Cut picker: drop the pills, the Shift panel, the shift clock, and the radio bar. Music keeps playing. */
body.picker-open #hCondChip,
body.picker-open #hWaterChip,
body.picker-open .cash-stack,
body.picker-open .day-chip,
body.picker-open .goal-chip,
body.picker-open .hud-center,
body.picker-open #radio-wrap,
body.picker-open .resource-gauges {
  visibility: hidden !important;
  pointer-events: none !important;
}
