/* ==========================================================================
   DESI ROADSTER - CYBERPUNK INDIAN ARCADE STYLING
   ========================================================================== */

:root {
  --color-saffron: #FF9933;
  --color-saffron-glow: rgba(255, 153, 51, 0.6);
  --color-cyan: #00F3FF;
  --color-cyan-glow: rgba(0, 243, 255, 0.6);
  --color-green: #39FF14;
  --color-magenta: #FF007F;
  --color-dark-bg: #0A0D14;
  --color-card-bg: rgba(18, 24, 38, 0.85);
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html {
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-dark-bg);
  background-image: radial-gradient(circle at 50% 30%, #1A1F35 0%, #07090E 100%);
  color: #FFFFFF;
  font-family: var(--font-body);
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
  height: var(--app-height, 100dvh);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: fixed;
  inset: 0;
  touch-action: none;
}

/* Responsive Game Container */
#game-container {
  position: relative;
  width: 100vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 243, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 243, 255, 0.2);
}

canvas#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #0d111a;
  image-rendering: auto;
}

/* ==========================================================================
   HUD STYLING
   ========================================================================== */

.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.hud-left, .hud-right {
  display: flex;
  gap: 12px;
}

.hud-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hud-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8C9BAE;
  font-weight: 700;
  font-family: var(--font-display);
}

.hud-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hud-subvalue {
  font-size: 11px;
  color: var(--color-cyan);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Mode Badge */
.mode-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mode-badge.road-mode {
  background: rgba(255, 153, 51, 0.2);
  border: 1px solid var(--color-saffron);
  color: var(--color-saffron);
  box-shadow: 0 0 15px var(--color-saffron-glow);
}

.mode-badge.flight-mode {
  background: rgba(0, 243, 255, 0.2);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 20px var(--color-cyan-glow);
  animation: flightPulse 1.5s infinite alternate;
}

@keyframes flightPulse {
  from { box-shadow: 0 0 10px var(--color-cyan-glow); }
  to { box-shadow: 0 0 25px var(--color-cyan-glow); }
}

/* Battery Gauge */
.battery-card {
  min-width: 130px;
}

.battery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.battery-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.battery-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00FF87, var(--color-cyan));
  border-radius: 4px;
  transition: width 0.2s ease, background 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

.mode-badge.transform-mode {
  background: rgba(255, 200, 59, 0.25);
  border: 1px solid #FFC83B;
  color: #FFC83B;
  box-shadow: 0 0 20px rgba(255, 200, 59, 0.7);
  animation: transformBlink 0.3s infinite alternate;
}

@keyframes transformBlink {
  from { opacity: 0.7; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1.03); }
}

.battery-card.critical {
  border-color: #FF0055;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
  animation: criticalPulse 0.6s infinite alternate;
}

@keyframes criticalPulse {
  from { border-color: rgba(255, 0, 85, 0.4); }
  to { border-color: rgba(255, 0, 85, 1); box-shadow: 0 0 20px rgba(255, 0, 85, 0.8); }
}

/* ==========================================================================
   OVERLAY PANELS (START & PAUSE)
   ========================================================================== */

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.hidden, .hud.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.arcade-panel {
  background: linear-gradient(145deg, rgba(20, 28, 45, 0.95), rgba(12, 16, 26, 0.95));
  border: 2px solid rgba(0, 243, 255, 0.3);
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 580px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 153, 51, 0.15);
  animation: panelEntry 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcade-panel.small-panel {
  max-width: 380px;
  padding: 28px;
}

