/* ================================================================
   ThunderStrip — style.css
   Mobile-first, 16:9 letterbox layout that works on all screens.
================================================================ */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS variables ───────────────────────────────────────────── */
:root {
  --fire:   #FF4500;
  --gold:   #FFD700;
  --hud:    #00EEFF;
  --green:  #00FF88;
  --red:    #FF3344;
  --purple: #BB44FF;
}

/* ── Page root ───────────────────────────────────────────────── */
html {
  height: 100%;
  /* Prevents iOS elastic-scroll bounciness */
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  width: 100%; height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
  font-family: 'Rajdhani', sans-serif;
  color: #eee;
  -webkit-tap-highlight-color: transparent;
  /* Prevent iOS text size inflation */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: none;
}

/* ── Centring wrapper ────────────────────────────────────────── */
#center {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* ── 16:9 game viewport — JS stamps exact px size ───────────── */
#vp {
  position: relative;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
  /* Prevent iOS rubber-band inside vp */
  touch-action: none;
}

/* ── Landscape hint overlay (shown on portrait mobile) ──────── */
#landscapeHint {
  display: none;
  position: absolute; inset: 0; z-index: 99999;
  background: #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
#landscapeHint .hint-icon {
  font-size: 52px;
  animation: rotatePulse 2s ease-in-out infinite;
}
@keyframes rotatePulse {
  0%   { transform: rotate(0deg);   opacity: 0.7; }
  50%  { transform: rotate(90deg);  opacity: 1;   }
  100% { transform: rotate(0deg);   opacity: 0.7; }
}
#landscapeHint p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 5vw, 28px);
  letter-spacing: 3px;
  color: var(--gold);
  line-height: 1.4;
}
#landscapeHint small {
  font-size: clamp(11px, 3vw, 14px);
  color: #666;
  letter-spacing: 1px;
}

/* ── Screen system ───────────────────────────────────────────── */
.screen {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ── SPLASH ──────────────────────────────────────────────────── */
#splash {
  background: #000;
  justify-content: center; align-items: center;
}
.splash-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 10vw, 72px);
  letter-spacing: 6px;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(255,215,0,0.5), 0 5px 0 #805000;
  animation: splashPulse 1.2s ease-in-out infinite alternate;
  text-align: center; line-height: 1;
}
.splash-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(10px, 2.5vw, 18px);
  letter-spacing: 8px; color: #FF5500; margin-top: 6px;
  animation: splashPulse 1.2s ease-in-out 0.3s infinite alternate;
}
.splash-loading { margin-top: 40px; display: flex; gap: 10px; }
.splash-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  animation: dotBounce 0.8s ease-in-out infinite;
}
.splash-dot:nth-child(2) { animation-delay: 0.15s; }
.splash-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes splashPulse {
  from { opacity: 0.7; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1); }
}
@keyframes dotBounce {
  0%,100% { transform: translateY(0); opacity: 0.4; }
  50%     { transform: translateY(-8px); opacity: 1; }
}

