.tap-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 10px;
  font-size: 36px;
  overflow-x: hidden;
}

#tap-game {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#tap-area {
  margin-bottom: 32px;
  position: relative;
  width: 400px;
  height: 400px;
}

#tap-btn-container {
  position: relative;
  width: 400px;
  height: 400px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease;
}

#tap-btn-container.pressed {
  transform: scale(0.93);
}

.tap-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  user-select: none;
  z-index: 5;
}

.tap-layer.visible {
  opacity: 1;
  pointer-events: auto;
}

.tap-pulse {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.62s cubic-bezier(.4,0,.2,1), opacity 0.68s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 18px #63f7ffcc);
  transform: scale(1);
  opacity: 0.8;
  z-index: 99;
}

.tap-title {
  font-size: 44px;
  font-family: "Roboto Slab", serif;
  color: #00fff6;
  margin-bottom: 58px;
  letter-spacing: 2px;
  text-shadow: 0 0 14px #6f00ff, 0 0 32px #00fff6;
  text-align: center;
  font-weight: 700;
  line-height: 1.1;
}

.tap-title span {
  font-size: 24px;
  color: #fff;
  display: block;
  margin-top: 8px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px #00234c, 0 0 20px #00fff6;
  font-weight: 400;
}

#tap-progress {
  font-size: 36px;
  margin-top: 20px;
  color: #00fff6;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00234c;
}

.tap-modal {
  position: absolute;
  align-items: center;
  justify-content: center;
  z-index: 99999;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tap-modal.visible {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.tap-modal-content {
  background: #17003a;
  border-radius: 22px;
  padding: 42px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
}

.tap-modal-content::placeholder {
  color: #fff;
  font-family: "Roboto Slab", serif;
}

#tap-win-message {
  font-size: 4rem;
  font-weight: 800;
  color: #fff04d;
  margin-bottom: 0px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #fff04d, 0 0 40px #6f00ff;
}

#tap-wallet {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #ceaeff;
  font-size: 20px;
  font-family: "Roboto Slab", serif;
  background: #3a2560;
  color: #fff;
  margin-bottom: 20px;
  outline: none;
  margin-top: 10px;
}

#tap-send {
  font-size: 22px;
  padding: 10px 24px;
  background: linear-gradient(90deg, #7f00ff 0%, #e100ff 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: "Roboto Slab", serif;
}

#tap-send:disabled {
  opacity: 0.5;
  cursor: default;
}

#tap-status {
  color: #30ff00;
  font-size: 18px;
  min-height: 24px;
}

@media (max-width: 600px) {
  #tap-area {
    width: 320px;
    height: 320px;
  }
  #tap-btn-container {
    width: 320px;
    height: 320px;
  }
  .tap-modal-content {
    min-width: 90vw;
    padding: 30px 10px 24px 10px;
  }
  #tap-wallet {
    width: 80vw;
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .tap-section {
    min-height: auto;
    padding: 30px 10px;
    font-size: 20px;
  }

  .tap-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .tap-title span {
    font-size: 16px;
  }

  #tap-progress {
    font-size: 24px;
  }

  #tap-send {
    font-size: 18px;
    padding: 8px 16px;
  }
}
