@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   Legacy CSS - For DontTap V2
   ============================================ */

/* Base Styles (Legacy) */
html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-image: radial-gradient(ellipse at center, #161b22 0%, #0d1117 70%);
  color: white;
  /* Basic text color for legacy */
}

/* ============================================
   Legacy UI Elements
   ============================================ */
#slider {
  /* Legacy slider - kept but hidden by default in recent versions,
     but might be needed if legacy mode enables it */
  display: none !important;
}

#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #64B5F6;
  cursor: pointer !important;
}

#slider::-moz-range-thumb {
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #64B5F6;
  cursor: pointer !important;
}

#PressKey {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #8b949e !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#zom {
  display: none !important;
}

#best {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

#switch {
  margin-top: 5px;
}

#basis {
  box-shadow:
    0 0 40px rgba(100, 181, 246, 0.08),
    inset 0 0 0 1px rgba(100, 181, 246, 0.15);
  border-radius: 4px;
}

#cpm-display {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Pattern Mode Fade */
.fade-out {
  opacity: 0 !important;
  transition: opacity 0.1s ease-out;
}

/* Click Feedback */
.feedback-square {
  position: absolute;
  /* width & height set by JS to match squareSize */
  background: rgba(100, 181, 246, 0.25);
  border: 2px solid #64B5F6;
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
  animation: squareFade 0.3s ease-out forwards;
}

@keyframes squareFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}