/* ── MENU ────────────────────────────────────────────────────── */
#menu {
  background: radial-gradient(ellipse at 50% 35%, #1a0535 0%, #08000f 100%);
  justify-content: flex-start; overflow: hidden;
}
.menu-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(180,0,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,0,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridScroll 8s linear infinite;
  pointer-events: none;
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 88px; }
}
.menu-glow {
  position: absolute; top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(180,0,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.menu-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; height: 100%;
  padding: max(8px, env(safe-area-inset-top, 8px)) 20px
           max(8px, env(safe-area-inset-bottom, 8px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 9vw, 72px);
  letter-spacing: 5px; color: var(--gold);
  text-shadow: 0 0 40px rgba(255,215,0,0.45), 0 5px 0 #7a4800;
  line-height: 0.95; text-align: center;
}
.menu-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(9px, 2.2vw, 18px);
  letter-spacing: 8px; color: var(--fire); margin-top: 4px;
}
.menu-username {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(12px, 3vw, 24px);
  letter-spacing: 4px; color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
  min-height: 1em; text-align: center;
}
.menu-username:empty { display: none; }
.menu-bike-icon {
  font-size: clamp(40px, 10vw, 80px);
  margin: clamp(4px, 1.5vh, 16px) 0 clamp(2px, 0.8vh, 8px);
  animation: bikeIdle 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 20px rgba(255,100,0,0.4));
  line-height: 1;
}
@keyframes bikeIdle {
  from { transform: translateY(0) rotate(-1.5deg); }
  to   { transform: translateY(-8px) rotate(1.5deg); }
}
.menu-credits {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 3.5vw, 22px); color: var(--gold);
  margin-bottom: clamp(4px, 1vh, 12px);
}
.menu-credits span { color: #888; font-size: clamp(9px, 2vw, 14px); font-family: 'Rajdhani', sans-serif; }
.menu-stats-bar {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-size: clamp(10px, 2.2vw, 14px); color: #777;
  margin-bottom: clamp(6px, 1.5vh, 14px);
  width: 100%; max-width: 320px;
}
.menu-stats-bar strong { color: var(--gold); }
.menu-left-col {
  display: contents;  /* desktop: transparent wrapper, children flow normally */
}
.menu-right-col {
  display: contents;
}
.menu-buttons {
  display: flex; flex-direction: column;
  gap: clamp(6px, 1.2vh, 10px);
  width: 100%; max-width: 280px;
}

/* ── MOBILE LANDSCAPE MENU (viewport height < 480px) ───────────
   Two-column layout: branding left, buttons right.
   Bike icon hidden to save vertical space.
─────────────────────────────────────────────────────────────── */
@media (max-height: 480px) {
  .menu-content {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    padding: max(6px, env(safe-area-inset-top,6px))
             max(12px, env(safe-area-inset-right,12px))
             max(6px, env(safe-area-inset-bottom,6px))
             max(12px, env(safe-area-inset-left,12px));
    gap: 12px;
    overflow-y: hidden;
  }

  /* Left column: title + stats */
  .menu-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
  }

  /* Right column: buttons */
  .menu-right-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 5px;
  }

  .menu-title    { font-size: clamp(28px, 7vw, 44px); line-height: 0.9; }
  .menu-subtitle { font-size: clamp(7px, 1.8vw, 11px); letter-spacing: 5px; margin-top: 2px; }
  .menu-username { font-size: clamp(10px, 2.5vw, 16px); letter-spacing: 3px; min-height: 0; }
  .menu-bike-icon { display: none; }   /* hide — no vertical room */
  .menu-credits  { font-size: clamp(12px, 3vw, 18px); margin-bottom: 2px; }
  .menu-stats-bar {
    font-size: clamp(9px, 2vw, 12px); gap: 8px; margin-bottom: 0;
    justify-content: flex-start;
  }

  .menu-buttons {
    max-width: none; width: 100%;
    gap: 5px;
  }
  .menu-buttons .btn {
    font-size: clamp(11px, 2.8vw, 15px);
    padding: clamp(7px, 1.5vh, 10px) 12px;
    min-height: 36px;
    letter-spacing: 2px;
  }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 3.5vw, 20px);
  letter-spacing: 3px;
  padding: clamp(10px, 2.2vh, 14px) 24px;
  border: 2px solid; background: transparent;
  cursor: pointer; border-radius: 5px;
  transition: all 0.18s;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
  /* Mobile: ensure big enough tap target */
  min-height: 44px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: currentColor; opacity: 0; transition: opacity 0.15s;
}
.btn:active::after { opacity: 0.15; }
.btn-gold    { border-color: var(--gold);   color: var(--gold); }
.btn-fire    { border-color: var(--fire);   color: var(--fire); background: rgba(255,69,0,0.08); }
.btn-cyan    { border-color: var(--hud);    color: var(--hud); }
.btn-green   { border-color: var(--green);  color: var(--green); }
.btn-red     { border-color: var(--red);    color: var(--red); }
.btn-gray    { border-color: #555;          color: #999; }
.btn-primary { background: var(--gold); color: #000; border-color: var(--gold); box-shadow: 0 4px 20px rgba(255,215,0,0.3); }
.btn-primary:active { background: #ffe840; }
.btn-sm { font-size: clamp(11px, 2.5vw, 15px); padding: clamp(8px, 1.8vh, 10px) 14px; width: auto; letter-spacing: 2px; min-height: 40px; }

/* ── Scrollable inner ────────────────────────────────────────── */
.scroll-inner {
  width: 100%; flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 12px max(16px, env(safe-area-inset-bottom, 16px));
}
.scroll-inner::-webkit-scrollbar { width: 3px; }
.scroll-inner::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ── Screen header ───────────────────────────────────────────── */
.screen-header {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top, 10px)) 12px 8px;
  flex-shrink: 0; gap: 8px;
}
.screen-title-block {
  flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0;
}
.screen-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 4.5vw, 28px); letter-spacing: 4px; color: var(--gold);
}
.screen-username-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(9px, 2vw, 13px); letter-spacing: 3px;
  color: var(--gold); opacity: 0.75; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.screen-username-sub:empty { display: none; }
.credits-pill {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(13px, 3vw, 18px);
  color: var(--gold); background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25); border-radius: 20px; padding: 4px 12px;
  white-space: nowrap;
}

/* ── Section title ───────────────────────────────────────────── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(12px, 3vw, 16px); letter-spacing: 4px; color: var(--hud);
  margin: 10px 0 6px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--hud), transparent); opacity: 0.3;
}

/* ── GARAGE ──────────────────────────────────────────────────── */
#garage { background: #0d0d14; }

