



body {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-top: constant(safe-area-inset-top);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: #00ff00;
}

body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}
#ios-top-fix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: constant(safe-area-inset-top);
  height: env(safe-area-inset-top, 0);
  background: #00ff00;
  z-index: 999999;
  pointer-events: none;
}

body.in-app-browser {
  padding-top: max(env(safe-area-inset-top, 0px), 20px);
}
body.in-app-browser #ios-top-fix {
  height: max(env(safe-area-inset-top, 0px), 20px);
}
.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999;
}

img {
  user-drag: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -moz-drag-over: none;
  -moz-window-dragging: no-drag;
  -moz-user-drag: none;
  -moz-user-select: -moz-none;
  draggable: false;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.spin-trigger {
  pointer-events: auto;
  position: relative;
  user-select: none;
}

.pipes-to-player {
  overflow: hidden;
  display: flex;
  gap: 320px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.pipe-player {
  position: relative;
  width: 50px;
  height: 50px;
  background: transparent;
}
.pipe-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--silver-bg-pipe);
  border-radius: inherit;
  filter: blur(1px);
  z-index: -1;
}
.pipes-mobile {
  display: none;
  gap: 220px;
  justify-content: center;
  align-items: center;
}
.pipes-wide {
  overflow: hidden;
  display: flex;
  gap: 550px;
  justify-content: center;
  align-items: center;
}
.pipes {
  overflow: hidden;
  display: flex;
  gap: 320px;
  justify-content: center;
  align-items: center;
}
.pipe {
  width: 50px;
  height: 50px;
  background: var(--silver-bg-pipe);
  box-shadow:
    inset 0 0 2px rgba(255,255,255,0.8),
    inset 0 0 10px rgba(255,255,255,0.25),
    0 0 6px rgba(0,0,0,0.5);
  filter: blur(1px);
}

.screen-border {
  box-sizing: border-box;
  position: relative;
  flex-grow: 1;
  padding: 10px;             
  border-radius: var(--screen-border-radius);
  background: var(--screen-border-bg);
  box-shadow:
    0 0 0 1px #000000,
    0 0 8px rgba(0, 0, 0, 0.8),
    inset 0 2px 3px rgba(255, 255, 255, 0.6),
    inset 0 4px 10px rgba(255, 255, 255, 0.2),
    inset 0 -2px 3px rgba(0, 0, 0, 0.4),
    inset 0 -5px 8px rgba(0, 0, 0, 0.2),
    inset 4px 0 8px rgba(0, 0, 0, 0.25),
    inset -4px 0 8px rgba(0, 0, 0, 0.25);
}

.screen-dirt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 0 10px #999999,
    inset 0 0 9rem rgba(0, 0, 0, 0.8),
    inset 0 0 1.5rem rgba(0, 0, 0, 0.8);
  border-radius: var(--screen-border-radius);
}
.screen-dirt-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: calc(var(--screen-border-radius) - 15px);
  background:
    radial-gradient(circle at center,
      rgba(255,255,255,0.6) 0%,
      rgba(255,255,255,0.4) 50%,
      rgba(200,200,200,0.2) 80%,
      rgba(150,150,150,0.1) 93%,
      rgba(255,255,255,0) 100%);
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 768px) {
  .pipes-to-player {
    gap: 200px;
  }
  .screen-border {
    padding: 10px;             
  }
  .pipes-wide {
    gap: 220px;
  }
  .pipes {
    gap: 220px;
  }
  .pipes-mobile {
    display: flex;
  }
  .pipe-footer {
    width: 30px;
    height: 40px
  }
  .pipe-player {
    width: 30px;
    height: 40px
  }
  .pipe {
    width: 30px;
    height: 40px;
  }
}

/* Gun countdown styles */
#gun-countdown {
  animation: gunCountdownPulse 1s infinite alternate;
}
@keyframes gunCountdownPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}
@keyframes gunCountdown {
  0% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.2);
    color: #ff0000;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.0);
    color: #ff4444;
  }
  100% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.2);
    color: #ff0000;
  }
}
@keyframes crackAppear {
  0% { 
    opacity: 0; 
    transform: rotate(var(--rotation, 0deg)) scale(0.5);
  }
  20% { 
    opacity: 0.8; 
    transform: rotate(var(--rotation, 0deg)) scale(1.1);
  }
  100% { 
    opacity: 0; 
    transform: rotate(var(--rotation, 0deg)) scale(1.0);
  }
}
@keyframes crackAppearPermanent {
  0% { 
    opacity: 0; 
    transform: scale(0.5);
  }
  50% { 
    opacity: 0.9; 
    transform: scale(1.1);
  }
  100% { 
    opacity: 0.8; 
    transform: scale(1.0);
  }
}