@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --oil-black: #09090b;
  --charcoal-grey: #1c1917;
  --rust-orange: #ea580c;
  --dark-amber: #b45309;
  --glow-orange: rgba(249, 115, 22, 0.4);
  --glow-amber: rgba(217, 119, 6, 0.3);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--oil-black);
  color: #e7e5e4;
  overflow-x: hidden;
}

.font-mono-digital {
  font-family: 'Share Tech Mono', monospace;
}

/* CRT Scanline and Flicker Effects for Industrial Terminal Vibe */
.crt-container {
  position: relative;
  overflow: hidden;
}

.crt-container::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

/* Glow Utilities */
.glow-amber-text {
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.glow-orange-text {
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.glow-amber-border {
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.2), inset 0 0 10px rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.4);
}

.glow-orange-border {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25), inset 0 0 15px rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.5);
}

/* Custom Scrollbar for the Upgrade Shop */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #1c1917;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #78350f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Tab Slide and Active Animations */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Manual click indicator animation */
.click-indicator {
  position: absolute;
  pointer-events: none;
  font-family: 'Share Tech Mono', monospace;
  font-weight: bold;
  color: #fb923c;
  text-shadow: 0 0 5px rgba(249, 115, 22, 0.8);
  animation: floatUpAndOut 0.8s ease-out forwards;
  z-index: 10;
}

@keyframes floatUpAndOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) translateY(-60px);
  }
}

/* Custom Glassmorphism panel styling */
.glass-panel {
  background: rgba(28, 25, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(120, 53, 15, 0.3);
}

/* Pulse animation for active drilling */
.pulse-amber {
  animation: pulseAmber 2s infinite;
}

@keyframes pulseAmber {
  0%, 100% {
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.5);
  }
}

/* Shake Animation */
.shake {
  animation: shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Gas / Oil Gush Particle Class */
.gush-particle {
  position: absolute;
  pointer-events: none;
  background-color: #0c0a09;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 50%;
  animation: gush 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 5;
}

@keyframes gush {
  0% {
    transform: translate(-50%, 0) scale(0.5);
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}
