@import url('https://fonts.googleapis.com/css?family=Carter+One');

/* Base layout framework optimized for mobile touch targets and older engines */
.game-button {
  position: relative;
  top: 0;
  cursor: pointer;
  text-decoration: none !important;
  outline: none !important;
  font-family: 'Carter One', sans-serif;
  font-size: 20px; 
  line-height: 1.5em;
  letter-spacing: .12em;
  border: none;
  margin: 15px;
  border-radius: 14px;
  padding: 14px 20px 16px;
  color: #fff !important;
  
  /* Legacy & Modern Flex centering rules */
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
  -ms-flex-align: center;
      align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
  -ms-flex-pack: center;
      justify-content: center;
      
  /* Standard modern user protection rules */
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  overflow: hidden; 
  
  /* Multi-device responsive width architecture */
  width: 340px; 
  max-width: 100%; /* Prevents small mobile screens from cutting off sides */
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
          
  /* High-performance animation processing acceleration transitions */
  -webkit-transition: -webkit-transform 0.05s ease, box-shadow 0.05s ease;
  -moz-transition: -moz-transform 0.05s ease, box-shadow 0.05s ease;
  transition: transform 0.05s ease, box-shadow 0.05s ease;
  
  /* Forces GPU hardware acceleration for smooth 60fps renders on mobile */
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}

