/* Money Printer Game Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500;700&display=swap');

/* Main container */
.mp-game-container {
  font-family: 'Roboto Mono', monospace;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Powell image */
.mp-powell-image {
  width: 100px;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="30" fill="%23f0f0f0"/><ellipse cx="50" cy="25" rx="22" ry="15" fill="%23f8f8f8"/><path d="M30 45 Q50 80 70 45" fill="%23f0f0f0" stroke="%23ccc"/><circle cx="42" cy="30" r="5" fill="%23333"/><circle cx="58" cy="30" r="5" fill="%23333"/><path d="M40 45 Q50 55 60 45" fill="none" stroke="%23333" stroke-width="2"/></svg>') no-repeat center;
  background-size: contain;
  margin: 20px 0;
  transition: transform 0.1s;
}

.mp-powell-printing {
  transform: translateY(5px);
}

/* Stats section */
.mp-stats-section {
  width: 90%;
  max-width: 300px;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Click speedometer */
.mp-click-speedometer {
  width: 100%;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mp-speedometer-label {
  font-size: 14px;
  font-weight: bold;
  color: #374151;
  text-align: center;
  margin-bottom: 10px;
}

.mp-meter-container {
  position: relative;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

.mp-meter-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

.mp-meter-fill {
  position: absolute;
  height: 100%;
  width: 0%;
  background: #3b82f6;
  transition: width 0.3s, background-color 0.3s;
}

.mp-low-speed {
  background: #3b82f6;
}

.mp-medium-speed {
  background: #8b5cf6;
}

.mp-high-speed {
  background: #ef4444;
}

.mp-cps-value {
  text-align: center;
  font-size: 14px;
  color: #4b5563;
}

/* Combo display */
.mp-combo-display {
  width: 100%;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.mp-combo-label {
  font-size: 14px;
  font-weight: bold;
  color: #374151;
  margin-bottom: 5px;
}

.mp-combo-counter {
  font-size: 24px;
  font-weight: bold;
  color: #15803d;
  transition: transform 0.2s, color 0.2s;
}

.mp-combo-increased {
  transform: scale(1.2);
  color: #16a34a;
}

.mp-combo-reset {
  color: #6b7280;
}

/* Button section */
.mp-button-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 40px 0;
  width: 100%;
}

.mp-print-button {
  width: 180px;
  height: 180px;
  background: #15803d;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 36px;
  font-weight: bold;
  box-shadow: 0 10px 0 #065f46, 0 15px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s;
  font-family: 'Roboto Mono', monospace;
  overflow: hidden;
}

.mp-button-text {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.mp-button-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.mp-print-button:hover {
  background: #16a34a;
}

.mp-button-pressed {
  transform: translateY(10px);
  box-shadow: 0 0 0 #065f46, 0 5px 10px rgba(0,0,0,0.2);
}

.mp-button-pressed .mp-button-effect {
  animation: mp-button-ripple 0.5s;
}

@keyframes mp-button-ripple {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* Money Rain */
.mp-money-rain {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.mp-money-bill {
  position: absolute;
  top: -50px;
  background: #ecfdf5;
  color: #15803d;
  font-weight: bold;
  padding: 5px 10px;
  border: 1px solid #15803d;
  border-radius: 5px;
  animation: mp-rain-down 2s linear forwards;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mp-bill-1 { background: #f0fdf4; font-size: 12px; }
.mp-bill-10 { background: #ecfdf5; font-size: 14px; }
.mp-bill-20 { background: #d1fae5; font-size: 16px; }
.mp-bill-50 { background: #a7f3d0; font-size: 18px; }
.mp-bill-100 { background: #6ee7b7; font-size: 20px; }

@keyframes mp-rain-down {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(800px) rotate(360deg);
    opacity: 0;
  }
}

/* Button particles */
.mp-button-particle {
  position: absolute;
  background: #15803d;
  border-radius: 50%;
  pointer-events: none;
}

/* High CPS effect */
.mp-high-cps-effect {
  animation: mp-shake 0.5s;
}

@keyframes mp-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive styling */
@media (max-height: 700px) {
  .mp-powell-image {
    width: 80px;
    height: 80px;
    margin: 10px 0;
  }
  
  .mp-print-button {
    width: 140px;
    height: 140px;
    font-size: 28px;
  }
  
  .mp-stats-section {
    gap: 10px;
  }
}

@media (max-height: 600px) {
  .mp-powell-image {
    width: 60px;
    height: 60px;
    margin: 5px 0;
  }
  
  .mp-print-button {
    width: 120px;
    height: 120px;
    font-size: 24px;
    margin-bottom: 10px;
  }
}

/* Portrait orientation optimization */
@media (orientation: portrait) {
  .mp-game-container {
    justify-content: space-around;
  }
}