/* Bike cards */
.bike-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px; margin-bottom: 8px;
  cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
  touch-action: manipulation;
}
.bike-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: transparent; transition: background 0.2s;
}
.bike-card:active, .bike-card.selected { border-color: var(--gold); background: rgba(255,215,0,0.07); }
.bike-card.selected::before { background: var(--gold); }
.bike-card.locked { opacity: 0.55; }
.bike-icon-lg { font-size: clamp(32px, 7vw, 46px); flex-shrink: 0; }
.bike-info { flex: 1; min-width: 0; }
.bike-name-lg { font-family: 'Bebas Neue', sans-serif; font-size: clamp(14px, 3.5vw, 20px); letter-spacing: 2px; color: var(--gold); }
.bike-desc { font-size: clamp(9px, 2vw, 11px); color: #777; margin: 2px 0 5px; line-height: 1.3; }
.bike-stat-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pill {
  font-size: clamp(8px, 1.8vw, 10px); padding: 2px 6px; border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.3); background: rgba(0,255,136,0.08); color: var(--green);
}
.pill.locked-pill { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: #555; }
.bike-price-tag { font-family: 'Bebas Neue', sans-serif; font-size: clamp(12px, 3vw, 16px); color: var(--gold); flex-shrink: 0; }
.owned-badge {
  font-size: clamp(8px, 2vw, 10px); font-weight: 700; letter-spacing: 1px;
  color: var(--green); padding: 3px 8px;
  border: 1px solid rgba(0,255,136,0.4); border-radius: 10px; flex-shrink: 0;
}

/* Stat bars */
.stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.stat-label { font-size: clamp(9px, 2vw, 11px); color: #777; width: 65px; flex-shrink: 0; letter-spacing: 1px; }
.stat-track { flex: 1; height: 7px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #00aa55, #00ff88); transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.stat-fill.hp    { background: linear-gradient(90deg, #cc3300, #ff5500); }
.stat-fill.torq  { background: linear-gradient(90deg, #bb6600, #ffaa00); }
.stat-fill.speed { background: linear-gradient(90deg, #0066cc, #00ccff); }
.stat-fill.trac  { background: linear-gradient(90deg, #006633, #00ff88); }
.stat-val { font-size: clamp(9px, 2vw, 11px); color: #bbb; width: 32px; text-align: right; }

/* Mod grid */
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mod-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 10px; cursor: pointer; transition: all 0.18s;
  position: relative; overflow: hidden; touch-action: manipulation;
}
.mod-card:active   { border-color: rgba(0,255,255,0.4); background: rgba(0,255,255,0.04); }
.mod-card.equipped { border-color: var(--green); background: rgba(0,255,136,0.06); }
.mod-card.locked-mod { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.mod-status-badge { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 700; letter-spacing: 1px; padding: 2px 6px; border-radius: 8px; }
.badge-on  { background: var(--green); color: #000; }
.badge-off { background: #222; color: #555; }
.mod-emoji { font-size: clamp(16px, 4vw, 22px); margin-bottom: 4px; }
.mod-name  { font-family: 'Bebas Neue', sans-serif; font-size: clamp(11px, 2.8vw, 14px); letter-spacing: 1px; color: #eee; }
.mod-desc  { font-size: clamp(8px, 1.8vw, 10px); color: #666; margin: 3px 0; line-height: 1.3; }
.mod-bonus { font-size: clamp(9px, 2vw, 11px); color: var(--green); font-weight: 700; margin-top: 3px; }
.mod-price { font-size: clamp(9px, 2vw, 11px); color: var(--gold); margin-top: 3px; }
.mod-owned { font-size: clamp(8px, 1.8vw, 10px); color: var(--green); margin-top: 3px; }
.mod-req   { font-size: clamp(8px, 1.8vw, 10px); color: #FF8844; margin-top: 3px; }

/* ── SHOP ────────────────────────────────────────────────────── */
#shop { background: #0d0d14; }

/* ── RACE ────────────────────────────────────────────────────── */
#race { background: transparent; overflow: hidden; }

/* HUD overlays the full #vp — canvas draws behind it */
.race-hud {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Top bar (speed / gear / rpm) ───────────────────────────── */
.hud-top {
  flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(4px, env(safe-area-inset-top, 4px)) clamp(8px, 2vw, 16px) 2px;
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, transparent 100%);
}
.hud-speed-block { line-height: 1; text-align: left; }
.hud-speed-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 6vw, 48px);
  color: var(--hud); text-shadow: 0 0 18px rgba(0,238,255,0.6); line-height: 1;
}
.hud-unit { font-size: clamp(7px, 1.4vw, 10px); color: #555; letter-spacing: 2px; }
.hud-center-block {
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hud-race-username {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(7px, 1.6vw, 12px); letter-spacing: 3px;
  color: var(--gold); opacity: 0.85; line-height: 1;
}
.hud-gear-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 7vw, 52px);
  color: var(--gold); text-shadow: 0 0 22px rgba(255,215,0,0.55); line-height: 1;
}
.hud-rpm-block { text-align: right; }
.hud-rpm-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(16px, 4vw, 30px);
  color: var(--fire); text-shadow: 0 0 12px rgba(255,69,0,0.55); line-height: 1;
}

/* ── Christmas tree — centred overlay, never overlaps buttons ── */
.hud-tree {
  position: absolute;
  /* Centre vertically in the CANVAS area only (top 80% — above controls) */
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.90);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: clamp(6px, 1.5vh, 14px) clamp(10px, 2.5vw, 20px);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(3px, 0.8vh, 7px);
  pointer-events: none;
  z-index: 10;
}
.tree-bulb {
  width: clamp(14px, 3.5vw, 26px); height: clamp(14px, 3.5vw, 26px);
  border-radius: 50%; border: 2px solid #222; background: #111;
  transition: all 0.08s; flex-shrink: 0;
}
.tree-bulb.yellow { background: #FFCC00; box-shadow: 0 0 14px #FFCC00; border-color: #FFCC00; }
.tree-bulb.red    { background: #FF2200; box-shadow: 0 0 16px #FF2200; border-color: #FF2200; }
.tree-bulb.green  { background: var(--green); box-shadow: 0 0 20px var(--green); border-color: var(--green); }
.tree-go {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(16px, 4.5vw, 32px); color: #fff;
  text-shadow: 0 0 24px rgba(255,255,255,0.8); margin-top: 2px;
}

/* ── Bottom panel — anchored to the bottom of .race-hud ────── */
.hud-bottom {
  margin-top: auto;     /* pushes to bottom regardless of content above */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── HUD inline info bar (nitrous | track bar | race time) ──── */
.hud-info-bar {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 14px);
  padding: 3px clamp(6px, 1.5vw, 14px) 4px;
  flex-shrink: 0;
}

/* Nitrous column — fixed width */
.hud-nitrous-col { flex-shrink: 0; }
.nos-label { font-size: clamp(7px, 1.4vw, 9px); color: #555; letter-spacing: 2px; }
.nos-bar-track {
  width: clamp(48px, 10vw, 90px); height: clamp(5px, 1.1vh, 8px);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(187,68,255,0.25);
  border-radius: 4px; overflow: hidden; margin-top: 2px;
}
.nos-bar-fill {
  height: 100%; background: linear-gradient(90deg, #6622cc, #bb44ff);
  border-radius: 4px; transition: width 0.2s;
}

/* Track column — takes all remaining space */
.hud-track-col {
  flex: 1;
  min-width: 0;
}
.hud-progress-label {
  font-size: clamp(7px, 1.4vw, 9px); color: #555; letter-spacing: 2px; margin-bottom: 2px;
}
.hud-track {
  position: relative; width: 100%;
  height: clamp(10px, 2.2vh, 16px);
  background: rgba(255,255,255,0.08); border-radius: 8px; overflow: visible;
}
.hud-track-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--green), var(--hud)); transition: width 0.1s;
}
.progress-dot {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: clamp(10px, 2.5vw, 16px); height: clamp(10px, 2.5vw, 16px);
  border-radius: 50%; transition: left 0.1s; z-index: 2;
}
.progress-dot.player { background: var(--hud); box-shadow: 0 0 7px var(--hud); }
.progress-dot.enemy  { background: var(--red);  box-shadow: 0 0 7px var(--red); }

/* Timer column — fixed width, right-aligned */
.hud-timer { text-align: right; flex-shrink: 0; }
.timer-label { font-size: clamp(7px, 1.4vw, 9px); color: #555; letter-spacing: 2px; }
.timer-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(11px, 2.8vw, 18px); color: var(--hud);
  text-shadow: 0 0 8px rgba(0,238,255,0.4);
}

/* Race controls */
.race-controls {
  display: flex; gap: clamp(4px, 1vw, 10px);
  padding: clamp(5px, 1vh, 8px) clamp(6px, 1.5vw, 12px);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
  pointer-events: auto;
  background: rgba(0,0,0,0.85);
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.ctrl-btn {
  flex: 1;
  height: clamp(48px, 11vh, 76px);
  border-radius: 8px; border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(9px, 2.2vw, 14px); letter-spacing: 2px;
  color: #fff; cursor: pointer; transition: all 0.08s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  pointer-events: auto;
}
.ctrl-btn .ctrl-icon { font-size: clamp(14px, 3.5vw, 22px); line-height: 1; }
.ctrl-btn.throttle-btn { border-color: var(--green); color: var(--green); }
.ctrl-btn.shift-btn    { border-color: var(--gold);  color: var(--gold); }
.ctrl-btn.brake-btn    { border-color: var(--red);   color: var(--red); }
.ctrl-btn.nos-btn      { border-color: var(--purple); color: var(--purple); }
.ctrl-btn.pressed, .ctrl-btn:active { transform: scale(0.94); background: rgba(255,255,255,0.12); }
.ctrl-btn.throttle-btn.pressed { background: rgba(0,255,136,0.15); }
.ctrl-btn.shift-btn.pressed    { background: rgba(255,215,0,0.15); }
.ctrl-btn.brake-btn.pressed    { background: rgba(255,51,68,0.15); }
.ctrl-btn.nos-btn.pressed      { background: rgba(187,68,255,0.2); }
.ctrl-btn:disabled { opacity: 0.3; }

/* ── RESULT ──────────────────────────────────────────────────── */
#result {
  background: radial-gradient(ellipse at 50% 30%, #1a0a30 0%, #070010 100%);
  overflow: hidden; padding: 0;
}
.result-username {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(12px, 3vw, 22px); letter-spacing: 5px;
  color: var(--gold); opacity: 0.8; margin-bottom: 2px; text-align: center;
}
.result-username:empty { display: none; }
.result-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 12vw, 76px); letter-spacing: 5px; line-height: 1; text-align: center;
}
.result-title.win  { color: var(--gold); text-shadow: 0 0 50px rgba(255,215,0,0.5), 0 5px 0 #805000; }
.result-title.lose { color: var(--red);  text-shadow: 0 0 40px rgba(255,51,68,0.5); }
.result-emoji { font-size: clamp(32px, 9vw, 56px); margin: clamp(4px, 1vh, 10px) 0; }
.result-table { width: 100%; max-width: 320px; margin: clamp(4px, 1vh, 10px) 0; }
.result-row {
  display: flex; justify-content: space-between;
  padding: clamp(5px, 1.2vh, 9px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: clamp(12px, 3vw, 15px);
}
.result-row:last-child { border-bottom: none; }
.result-key { color: #777; }
.result-val { color: #eee; font-weight: 700; }
.result-val.best { color: var(--gold); }
.result-reward {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 5vw, 30px); color: var(--gold);
  margin: clamp(6px, 1.5vh, 14px) 0;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.result-buttons { display: flex; flex-direction: column; gap: clamp(5px, 1.2vh, 8px); width: 100%; max-width: 260px; }

/* ── SAVE SCREEN ─────────────────────────────────────────────── */
#saveScreen { background: #0d0d14; }
.save-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: max(10px, env(safe-area-inset-top, 10px)) 12px 8px;
  flex-shrink: 0; gap: 8px;
}
.save-body {
  width: 100%; padding: 0 12px max(16px, env(safe-area-inset-bottom, 16px));
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.save-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px;
}
.save-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(13px, 3.2vw, 20px); letter-spacing: 3px; color: var(--gold); margin-bottom: 6px;
}
.save-card-desc { font-size: clamp(10px, 2.2vw, 13px); color: #666; line-height: 1.5; margin-bottom: 10px; }
.save-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.save-stat { background: rgba(255,255,255,0.04); border-radius: 6px; padding: 8px 10px; }
.save-stat-label { font-size: clamp(8px, 1.8vw, 9px); letter-spacing: 2px; color: #555; text-transform: uppercase; margin-bottom: 2px; }
.save-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: clamp(13px, 3.2vw, 20px); color: #ddd; }
.save-stat-val.gold  { color: var(--gold); }
.save-stat-val.green { color: var(--green); }
.save-timestamp { font-size: clamp(8px, 1.8vw, 10px); color: #444; letter-spacing: 1px; text-align: center; margin-top: 4px; }
.save-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Save indicator ──────────────────────────────────────────── */
#saveIndicator {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 8px)); right: clamp(8px, 2vw, 16px);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(9px, 2vw, 13px); letter-spacing: 2px;
  color: var(--green); background: rgba(0,255,136,0.10);
  border: 1px solid rgba(0,255,136,0.25); border-radius: 20px; padding: 4px 12px;
  opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 800;
}
#saveIndicator.saved { opacity: 1; }

/* ── Toast ───────────────────────────────────────────────────── */
#toast {
  position: absolute;
  top: clamp(40px, 8vh, 70px); left: 50%;
  transform: translateX(-50%);
  background: rgba(0,255,136,0.92); color: #000;
  padding: 8px 20px; border-radius: 20px;
  font-size: clamp(11px, 2.5vw, 13px); font-weight: 700;
  opacity: 0; transition: opacity 0.3s;
  white-space: nowrap; pointer-events: none; z-index: 9999;
  max-width: 90%; text-align: center;
}
#toast.show    { opacity: 1; }
#toast.error   { background: rgba(255,51,68,0.92); color: #fff; }
#toast.warning { background: rgba(255,140,0,0.92); color: #000; }

/* ── Leaderboard overlay ─────────────────────────────────────── */
#lbOverlay {
  position: absolute; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center; padding: 12px;
}
#lbPanel {
  background: #0d0d18; border: 1px solid rgba(255,215,0,0.25); border-radius: 14px;
  padding: 20px 16px 16px; width: 100%; max-width: 480px;
  max-height: 90%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 0 60px rgba(255,215,0,0.08);
}
.lb-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 5.5vw, 40px); letter-spacing: 4px; color: var(--gold);
  text-shadow: 0 0 24px rgba(255,215,0,0.4); margin-bottom: 6px; text-align: center;
}
.lb-subtitle { font-size: clamp(11px, 2.5vw, 14px); color: #aaa; text-align: center; margin-bottom: 18px; line-height: 1.5; }
.lb-loading, .lb-empty { font-size: clamp(11px, 2.5vw, 14px); color: #666; padding: 24px 0; text-align: center; }
.lb-table { width: 100%; border-collapse: collapse; font-size: clamp(10px, 2.2vw, 14px); }
.lb-table thead tr { border-bottom: 1px solid rgba(255,215,0,0.2); }
.lb-table th {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(9px, 2vw, 13px);
  letter-spacing: 2px; color: #888; padding: 5px 6px; text-align: left;
}
.lb-row { border-bottom: 1px solid rgba(255,255,255,0.04); }
.lb-row.lb-top3 td { color: var(--gold); }
.lb-table td { padding: clamp(5px, 1.2vh, 8px) 6px; }
.lb-rank  { font-family: 'Bebas Neue',sans-serif; font-size:1.1em; width:28px; }
.lb-name  { font-family: 'Bebas Neue',sans-serif; font-size:1.15em; letter-spacing:2px; color:#fff; width:50px; }
.lb-time  { font-family: 'Share Tech Mono',monospace; color: var(--hud); }
.lb-speed { color: var(--fire); }
.lb-bike  { color: #888; font-size: 0.9em; }
.lb-input-row { display: flex; gap: 10px; margin: 12px 0 6px; }
.ini-box {
  width: clamp(44px, 11vw, 56px); height: clamp(56px, 14vw, 72px);
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,215,0,0.4);
  border-radius: 8px; font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 7vw, 40px); letter-spacing: 2px;
  color: var(--gold); text-align: center; text-transform: uppercase;
  outline: none; caret-color: var(--gold); transition: border-color 0.15s;
}
.ini-box:focus { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,215,0,0.25); }
.lb-error { font-size: clamp(10px, 2.2vw, 12px); color: var(--red); min-height: 18px; text-align: center; margin-top: 4px; }

/* ── Landscape hint ──────────────────────────────────────────── */
/* Shown on portrait phones where 16:9 would be tiny */
@media (max-aspect-ratio: 1/1) and (max-width: 600px) {
  #landscapeHint { display: flex; }
}

/* ── Misc utils ──────────────────────────────────────────────── */
.divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); margin: 8px 0; }
.mono { font-family: 'Share Tech Mono', monospace; }

/* ================================================================
   MOBILE LANDSCAPE — selection screens  (@media max-height: 480px)
   Applied to: Garage, Result, Save screens
================================================================ */

/* ── GARAGE ──────────────────────────────────────────────────── */

/* Default (desktop/tall): single scrollable column */
/* Desktop / tall: garage-body is ONE vertical scroll container.
   Columns are transparent passthroughs (display:contents). */
.garage-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 12px max(16px, env(safe-area-inset-bottom, 16px));
}
.garage-body::-webkit-scrollbar { width: 3px; }
.garage-body::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.garage-col-left,
.garage-col-right {
  display: contents; /* transparent on desktop — children flow normally */
}

@media (max-height: 480px) {
  /* Mobile landscape: two side-by-side scroll columns */
  .garage-body {
    flex-direction: row;
    gap: 8px;
    padding: 0 8px max(8px, env(safe-area-inset-bottom, 8px));
    overflow: hidden;   /* columns scroll, not the body */
  }
  .garage-col-left,
  .garage-col-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 4px 8px;
  }
  /* Bike cards more compact */
  .bike-card { padding: 7px 8px; margin-bottom: 5px; }
  .bike-icon-lg { font-size: clamp(24px, 5vw, 32px); }
  .bike-name-lg { font-size: clamp(11px, 2.8vw, 15px); }
  .bike-desc    { font-size: clamp(8px, 1.6vw, 10px); }
  /* Mod grid: 2 cols already — keep, just smaller */
  .mod-card { padding: 7px 8px; }
  .mod-emoji { font-size: clamp(14px, 3vw, 18px); }
  .mod-name  { font-size: clamp(10px, 2.5vw, 13px); }
  .mod-desc  { font-size: clamp(7px, 1.6vw, 9px); margin: 2px 0; }
  /* Stat bars compact */
  .stat-row { margin-bottom: 4px; }
  .stat-label { font-size: clamp(8px, 1.8vw, 10px); width: 52px; }
  .stat-track { height: 5px; }
}

/* ── RESULT ──────────────────────────────────────────────────── */

/* Default: centred column */
#result { flex-direction: column; align-items: center; }
.result-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: max(8px, env(safe-area-inset-top, 8px)) 16px
           max(8px, env(safe-area-inset-bottom, 8px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.result-col-left,
.result-col-right {
  display: contents;
}

@media (max-height: 480px) {
  #result {
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
  }
  .result-body {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: max(6px, env(safe-area-inset-top, 6px)) 12px
             max(6px, env(safe-area-inset-bottom, 6px));
    overflow: hidden;
  }
  .result-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 40%;
    min-width: 0;
  }
  .result-col-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Smaller text in result */
  .result-username { font-size: clamp(10px, 2.5vw, 14px); letter-spacing: 3px; }
  .result-title { font-size: clamp(28px, 7vw, 46px); letter-spacing: 3px; }
  .result-emoji { font-size: clamp(28px, 7vw, 40px); margin: 4px 0; }
  .result-table { max-width: 100%; margin: 4px 0; }
  .result-row { padding: clamp(3px, 0.8vh, 6px) 0; font-size: clamp(10px, 2.5vw, 13px); }
  .result-reward { font-size: clamp(14px, 3.5vw, 20px); margin: 4px 0; }
  .result-buttons { gap: 5px; max-width: none; }
  .result-buttons .btn {
    font-size: clamp(11px, 2.8vw, 15px);
    padding: clamp(7px, 1.5vh, 10px) 12px;
    min-height: 36px;
    letter-spacing: 2px;
  }
}

/* ── SAVE SCREEN ─────────────────────────────────────────────── */

@media (max-height: 480px) {
  .save-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    gap: 8px;
    padding: 0 10px max(8px, env(safe-area-inset-bottom, 8px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-content: start;
  }
  .save-card { padding: 9px 11px; }
  .save-card-title { font-size: clamp(11px, 2.8vw, 16px); letter-spacing: 2px; margin-bottom: 4px; }
  .save-card-desc  { font-size: clamp(8px, 1.8vw, 11px); margin-bottom: 7px; }
  .save-stat-grid  { grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
  .save-stat       { padding: 5px 7px; }
  .save-stat-label { font-size: clamp(7px, 1.5vw, 9px); }
  .save-stat-val   { font-size: clamp(11px, 2.8vw, 16px); }
  .save-btn-row .btn { font-size: clamp(10px, 2.5vw, 13px); padding: 7px 10px; min-height: 34px; letter-spacing: 1px; }
  /* Reset card spans full width so the red warning is prominent */
  .save-card-full { grid-column: 1 / -1; }
}

/* ── Rev limiter visual ──────────────────────────────────────── */
.hud-rpm-block { position: relative; }
.rev-limit-flash .hud-rpm-num {
  color: #FF2200 !important;
  text-shadow: 0 0 18px rgba(255,34,0,0.9), 0 0 6px #fff !important;
}
.rev-limit-warn {
  position: absolute;
  top: 100%; right: 0;
  margin-top: 2px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(9px, 1.8vw, 13px);
  letter-spacing: 2px;
  color: #FF2200;
  background: rgba(255,34,0,0.12);
  border: 1px solid rgba(255,34,0,0.5);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255,34,0,0.7);
  pointer-events: none;
}

/* ── Tachometer / Speedometer dial gauges ───────────────────── */
.gauge {
  position: relative;
  width: clamp(76px, 17vw, 130px);
  height: clamp(76px, 17vw, 130px);
  flex-shrink: 0;
}
.gauge-svg { width: 100%; height: 100%; display: block; overflow: visible; }

.gauge-ring   { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }
.gauge-face   { fill: radial-gradient(#1a1a22, #050507); }
/* SVG can't use CSS gradient on fill via class reliably; use solid + filter feel */
.gauge-face   { fill: #0a0a10; }

.gauge-redline    { fill: none; stroke: var(--red); stroke-width: 3.5; opacity: 0.9; stroke-linecap: round; }
.gauge-tick-major { stroke: rgba(255,255,255,0.85); stroke-width: 1.6; }
.gauge-tick-minor { stroke: rgba(255,255,255,0.32); stroke-width: 0.8; }
.gauge-tick-red   { stroke: var(--red); }
.gauge-label   { fill: rgba(255,255,255,0.78); font-family: 'Bebas Neue', sans-serif; font-size: 8px; letter-spacing: 0.5px; }
.gauge-title   { fill: rgba(255,255,255,0.5);  font-family: 'Bebas Neue', sans-serif; font-size: 6.5px; letter-spacing: 2px; }
.gauge-unit-lbl{ fill: rgba(255,255,255,0.32); font-family: 'Rajdhani', sans-serif; font-size: 4.5px; letter-spacing: 1.5px; }
.gauge-digital { fill: var(--hud); font-family: 'Share Tech Mono', monospace; font-size: 12px; font-weight: 700; }

.gauge-needle-grp {
  transition: transform 0.08s linear;
}
.gauge-needle  { stroke: var(--fire); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255,69,0,0.7)); }
.gauge-hub     { fill: #222; stroke: var(--fire); stroke-width: 1.5; }

.gauge-tach .gauge-needle  { stroke: var(--gold); filter: drop-shadow(0 0 3px rgba(255,215,0,0.7)); }
.gauge-tach .gauge-hub     { stroke: var(--gold); }
.gauge-tach .gauge-digital { fill: var(--gold); }

/* Rev limiter flash recolours the tach */
.rev-limit-flash .gauge-needle { stroke: #FF2200 !important; filter: drop-shadow(0 0 5px #FF2200) !important; }
.rev-limit-flash .gauge-digital { fill: #FF2200 !important; }
.gauge-tach .rev-limit-warn {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 1px;
}
.gauge-tach .tc-warn {
  /* always sits just below where the rev-limit warning would be */
  top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: clamp(16px, 3.5vh, 22px);
}

/* ── Traction control indicator ──────────────────────────────── */
.tc-warn {
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 1px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(9px, 1.8vw, 13px);
  letter-spacing: 2px;
  color: #FFC400;
  background: rgba(255,196,0,0.12);
  border: 1px solid rgba(255,196,0,0.55);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255,196,0,0.7);
  pointer-events: none;
  animation: tcFlash 0.18s steps(1) infinite;
}
@keyframes tcFlash {
  0%   { opacity: 1;   box-shadow: 0 0 10px rgba(255,196,0,0.6); }
  50%  { opacity: 0.35; box-shadow: 0 0 2px rgba(255,196,0,0.2); }
  100% { opacity: 1;   box-shadow: 0 0 10px rgba(255,196,0,0.6); }
}
/* On short mobile-landscape, the gauge sits near the bottom — placing the
   warnings BELOW it pushes them off-screen. Overlay them on the gauge face
   instead so they're always visible. */
@media (max-height: 480px) {
  .gauge-tach .rev-limit-warn {
    top: auto; bottom: 20%;
    margin-top: 0;
    font-size: clamp(6px, 2vw, 9px);
    padding: 1px 4px; letter-spacing: 1px;
    z-index: 5;
  }
  .gauge-tach .tc-warn {
    top: auto; bottom: 4%;
    margin-top: 0;
    font-size: clamp(6px, 2vw, 9px);
    padding: 1px 4px; letter-spacing: 1px;
    z-index: 5;
  }
}


/* ── Splash "tap to start" prompt ────────────────────────────── */
.splash-tap {
  margin-top: clamp(20px, 5vh, 40px);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(16px, 4vw, 26px);
  letter-spacing: 5px;
  color: var(--gold);
  animation: tapPulse 1.1s ease-in-out infinite;
  text-shadow: 0 0 24px rgba(255,215,0,0.5);
}
@keyframes tapPulse {
  0%,100% { opacity: 0.45; transform: scale(0.98); }
  50%     { opacity: 1;    transform: scale(1.04); }
}

  /* room for ticker */
}

/* ── Menu rotating promo banner ──────────────────────────────── */
.menu-promo {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 8px));
  right: max(10px, env(safe-area-inset-right, 10px));
  max-width: min(58%, 320px);
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: rgba(20,14,6,0.82);
  border: 1px solid rgba(255,215,0,0.30);
  border-radius: 20px;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  transition: border-color 0.25s, background 0.25s;
}
.menu-promo:hover { border-color: rgba(255,215,0,0.6); background: rgba(30,20,8,0.9); }
.menu-promo-icon {
  font-size: clamp(13px, 3vw, 17px);
  flex-shrink: 0;
}
.menu-promo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(10px, 2.4vw, 14px);
  letter-spacing: 1.5px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.4s ease;
}
.menu-promo-text.fading { opacity: 0; }

/* On short mobile landscape, keep it compact and clear of the title */
@media (max-height: 480px) {
  .menu-promo { top: 6px; right: 8px; max-width: 46%; padding: 4px 9px; }
}
