/* Enhanced Modern Color Palette */
:root {
  /* Primary Colors - More Vibrant */
  --primary-gold: #ffd700;
  --primary-gold-light: #fff176;
  --primary-gold-dark: #f57f17;
  --primary-gold-glow: #ffeb3b;
  
  /* Secondary Colors - Enhanced */
  --secondary-orange: #ff5722;
  --secondary-orange-light: #ff7043;
  --secondary-orange-dark: #d84315;
  --secondary-orange-glow: #ff9800;
  
  /* Accent Colors - More Visible */
  --accent-green: #00e676;
  --accent-green-light: #69f0ae;
  --accent-green-dark: #00c853;
  --accent-purple: #e91e63;
  --accent-purple-light: #f48fb1;
  --accent-purple-dark: #c2185b;
  
  /* New Accent Colors */
  --accent-blue: #2196f3;
  --accent-blue-light: #64b5f6;
  --accent-blue-dark: #1976d2;
  --accent-cyan: #00bcd4;
  --accent-cyan-light: #4dd0e1;
  
  /* Neutral Colors - Enhanced Contrast */
  --neutral-white: #ffffff;
  --neutral-gray-light: #f8f9fa;
  --neutral-gray: #6c757d;
  --neutral-gray-dark: #343a40;
  --neutral-black: #000000;
  --neutral-silver: #c0c0c0;
  
  /* Background Colors - More Visible */
  --bg-primary: rgba(0, 0, 0, 0.95);
  --bg-secondary: rgba(0, 0, 0, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.15);
  --bg-glass-dark: rgba(0, 0, 0, 0.3);
  --bg-gradient: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(20,20,20,0.8));
  
  /* Enhanced Shadow Colors */
  --shadow-gold: rgba(255, 215, 0, 0.5);
  --shadow-orange: rgba(255, 87, 34, 0.5);
  --shadow-green: rgba(0, 230, 118, 0.5);
  --shadow-purple: rgba(233, 30, 99, 0.5);
  --shadow-blue: rgba(33, 150, 243, 0.5);
  --shadow-cyan: rgba(0, 188, 212, 0.5);
  
  /* Glow Effects */
  --glow-gold: 0 0 20px var(--primary-gold);
  --glow-orange: 0 0 20px var(--secondary-orange);
  --glow-green: 0 0 20px var(--accent-green);
  --glow-purple: 0 0 20px var(--accent-purple);
  --glow-blue: 0 0 20px var(--accent-blue);
  
  /* Text Shadows */
  --text-shadow-gold: 0 0 10px var(--primary-gold), 2px 2px 4px rgba(0,0,0,0.8);
  --text-shadow-orange: 0 0 10px var(--secondary-orange), 2px 2px 4px rgba(0,0,0,0.8);
  --text-shadow-green: 0 0 10px var(--accent-green), 2px 2px 4px rgba(0,0,0,0.8);
}

@font-face {
  font-family: "Botsmatic3d";
  src: url("assets/fonts/Botsmatic3d.ttf");
}
@font-face {
  font-family: "BotsmaticOutline";
  src: url("assets/fonts/BotsmaticOutline.ttf");
}
@font-face {
  font-family: "BotsmaticDemo";
  src: url("assets/fonts/BotsmaticDemo.ttf");
}
::-webkit-scrollbar {
  width: 0;
}

body,
html {
  width: 100%;
  height: 100%;
  background-color: black;
  font-family: "pixelFlag";
  color: #fff;
  overflow: hidden;
  margin: 0;
}

.walletArea {
  display: inline-block;
}

.walletAddress {
  background: var(--bg-primary);
  border: 2px solid var(--primary-gold);
  border-radius: 8px;
  padding: 4px 8px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 10px;
  color: var(--neutral-white);
  font-weight: bold;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px var(--shadow-gold);
  min-width: 60px;
  text-align: center;
  display: inline-block;
  text-shadow: 0 0 3px var(--primary-gold);
  line-height: 1;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.walletAddress:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-gold);
}

.circles {
  position: absolute;
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 0;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: animate 5s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 7s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 50px;
  height: 50px;
  animation-delay: 2s;
  animation-duration: 18s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 30px;
  height: 30px;
  animation-delay: 9s;
  animation-duration: 8s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 17s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 80px;
  height: 80px;
  animation-delay: 3s;
  animation-duration: 6s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 50px;
  height: 50px;
  animation-delay: 5s;
  animation-duration: 20s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 15s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 40px;
  height: 40px;
  animation-delay: 2s;
  animation-duration: 10s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 100px;
  height: 100px;
  animation-delay: 0s;
  animation-duration: 5s;
}

@keyframes animate {
  0% {
    transform: translateY(-50vh);
    opacity: 0;
  }

  100% {
    transform: translateY(-120vh);
    opacity: 1;
  }
}
main {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenRatio {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}
.insideScreenRatio {
  padding: 20px;
  margin: 0;
  width: 70%;
  height: 60%;
}

.wrapper {
  position: relative;
  overflow: hidden;
}

.canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: -10;
}
.controlBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-size: 30px;
  background-color: rgba(47, 31, 46, 0.55);
  border-radius: 10px 10px;
  opacity: 0;
  top: 30%;
  left: 50%;
  padding: 20px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  transition: 1s;
}
.controlButton {
  height: 45px;
  width: 45px;
  margin: 4px;
  image-rendering: pixelated;
}
/* Enhanced Mobile Control Buttons with Gaming UI Features */
.mobileControlButt {
  height: clamp(60px, 8vw, 80px);
  width: clamp(60px, 8vw, 80px);
  image-rendering: auto;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  padding: clamp(8px, 1vw, 12px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px var(--shadow-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: mobileButtonEntrance 0.5s ease-out;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobileControlButt::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: left 0.6s;
  border-radius: 50%;
}

.mobileControlButt::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

@keyframes mobileButtonEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.mobileControlButt:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px var(--shadow-gold);
  border-color: var(--primary-gold-light);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.mobileControlButt:hover::before {
  left: 100%;
}

.mobileControlButt:hover::after {
  width: 120%;
  height: 120%;
}

.mobileControlButt:active {
  transform: scale(0.95);
  transition: all 0.1s ease;
  box-shadow: 0 4px 15px var(--shadow-gold);
}

/* Mobile button pressed state */
.mobileControlButt.pressed {
  transform: scale(0.9);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  box-shadow: 0 4px 15px var(--shadow-gold);
  animation: mobileButtonPress 0.2s ease-out;
}

@keyframes mobileButtonPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.85); }
  100% { transform: scale(0.9); }
}

/* Mobile button feedback for successful actions */
.mobileControlButt.success {
  animation: mobileButtonSuccess 0.6s ease-out;
}

@keyframes mobileButtonSuccess {
  0% { transform: scale(1); }
  25% { transform: scale(1.2) rotate(5deg); }
  50% { transform: scale(1.1) rotate(-3deg); }
  75% { transform: scale(1.15) rotate(2deg); }
  100% { transform: scale(1); }
}

/* Mobile button cooldown state */
.mobileControlButt.cooldown {
  opacity: 0.6;
  pointer-events: none;
  animation: mobileButtonCooldown 1s ease-in-out infinite alternate;
}

@keyframes mobileButtonCooldown {
  0% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

/* Mobile button disabled state */
.mobileControlButt.disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(100%);
  border-color: #666;
}

/* Gaming UI Floating Text Effects */
.floating-text {
  position: absolute;
  font-family: "BotsmaticDemo", monospace;
  font-weight: bold;
  font-size: clamp(20px, 3vw, 35px);
  color: var(--primary-gold);
  text-shadow: 0 0 10px var(--shadow-gold), 2px 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 300;
  animation: floatingText 1.5s ease-out forwards;
}

@keyframes floatingText {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.2);
  }
}

/* Score increase floating text */
.floating-text.score-increase {
  color: #00ff00;
  text-shadow: 0 0 15px #00ff00, 2px 2px 4px rgba(0, 0, 0, 0.8);
  animation: floatingScoreIncrease 1.2s ease-out forwards;
}

@keyframes floatingScoreIncrease {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-50px) scale(1.3) rotate(5deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.1) rotate(0deg);
  }
}

/* Coin collection floating text */
.floating-text.coin-collected {
  color: var(--secondary-orange);
  text-shadow: 0 0 15px var(--shadow-orange), 2px 2px 4px rgba(0, 0, 0, 0.8);
  animation: floatingCoinCollected 1.0s ease-out forwards;
}

@keyframes floatingCoinCollected {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translateY(-30px) scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.8) rotate(0deg);
  }
}

