* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: #F5F5F5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  color: #ffffff;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 20px;
}

.container {
  background: #d8eee8;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  margin: auto;
  min-height: auto;
  /* Remove fixed min-height */
  overflow: hidden;
}


.user-info {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  /* ⬅️ Stack username and balance vertically */
  /* ⬅️ Center align them */
  gap: 24px;
  text-align: left;
  /* ⬅️ Spacing between name and balance */
  width: 100%;
  padding: 10px 16px 16px;
  font-size: 16px;
  font-weight: 500;
  background: #0f6655;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}


#username {
  font-weight: bold;
  color: #ffffff;
}



#balance {
  position: fixed;
  top: 117px;
  /* adjust as needed for 2–3 lines below .user-info */
  left: 50%;
  transform: translateX(-50%);
  font-size: 19px;
  font-weight: bold;
  color: #000000;
  text-align: center;
  width: 100%;
  z-index: 998;
}



h1 {
  margin: 20px 0;
  font-size: 20px;
  color: #000000;
}

#tap-area {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}



.logo-circle {
  width: 130px;
  height: 130px;
  background-color: #0c6154;
  outline: 52px solid #0c6154;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 9em auto 40px auto;
  transform: translateY(-40px);
}

.logo-circle img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}



#doge-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


#limit-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 2;
}

#plus-one {
  position: absolute;
  top: 30%;
  white-space: nowrap;
  left: 50%;
  transform: translate(-50%, 0);
  font-weight: bold;
  color: #ffffff;
  /* Green for +1 */
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: 10;
  transition: opacity 0.3s ease;
  font-size: 20px;
}


#limit-over {
  font-size: 1.5rem;
}

#plus-one {
  font-size: 2rem;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -30px);
  }
}

@keyframes limitFloatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -40px);
  }
}
.tap-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: #0f6655;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 0 auto 22px auto;   /* ⬅️ 22px ≈ 1.5 lines gap before progress bar */
  max-width: fit-content;
}

#progress-wrapper {
  position: relative;
  transform: none;
  margin: 0 auto;   /* no extra gap below progress bar */
  z-index: 999;
  width: 100%;
  max-width: 340px;
  padding: 0 15px;
  box-sizing: border-box;
}


.tap-progress {
  width: 100%;
  height: 8px;
  background-color: #8dd268;
  border-radius: 6px;
  outline: 7px solid #000000;
  margin: 0 auto 22px auto;   /* ⬅️ 22px ≈ 1.5 lines gap before progress bar */
  overflow: hidden;
}

.final-container {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}


.tap-count-box,
.timer-box {
  background-color: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  /* prevent breaking text */
}


.pill {
  background-color: #ffffff;
  color: #000;
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.separator {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-box {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background-color: #f0f0f0;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


#countdown span {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}





.conditional-progress {
  display: none;
}

.tap-progress-bar {
  height: 100%;
  width: 0%;
  /* It grows based on progress in JS */
  background-color: #facc15;
  transition: width 0.3s ease;
}

.outer-tap-wrapper {
  padding: 0.5px 0.5px 0.5px 0.5px;
  background-color: #0d594a;
  /* or any subtle background */
  border-radius: 12px;
  display: inline-block;
  /* wrap tightly around content */
  border-radius: 25px;
  margin: 0 auto 24px auto;
  /* 👈 Centered and spaced from bottom */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

}

.tabs {
  position: relative;
  /* Removed fixed */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 340px;
  width: 100%;
  margin: 0px auto 0 auto;
  background-color: #0D0D2D;
  border-radius: 12px;
  padding: 10px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



.tab-button {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: #fcfefff6;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.tab-button.active {
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
}

.tab-button:hover {
  background-color: #2ecbe0d1;
  color: #000;
}

.tab-content {
  display: none;
  padding: 15px 5px;
  margin-bottom: 20px;
  width: 100%;
  color: black;
  max-height: calc(100dvh - 280px);
  overflow-x: hidden;
}

.tab-content.active {
  display: block;
}

/* Refer Section */
.refer-texts {
  margin-bottom: 20px;
  color: #f7b733;
  text-align: center;
  line-height: 1.3;
  user-select: none;
}

.invite-title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 6px;
  color: #000000;
}

.invite-subtitle {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 14px;
  color: #000000;
}

.how-it-works {
  font-size: 14px;
  font-weight: 400;
  color: #1b63c7;
  max-width: 280px;
  margin: 0 auto 20px auto;
  line-height: 1.4;
}

/* Invite Link */
.invite-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}

.invite-label {
  font-weight: 600;
  font-size: 16px;
  color: #000000;
}

#invite-link {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: #0f6655;
  text-align: center;
  color: #000000;
  user-select: all;
}

.invite-btn {
  background-color: #000000;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 204, 0, 0.5);
  width: 140px;
  transition: background-color 0.3s ease;
}

.invite-btn:hover {
  background-color: #e6b800;
}

.copy-message {
  margin-top: 8px;
  font-size: 14px;
  color: #000000;
  height: 18px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-message.visible {
  opacity: 1;
}

/* Tasks */
.task-boxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.task-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1b263b;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.task-info {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.task-title {
  font-weight: 600;
  font-size: 16px;
}

.task-reward {
  color: #ff3333;
  font-size: 14px;
  font-weight: bold;
}

.task-go-btn {
  background: linear-gradient(135deg, #00ff90, #ff3c3c);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.task-go-btn:hover {
  opacity: 0.9;
}

/* Withdraw */
.withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.withdraw-form label {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  text-align: left;
}

.withdraw-form input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #1b263b;
  color: #fff;
  font-size: 14px;
}

#withdraw-btn {
  background-color: #0c6154;
  color: #000;
  padding: 10px 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 204, 0, 0.5);
}

.task-texts p {
  margin-top: -18px;
  /* Smaller shift, just for the paragraph */
}

#withdraw-message {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #38b000;
}
