/* === BACKGROUND IMAGE === */
body.minimal-bg {
  position: relative;
  background: url("../images/bg.webp") no-repeat center center fixed;
  background-size: cover;
  background-color: #0c0c0c;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
  color: #e0e0e0;
  font-family: 'Kanit', sans-serif;
  z-index: 0;
}

body.minimal-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* ⬅️ ลดความมืด */
  z-index: -1;
}


/* Wrapper */
.wrapper {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 18px;
  box-sizing: border-box;
  text-align: center;
}

/* Title */
.title {
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  color: #f8f8f8;
  text-shadow:
    0 0 8px #00ffc3,
    0 0 12px #00ffc3,
    0 0 20px #00ffc3,
    -1px -1px 1px #000,
    1px 1px 1px #000; /* 🖤 outline ดำ */
  margin-bottom: 28px;
}

/* Neon Button */
.button-big {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  width: 100%;
  margin: 12px auto;
  padding: 14px 20px;

  background: #0f0f0f;
  color: #00ffc3;
  font-size: 17px;
  font-weight: 500;

  border: 1px solid #00ffc3;
  border-radius: 14px;
  text-decoration: none;

  box-shadow:
    0 0 5px #00ffc3,
    0 0 10px #00ffc3,
    0 0 15px #00ffc3;

  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 52px;

  animation: glowPulse 2.5s infinite ease-in-out;
}

.button-big:hover {
  background: #00ffc320;
  box-shadow:
    0 0 6px #00ffc3,
    0 0 14px #00ffc3,
    0 0 20px #00ffc3;
}

/* Icon */
.button-big .icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
  text-shadow: 0 0 6px #00ffc3;
}

/* Text */
.button-big .text {
  flex-grow: 1;
  text-align: left;
  line-height: 1.4;
  text-shadow: 0 0 4px #00ffc3;
}

/* Online Status */
.status-row {
  margin-top: 28px;
  margin-bottom: 10px;
}

.online-status {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #00ff85;
  font-weight: 500;
  text-shadow: 0 0 6px #00ff85;
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #00ff85;
  border-radius: 50%;
  box-shadow:
    0 0 6px #00ff85,
    0 0 12px #00ff85;
}

/* Click Counter Box */
.counter-box {
  margin-top: 10px;
  background: #111;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: #00ffc3;
  text-align: center;
  font-weight: 500;
  border: 1px solid #00ffc355;
  box-shadow:
    0 0 5px #00ffc3,
    0 0 12px #00ffc3;
}

/* Responsive */
@media (max-width: 600px) {
  .wrapper {
    padding: 20px 14px;
  }

  .button-big {
    font-size: 16px;
    padding: 14px 16px;
  }

  .title {
    font-size: clamp(24px, 6vw, 30px);
  }
}

@media (max-width: 768px) {
  body.minimal-bg {
    background-position: center top;
  }
}

/* 🔥 NEON Glow Animation */
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 6px #00ffc3,
      0 0 12px #00ffc3;
  }
  50% {
    box-shadow:
      0 0 12px #00ffc3,
      0 0 24px #00ffc3;
  }
}