@keyframes panelEntry {
  from {
    transform: scale(0.92) translateY(15px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.title-badge {
  display: inline-block;
  background: rgba(255, 153, 51, 0.15);
  border: 1px solid var(--color-saffron);
  color: var(--color-saffron);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.game-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.highlight-saffron {
  color: var(--color-saffron);
  text-shadow: 0 0 20px var(--color-saffron-glow);
}

.highlight-cyan {
  color: var(--color-cyan);
  text-shadow: 0 0 20px var(--color-cyan-glow);
}

.tagline {
  color: #B4C2D6;
  font-size: 14px;
  margin-bottom: 22px;
}

/* Controls Grid */
.instructions-box {
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.instructions-box h3 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--color-cyan);
  margin-bottom: 12px;
  text-align: center;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #D3DEEE;
}

.control-item.full-width {
  grid-column: span 2;
}

.control-item.highlight-row {
  background: rgba(0, 243, 255, 0.08);
  border: 1px dashed rgba(0, 243, 255, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
}

.key-badge {
  background: #242D42;
  border: 1px solid #4E5E80;
  border-bottom: 2px solid #33405C;
  border-radius: 5px;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.key-special {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* Arcade Buttons */
.arcade-btn {
  background: linear-gradient(135deg, var(--color-saffron), #E65C00);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(230, 92, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.arcade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 153, 51, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #FFA94D, #FF6600);
}

.arcade-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(230, 92, 0, 0.5);
}

.pulse-glow {
  animation: buttonPulse 2s infinite ease-in-out;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(230, 92, 0, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(255, 153, 51, 0.8), 0 0 15px rgba(255, 153, 51, 0.5);
  }
}

.sub-hint {
  font-size: 11px;
  color: #7E8DA5;
  margin-top: 14px;
}

/* ==========================================================================
   HUD ENHANCEMENTS (LIVES & MUTE BUTTON)
   ========================================================================== */

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lives-container {
  display: flex;
  gap: 4px;
  background: var(--color-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.heart {
  font-size: 14px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.heart.lost {
  opacity: 0.25;
  filter: grayscale(1);
  transform: scale(0.8);
}

.hud-btn {
  pointer-events: auto;
  cursor: pointer;
  background: var(--color-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan-glow);
  transform: scale(1.05);
}

.hud-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   GAME OVER MODAL
   ========================================================================== */

.gameover-panel {
  border-color: rgba(255, 0, 85, 0.5);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 0, 85, 0.3);
}

.danger-badge {
  background: rgba(255, 0, 85, 0.15);
  border-color: #FF0055;
  color: #FF0055;
  font-family: var(--font-display);
  letter-spacing: 2px;
}

.gameover-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #FF0055;
  text-shadow: 0 0 25px rgba(255, 0, 85, 0.8);
  margin-bottom: 18px;
}

.stats-summary {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94A3B8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-highlight {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-cyan);
  text-shadow: 0 0 12px var(--color-cyan-glow);
}

.highscore-row {
  background: rgba(255, 200, 59, 0.1);
  border: 1px dashed rgba(255, 200, 59, 0.4);
  padding: 8px 12px;
  border-radius: 8px;
  color: #FFC83B;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 13px;
}

.highscore-row span:last-child {
  font-size: 18px;
  color: #FFC83B;
  text-shadow: 0 0 10px rgba(255, 200, 59, 0.6);
}

/* ==========================================================================
   MOBILE ON-SCREEN TOUCH CONTROLS
   ========================================================================== */

.touch-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px max(18px, calc(12px + env(safe-area-inset-bottom, 16px))) 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.touch-controls.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.touch-cluster {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

/* Left D-Pad Layout */
.touch-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dpad-mid {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dpad-core {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.touch-btn {
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  border: none;
  outline: none;
  cursor: pointer;
  background: rgba(18, 24, 38, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dpad-btn {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 243, 255, 0.35);
  color: var(--color-cyan);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 0 8px var(--color-cyan-glow);
}

.dpad-btn:active, .dpad-btn.pressed {
  background: rgba(0, 243, 255, 0.3);
  border-color: var(--color-cyan);
  transform: scale(0.92);
  box-shadow: 0 0 20px var(--color-cyan-glow);
}

/* Right Action Buttons Cluster */
.touch-right {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 6px;
}

.action-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.btn-icon {
  font-size: 20px;
  line-height: 1;
}

.btn-text {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.btn-jump {
  border: 2px solid var(--color-saffron);
  background: rgba(255, 153, 51, 0.22);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px var(--color-saffron-glow);
}

.btn-jump:active, .btn-jump.pressed {
  background: rgba(255, 153, 51, 0.45);
  transform: scale(0.92);
  box-shadow: 0 0 22px var(--color-saffron-glow);
}

.btn-flight {
  border: 2px solid var(--color-cyan);
  background: rgba(0, 243, 255, 0.22);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-cyan-glow);
}

.btn-flight:active, .btn-flight.pressed {
  background: rgba(0, 243, 255, 0.45);
  transform: scale(0.92);
  box-shadow: 0 0 25px var(--color-cyan-glow);
}

/* ==========================================================================
   RESPONSIVE MOBILE BREAKPOINTS
   ========================================================================== */

@media (max-width: 900px) {
  body {
    padding: 0;
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: var(--app-height, 100dvh);
    height: 100dvh;
    overflow: hidden;
  }

  #game-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: var(--app-height, 100dvh);
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    max-height: var(--app-height, 100dvh);
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  canvas#gameCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Compact HUD for Tablets and Phones */
  .hud {
    padding: max(8px, env(safe-area-inset-top, 8px)) 12px 8px 12px;
  }

  .hud-card {
    padding: 4px 8px;
  }

  .hud-label {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hud-value {
    font-size: 13px;
  }

  .mode-badge {
    padding: 5px 10px;
    font-size: 10px;
  }

  .battery-card {
    min-width: 95px;
  }
}

@media (max-width: 640px) {
  /* Phone Screens */
  .hud {
    padding: max(6px, env(safe-area-inset-top, 6px)) 8px 6px 8px;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .hud-left, .hud-right {
    gap: 4px;
  }

  .hud-card {
    padding: 3px 6px;
  }

  .hud-value {
    font-size: 11px;
  }

  .battery-card {
    min-width: 75px;
  }

  .hud-btn {
    padding: 4px 8px;
    font-size: 13px;
  }

  .mode-badge {
    padding: 4px 8px;
    font-size: 9px;
  }

  /* Overlay Panels */
  .arcade-panel {
    padding: 18px 14px;
    max-height: 88vh;
    max-height: 88dvh;
    max-height: calc(var(--app-height, 100dvh) * 0.88);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .game-title {
    font-size: 26px;
    letter-spacing: 1.5px;
  }

  .control-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .control-item {
    font-size: 11px;
  }

  .gameover-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .stats-summary {
    padding: 10px 12px;
    gap: 5px;
  }

  .stat-row {
    font-size: 11px;
  }

  .stat-highlight {
    font-size: 15px;
  }

  /* Touch controls scaling and safe bottom anchoring for phones */
  .touch-controls {
    padding: 6px 12px max(24px, calc(16px + env(safe-area-inset-bottom, 20px))) 12px;
  }

  .touch-cluster {
    gap: 8px;
  }

  .dpad-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 8px;
  }

  .dpad-core {
    width: 16px;
    height: 16px;
  }

  .action-btn {
    width: 56px;
    height: 56px;
  }

  .btn-icon {
    font-size: 18px;
  }

  .btn-text {
    font-size: 8px;
  }
}

/* Portrait Phone Specialization */
@media (orientation: portrait) and (max-width: 900px) {
  /* On portrait screens, ensure controls are lifted comfortably above device home bar/gesture pill */
  .touch-controls {
    padding-bottom: max(32px, calc(20px + env(safe-area-inset-bottom, 24px)));
  }

  .touch-left {
    margin-left: 4px;
  }

  .touch-right {
    margin-right: 4px;
  }
}

/* Landscape Phone Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hud {
    padding: max(4px, env(safe-area-inset-top, 4px)) 10px 4px 10px;
  }

  .touch-controls {
    padding: 4px 10px max(8px, env(safe-area-inset-bottom, 8px)) 10px;
  }

  .dpad-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 8px;
  }

  .dpad-core {
    width: 14px;
    height: 14px;
  }

  .action-btn {
    width: 46px;
    height: 46px;
  }

  .btn-icon {
    font-size: 15px;
  }

  .btn-text {
    font-size: 7px;
  }

  .arcade-panel {
    padding: 12px 14px;
    max-height: 92vh;
    max-height: 92dvh;
  }

  .game-title {
    font-size: 20px;
  }

  .instructions-box {
    margin-bottom: 8px;
    padding: 6px 10px;
  }
}

/* ==========================================================================
   DESI ROADSTER MASTER EXPANSION STYLES
   ========================================================================== */

/* Mode Selection & Garage Launch Bar */
.mode-select-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
  width: 100%;
}

.challenge-toggle-btn,
.garage-shop-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.challenge-toggle-btn:hover,
.garage-shop-btn:hover {
  border-color: var(--color-cyan);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
  transform: translateY(-1px);
}

.challenge-toggle-btn.active {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.garage-shop-btn {
  border-color: rgba(255, 153, 51, 0.4);
  color: #FDBA74;
}

.garage-shop-btn:hover {
  border-color: var(--color-saffron);
  box-shadow: 0 0 12px rgba(255, 153, 51, 0.4);
}

/* Pressure Horn Touch Button */
.btn-horn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.65)) !important;
  border: 2px solid #F59E0B !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4) !important;
}

.btn-horn:active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.95)) !important;
  transform: scale(0.92);
}

/* Contextual Satirical Headline */
.satirical-headline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #FEF08A;
  background: rgba(254, 240, 138, 0.08);
  border: 1px dashed rgba(254, 240, 138, 0.35);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: center;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.4);
}

/* Share Actions Row */
.share-actions-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.share-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #F8FAFC;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.download-btn {
  border-color: #38BDF8;
  color: #38BDF8;
}
.download-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.copy-btn {
  border-color: #F59E0B;
  color: #F59E0B;
}
.copy-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.shop-btn {
  border-color: #10B981;
  color: #10B981;
}
.shop-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Jugaad Shop Modal Panel */
.shop-panel {
  max-width: 620px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
}

.shop-wallet-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #94A3B8;
  margin-bottom: 8px;
}

.wallet-amount {
  font-size: 22px;
  color: #FBBF24;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0;
  text-align: left;
}

.upgrade-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.upgrade-card:hover {
  border-color: rgba(255, 153, 51, 0.5);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}

.upgrade-card.owned {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

.upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.upgrade-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #F8FAFC;
}

.upgrade-cost {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #FBBF24;
}

.upgrade-desc {
  font-size: 11px;
  color: #CBD5E1;
  margin-bottom: 6px;
  line-height: 1.35;
}

.tradeoff-tag {
  font-size: 10px;
  color: #FDA4AF;
  font-style: italic;
  margin-bottom: 10px;
}

.upgrade-buy-btn {
  width: 100%;
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upgrade-buy-btn:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.upgrade-buy-btn:disabled {
  background: #334155;
  color: #64748B;
  cursor: not-allowed;
}

.upgrade-card.owned .upgrade-buy-btn {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
  border: 1px solid #10B981;
  cursor: default;
}