/* Combo display */
.combo-display {
  position: absolute;
  top: clamp(120px, 15vw, 180px);
  left: clamp(20px, 3vw, 30px);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: bold;
  color: var(--accent-green);
  text-shadow: 0 0 10px var(--shadow-green), 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: linear-gradient(45deg, var(--accent-green), var(--accent-green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 100;
}

.combo-display.active {
  opacity: 1;
  transform: scale(1);
  animation: comboPulse 0.5s ease-out;
}

@keyframes comboPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Power-up indicator */
.powerup-indicator {
  position: absolute;
  top: clamp(150px, 18vw, 220px);
  left: clamp(20px, 3vw, 30px);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: bold;
  color: var(--primary-gold);
  text-shadow: 0 0 8px var(--shadow-gold), 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
  z-index: 100;
}

.powerup-indicator.active {
  opacity: 1;
  transform: translateX(0);
  animation: powerupSlideIn 0.4s ease-out;
}

@keyframes powerupSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.leftButtonsBlock {
  display: none;
}
.rightButtonsBlock {
  display: none;
}

.pause,
.gameOver,
.mainMenu,
.credits,
.tutorial,
.achives,
.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 30px;
  padding: clamp(10px, 2vw, 20px);
}
/* Enhanced Typography System */
.typography-h1 {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  line-height: 1.2;
  color: var(--primary-gold);
  text-shadow: 0 0 20px var(--shadow-gold);
  margin: 0 0 1rem 0;
}

.typography-h2 {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  line-height: 1.3;
  color: var(--secondary-orange);
  text-shadow: 0 0 15px var(--shadow-orange);
  margin: 0 0 0.8rem 0;
}

.typography-h3 {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: bold;
  line-height: 1.4;
  color: var(--neutral-white);
  margin: 0 0 0.6rem 0;
}

.typography-body {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: var(--neutral-white);
  margin: 0 0 0.5rem 0;
}

.typography-caption {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  line-height: 1.4;
  color: var(--neutral-gray-light);
  opacity: 0.8;
  margin: 0;
}

.typography-button {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: bold;
  line-height: 1.2;
  color: var(--neutral-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mainTitle {
  font-family: "BotsmaticDemo";
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  height: 25%;
  z-index: 100;
  line-height: 1.1;
  color: var(--primary-gold);
  text-shadow: 0 0 25px var(--shadow-gold);
  background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
  margin-bottom: clamp(10px, 2vw, 20px);
}
.subtitle {
  font-family: "pixelFlag";
  font-weight: bold;
  font-size: 40px;
  letter-spacing: 3px;
}
.pause,
.gameOver {
  background: url("assets/gui/popup.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  image-rendering: pixelated;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  border-radius: 20px 20px;
  line-height: 1.1;
  animation: soft 0.2s ease-out;
  font-size: 50px;
  font-weight: bold;
  padding: clamp(15px, 3vw, 25px);
  min-height: clamp(280px, 45vw, 450px);
  max-width: clamp(280px, 55vw, 450px);
  margin: auto;
}
@keyframes soft {
  0% {
    opacity: 0;
  }
  100% {
    display: block;
    opacity: 1;
  }
}
.mainMenuButtons {
  margin-top: clamp(20px, 3vw, 40px);
  width: 100%;
  font-size: clamp(16px, 2.2vw, 20px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(10px, 2vw, 18px);
  z-index: 100;
  font-family: "BotsmaticDemo", monospace;
  padding: clamp(15px, 2.5vw, 25px);
  animation: menuEntrance 0.8s ease-out;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes menuEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.menuButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: clamp(120px, 15vw, 160px);
  height: clamp(90px, 11vw, 120px);
  background: var(--bg-gradient);
  border: 3px solid var(--primary-gold);
  border-radius: 20px;
  padding: clamp(12px, 1.5vw, 20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glow-gold), 0 8px 25px var(--shadow-gold);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: buttonStagger 0.6s ease-out;
  animation-fill-mode: both;
  text-align: center;
}

/* Specific button styling */
.playButton {
  border-color: var(--accent-green);
  box-shadow: var(--glow-green), 0 8px 25px var(--shadow-green);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), var(--bg-primary));
}

.playButton:hover {
  border-color: var(--accent-green-light);
  box-shadow: var(--glow-green), 0 20px 50px var(--shadow-green);
}

.achievementsButton {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple), 0 8px 25px var(--shadow-purple);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), var(--bg-primary));
}

.achievementsButton:hover {
  border-color: var(--accent-purple-light);
  box-shadow: var(--glow-purple), 0 20px 50px var(--shadow-purple);
}

.storeButton {
  border-color: var(--secondary-orange);
  box-shadow: var(--glow-orange), 0 8px 25px var(--shadow-orange);
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), var(--bg-primary));
}

.storeButton:hover {
  border-color: var(--secondary-orange-light);
  box-shadow: var(--glow-orange), 0 20px 50px var(--shadow-orange);
}

.settingsButton {
  border-color: var(--accent-blue);
  box-shadow: var(--glow-blue), 0 8px 25px var(--shadow-blue);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), var(--bg-primary));
}

.settingsButton:hover {
  border-color: var(--accent-blue-light);
  box-shadow: var(--glow-blue), 0 20px 50px var(--shadow-blue);
}

.walletButton {
  border-color: var(--primary-gold);
  box-shadow: var(--glow-gold), 0 8px 25px var(--shadow-gold);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--bg-primary));
}

.walletButton:hover {
  border-color: var(--primary-gold-light);
  box-shadow: var(--glow-gold), 0 20px 50px var(--shadow-gold);
}

/* Connect Button below title */
.connectButton {
  background: var(--bg-gradient);
  border: 2px solid var(--primary-gold);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--glow-gold), 0 6px 20px var(--shadow-gold);
  padding: clamp(8px, 1.5vw, 15px) clamp(15px, 2.5vw, 25px);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  margin: clamp(8px, 1.5vw, 15px) auto;
  max-width: 280px;
  animation: walletButtonEntrance 0.8s ease-out;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  outline: none;
  text-decoration: none;
  /* Button-specific properties */
  width: auto;
  height: auto;
  min-width: 200px;
  min-height: 50px;
}

.connectButton:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: var(--glow-gold), 0 20px 50px var(--shadow-gold);
  background: linear-gradient(135deg, var(--bg-glass), var(--bg-glass-dark));
}

.connectButton:active {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--glow-gold), 0 12px 30px var(--shadow-gold);
}

.connectButton:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

.connectButton:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