/* --- Dark Theme Compatible Layout (With Color Fallbacks) --- */
.game-button.wide-dark-theme-btn {
  background-color: #bd42ff; /* Solid Fallback color for legacy engines */
  background: -webkit-linear-gradient(315deg, #a100ff 0%, #bd42ff 50%, #8a00e6 100%);
  background: -moz-linear-gradient(315deg, #a100ff 0%, #bd42ff 50%, #8a00e6 100%);
  background: linear-gradient(135deg, #a100ff 0%, #bd42ff 50%, #8a00e6 100%);
  
  border-bottom: 4px solid rgba(80, 0, 150, 0.7); 
  border-top: 3px solid rgba(255, 255, 255, 0.4); 
  
  /* Intense dark typography shadows */
  text-shadow: 
    2px 2px 0px #3c0066, -2px 2px 0px #3c0066, 
    2px -2px 0px #3c0066, -2px -2px 0px #3c0066,
    0px 5px 0px #200038, 3px 6px 0px rgba(0,0,0,0.6);
    
  /* Deep 3D base layering with legacy engine shadows */
  box-shadow: 
    0 8px 0 #5c0099, 
    0 10px 1px 1px rgba(0,0,0,.6), 
    0 12px 0 5px #260040, 
    0 14px 0 5px #3d0066, 
    0 18px 0 5px #130021, 
    0 18px 1px 6px rgba(0,0,0,.7),
    0 0 25px rgba(161, 0, 255, 0.5);
}

/* --- Cross-Browser Interactive States --- */
.game-button.wide-dark-theme-btn:hover {
  top: 2px;
  box-shadow: 0 6px 0 #5c0099, 0 8px 1px 1px rgba(0,0,0,.6), 0 10px 0 5px #260040, 0 12px 0 5px #3d0066, 0 15px 0 5px #130021, 0 15px 1px 6px rgba(0,0,0,.7), 0 0 35px rgba(161, 0, 255, 0.8);
  -webkit-filter: brightness(1.1);
          filter: brightness(1.1);
}

.game-button.wide-dark-theme-btn:active {
  top: 6px;
  -webkit-transform: scale(0.98);
     -moz-transform: scale(0.98);
      -ms-transform: scale(0.98);
          transform: scale(0.98);
  box-shadow: 0 2px 0 #5c0099, 0 4px 1px 1px rgba(0,0,0,.6), 0 6px 0 5px #260040, 0 8px 0 5px #3d0066, 0 11px 0 5px #130021, 0 11px 1px 6px rgba(0,0,0,.7);
}

/* Front Text Depth Protection Layer */
.btn-text {
  position: relative;
  z-index: 10; 
}

/* --- SAFE COIN TRACKING ENVIRONMENT --- */
.bg-coin {
  position: absolute;
  pointer-events: none;
  width: 22px;
  height: 22px;
  background-color: #ffd700; /* Fallback coin color */
  background: -webkit-linear-gradient(315deg, #ffe066 0%, #ffd700 50%, #b8860b 100%);
  background: -moz-linear-gradient(315deg, #ffe066 0%, #ffd700 50%, #b8860b 100%);
  background: linear-gradient(135deg, #ffe066 0%, #ffd700 50%, #b8860b 100%);
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: inset -2px -2px 0px #cc9900, 0 2px 5px rgba(0,0,0,0.5);
  color: #664400;
  font-size: 12px;
  font-family: 'Carter One', sans-serif;
  
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
  -ms-flex-align: center;
      align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
  -ms-flex-pack: center;
      justify-content: center;
      
  z-index: 2;
  opacity: 0;
  
  -webkit-animation: coinDrift 3.5s linear infinite;
     -moz-animation: coinDrift 3.5s linear infinite;
          animation: coinDrift 3.5s linear infinite;
}

/* Stable placement grids across the wide panel frame */
.coin-1 { left: 10%; bottom: -35px; -webkit-animation-delay: 0s; -moz-animation-delay: 0s; animation-delay: 0s; }
.coin-2 { left: 30%; bottom: -35px; -webkit-animation-delay: 0.7s; -moz-animation-delay: 0.7s; animation-delay: 0.7s; }
.coin-3 { left: 50%; bottom: -35px; -webkit-animation-delay: 1.4s; -moz-animation-delay: 1.4s; animation-delay: 1.4s; }
.coin-4 { left: 70%; bottom: -35px; -webkit-animation-delay: 2.1s; -moz-animation-delay: 2.1s; animation-delay: 2.1s; }
.coin-5 { left: 90%; bottom: -35px; -webkit-animation-delay: 2.8s; -moz-animation-delay: 2.8s; animation-delay: 2.8s; }

/* Prefixed 3D tumbling movement matrix keyframes */
@-webkit-keyframes coinDrift {
  0% { opacity: 0; -webkit-transform: translateY(0) translateX(-15px) rotateY(0deg) scale(0.6); transform: translateY(0) translateX(-15px) rotateY(0deg) scale(0.6); }
  15% { opacity: 0.9; }
  50% { -webkit-transform: translateY(-40px) translateX(10px) rotateY(360deg) scale(1.15); transform: translateY(-40px) translateX(10px) rotateY(360deg) scale(1.15); }
  85% { opacity: 0.9; }
  100% { opacity: 0; -webkit-transform: translateY(-80px) translateX(35px) rotateY(720deg) scale(0.6); transform: translateY(-80px) translateX(35px) rotateY(720deg) scale(0.6); }
}
@-moz-keyframes coinDrift {
  0% { opacity: 0; -moz-transform: translateY(0) translateX(-15px) rotateY(0deg) scale(0.6); transform: translateY(0) translateX(-15px) rotateY(0deg) scale(0.6); }
  15% { opacity: 0.9; }
  50% { -moz-transform: translateY(-40px) translateX(10px) rotateY(360deg) scale(1.15); transform: translateY(-40px) translateX(10px) rotateY(360deg) scale(1.15); }
  85% { opacity: 0.9; }
  100% { opacity: 0; -moz-transform: translateY(-80px) translateX(35px) rotateY(720deg) scale(0.6); transform: translateY(-80px) translateX(35px) rotateY(720deg) scale(0.6); }
}
@keyframes coinDrift {
  0% { opacity: 0; -webkit-transform: translateY(0) translateX(-15px) rotateY(0deg) scale(0.6); -moz-transform: translateY(0) translateX(-15px) rotateY(0deg) scale(0.6); transform: translateY(0) translateX(-15px) rotateY(0deg) scale(0.6); }
  15% { opacity: 0.9; }
  50% { -webkit-transform: translateY(-40px) translateX(10px) rotateY(360deg) scale(1.15); -moz-transform: translateY(-40px) translateX(10px) rotateY(360deg) scale(1.15); transform: translateY(-40px) translateX(10px) rotateY(360deg) scale(1.15); }
  85% { opacity: 0.9; }
  100% { opacity: 0; -webkit-transform: translateY(-80px) translateX(35px) rotateY(720deg) scale(0.6); -moz-transform: translateY(-80px) translateX(35px) rotateY(720deg) scale(0.6); transform: translateY(-80px) translateX(35px) rotateY(720deg) scale(0.6); }
}

/* --- SWEEPING LASER GLARE LINE --- */
.btn-glare {
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: -webkit-linear-gradient(left, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
  background: -moz-linear-gradient(left, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.1) 80%, transparent 100__);
  
  -webkit-transform: skewX(-25deg);
     -moz-transform: skewX(-25deg);
      -ms-transform: skewX(-25deg);
          transform: skewX(-25deg);
  z-index: 5;
  
  -webkit-animation: laserSweep 4.5s ease-in-out infinite;
     -moz-animation: laserSweep 4.5s ease-in-out infinite;
          animation: laserSweep 4.5s ease-in-out infinite;
}

@-webkit-keyframes laserSweep { 0% { left: -150%; } 25% { left: 150%; } 100% { left: 150%; } }
@-moz-keyframes laserSweep { 0% { left: -150%; } 25% { left: 150%; } 100% { left: 150%; } }
@keyframes laserSweep { 0% { left: -150%; } 25% { left: 150%; } 100% { left: 150%; } }