.connectButton img {
  width: clamp(20px, 2.5vw, 30px);
  height: clamp(20px, 2.5vw, 30px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.connectButton .walletText {
  font-family: "BotsmaticDemo", monospace;
  font-weight: bold;
  letter-spacing: 1px;
}

.connectButton .connectHint {
  font-family: "pixelFlag", monospace;
  font-size: clamp(10px, 1.2vw, 12px);
  opacity: 0.8;
  font-style: italic;
}

.menuButton:nth-child(1) { animation-delay: 0.1s; }
.menuButton:nth-child(2) { animation-delay: 0.2s; }
.menuButton:nth-child(3) { animation-delay: 0.3s; }
.menuButton:nth-child(4) { animation-delay: 0.4s; }

@keyframes buttonStagger {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menuButton:hover {
  transform: translateY(-12px) scale(1.1);
  box-shadow: var(--glow-gold), 0 20px 50px var(--shadow-gold);
  border-color: var(--primary-gold-light);
  background: linear-gradient(135deg, var(--bg-glass), var(--bg-glass-dark));
}

.menuButton:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.menuButton:hover::before {
  left: 100%;
}

.menuButton:active {
  transform: translateY(-4px) scale(1.03);
  transition: all 0.1s ease;
  box-shadow: 0 8px 20px var(--shadow-gold);
}
/* Enhanced Wallet Integration UI */
.connectButton {
  position: relative;
  bottom: clamp(80px, 12vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  justify-content: center;
  width: clamp(140px, 18vw, 180px);
  height: clamp(80px, 10vw, 120px);
  padding: clamp(10px, 1.5vw, 20px);
  background: var(--bg-gradient);
  border: 3px solid var(--primary-gold);
  border-radius: 25px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--glow-gold), 0 8px 25px var(--shadow-gold);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transform: translateY(0) scale(1);
  overflow: hidden;
  position: relative;
  animation: walletButtonEntrance 0.6s ease-out;
}

@keyframes walletButtonEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.connectButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: left 0.6s;
  border-radius: inherit;
}

.connectButton:hover {
  transform: translateY(-8px) scale(1.1);
  filter: brightness(1.2) drop-shadow(0 15px 30px var(--shadow-gold));
  box-shadow: var(--glow-gold), 0 20px 50px var(--shadow-gold);
  border-color: var(--primary-gold-light);
  background: linear-gradient(135deg, var(--bg-glass), var(--bg-glass-dark));
}

.connectButton:hover::before {
  left: 100%;
}

.connectButton:active {
  transform: translateY(-3px) scale(1.05);
  transition: all 0.1s ease;
  box-shadow: 0 8px 20px var(--shadow-gold);
}

/* Wallet Connected State */
.walletConnected {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  border: 2px solid var(--accent-green);
  box-shadow: 0 8px 25px var(--shadow-green);
  animation: walletConnectedPulse 2s ease-in-out infinite alternate;
}

@keyframes walletConnectedPulse {
  0% { 
    box-shadow: 0 8px 25px var(--shadow-green);
    transform: scale(1);
  }
  100% { 
    box-shadow: 0 12px 35px var(--shadow-green);
    transform: scale(1.02);
  }
}

/* Wallet Status Indicators */
.wallet-status {
  position: absolute;
  top: clamp(8px, 1.5vw, 15px);
  right: clamp(8px, 1.5vw, 15px);
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  padding: clamp(4px, 0.8vw, 8px) clamp(8px, 1.2vw, 12px);
  border-radius: clamp(8px, 1.2vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wallet-status-indicator {
  width: clamp(12px, 1.5vw, 16px);
  height: clamp(12px, 1.5vw, 16px);
  border-radius: 50%;
  position: relative;
  animation: statusPulse 2s ease-in-out infinite;
}

.wallet-status-indicator.connected {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--shadow-green);
}

.wallet-status-indicator.disconnected {
  background: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.wallet-status-indicator.connecting {
  background: var(--secondary-orange);
  box-shadow: 0 0 10px var(--shadow-orange);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.wallet-status-text {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* Transaction Feedback */
.transaction-feedback {
  position: fixed;
  top: clamp(20px, 3vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border: 2px solid var(--primary-gold);
  border-radius: clamp(8px, 1vw, 12px);
  padding: clamp(12px, 2vw, 20px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px var(--shadow-gold);
  z-index: 1000;
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  transition: all 0.4s ease;
  max-width: clamp(300px, 60vw, 500px);
  text-align: center;
}

.transaction-feedback.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.transaction-feedback.success {
  border-color: var(--accent-green);
  box-shadow: 0 8px 25px var(--shadow-green);
}

.transaction-feedback.error {
  border-color: #ff4444;
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.5);
}

.transaction-feedback-text {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: clamp(5px, 0.8vw, 10px);
}

.transaction-feedback-details {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(10px, 1.4vw, 14px);
  color: var(--neutral-white);
  opacity: 0.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Game Stats Display */
.gameStats {
  position: absolute;
  top: clamp(60px, 8vw, 100px);
  left: clamp(15px, 2vw, 25px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  padding: clamp(8px, 1.2vw, 12px);
  border-radius: clamp(8px, 1vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.statItem {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  font-family: "BotsmaticDemo", monospace;
}

.statLabel {
  font-size: clamp(10px, 1.2vw, 14px);
  color: var(--primary-gold);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  min-width: clamp(40px, 5vw, 60px);
}

.statValue {
  font-size: clamp(12px, 1.4vw, 16px);
  color: var(--neutral-white);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Wallet Address Display */
.wallet-address {
  position: absolute;
  top: clamp(35px, 5vw, 50px);
  right: clamp(8px, 1.5vw, 15px);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(6px, 0.8vw, 8px);
  padding: clamp(4px, 0.8vw, 6px) clamp(8px, 1.2vw, 10px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.wallet-address.show {
  opacity: 1;
  transform: translateX(0);
}

.wallet-address-text {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(7px, 0.9vw, 10px);
  color: var(--primary-gold);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  word-break: break-all;
  max-width: clamp(100px, 18vw, 150px);
  letter-spacing: 0.3px;
}

/* Enhanced Responsive Design for Mobile Landscape */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .score {
    font-size: clamp(25px, 4vw, 40px);
    top: clamp(5px, 1vw, 10px);
    left: clamp(10px, 2vw, 20px);
  }
  
  .coins {
    font-size: clamp(18px, 3vw, 30px);
    top: clamp(30px, 5vw, 50px);
    left: clamp(10px, 2vw, 20px);
  }
  
  .coins img {
    width: clamp(15px, 2.5vw, 25px);
    height: clamp(15px, 2.5vw, 25px);
  }
  
  .pauseButton {
    height: clamp(35px, 2.5vw, 45px);
    width: clamp(35px, 2.5vw, 45px);
    right: clamp(8px, 1vw, 15px);
    top: clamp(8px, 1vw, 15px);
  }
  
  .mobileControlButt {
    height: clamp(45px, 5vw, 60px);
    width: clamp(45px, 5vw, 60px);
  }
  
  .combo-display {
    font-size: clamp(12px, 1.8vw, 18px);
    top: clamp(70px, 8vw, 100px);
    left: clamp(10px, 2vw, 20px);
  }
  
  .powerup-indicator {
    font-size: clamp(10px, 1.5vw, 14px);
    top: clamp(90px, 10vw, 120px);
    left: clamp(10px, 2vw, 20px);
  }
  
  .floating-text {
    font-size: clamp(14px, 2.5vw, 24px);
  }
  
  .connectButton {
    bottom: clamp(50px, 8vw, 80px);
    width: clamp(120px, 15vw, 160px);
    height: clamp(60px, 8vw, 100px);
    font-size: clamp(10px, 1.5vw, 14px);
  }
  
  .wallet-status {
    top: clamp(5px, 1vw, 10px);
    right: clamp(5px, 1vw, 10px);
  }
  
  .wallet-address {
    top: clamp(30px, 5vw, 60px);
    right: clamp(5px, 1vw, 10px);
  }
}

/* Touch Controls Optimization */
@media (hover: none) and (pointer: coarse) {
  .mobileControlButt {
    height: clamp(70px, 10vw, 90px);
    width: clamp(70px, 10vw, 90px);
    padding: clamp(12px, 2vw, 16px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobileControlButt:active {
    transform: scale(0.9);
    transition: all 0.1s ease;
  }
  
  .pauseButton {
    height: clamp(55px, 5vw, 80px);
    width: clamp(55px, 5vw, 80px);
    padding: clamp(10px, 1.5vw, 15px);
    touch-action: manipulation;
  }
  
  .connectButton {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .connectButton:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
  }
  
  .menuButton {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .menuButton:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
  }
}

/* Ultra-wide screens optimization */
@media screen and (min-width: 2000px) {
  .score {
    font-size: clamp(50px, 4vw, 80px);
    left: clamp(30px, 2vw, 50px);
  }
  
  .coins {
    font-size: clamp(40px, 3.5vw, 65px);
    top: clamp(80px, 6vw, 120px);
    left: clamp(30px, 2vw, 50px);
  }
  
  .pauseButton {
    height: clamp(60px, 3vw, 90px);
    width: clamp(60px, 3vw, 90px);
    right: clamp(25px, 1.5vw, 40px);
    top: clamp(25px, 1.5vw, 40px);
  }
  
  .mobileControlButt {
    height: clamp(80px, 6vw, 100px);
    width: clamp(80px, 6vw, 100px);
  }
  
  .connectButton {
    width: clamp(180px, 12vw, 220px);
    height: clamp(100px, 8vw, 140px);
    font-size: clamp(16px, 1.2vw, 20px);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .score, .coins, .combo-display, .powerup-indicator {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .mobileControlButt, .pauseButton, .connectButton {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }
}

.walletDisconnected {
  background-image: url("assets/gui/midBtn.png");
  border: 2px solid var(--secondary-orange);
  box-shadow: 0 0 10px var(--shadow-orange);
}

.walletLoading {
  background-image: url("assets/gui/midBtn.png");
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 10px var(--shadow-gold);
  animation: pulse 1.5s infinite;
}

/* Enhanced Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffd700;
  animation: spin 1s ease-in-out infinite;
}

.loading-spinner.large {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

.loading-spinner.small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-button {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Tooltip System */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--bg-primary);
  color: var(--neutral-white);
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: "BotsmaticDemo", monospace;
  font-size: 12px;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 4px 12px var(--shadow-gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--primary-gold) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip-left .tooltiptext {
  bottom: auto;
  top: 50%;
  left: -210px;
  margin-left: 0;
  margin-top: -20px;
}

.tooltip-left .tooltiptext::after {
  top: 50%;
  left: 100%;
  margin-top: -5px;
  margin-left: 0;
  border-color: transparent var(--primary-gold) transparent transparent;
}

.tooltip-right .tooltiptext {
  bottom: auto;
  top: 50%;
  left: 110%;
  margin-left: 0;
  margin-top: -20px;
}

.tooltip-right .tooltiptext::after {
  top: 50%;
  right: 100%;
  margin-top: -5px;
  margin-right: 0;
  border-color: transparent transparent transparent var(--primary-gold);
}

.walletText {
  font-size: 12px;
  font-weight: bold;
  margin: 2px 0;
  text-align: center;
}

.connectHint, .disconnectHint {
  font-size: 8px;
  opacity: 0.8;
  font-style: italic;
  text-align: center;
  margin-top: 2px;
}

/* Enhanced Panel Organization */
.panelContainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

/* Settings Panel Specific Positioning */
.settingsPanel .panelContainer {
  max-width: 1000px;
  padding: 40px;
  gap: 30px;
}

/* Enhanced Rewards Panel */
.rewardsHeader {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.rewardsTitle {
  font-family: "BotsmaticDemo", monospace;
  font-size: 42px;
  color: #ffd700;
  margin: 0 0 15px 0;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rewardsSubtitle {
  font-family: "BotsmaticDemo", monospace;
  font-size: 18px;
  color: #ffffff;
  margin: 0;
  opacity: 0.9;
}

.rewardsContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.rewardsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.rewardCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #ffd700;
  border-radius: 20px;
  padding: 25px;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rewardCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.rewardCard:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.coinsCard {
  border-color: #ffd700;
}

.scoreCard {
  border-color: #ff6b35;
}

.rewardIcon {
  font-size: 48px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.rewardInfo {
  width: 100%;
}

.rewardInfo h3 {
  font-family: "BotsmaticDemo", monospace;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.rewardValue {
  font-family: "BotsmaticDemo", monospace;
  font-size: 32px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  margin-bottom: 8px;
}

.rewardDescription {
  font-family: "BotsmaticDemo", monospace;
  font-size: 12px;
  color: #ffffff;
  opacity: 0.7;
  margin: 0;
}

.claimSection {
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #4CAF50;
  border-radius: 20px;
  padding: 25px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.claimInfo {
  margin-bottom: 20px;
}

.claimInfo h3 {
  font-family: "BotsmaticDemo", monospace;
  font-size: 24px;
  color: #4CAF50;
  margin: 0 0 10px 0;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.claimInfo p {
  font-family: "BotsmaticDemo", monospace;
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  opacity: 0.9;
}

.claimBtn {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  border: 3px solid #4CAF50;
  border-radius: 15px;
  padding: 18px 40px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 15px auto;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  position: relative;
  overflow: hidden;
}

.claimBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.claimBtn:hover::before {
  left: 100%;
}

.claimBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.claimBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.claimIcon {
  font-size: 24px;
}

.claimText {
  font-size: 18px;
}

.walletRequirement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 12px;
  color: #ffffff;
  opacity: 0.8;
}

.requirementIcon {
  font-size: 16px;
}

/* Enhanced Settings Panel */
.settingsHeader {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 107, 53, 0.3);
}

.settingsTitle {
  font-family: "BotsmaticDemo", monospace;
  font-size: 48px;
  color: #ff6b35;
  margin: 0 0 20px 0;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
  background: linear-gradient(45deg, #ff6b35, #ff8c42, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

.settingsSubtitle {
  font-family: "BotsmaticDemo", monospace;
  font-size: 20px;
  color: #ffffff;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.settingsContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 800px;
}

.settingsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 30px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.settingCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
  border: 3px solid #ff6b35;
  border-radius: 25px;
  padding: 30px 25px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  justify-content: space-between;
}

.settingCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42, #ff6b35);
  animation: shimmer 3s infinite;
}

.settingCard:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
  border-color: #ff8c42;
}

.audioCard {
  border-color: #ff6b35;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 0, 0, 0.8));
}

.controlsCard {
  border-color: #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(0, 0, 0, 0.8));
}

.walletCard {
  border-color: #9C27B0;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(0, 0, 0, 0.8));
}

.graphicsCard {
  border-color: var(--accent-purple);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(0, 0, 0, 0.8));
}

.gameCard {
  border-color: var(--accent-green);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 0, 0, 0.8));
}

.performanceCard {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(0, 0, 0, 0.8));
}

.settingIcon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.7));
  animation: iconFloat 2s ease-in-out infinite alternate;
}

@keyframes iconFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-5px); }
}

.settingInfo {
  flex: 1;
  margin-bottom: 20px;
}

.settingInfo h3 {
  font-family: "BotsmaticDemo", monospace;
  font-size: 24px;
  color: #ffffff;
  margin: 0 0 12px 0;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.settingInfo p {
  font-family: "BotsmaticDemo", monospace;
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 15px 0;
  opacity: 0.9;
  line-height: 1.4;
}

.settingStatus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 14px;
  color: #ffffff;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 15px;
  margin-bottom: 15px;
}

.statusIcon {
  font-size: 16px;
}

.statusText {
  font-size: 13px;
  font-weight: bold;
}

.settingControl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.settingBtn {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  border: 3px solid #ff6b35;
  border-radius: 15px;
  padding: 15px 30px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.settingBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.settingBtn:hover::before {
  left: 100%;
}

.settingBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
  border-color: #ff8c42;
}

.btnIcon {
  font-size: 18px;
}

.btnText {
  font-size: 14px;
}

.controlsDisplay {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.controlKey {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(255, 255, 255, 0.1));
  border: 3px solid #4CAF50;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  min-width: 40px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.controlKey:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.6);
}

.walletStatus {
  font-family: "BotsmaticDemo", monospace;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 15px;
  text-align: center;
  min-width: 140px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.walletStatus::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.walletStatus:hover::before {
  opacity: 1;
}

.walletStatus.connected {
  color: #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.1));
  border: 3px solid #4CAF50;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.walletStatus.disconnected {
  color: #ff6b35;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 107, 53, 0.1));
  border: 3px solid #ff6b35;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Enhanced Return Button */
.return-btn-holder {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.return-btn {
  background: linear-gradient(45deg, #666, #888);
  border: 3px solid #666;
  border-radius: 15px;
  padding: 15px 40px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.return-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.return-btn:hover::before {
  left: 100%;
}

.return-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border-color: #888;
}

/* Enhanced Settings UI Components */

/* Volume Control */
.volumeControl {
  width: 100%;
  margin-bottom: 15px;
}

.volumeLabel {
  font-family: "BotsmaticDemo", monospace;
  font-size: 14px;
  color: var(--neutral-white);
  margin-bottom: 8px;
  display: block;
  opacity: 0.9;
}

.volumeSlider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-gold);
  cursor: pointer;
  box-shadow: 0 0 10px var(--shadow-gold);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--shadow-gold);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px var(--shadow-gold);
}

.volumeValue {
  font-family: "BotsmaticDemo", monospace;
  font-size: 12px;
  color: var(--primary-gold);
  min-width: 35px;
  text-align: center;
}

/* Toggle Switches */
.toggleSwitch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggleSwitch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggleSwitch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.4s;
  border-radius: 24px;
}

.toggleSwitch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggleSwitch input:checked + .slider {
  background-color: var(--primary-gold);
  box-shadow: 0 0 10px var(--shadow-gold);
}

.toggleSwitch input:checked + .slider:before {
  transform: translateX(26px);
}

/* Option Rows */
.optionRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.optionRow:last-child {
  border-bottom: none;
}

.optionLabel {
  font-family: "BotsmaticDemo", monospace;
  font-size: 14px;
  color: var(--neutral-white);
  opacity: 0.9;
}

/* Graphics Options */
.graphicsOptions,
.gameOptions,
.performanceOptions {
  width: 100%;
}

/* Control Groups */
.controlsDisplay {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.controlGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.controlKey {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(255, 255, 255, 0.1));
  border: 2px solid var(--accent-green);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--neutral-white);
  text-align: center;
  min-width: 40px;
  box-shadow: 0 4px 12px var(--shadow-green);
  transition: all 0.3s ease;
}

.controlKey:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px var(--shadow-green);
}

.controlLabel {
  font-family: "BotsmaticDemo", monospace;
  font-size: 10px;
  color: var(--neutral-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.controlOptions {
  width: 100%;
}

/* Wallet Actions */
.walletActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Setting Selects */
.settingSelect {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border: 2px solid var(--primary-gold);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 12px;
  color: var(--neutral-white);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.settingSelect:hover {
  border-color: var(--primary-gold-light);
  box-shadow: 0 0 10px var(--shadow-gold);
}

.settingSelect:focus {
  box-shadow: 0 0 15px var(--shadow-gold);
}

/* Settings Footer */
.settingsFooter {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.settingsActions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.resetBtn {
  background: linear-gradient(45deg, #666, #888);
  border: 3px solid #666;
  color: var(--neutral-white);
}

.resetBtn:hover {
  border-color: #888;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.saveBtn {
  background: linear-gradient(45deg, var(--accent-green), var(--accent-green-light));
  border: 3px solid var(--accent-green);
  color: var(--neutral-white);
}

.saveBtn:hover {
  border-color: var(--accent-green-light);
  box-shadow: 0 8px 25px var(--shadow-green);
}

/* Toggle Buttons Container */
.toggleButtons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Settings-specific styling to match achievements */
.settingBlock {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  min-height: 80px;
  background-color: rgb(30, 68, 36) !important; /* Different green background */
  border: 2px solid #4CAF50; /* Green border */
}

.settingImg {
  height: 50px;
  margin-right: 20px;
  flex-shrink: 0;
}

.settingText {
  flex: 1;
  text-align: left;
  margin-right: 15px;
}

.settingText p {
  margin: 0 0 5px 0;
  font-size: 30px;
  text-decoration: underline 3px;
  color: #4CAF50; /* Green title color */
}

.settingText {
  font-size: 18px;
  color: rgba(76, 175, 80, 0.9); /* Green description color */
  line-height: 1.3;
}

.settingControl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 120px;
}

.volumeSlider {
  width: 100px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4CAF50; /* Green slider thumb */
  cursor: pointer;
}

.toggleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.toggleRow span {
  font-family: "pixelFlag";
  font-size: 14px;
}

.controlsDisplay {
  display: flex;
  gap: 4px;
}

.controlKey {
  background: rgba(76, 175, 80, 0.4); /* Brighter green background */
  border: 1px solid #4CAF50;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: "pixelFlag";
  font-size: 14px;
  font-weight: bold;
  color: white;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3); /* Green glow */
}

.settingSelect {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #4CAF50; /* Green border */
  border-radius: 4px;
  padding: 4px 8px;
  font-family: "pixelFlag";
  font-size: 12px;
  color: white;
  outline: none;
  cursor: pointer;
  min-width: 100px;
}

.settingBtn {
  background: linear-gradient(45deg, #4CAF50, #45a049); /* Green gradient */
  border: 2px solid #4CAF50;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "pixelFlag";
  font-size: 12px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3); /* Green glow */
}

.settingBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5); /* Green hover glow */
}

.resetBtn {
  background: linear-gradient(45deg, #666, #888);
  border-color: #666;
  box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3); /* Gray glow */
}

.saveBtn {
  background: linear-gradient(45deg, #4CAF50, #45a049); /* Green save button */
  border-color: #4CAF50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3); /* Green glow */
}

.walletStatus {
  font-family: "pixelFlag";
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  min-width: 100px;
}

.walletStatus.connected {
  color: #4CAF50; /* Green for connected */
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4CAF50;
}

.walletStatus.disconnected {
  color: #ff6b35; /* Orange for disconnected */
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid #ff6b35;
}

/* Rewards-specific styling to match achievements */
.rewardBlock {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  min-height: 80px;
  background-color: rgb(68, 30, 36) !important; /* Different purple-red background */
  border: 2px solid #ff6b35; /* Orange border */
}

.rewardImg {
  height: 50px;
  margin-right: 20px;
  flex-shrink: 0;
}

.rewardText {
  flex: 1;
  text-align: left;
  margin-right: 15px;
}

.rewardText p {
  margin: 0 0 5px 0;
  font-size: 30px;
  text-decoration: underline 3px;
  color: #ffd700; /* Gold title color */
}

.rewardText {
  font-size: 18px;
  color: rgba(255, 215, 0, 0.9); /* Gold description color */
  line-height: 1.3;
}

.rewardControl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 120px;
}

.rewardValue {
  font-family: "pixelFlag";
  font-size: 16px;
  font-weight: bold;
  color: #ff6b35; /* Orange value color */
  text-align: center;
  padding: 4px 8px;
  background: rgba(255, 107, 53, 0.2); /* Orange background */
  border: 1px solid #ff6b35;
  border-radius: 4px;
  min-width: 80px;
}

.rewardStatus {
  font-family: "pixelFlag";
  font-size: 12px;
  color: #4CAF50;
  text-align: center;
  padding: 2px 6px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4CAF50;
  border-radius: 4px;
}

.rewardBtn {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  border: 2px solid #ff6b35;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "pixelFlag";
  font-size: 12px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); /* Orange glow */
}

.rewardBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.claimBtn {
  background: linear-gradient(45deg, #ff6b35, #ff8c42); /* Brighter orange */
  border-color: #ff6b35;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.historyBtn {
  background: linear-gradient(45deg, #ff6b35, #ff8c42); /* Orange theme */
  border-color: #ff6b35;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.settingsBtn {
  background: linear-gradient(45deg, #ff6b35, #ff8c42); /* Orange theme */
  border-color: #ff6b35;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.walletRewardStatus {
  font-family: "pixelFlag";
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  min-width: 100px;
}

.walletRewardStatus.connected {
  color: #ffd700; /* Gold for connected */
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
}

.walletRewardStatus.disconnected {
  color: #ff6b35; /* Orange for disconnected */
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid #ff6b35;
}

.claimInfo,
.historyInfo,
.settingsInfo {
  font-family: "pixelFlag";
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 2px;
}

/* Performance Counter */
/* Removed performance counter CSS - not needed for regular users */

/* Achievement Progress Bars */
.progressBar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.achiveBlock.unlocked .progressFill {
  background: linear-gradient(90deg, #FFD700, #FFA500);
}

.achiveBlock.unlocked {
  background-color: rgba(255, 215, 0, 0.1) !important;
  border-color: #FFD700 !important;
}

.achiveBlock.unlocked .achiveText p {
  color: #FFD700 !important;
}
.menuButton img {
  width: clamp(35px, 4vw, 50px);
  height: clamp(35px, 4vw, 50px);
  margin-bottom: clamp(8px, 1vw, 12px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
  image-rendering: auto;
}

.menuButton:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.menuButton span,
.menuButton {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: var(--text-shadow-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.menuButton:hover span,
.menuButton:hover {
  color: var(--primary-gold-light);
  text-shadow: var(--text-shadow-gold), 0 0 20px var(--primary-gold);
}
/* Enhanced Pause Button with Gaming UI Features */
.pauseButton {
  position: absolute;
  height: clamp(50px, 4vw, 75px);
  width: clamp(50px, 4vw, 75px);
  right: clamp(15px, 2vw, 25px);
  top: clamp(15px, 2vw, 25px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  border-radius: clamp(12px, 1.5vw, 18px);
  padding: clamp(8px, 1vw, 12px);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border: clamp(2px, 0.3vw, 3px) solid var(--primary-gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px var(--shadow-gold);
  z-index: 200;
  animation: pauseButtonEntrance 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.pauseButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: left 0.6s;
  border-radius: inherit;
}

.pauseButton::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

@keyframes pauseButtonEntrance {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pauseButton:hover {
  transform: translateY(-5px) scale(1.15);
  filter: brightness(1.2) drop-shadow(0 10px 20px var(--shadow-gold));
  box-shadow: 0 15px 40px var(--shadow-gold);
  border-color: var(--primary-gold-light);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.pauseButton:hover::before {
  left: 100%;
}

.pauseButton:hover::after {
  width: 120%;
  height: 120%;
}

.pauseButton:active {
  transform: translateY(-2px) scale(1.08);
  transition: all 0.1s ease;
  box-shadow: 0 8px 20px var(--shadow-gold);
}

/* Pause button pulse when game is paused */
.pauseButton.paused {
  animation: pauseButtonPulse 1s ease-in-out infinite alternate;
}

@keyframes pauseButtonPulse {
  0% { 
    transform: scale(1);
    box-shadow: 0 8px 25px var(--shadow-gold);
  }
  100% { 
    transform: scale(1.1);
    box-shadow: 0 12px 35px var(--shadow-gold);
  }
}

/* Pause button warning state */
.pauseButton.warning {
  border-color: #ff4444;
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.5);
  animation: pauseButtonWarning 0.5s ease-in-out infinite alternate;
}

@keyframes pauseButtonWarning {
  0% { 
    border-color: #ff4444;
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.5);
  }
  100% { 
    border-color: #ff6666;
    box-shadow: 0 12px 35px rgba(255, 68, 68, 0.8);
  }
}
.replayButton,
.homeButton,
.playOnPauseButton {
  height: 55px;
  width: 55px;
  margin: 20px;
}
.rightTopBlock {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 20px;
  right: 20px;
}
.smallBtn {
  width: clamp(35px, 3vw, 55px);
  height: clamp(35px, 3vw, 55px);
  cursor: pointer;
  background-image: url("assets/gui/smallBtn.png");
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  padding: clamp(6px, 0.8vw, 12px);
  margin-right: clamp(8px, 1vw, 15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  filter: brightness(1);
}

.smallBtn:hover {
  transform: scale(1.1) translateY(-2px);
  filter: brightness(1.2) drop-shadow(0 6px 12px rgba(255, 255, 255, 0.3));
}

.smallBtn:active {
  transform: scale(1.05) translateY(-1px);
  transition: all 0.1s ease;
}
.soundBtn {
  height: clamp(45px, 3.5vw, 70px);
  width: clamp(45px, 3.5vw, 70px);
  content: url("assets/gui/soundOn.png");
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  border-radius: clamp(10px, 1.2vw, 16px);
  padding: clamp(5px, 0.6vw, 10px);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(0, 0, 0, 0.3));
  border: clamp(2px, 0.3vw, 3px) solid var(--accent-green);
}

.soundBtn:hover {
  transform: translateY(-3px) scale(1.1);
  filter: brightness(1.2) drop-shadow(0 8px 16px var(--shadow-green));
  box-shadow: 0 8px 25px var(--shadow-green);
}

.soundBtn:active {
  transform: translateY(-1px) scale(1.05);
  transition: all 0.1s ease;
}

.soundBtnOff {
  content: url("assets/gui/soundOff.png");
  filter: brightness(0.6) !important;
  border-color: var(--neutral-gray);
  background: linear-gradient(135deg, rgba(102, 102, 102, 0.2), rgba(0, 0, 0, 0.3));
}
.playOnPauseButton {
  width: 50px;
}
/* Enhanced Small Button Base */
.smallBtn {
  filter: drop-shadow(5px 5px 5px #0000004e);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.smallBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.smallBtn:hover::before {
  left: 100%;
}
.button:hover {
  filter: brightness(0.7);
}
/* Enhanced Score Display with Gaming UI Features */
.score {
  position: absolute;
  left: clamp(20px, 3vw, 30px);
  top: clamp(10px, 2vw, 20px);
  color: var(--primary-gold-light);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(40px, 6vw, 70px);
  font-weight: bold;
  text-shadow: var(--text-shadow-gold), 0 0 25px var(--primary-gold);
  background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light), var(--primary-gold-glow));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: scorePulse 8s ease-in-out infinite, scoreGlow 3s ease-in-out infinite alternate;
  z-index: 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.score::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light), var(--primary-gold));
  border-radius: 15px;
  opacity: 0;
  z-index: -1;
  animation: scoreGlow 3s ease-in-out infinite;
}

@keyframes scoreGlow {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.3);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
}

@keyframes scorePulse {
  0% { 
    transform: scale(1);
    filter: brightness(1);
  }
  100% { 
    transform: scale(1.05);
    filter: brightness(1.2);
  }
}

.score {
  animation-duration: 8s; /* Much slower pulsing */
}

/* Score increase animation */
.score.score-increase {
  animation: scoreIncrease 0.6s ease-out;
}

@keyframes scoreIncrease {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(5deg); color: #00ff00; }
  100% { transform: scale(1.05); }
}

/* Score milestone celebration */
.score.score-milestone {
  animation: scoreMilestone 1s ease-out;
}

@keyframes scoreMilestone {
  0% { transform: scale(1); }
  25% { transform: scale(1.5) rotate(10deg); }
  50% { transform: scale(1.2) rotate(-5deg); }
  75% { transform: scale(1.3) rotate(5deg); }
  100% { transform: scale(1.1); }
}
/* Enhanced Coins Display with Gaming UI Features */
.coins {
  position: absolute;
  display: flex;
  justify-content: baseline;
  align-items: center;
  left: clamp(20px, 3vw, 30px);
  top: clamp(60px, 8vw, 90px);
  color: var(--secondary-orange);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(30px, 4.5vw, 55px);
  font-weight: bold;
  text-shadow: 0 0 15px var(--shadow-orange), 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: linear-gradient(45deg, var(--secondary-orange), var(--secondary-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: coinsGlow 3s ease-in-out infinite alternate;
  z-index: 100;
  gap: clamp(8px, 1vw, 12px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.coins::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--secondary-orange), var(--secondary-orange-light), var(--secondary-orange));
  border-radius: 10px;
  opacity: 0;
  z-index: -1;
  animation: coinsGlowBg 4s ease-in-out infinite;
}

@keyframes coinsGlowBg {
  0%, 100% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

@keyframes coinsGlow {
  0% { 
    transform: scale(1);
    filter: brightness(1);
  }
  100% { 
    transform: scale(1.03);
    filter: brightness(1.15);
  }
}

.coins {
  animation-duration: 10s; /* Much slower pulsing */
}

.coins img {
  width: clamp(25px, 3.5vw, 40px);
  height: clamp(25px, 3.5vw, 40px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: coinSpin 4s linear infinite;
  transition: all 0.3s ease;
}

@keyframes coinSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.coins img {
  animation-duration: 12s; /* Much slower spinning */
}

/* Coin collection animation */
.coins.coin-collected {
  animation: coinCollected 0.8s ease-out;
}

@keyframes coinCollected {
  0% { transform: scale(1); }
  30% { transform: scale(1.4) rotate(10deg); }
  60% { transform: scale(1.2) rotate(-5deg); }
  100% { transform: scale(1.1); }
}

.coins.coin-collected img {
  animation: coinCollectedSpin 0.8s ease-out;
}

@keyframes coinCollectedSpin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.5); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* Coin milestone celebration */
.coins.coin-milestone {
  animation: coinMilestone 1.2s ease-out;
}

@keyframes coinMilestone {
  0% { transform: scale(1); }
  25% { transform: scale(1.6) rotate(15deg); }
  50% { transform: scale(1.3) rotate(-10deg); }
  75% { transform: scale(1.4) rotate(5deg); }
  100% { transform: scale(1.2); }
}
.storeCoins {
  position: absolute;
  display: flex;
  align-items: center;
  font-size: 45px;
  top: 20%;
  left: 5%;
}
.storeCoins img {
  width: 40px;
  height: 35px;
}

.gameOverScore {
  position: unset;
  font-size: 50px;
}
.HIandRecord {
  font-size: 50px;
  font-weight: bold;
}

.mainBg {
  font-family: "pixelFlag";
  display: flex;
  flex-direction: row;
  filter: brightness(0.9);
  background-size: cover;
  background-position: top;
  background-image: url("stuff/bg.gif");
}
.mainLeftInfo {
  position: absolute;
  left: clamp(15px, 2vw, 25px);
  top: clamp(20px, 3vw, 30px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.5vw, 15px);
  max-width: clamp(200px, 25vw, 300px);
}

.statsContainer {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
  width: 100%;
}

.statCard {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border: 2px solid var(--primary-gold);
  border-radius: clamp(8px, 1vw, 12px);
  padding: clamp(8px, 1.2vw, 12px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px var(--shadow-gold);
  transition: all 0.3s ease;
  min-height: clamp(40px, 5vw, 60px);
}

.statCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-gold);
  border-color: var(--primary-gold-light);
}

.statCard img {
  width: clamp(20px, 2.5vw, 30px);
  height: clamp(20px, 2.5vw, 30px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.statContent {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.statLabel {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(10px, 1.2vw, 14px);
  color: var(--neutral-gray-light);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statCard .mainStatText {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: bold;
  color: var(--primary-gold);
  text-shadow: 0 0 8px var(--shadow-gold);
  line-height: 1;
}

/* Specific stat card styling */
.highScoreCard {
  border-color: var(--primary-gold);
}

.coinsCard {
  border-color: var(--secondary-orange);
}

.coinsCard .mainStatText {
  color: var(--secondary-orange);
  text-shadow: 0 0 8px var(--shadow-orange);
}

.gamesPlayedCard {
  border-color: var(--accent-green);
}

.gamesPlayedCard .mainStatText {
  color: var(--accent-green);
  text-shadow: 0 0 8px var(--shadow-green);
}

.levelCard {
  border-color: var(--accent-purple);
}

.levelCard .mainStatText {
  color: var(--accent-purple);
  text-shadow: 0 0 8px var(--shadow-purple);
}

.rightTopBlock {
  position: absolute;
  right: 25px;
  top: 30px;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.mainLeftWrapper {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.mainStatText {
  font-weight: 600;
  font-size: 55px;
  margin-right: 15px;
}
#prizeImg {
  width: 50px;
  height: auto;
  margin-right: 15px;
}

#coinImg {
  width: 50px;
  height: auto;
  margin-right: 15px;
}

.credits,
.achives,
.store,
.settingsPanel,
.rewards {
  flex-direction: column;
  font-size: 50px;
  text-shadow: unset;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  justify-content: space-between;
}

.achivesHolder {
  animation: fromTop 0.6s;
}

@keyframes fromTop {
  0% {
    transform: translateY(-50%);
    display: none;
  }
  100% {
    display: block;
  }
}
.creditsHolder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  animation: fromTop 0.6s;
}

.store {
  padding: 0;
}

.achivesHolder,
.settingsHolder,
.rewardsHolder {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.settingsHolder,
.rewardsHolder {
  animation: fromTop 0.6s;
}

.storeHolder {
  height: 100%;
  position: relative;
  animation: fellOnTop 0.6s ease-in;
}
.storeBack {
  content: url("assets/gui/store.png");
  height: 80%;
  position: relative;
}
.store-return-btn {
  position: absolute;
  bottom: 20px;
}
.addBtn {
  position: absolute;
  align-items: center;
  top: 30%;
  right: 10%;
  content: url(assets/gui/addBook.png);
  height: 40%;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
}
.addBtn:hover {
  filter: brightness(0.8);
}

.saveMeAdd {
  align-items: center;
  background-image: url(assets/gui/smallBtn.png);
  height: 40%;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  position: static;
  transition: all 0.3s ease;
}

.saveMeAdd:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}


/* Enhanced Save Me Button */
#saveButton {
  background: linear-gradient(45deg, var(--accent-green), var(--accent-green-light));
  border: 2px solid var(--accent-green);
  border-radius: 15px;
  padding: clamp(10px, 2vw, 18px) clamp(16px, 2.5vw, 28px);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: bold;
  color: var(--neutral-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: clamp(5px, 0.8vw, 10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px var(--shadow-green);
  position: relative;
  overflow: hidden;
  width: clamp(100px, 15vw, 140px);
  height: clamp(35px, 5vw, 60px);
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

#saveButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

#saveButton:hover::before {
  left: 100%;
}

#saveButton:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px var(--shadow-green);
  border-color: var(--accent-green-light);
}

#saveButton:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

#saveButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(45deg, var(--neutral-gray), var(--neutral-gray-dark));
  border-color: var(--neutral-gray);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#saveButton:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Enhanced End Game Button */
#endGameButton {
  background: linear-gradient(45deg, var(--secondary-orange), var(--secondary-orange-light));
  border: 2px solid var(--secondary-orange);
  border-radius: 15px;
  padding: clamp(10px, 2vw, 18px) clamp(16px, 2.5vw, 28px);
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: bold;
  color: var(--neutral-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: clamp(5px, 0.8vw, 10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px var(--shadow-orange);
  position: relative;
  overflow: hidden;
  width: clamp(100px, 15vw, 140px);
  height: clamp(35px, 5vw, 60px);
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

#endGameButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

#endGameButton:hover::before {
  left: 100%;
}

#endGameButton:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px var(--shadow-orange);
  border-color: var(--secondary-orange-light);
}

#endGameButton:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

/* Button Container - Row Layout */
.saveMeButtonsHolder {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: nowrap;
  margin-top: clamp(5px, 1vw, 10px);
  padding: clamp(8px, 1.5vw, 15px);
  width: 100%;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Enhanced End Game Button Text */
#endGamebuttonText {
  font-family: "BotsmaticDemo", monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Save Me Button Text */
#SaveMebuttonText {
  font-family: "BotsmaticDemo", monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Override conflicting classes for Save Me buttons */
#saveButton.smallBtn,
#endGameButton.smallBtn {
  width: clamp(100px, 15vw, 140px) !important;
  height: clamp(35px, 5vw, 60px) !important;
  padding: clamp(10px, 2vw, 18px) clamp(16px, 2.5vw, 28px) !important;
  background-image: none !important;
  background-size: auto !important;
  background-repeat: auto !important;
  image-rendering: auto !important;
  flex-shrink: 0 !important;
}

/* Override payForLife class conflicts */
#saveButton.payForLife,
#endGameButton.payForLife {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
}


/* Life Counter Display */
.lifeCounter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 2px solid var(--primary-gold);
}

.lifeCounterIcon {
  font-size: 20px;
  color: var(--primary-gold);
  filter: drop-shadow(0 0 8px var(--shadow-gold));
}

.lifeCounterText {
  font-family: "BotsmaticDemo", monospace;
  font-size: 14px;
  font-weight: bold;
  color: var(--neutral-white);
}

.lifeCounterValue {
  font-family: "BotsmaticDemo", monospace;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-gold);
  text-shadow: 0 0 10px var(--shadow-gold);
}

/* Save Me Card Title */
.saveMeTitle {
  font-family: "BotsmaticDemo", monospace;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-gold);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--shadow-gold);
  background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

/* Save Me Card Description */
.saveMeDescription {
  font-family: "BotsmaticDemo", monospace;
  font-size: 16px;
  color: var(--neutral-white);
  text-align: center;
  margin-bottom: 25px;
  opacity: 0.9;
  line-height: 1.4;
}

/* Enhanced Button Container */
.saveMeButtonContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

/* Cost Display */
.costDisplay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 107, 53, 0.2);
  border: 2px solid var(--secondary-orange);
  border-radius: 12px;
  font-family: "BotsmaticDemo", monospace;
  font-size: 14px;
  font-weight: bold;
  color: var(--secondary-orange);
  margin-bottom: 10px;
}

.costIcon {
  font-size: 16px;
  filter: drop-shadow(0 0 6px var(--shadow-orange));
}

/* Success Animation */
@keyframes saveMeSuccess {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 25px var(--shadow-green);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 15px 40px var(--shadow-green);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px var(--shadow-green);
  }
}

.saveMeSuccess {
  animation: saveMeSuccess 0.6s ease-out;
}

/* Enhanced Button Holder */
.buttonHolder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  min-height: 80px;
  flex-wrap: wrap;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.buttonHolder:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Home Button */
.homeButton {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  border-radius: 15px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(0, 0, 0, 0.3));
  border: 2px solid var(--accent-green);
}

.homeButton:hover {
  transform: translateY(-4px) scale(1.1);
  filter: brightness(1.2) drop-shadow(0 8px 16px var(--shadow-green));
  box-shadow: 0 8px 25px var(--shadow-green);
}

.homeButton:active {
  transform: translateY(-2px) scale(1.05);
  transition: all 0.1s ease;
}

/* Enhanced Replay Button */
.replayButton {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  border-radius: 15px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(0, 0, 0, 0.3));
  border: 2px solid var(--secondary-orange);
}

.replayButton:hover {
  transform: translateY(-4px) scale(1.1);
  filter: brightness(1.2) drop-shadow(0 8px 16px var(--shadow-orange));
  box-shadow: 0 8px 25px var(--shadow-orange);
}

.replayButton:active {
  transform: translateY(-2px) scale(1.05);
  transition: all 0.1s ease;
}

/* Enhanced Play on Pause Button */
.playOnPauseButton {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  border-radius: 15px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(0, 0, 0, 0.3));
  border: 2px solid var(--primary-gold);
}

.playOnPauseButton:hover {
  transform: translateY(-4px) scale(1.1);
  filter: brightness(1.2) drop-shadow(0 8px 16px var(--shadow-gold));
  box-shadow: 0 8px 25px var(--shadow-gold);
}

.playOnPauseButton:active {
  transform: translateY(-2px) scale(1.05);
  transition: all 0.1s ease;
}

/* Enhanced General Button Class */
.button {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
  border-radius: 15px;
}

.button:hover::before {
  left: 100%;
}

/* Enhanced Score Display */
.gameOverScore {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: bold;
  color: var(--primary-gold);
  text-align: center;
  margin: clamp(5px, 1vw, 10px) 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes scoreGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3); }
}

/* Enhanced HI and Record Display */
.HIandRecord {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
  color: var(--secondary-orange);
  text-align: center;
  margin: clamp(3px, 0.8vw, 8px) 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes recordGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

/* Enhanced Game Over Coins */
.gameOverCoins {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: bold;
  color: var(--primary-gold);
  text-shadow: 0 0 15px var(--shadow-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Enhanced Pay For Life Image */
.payForLifeImg {
  position: relative;
  top: 2px;
  width: 30px;
  height: 25px;
  image-rendering: auto;
  filter: drop-shadow(0 0 8px var(--shadow-gold));
  transition: all 0.3s ease;
}

.payForLifeImg:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px var(--shadow-gold));
}
.gameOverCoinsHolder {
  display: flex;
  align-items: baseline;
  font-size: 50px;
  justify-content: center;
  border-bottom: 3px solid var(--primary-gold);
  padding: clamp(8px, 1.5vw, 15px);
  margin: clamp(8px, 1.5vw, 15px) 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.3));
  border-radius: 15px;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 8px 25px var(--shadow-gold);
  transition: all 0.3s ease;
}

.gameOverCoinsHolder:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--shadow-gold);
}
.payForLife {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(45deg, var(--secondary-orange), var(--secondary-orange-light));
  border: 2px solid var(--secondary-orange);
  border-radius: 15px;
  padding: 12px 25px;
  font-family: "BotsmaticDemo", monospace;
  font-weight: bold;
  color: var(--neutral-white);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px var(--shadow-orange);
  position: relative;
  overflow: hidden;
  min-width: 120px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payForLife::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.payForLife:hover::before {
  left: 100%;
}

.payForLife:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px var(--shadow-orange);
  border-color: var(--secondary-orange-light);
}

.payForLife:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}
.payForLifeImg {
  position: relative;
  top: 2px;
  width: 25px;
  height: 20px;
  image-rendering: auto;
}
.upgrade {
  display: flex;
  align-items: end;
  justify-content: center;
}
.upgradeCoinImg {
  width: 20px;
  height: 18px;
  image-rendering: auto;
  position: relative;
  top: 2px;
}
.upgradeBtnContent {
  position: absolute;
  top: 45%;
  left: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

.upgradeHolder img {
  width: 50px;
  image-rendering: auto;
}
.upgradeHolder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.upgradesWrapper {
  position: absolute;
  top: 35%;
  left: 10%;
}
.shieldUpgradeHolder,
.boosterUpgradeHolder {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 30px;
  image-rendering: pixelated;
  text-align: left;
}
.upgradeHolder {
  background-image: url("assets/gui/btn.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 10px;
}
.upgradeLevel {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #27110938;
}
.activeLevel {
  background-color: #4b0808ad;
}
.upgradeProgress {
  margin-left: 15px;
  display: flex;
}
.upgradeBtn {
  margin: 0;
  margin-left: 10px;
  font-size: 30px;
  position: relative;
  padding: 17px;
}

@keyframes fellOnTop {
  0% {
    transform: translateY(-50%);
    display: none;
  }
  35% {
    transform: translateY(-8%);
  }
  60% {
    transform: translateY(-12%);
  }
  100% {
    display: block;
  }
}
.achiveBlock,
.settingBlock,
.rewardBlock {
  font-family: "pixelFlag";
  align-items: center;
  font-size: 25px;
  display: flex;
  padding: 10px;
  color: rgb(255, 255, 255);
  width: 40%;
  height: fit-content;
  background-color: rgb(36, 30, 68);
  margin-bottom: 20px;
  border-radius: 10px 10px;
  position: relative;
  flex-direction: column;
  gap: 10px;
}

.achiveText,
.settingText,
.rewardText {
  text-align: center;
}
.achiveText p,
.settingText p,
.rewardText p {
  margin: 0;
  font-size: 30px;
  text-decoration: underline 3px;
}
.achiveImg,
.settingImg,
.rewardImg {
  height: 50px;
  margin-right: 20px;
}
.lock {
  opacity: 0.7;
}
.statsHolder {
  display: flex;
  font-size: 30px;
  margin-bottom: 20px;
}
.btn {
  width: auto;
  height: auto;
  padding: 30px;
  height: auto;
  border: 0;
  outline: none;
  cursor: pointer;
  font-family: "pixelFlag";
  background: none;
  background-image: url("assets/gui/btn.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  image-rendering: pixelated;
  font-size: 30px;
  color: rgb(255, 255, 255);
  transition: 0.3s;
}
.btn:hover,
.menuButton:hover {
  filter: brightness(0.8);
  transform: scale(1.03);
}
.return-btn-holder {
  width: 100%;
  height: fit-content;
  position: sticky;
  right: 10px;
  bottom: 0px;
}
.return-btn {
  font-size: 35px;
  animation: fromBottom 0.6s ease-in-out;
}

@keyframes fromBottom {
  0% {
    transform: translateY(50%);
    display: none;
  }
  100% {
    display: block;
  }
}
.stat {
  margin-right: 20px;
}
.credits {
  font-size: 30px;

  font-family: "BotsmaticDemo";
}
.credits a {
  font-family: "pixelFlag";
  font-weight: bold;
  color: rgb(30, 0, 94);
}
.credits a:hover {
  color: rgb(51, 10, 140);
}

.mainMenuSide {
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.credits {
  text-shadow: unset;
}

/* Enhanced Loading Screen with Gaming UI */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  z-index: 10000;
  animation: loaderFadeIn 1s ease-out;
}

@keyframes loaderFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Main loading spinner */
.loader-spinner {
  position: relative;
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  margin-bottom: clamp(20px, 3vw, 40px);
}

.loader-spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border: clamp(4px, 0.8vw, 8px) solid transparent;
  border-radius: 50%;
  animation: loaderSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary-gold) transparent transparent transparent;
}

.loader-spinner div:nth-child(1) {
  animation-delay: -0.45s;
  border-color: var(--primary-gold) transparent transparent transparent;
}

.loader-spinner div:nth-child(2) {
  animation-delay: -0.3s;
  border-color: var(--secondary-orange) transparent transparent transparent;
}

.loader-spinner div:nth-child(3) {
  animation-delay: -0.15s;
  border-color: var(--accent-green) transparent transparent transparent;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-spinner div {
  animation-duration: 10s; /* Very slow rotation */
}

/* Loading text */
.loader-text {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: bold;
  color: var(--primary-gold);
  text-shadow: 0 0 15px var(--shadow-gold), 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: clamp(15px, 2vw, 25px);
  animation: loaderTextPulse 2s ease-in-out infinite alternate;
}

@keyframes loaderTextPulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.loader-text {
  animation-duration: 15s; /* Very slow pulsing */
}

/* Progress bar */
.loader-progress {
  width: clamp(200px, 40vw, 400px);
  height: clamp(8px, 1.2vw, 12px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: clamp(4px, 0.6vw, 6px);
  overflow: hidden;
  position: relative;
  margin-bottom: clamp(10px, 1.5vw, 20px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--primary-gold);
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-orange), var(--accent-green));
  border-radius: inherit;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.loader-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.loader-progress-bar::before {
  animation-duration: 15s; /* Very slow shimmer */
}

/* Progress percentage */
.loader-percentage {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: bold;
  color: var(--neutral-white);
  text-shadow: 0 0 10px var(--shadow-gold), 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: clamp(8px, 1vw, 15px);
}

/* Loading status text */
.loader-status {
  font-family: "BotsmaticDemo", monospace;
  font-size: clamp(12px, 1.8vw, 16px);
  color: var(--neutral-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  opacity: 0.8;
  text-align: center;
  max-width: clamp(250px, 50vw, 400px);
  line-height: 1.4;
}

/* Loading dots animation */
.loader-dots {
  display: inline-block;
  animation: loaderDots 1.5s ease-in-out infinite;
}

@keyframes loaderDots {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

/* Game logo in loader */
.loader-logo {
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  margin-bottom: clamp(15px, 2vw, 25px);
  animation: loaderLogoFloat 20s ease-in-out infinite; /* Very slow floating */
  filter: drop-shadow(0 8px 16px var(--shadow-gold));
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#rotateIcon {
  margin-top: 30px;
}

.hide {
  display: none;
  opacity: 0;
}
@media screen and (orientation: portrait) {
  #turnLandscape {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
  }
  #rotateIcon {
    height: 100px;
  }

  main {
    display: none;
  }
}

@media screen and (orientation: landscape) {
  #turnLandscape {
    display: none;
  }
  main {
    display: flex;
  }
}

/* Small Screen Button Fixes */
/* Mobile-First Responsive Design */
@media (max-width: 920px) {
  .screenRatio {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
  }
  
  /* Hide decorative circles on mobile */
  .mainMenuSide .circles {
    display: none;
  }
  
  /* Compact main title */
  .mainTitle {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.2;
    margin: 10px 0;
    text-align: center;
  }
  
  /* Simplified wallet connect button */
  .connectButton {
    width: clamp(200px, 60vw, 280px);
    height: clamp(40px, 8vw, 50px);
    padding: 8px 15px;
    margin: 10px auto;
    font-size: clamp(12px, 3vw, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .connectButton img {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
  }
  
  .connectButton .connectHint {
    display: none; /* Hide hint text on mobile */
  }
  
  /* Compact menu buttons grid */
  .mainMenuButtons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 3vw, 15px);
    margin: 15px 0;
    padding: 0 10px;
  }
  
  .menuButton {
    width: 100%;
    height: clamp(60px, 12vw, 80px);
    padding: 8px;
    font-size: clamp(12px, 3vw, 14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  
  .menuButton img {
    width: clamp(24px, 6vw, 32px);
    height: clamp(24px, 6vw, 32px);
  }
  
  .menuButton span {
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: bold;
  }
  
  /* Compact stats container */
  .mainLeftInfo {
    margin-top: 15px;
    padding: 0 10px;
  }
  
  .statsContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 2vw, 12px);
    margin: 0;
  }
  
  .statCard {
    padding: clamp(8px, 2vw, 12px);
    border-radius: 12px;
  }
  
  .statCard img {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
  }
  
  .statLabel {
    font-size: clamp(10px, 2.5vw, 12px);
    margin-bottom: 2px;
  }
  
  .mainStatText {
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: bold;
  }
  
  /* Game UI adjustments */
  .buttonHolder {
    min-height: 80px;
    padding: 15px 10px;
    flex-direction: row;
    justify-content: space-around;
  }
  
  .homeButton, .replayButton, .playOnPauseButton {
    min-width: 50px;
    min-height: 50px;
    width: 50px;
    height: 50px;
  }
  
  #saveButton, .payForLife {
    min-width: 120px;
    min-height: 45px;
    padding: 10px 15px;
    font-size: clamp(12px, 3vw, 14px);
  }
  
  .rightTopBlock {
    right: 15px;
    top: 15px;
  }
  
  .subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }
  
  .smallBtn {
    width: 20px;
    height: 20px;
  }
  
  /* Hide rightTopBlock on very small screens for cleaner UI */
  .rightTopBlock {
    display: none;
  }
  
  .soundBtn {
    height: 35px;
    width: 35px;
  }
  
  /* Very small screens (phones in portrait) */
  @media (max-width: 480px) {
    .screenRatio {
      padding: 5px;
    }
    
    .mainTitle {
      font-size: clamp(24px, 7vw, 32px);
      margin: 8px 0;
    }
    
    .connectButton {
      width: clamp(180px, 70vw, 240px);
      height: clamp(35px, 7vw, 45px);
      padding: 6px 12px;
      font-size: clamp(11px, 2.8vw, 13px);
    }
    
    .mainMenuButtons {
      gap: clamp(8px, 2vw, 12px);
      margin: 12px 0;
      padding: 0 5px;
    }
    
    .menuButton {
      height: clamp(50px, 10vw, 70px);
      padding: 6px;
    }
    
    .menuButton img {
      width: clamp(20px, 5vw, 28px);
      height: clamp(20px, 5vw, 28px);
    }
    
    .statsContainer {
      gap: clamp(6px, 1.5vw, 10px);
    }
    
    .statCard {
      padding: clamp(6px, 1.5vw, 10px);
    }
    
    .statCard img {
      width: clamp(18px, 4vw, 22px);
      height: clamp(18px, 4vw, 22px);
    }
    
    .statLabel {
      font-size: clamp(9px, 2vw, 11px);
    }
    
    .mainStatText {
      font-size: clamp(12px, 3vw, 14px);
    }
  }
  
  /* Landscape mode on mobile */
  @media screen and (orientation: landscape) and (max-height: 600px) {
    .mainMenuSide {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: 5px 10px;
    }
    
    .mainTitle {
      font-size: clamp(20px, 4vw, 28px);
      margin: 0;
    }
    
    .connectButton {
      width: clamp(150px, 25vw, 200px);
      height: clamp(30px, 5vw, 40px);
      margin: 0;
      font-size: clamp(10px, 2vw, 12px);
    }
    
    .mainMenuButtons {
      display: flex;
      flex-direction: row;
      gap: clamp(8px, 2vw, 12px);
      margin: 0;
      padding: 0;
    }
    
    .menuButton {
      width: clamp(60px, 12vw, 80px);
      height: clamp(40px, 8vw, 50px);
      padding: 4px;
    }
    
    .menuButton img {
      width: clamp(16px, 3vw, 20px);
      height: clamp(16px, 3vw, 20px);
    }
    
    .menuButton span {
      font-size: clamp(8px, 1.5vw, 10px);
    }
    
    .mainLeftInfo {
      margin-top: 5px;
      padding: 0 5px;
    }
    
    .statsContainer {
      display: flex;
      flex-direction: row;
      gap: clamp(5px, 1vw, 8px);
    }
    
    .statCard {
      flex: 1;
      padding: clamp(4px, 1vw, 6px);
    }
    
    .statCard img {
      width: clamp(14px, 3vw, 18px);
      height: clamp(14px, 3vw, 18px);
    }
    
    .statLabel {
      font-size: clamp(8px, 1.5vw, 10px);
    }
    
    .mainStatText {
      font-size: clamp(10px, 2vw, 12px);
    }
  }
  
  .score {
    font-size: clamp(28px, 6vw, 40px);
    left: clamp(15px, 2vw, 25px);
    top: clamp(8px, 1.5vw, 15px);
  }
  
  .coins {
    font-size: clamp(25px, 3.5vw, 40px);
    top: clamp(45px, 6vw, 70px);
    left: clamp(15px, 2vw, 25px);
  }
  
  .coins img {
    width: clamp(20px, 3vw, 30px);
    height: clamp(20px, 3vw, 30px);
  }
  
  /* Mobile optimizations for panels */
  .achives, .settingsPanel, .rewards {
    padding: 10px;
    margin: 5px;
  }
  
  .achivesHolder, .settingsHolder, .rewardsHolder {
    gap: clamp(8px, 2vw, 12px);
    padding: 5px;
  }
  
  .achiveBlock, .settingBlock, .rewardBlock {
    padding: clamp(8px, 2vw, 12px);
    margin: clamp(4px, 1vw, 6px);
    border-radius: 12px;
  }
  
  .achiveImg, .settingImg, .rewardImg {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
  }
  
  .achiveText, .settingText, .rewardText {
    font-size: clamp(11px, 2.5vw, 13px);
    padding: 0 clamp(4px, 1vw, 6px);
  }
  
  .achiveText p, .settingText p, .rewardText p {
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 2px;
  }
  
  /* Mobile wallet status */
  .wallet-status {
    top: 8px;
    right: 8px;
    padding: 4px 6px;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
  }
  
  /* Mobile game stats */
  .gameStats {
    top: 50px;
    left: 10px;
    padding: 6px 8px;
    gap: 4px;
  }
  
  .statLabel {
    font-size: clamp(9px, 2vw, 11px);
    min-width: 35px;
  }
  
  .statValue {
    font-size: clamp(10px, 2.2vw, 13px);
  }
  
  .wallet-address {
    top: 35px;
    right: 10px;
    padding: 3px 6px;
  }
  
  .wallet-address-text {
    font-size: clamp(8px, 1.5vw, 10px);
  }
  .pauseButton {
    height: clamp(40px, 3vw, 55px);
    width: clamp(40px, 3vw, 55px);
    right: clamp(10px, 1.5vw, 20px);
    top: clamp(10px, 1.5vw, 20px);
  }
  .mobileControlButt {
    height: clamp(50px, 6vw, 65px);
    width: clamp(50px, 6vw, 65px);
  }
  .floating-text {
    font-size: clamp(16px, 2.5vw, 28px);
  }
  .combo-display {
    font-size: clamp(14px, 2vw, 20px);
    top: clamp(100px, 12vw, 150px);
    left: clamp(15px, 2vw, 25px);
  }
  .powerup-indicator {
    font-size: clamp(12px, 1.8vw, 16px);
    top: clamp(125px, 15vw, 180px);
    left: clamp(15px, 2vw, 25px);
  }
  .btn {
    padding: 18px;
  }
  .return-btn {
    font-size: 25px;
  }
  .connectButton {
    bottom: 65px;
  }
  .menuButton img {
    width: clamp(25px, 3vw, 35px);
    height: clamp(25px, 3vw, 35px);
    margin-bottom: clamp(5px, 0.8vw, 8px);
  }
  
  .menuButton {
    width: clamp(100px, 15vw, 140px);
    height: clamp(70px, 10vw, 100px);
    padding: clamp(10px, 1.5vw, 15px);
  }
  
  .mainMenuButtons {
    font-size: clamp(12px, 2vw, 16px);
    gap: clamp(15px, 3vw, 25px);
    margin-top: clamp(40px, 6vw, 70px);
  }
  .insideScreenRatio {
    overflow: scroll;
    width: 85%;
    height: 85%;
  }
  #coinImg {
    width: 40px;
  }
  #coinImg {
    width: 40px;
  }
  .mainStatText {
    font-size: 40px;
  }
  .pause,
  .gameOver {
    font-size: 35px;
  }
  .HIandRecord {
    font-size: 40px;
    line-height: 0;
  }
  .saveBtn {
    height: 40px;
    width: 40px;
  }
  .gameOverCoins {
    font-size: 35px;
  }
  .pauseButton {
    height: 30px;
    width: 30px;
  }
  .rightTopBlock {
    width: 30px;
    height: 30px;
  }
  .buttonHolder {
    height: 50px;
  }
  .achiveImg {
    height: 43px;
    margin-right: 10px;
  }
  .achiveText p {
    font-size: 25px;
  }
  .statsHolder {
    font-size: 25px;
  }
  .achiveText {
    font-size: 19px;
  }
  .achivesHolder {
    justify-content: space-evenly;
  }
  .achiveBlock {
    justify-content: center;
    width: 43%;
  }
  .achives {
    padding: 10px;
  }
  .credits {
    font-size: 30px;
  }
  .credits a {
    font-size: 25px;
  }
  .leftButtonsBlock {
    display: block;
    position: absolute;
    left: 40px;
    bottom: 20px;
  }
  .rightButtonsBlock {
    display: block;
    position: absolute;
    right: 40px;
    bottom: 20px;
  }
  .controlBlock {
    display: none;
  }
  .upgradesWrapper {
    top: 30%;
    left: 7%;
  }
  .upgradeHolder {
    padding: 12px;
  }
  .upgradeHolder img {
    width: 34px;
  }
  .shieldUpgradeHolder,
  .boosterUpgradeHolder {
    font-size: 24px;
  }
  .upgradeLevel {
    height: 15px;
    width: 15px;
    margin-right: 8px;
  }
  .storeCoins {
    font-size: 35px;
  }
  .mainLeftInfo {
    flex-direction: column;
    align-items: flex-end;
  }
  .mainStatText {
    margin: 0;
  }
  .storeCoins img {
    width: 30px;
    height: 25px;
  }
  .replayButton,
  .homeButton,
  .playOnPauseButton {
    height: 40px;
    width: 40px;
    margin: 10px;
  }
  .storeBack {
    height: 85%;
  }
  .store-return-btn {
    position: absolute;
    bottom: 0px;
  }
  .hide {
    display: none;
  }
}
