html {
  height: 100%;
  background: linear-gradient(180deg, #081636 0%, #184295 100%);
}
body {
  margin: 0;
  padding-top: 150px;
  font-family: sans-serif, Arial;
  text-align: center;
  color: #eee;
}
#topBar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 1.2rem;
}
#coinIcon {
  flex-shrink: 0;
}
#coinLabel,
#coinBalance {
  font-size: 2rem;
  color: #ffb400;
  font-family: sans-serif, Arial;
}
#coinLabel {
  font-weight: 500;
}
#coinBalance {
  font-weight: 300;
}
#xpWrapper {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
}
#levelDisplay {
  font-family: sans-serif, Arial;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.level-label {
  color: #00ff26;
}
.xp-container {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffd700 0%, #ffc300 60%, #ffa500 100%);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.25);
  gap: 8px;
}
.xp-star {
  color: #4acfff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
#xpBarOuter {
  flex: 1;
  height: 10px;
  background: #2f2f2a4d;
  border-radius: 5px;
  overflow: hidden;
}
#xpBarInner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #7af6d8 0%, #897aff 100%);
  transition: width 0.5s ease-in-out;
}
#xpCount {
  font-family: sans-serif, Arial;
  font-size: 0.9rem;
  font-weight: bold;
  color: #2a16e5;
  white-space: nowrap;
}
#lionWrapper {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 30px auto;
  border-radius: 50%;
  background: radial-gradient(#cbcbcb 0%, #9a9a9a 60%, #6c6c6c 100%);
  box-shadow: 0 20px 28px rgba(0, 0, 0, 0.68);
  cursor: pointer;
  transition: transform 0.1s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#lionWrapper.pressed {
  transform: scale(0.95);
}
#heartContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.heart {
  position: absolute;
  left: 50%;
  top: 10%;
  transform-origin: center;
  transform: translateX(-50%) rotate(0deg);
  font-size: 2rem;
  opacity: 1;
  animation: floatHeart 4s ease-out forwards;
}
@keyframes floatHeart {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(calc(-50% + 16px), -50px) scale(1.2);
    opacity: 0.75;
  }
  50% {
    transform: translate(calc(-50% - 12px), -100px) scale(1.1);
    opacity: 0.5;
  }
  75% {
    transform: translate(calc(-50% + 9px), -150px) scale(1);
    opacity: 0.25;
  }
  100% {
    transform: translate(calc(-50% - 6px), -200px) scale(0.8);
    opacity: 0;
  }
}
.coin {
  position: absolute;
  left: 50%;
  top: 5%;
  transform-origin: center;
  transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  font-size: 2rem;
  color: #ffb400;
  opacity: 1;
  animation: floatCoinStraight 5s ease-out forwards;
}
@keyframes floatCoinStraight {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + 80px), -220px) scale(0.5);
    opacity: 0;
  }
}
#lionImg {
  width: 300px;
  height: 300px;
  object-fit: cover;
  position: relative;
  top: 10px;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#imgOverlay {
  position: absolute;
  top: 10px;
  left: calc((100% - 300px) / 2);
  width: 300px;
  height: 300px;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: all;
  touch-action: manipulation;
  background: transparent;
}
#loadinglionImg {
  pointer-events: none;
}
#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #141416;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}
#bottomNav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.6rem;
  padding: 6px 0;
  cursor: pointer;
  transition: transform 0.1s ease, color 0.1s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#bottomNav button i {
  font-size: 1.8rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
@keyframes attnPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

#earnBtn i {
  color: #28a745;
  outline: none;
  position: relative;
  z-index: 1;
}
#earnBtn.attention-pulse {
  animation: attnPulse 1s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
#earnBtn.attention-pulse i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2em;
  height: 2em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(3px);
  mix-blend-mode: screen;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.55) 0%,
    rgba(255, 196, 0, 0.35) 35%,
    rgba(255, 176, 0, 0.15) 60%,
    rgba(255, 176, 0, 0.05) 80%,
    rgba(255, 176, 0, 0) 100%
  );
  animation: glowPulse 1s ease-in-out infinite;
}

#gamesBtn i {
  color: #ff00e6;
  position: relative;
  outline: none;
  z-index: 1;
}

#levelBtn i {
  color: #007bff;
  position: relative;
  z-index: 1;
}
#levelBtn.attention-pulse {
  animation: attnPulse 1s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

#upgradeBtn.attention-pulse {
  animation: attnPulse 1s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
#friendsBtn i {
  color: #f1c40f;
}
#friendsBtn.attention-pulse {
  animation: attnPulse 1s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
#withdrawBtn i {
  color: #e74c3c;
}
#settingsBtn i {
  color: #7f8c8d;
}
#bottomNav button.active,
#bottomNav button:active {
  color: #ffb400;
  font-weight: bold;
  transform: scale(0.9);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#bottomNav button:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn {
  position: fixed;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 200;
  transition: transform 0.1s;
}
.icon-btn:active {
  transform: scale(0.9);
}
#adsList {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 12px;
  padding-right: 4px;
}

.ad-btn {
  display: block;
  width: 50%;
  margin: 8px 8px 8px auto;
  padding: 12px;
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.3);
  font-family: sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #251e02ff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}
.ad-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#earnPage .tads-btn,
#earnPage .tads2-btn {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 80%;
  margin: 8px 12px;
  padding: 10px 14px;

  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #166107, #229e06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
  text-align: left;

  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.2s ease;
}

#earnPage .tads-btn:hover,
#earnPage .tads2-btn:hover {
  background: linear-gradient(135deg, #0e4503, #092703);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

#earnPage .tads-btn:active,
#earnPage .tads2-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#earnPage .tads-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at 30% 0%, #facc15, #e11d48);
  color: #0b1120;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

#earnPage .tads-icon i {
  font-size: 1.2rem;
}

#earnPage .tads-text {
  flex: 1;
  display: block;
}
button.cooldown {
  background: #777 !important;
  color: #eee !important;
  cursor: not-allowed !important;
  opacity: 0.85;
  box-shadow: none !important;
}
button.cooldown:hover,
button.cooldown:active {
  transform: none !important;
  box-shadow: none !important;
}

/* ============ AdsGram Task Ads ============ */

.adsgram-tasks-section {
  margin: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.adsgram-task-cooldown {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.4);
}

.adsgram-task-card {
  --adsgram-task-font-size: 16px;
  --adsgram-task-icon-size: 50px;
  --adsgram-task-icon-title-gap: 12px;
  --adsgram-task-button-width: 72px;
  --adsgram-task-icon-border-radius: 8px;

  display: block;
  width: 100%;
  max-width: 360px;
  padding: 10px 20px 10px 14px;
  border-radius: 16px;
  background-color: #1d2733;
  color: #ffffff;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.adsgram-task-reward {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #f7f7f7;
}

.adsgram-task-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: #50a8eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  margin-right: 12px;
}

.adsgram-task-button-claim {
  background-color: #ee941c;
}

.adsgram-task-button-done {
  background-color: #007539;
  cursor: default;
}

.adsgram-task-card.hidden {
  display: none !important;
}

.games-main {
  padding: 16px 12px 80px;
  max-width: 480px;
  margin: 0 auto;
}

.games-header {
  margin-top: 8px;
  margin-bottom: 16px;
}

.games-title {
  margin: 0 0 4px 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f9fafb;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.games-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.game-card-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #111827, #1f2937);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  text-align: left;
}

.game-card-btn:hover {
  background: linear-gradient(135deg, #111827, #111827);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.game-card-btn:active {
  transform: scale(0.97);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.game-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  background: radial-gradient(circle at 30% 0%, #facc15, #e11d48);
  color: #0b1120;
  flex-shrink: 0;
}

.game-card-icon i {
  font-size: 1.3rem;
  line-height: 1;
}

.game-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fafb;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.game-card-desc {
  font-size: 0.85rem;
  color: #9ca3af;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.game-card-arrow {
  margin-left: 8px;
  color: #6b7280;
}

.daily-modal-content {
  max-width: 520px;
  width: 95%;
  background: #111827;
  border-radius: 16px;
  padding: 20px 16px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.daily-modal-title {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f9fafb;
  text-align: center;
}

.daily-modal-subtitle {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #9ca3af;
  text-align: center;
}

.daily-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #d1d5db;
  margin-bottom: 8px;
}

.daily-summary span:first-child {
  font-weight: 600;
  color: #fbbf24;
}

.daily-calendar {
  background: radial-gradient(circle at top, #1f2937, #020617);
  border-radius: 12px;
  padding: 10px 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.daily-day {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.75rem;
  cursor: default;
  min-height: 52px;
}

.daily-day-header {
  font-weight: 600;
  margin-bottom: 2px;
}

.daily-day-reward {
  font-size: 0.7rem;
  color: #e5e7eb;
}

.daily-day-status {
  margin-top: 2px;
  font-size: 0.7rem;
}

.daily-day--future {
  opacity: 0.4;
}

.daily-day--claimed {
  background: linear-gradient(135deg, #065f46, #15803d);
  border-color: rgba(22, 163, 74, 0.8);
}

.daily-day--claimed .daily-day-status {
  color: #bbf7d0;
  font-weight: 600;
}

.daily-day--today {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5);
  position: relative;
}

.daily-day--today::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(251, 191, 36, 0.7);
  pointer-events: none;
}

.daily-day--today .daily-day-header {
  color: #facc15;
}

.daily-day--available {
  cursor: pointer;
}

.daily-day--available:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: rgba(59, 130, 246, 0.9);
}

.daily-day--available .daily-day-status {
  color: #bfdbfe;
  font-weight: 600;
}

.daily-day--empty {
  visibility: hidden;
}

.daily-hint {
  margin: 8px 0 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 480px) {
  .daily-modal-content {
    width: 96%;
    padding: 16px 10px 14px;
  }

  .daily-grid {
    gap: 4px;
  }

  .daily-day {
    min-height: 48px;
  }
}

.games-list {
  margin-top: 16px;
  padding: 0 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-card {
  background: linear-gradient(135deg, #1b293f, #233b5a);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.game-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.game-card .titles h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
}

.game-card .titles p {
  margin: 3px 0 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.primary-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1b1b22;
  background: linear-gradient(135deg, #ffd54f 0%, #ffb300 45%, #ff8f00 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.primary-game-btn i {
  font-size: 1rem;
}

.primary-game-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.primary-game-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#wheelSection .game-card-icon i {
  transform: translateY(2px);
}

.wheel-modal-content {
  position: relative;
  max-width: 420px;
  width: 90%;
  padding: 20px 18px 18px;
  background: #191b24;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.wheel-modal-content h3 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 1.2rem;
  color: #ffffff;
}

.wheel-subtitle {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.wheel-wrapper {
  position: relative;
  margin: 10px auto 8px;
  width: min(260px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid #ffd54f;
  z-index: 6;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.7));
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -18.5px;
  left: -6.5px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 14px solid #b38200;
}

.wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
  background: conic-gradient(
    #ffb300 0deg 30deg,
    #ef5350 30deg 60deg,
    #42a5f5 60deg 90deg,
    #66bb6a 90deg 120deg,
    #7e57c2 120deg 150deg,
    #26c6da 150deg 180deg,
    #ffa726 180deg 210deg,
    #ab47bc 210deg 240deg,
    #26a69a 240deg 270deg,
    #ec407a 270deg 300deg,
    #8d6e63 300deg 330deg,
    #9ccc65 330deg 360deg
  );
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.15, 0.75, 0.2, 1.05);
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.wheel-label {
  position: absolute;
  transform-origin: 50% 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transition: font-size 0.15s ease, text-shadow 0.15s ease, color 0.15s ease;
}

.wheel-label.negative {
  color: #ffebee;
}

.wheel-label.neutral {
  color: #f5f5f5;
}

.wheel-label.selected {
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 5px rgba(255, 255, 255, 0.9);
}

.wheel-center {
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe082, #ffb300);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wheel-result-message {
  min-height: 20px;
  margin-top: 10px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e0e7ff;
}

.wheel-result-message.positive {
  color: #81c784;
}

.wheel-result-message.negative {
  color: #ef5350;
}

.wheel-result-message.neutral {
  color: #e0e0e0;
}

.wheel-result-message.error {
  color: #ff7043;
}

.wheel-spin-btn {
  width: 100%;
  margin-top: 10px;
}

.wheel-hint-text {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #aeb4d3;
  text-align: center;
}

@media (max-width: 480px) {
  .wheel-wrapper {
    width: min(70vw, 230px);
  }
}

.wheel-help-btn {
  position: absolute;
  top: 6px;
  right: 40px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
}

.wheel-help-btn:hover {
  background: rgba(30, 64, 175, 0.95);
  color: #f9fafb;
}

.wheel-modal-content #wheelHelpBtn,
.wheel-modal-content #closeWheelModalBtn {
  top: 12px;
}

.close-btn,
.close-btn:focus,
.close-btn:focus-visible,
.wheel-help-btn,
.wheel-help-btn:focus,
.wheel-help-btn:focus-visible {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.wheel-help-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.wheel-help-overlay.hidden {
  display: none;
}

.wheel-help-box {
  position: relative;
  max-width: 360px;
  margin: 0 16px;
  padding: 16px 14px 14px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.wheel-help-title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f9fafb;
}

.wheel-help-text {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.wheel-help-close-btn {
  top: 8px;
  right: 8px;
}

#jackpotOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

#jackpotOverlay.hidden {
  display: none;
}

#jackpotOverlay .jackpot-overlay-content {
  text-align: center;
  color: #fff;
}

#jackpotOverlay .jackpot-overlay-content .fa-coins {
  font-size: 6rem;
  background: linear-gradient(135deg, #ffe066 0%, #ffb300 60%, #ff8f00 100%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.4);
}

#jackpotOverlay .overlay-text {
  margin-top: 16px;
  font-size: 1.7rem;
  font-weight: bold;
}

.mines-modal-content {
  max-width: 420px;
  width: 90%;
  padding: 18px 16px 16px;
  background: #111827;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
  position: relative;
}

.mines-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mines-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f9fafb;
}

.mines-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mines-help-btn {
  position: absolute;
  top: 8px;
  right: 40px;
  width: 30px;
  height: 30px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.mines-help-btn i {
  font-size: 0.9rem;
}

.mines-help-btn:focus-visible,
.mines-help-close-btn:focus-visible,
#closeMinesModalBtn:focus-visible {
  outline: none;
  box-shadow: none;
}
#closeMinesModalBtn {
  top: 10px;
}

.mines-help-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.mines-help-overlay.hidden {
  display: none;
}

.mines-help-box {
  position: relative;
  max-width: 360px;
  width: 90%;
  background: linear-gradient(145deg, #020617, #111827);
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
}

.mines-help-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.2rem;
}

.mines-help-title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
}

.mines-help-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #cbd5f5;
}

.mines-status-bar {
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.mines-status-bar span:first-child {
  font-weight: 700;
  color: #facc15;
}

.mines-grid {
  margin-top: 6px;
  padding: 8px;
  border-radius: 12px;
  background: radial-gradient(circle at top, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr)); /* 9x9 board */
  gap: 4px;
}

.mines-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  cursor: pointer;
  color: #e5e7eb;
  background: linear-gradient(145deg, #acb4c1ee, #474c61d6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(148, 163, 184, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.9);
  user-select: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.mines-cell:hover {
  background: linear-gradient(145deg, #1f2937, #020617);
}

.mines-cell:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(148, 163, 184, 0.5);
}

.mines-cell.revealed {
  cursor: default;
  background: radial-gradient(circle at top, #020617, #020617);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
  border-color: rgba(55, 65, 81, 0.9);
}

.mines-cell.number-1 {
  color: #59c611;
}

.mines-cell.number-2 {
  color: #63cefb;
}

.mines-cell.number-3 {
  color: #d14ff5;
}

.mines-cell.number-4 {
  color: #fff700;
}

.mines-cell.number-5 {
  color: #fb8a00;
}

.mines-cell.number-6 {
  color: #c54b22;
}

.mines-cell.number-7 {
  color: #ec0000;
}

.mines-cell.number-8 {
  color: #e5e7eb;
}

.mines-cell.mine {
  color: #f87171;
}

.mines-cell.exploded {
  background: radial-gradient(circle at center, #b91c1c, #7f1d1d);
  border-color: #fecaca;
  color: #fee2e2;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
}

.mines-result-message {
  min-height: 22px;
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.mines-result-message.win {
  color: #4ade80;
}

.mines-result-message.lose {
  color: #fb7185;
}

.mines-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.mines-actions .primary-game-btn {
  flex: 1;
}

.mines-next-btn:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 480px) {
  .mines-modal-content {
    width: 96%;
    padding: 14px 12px 12px;
  }

  .mines-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .mines-grid {
    gap: 3px;
  }

  .mines-cell {
    font-size: 0.8rem;
  }
}

.level-card {
  max-width: 600px;
  margin-top: -5px;
  padding-bottom: 2px;
  background: linear-gradient(135deg, #28a746ca, #81c78487);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  padding: 24px;
  color: #fff;
}
.level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.level-badge .fa-award {
  font-size: 4rem;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
}
.level-badge .badge-text {
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}
.level-content {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 24px;
}
.requirements {
  flex: 1 1 250px;
}
.requirements h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.requirements ul {
  list-style: none;
  padding: 0;
}
.requirements li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.requirements li .xp-star {
  color: #4acfff;
  margin-right: 8px;
  font-size: 1.2rem;
}
.requirements .req-status {
  margin-left: auto;
  color: #ffd700;
  font-size: 1.2rem;
}
.requirements li .fa-user-friends {
  color: #ff4ac9;
  font-size: 1.2rem;
  margin-right: 8px;
}
.requirements li i.fa-coins {
  color: #ffd700;
}
.telegram-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: #f4f6f7;
  border-radius: 50%;
  margin-right: 8px;
}
.telegram-circle .fa-telegram {
  color: #4acfff;
  background: none;
  font-size: 1.2rem;
}
.benefits {
  flex: 1 1 250px;
}
.benefits h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.perk {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(135deg, #2a2a72, #009ffd);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.2s;
}
.perk:hover {
  background: linear-gradient(135deg, #1a1a47, #0b71ac);
  transform: translateY(-2px);
}
.perk i {
  font-size: 1.6rem;
  margin-right: 12px;
  color: #ffd700;
}
.perk-text {
  text-align: left;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
}
.upgrade-btn {
  display: block;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 16px 32px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #141416;
  background: #2a2a2f;
  border: 2px solid #555;
  border-radius: 8px;
  opacity: 0.6;
  cursor: not-allowed;
  transition: background 0.2s, opacity 0.2s, transform 0.1s;
}
.upgrade-btn {
  visibility: hidden;
}
.upgrade-btn.visible {
  visibility: visible;
}
.upgrade-btn:enabled {
  opacity: 1;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd700, #ffc107);
  border-color: #ffb400;
  color: #141416;
}
.upgrade-btn:enabled:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffea00, #ffc107);
}
.upgrade-btn:focus {
  outline: none;
}
.upgrade-btn:active {
  transform: scale(0.98);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#levelUpOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#levelUpOverlay.hidden {
  display: none;
}
#levelUpOverlay .overlay-content {
  text-align: center;
  color: #fff;
}
#levelUpOverlay .overlay-content .fa-award {
  font-size: 6rem;
  background: linear-gradient(135deg, #ffe066 0%, #ffb300 60%, #ff8f00 100%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.4);
}
#levelUpOverlay .overlay-text {
  margin-top: 16px;
  font-size: 2rem;
  font-weight: bold;
}
.locked-message {
  padding: 24px;
  text-align: center;
  font-size: 1.1rem;
  color: #ddd;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}
#friendsPage {
  padding-bottom: 0;
  background: none;
}
.invite-box {
  background: #fff6e5;
  border: 1px solid #ffd699;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 16px;
  margin-bottom: 24px;
}
.invite-box p {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #b76e00;
}
.invite-link-wrap {
  display: flex;
  gap: 8px;
}
#referralLink {
  flex: 1;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #333;
}
#copyLinkBtn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #ffd699 0%, #ffcd66 60%, #ffb300 100%);
  color: #4d3000;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
#copyLinkBtn:hover {
  background: linear-gradient(135deg, #ffe08a 0%, #ffd166 60%, #ffb733 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
}
#copyLinkBtn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#friendsTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
#friendsTable thead tr {
  background: linear-gradient(to bottom, #0d3b5e, #1a5a7f);
}
#friendsTable thead th {
  padding: 12px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  border-left: 2px solid #133f5e;
  border-right: 2px solid #133f5e;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
#friendsTable thead th:first-child {
  border-left: 2px solid #133f5e;
}
#friendsTable thead th:last-child {
  border-right: 2px solid #133f5e;
}
#friendsTable tbody tr {
  background: #d1d5db;
}
#friendsTable tbody td {
  padding: 12px;
  color: #333;
  text-align: center;
  vertical-align: middle;
  border-left: 2px solid #f7f7f7;
  border-right: 2px solid #a0a4ab;
  border-top: 2px solid #f7f7f7;
  border-bottom: 2px solid #a0a4ab;
  background: linear-gradient(to bottom, #e3e5e8, #c8cacf);
}
#friendsTable thead th:first-child,
#friendsTable tbody td:first-child {
  width: 50px;
  max-width: 50px;
  text-align: center;
}
#friendsTable tbody td:first-child {
  border-left: 2px solid #f7f7f7;
}
#friendsTable tbody td:last-child {
  border-right: 2px solid #a0a4ab;
}
#friendsTable tbody tr:last-child td {
  border-bottom: none;
}
#friendsTable tbody td {
  text-align: center !important;
  vertical-align: middle !important;
}
#friendsTable thead th:nth-child(3),
#friendsTable tbody td:nth-child(3) {
  width: 50px;
  max-width: 50px;
}
#friendsTable thead th:nth-child(4),
#friendsTable tbody td:nth-child(4) {
  width: 50px;
  max-width: 50px;
}
.invite-box {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
#walletList {
  margin: 2px 4px;
  overflow-x: auto;
}
.wallets-header {
  margin: 8px 8px;
  text-align: left;
}
.wallets-header h3 {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallets-header h3 i {
  color: #a0522d;
  font-size: 1.4rem;
}
.delete-wallet-btn {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.1s;
}
.delete-wallet-btn:active {
  transform: scale(0.9);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#walletList table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#walletList table tr:first-child th {
  background: linear-gradient(to bottom, #0d3b5e, #1a5a7f);
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #133f5e;
}
#walletList table tr:nth-child(n + 2) td {
  background: #e3e5e8;
  padding: 12px;
  color: #333;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #a0a4ab;
}
#walletList table th,
#walletList table td {
  border-left: 2px solid #fff;
  border-right: 2px solid #a0a4ab;
}
#walletList table th:first-child,
#walletList table td:first-child {
  border-left: none;
}
#walletList table th:last-child,
#walletList table td:last-child {
  border-right: none;
}
#walletList table tbody td {
  color: #000 !important;
}
.connect-btn.add-wallet-btn {
  background: linear-gradient(
    135deg,
    #28a745 0%,
    #3ac05a 50%,
    #218838 100%
  ) !important;
}
.add-wallet-btn {
  display: block;
  margin: 16px 8px 8px auto;
  padding: 12px 20px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #28a745 0%, #3ac05a 50%, #218838 100%);
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s, background 0.3s;
}
.add-wallet-btn i {
  margin-right: 8px;
}
.add-wallet-btn:hover {
  background: linear-gradient(135deg, #3ac05a 0%, #28a745 50%, #1e7e34 100%);
  transform: translateY(-2px);
}
.add-wallet-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.15);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.withdraw-request-btn {
  display: block;
  margin: 12px 8px 0 auto;
  padding: 12px 20px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 50%, #ffc04c 100%);
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s, background 0.3s;
}
.withdraw-request-btn i {
  margin-right: 8px;
}
.withdraw-request-btn:hover {
  background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #e69500 100%);
  transform: translateY(-2px);
}
.withdraw-request-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.15);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.history-btn {
  display: block;
  margin: 12px 8px 0 auto;
  padding: 12px 20px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #4d2c19;
  background: linear-gradient(135deg, #d2b48c 0%, #c49e76 50%, #b08a5e 100%);
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s, background 0.3s;
}
.history-btn i {
  margin-right: 8px;
}
.history-btn:hover {
  background: linear-gradient(135deg, #c49e76 0%, #d2b48c 50%, #a07644 100%);
  transform: translateY(-2px);
}
.history-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.15);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#friendsPage,
.invite-box p,
#friendsTitle,
#friendsTable th,
#friendsTable td,
#noFriendsMessage {
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.connect-btn {
  padding: 14px 28px;
  font-size: 1.1rem;
  color: #fff;
  background: #888;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.connect-btn.active {
  animation: pressButton 0.2s ease-in-out;
  background: #4caf50;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
@keyframes pressButton {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
.settings-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 480px) {
  #lionWrapper {
    width: min(80vw, 300px);
    height: min(80vw, 300px);
  }
  #lionImg {
    width: min(70vw, 260px);
    height: min(70vw, 260px);
  }
  #coinLabel,
  #coinBalance {
    font-size: 1.2rem;
  }
  #xpLabel {
    font-size: 0.7rem;
  }
  #xpWrapper {
    width: 80%;
    top: 8px;
    left: 8px;
  }
  #bottomNav button span {
    font-size: 0.7rem;
  }
  #settingsContent,
  #levelContent {
    margin-top: 100px;
  }
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2a2a2f;
  padding: 20px;
  border-radius: 8px;
  z-index: 500;
  color: #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 400px;
}
.modal.hidden {
  display: none;
}
.modal-content {
  position: relative;
}
.method-btn {
  margin: 8px 4px;
  padding: 8px 16px;
  background: #ffb400;
  color: #141416;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.submit-btn,
.back-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.back-btn {
  background: #888;
}
.close-btn {
  position: absolute;
  top: 1px;
  right: 12px;
  background: transparent;
  font-size: 1.5rem;
  color: #eee;
  border: none;
  cursor: pointer;
}
.error-msg {
  color: #f44336;
  font-size: 0.9rem;
  margin-top: 6px;
  text-align: left;
}
.modal input[type="text"],
.modal input[type="number"] {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  margin-top: 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #1e1e1e;
  color: #eee;
}
#requestModal h3 {
  margin-top: 0;
}
#requestModal p {
  margin: 4px 0 12px 0;
  font-size: 0.9rem;
  color: #ccc;
}
#walletOptions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
}
.wallet-option {
  padding: 8px;
  border: 2px solid #555;
  border-radius: 4px;
  cursor: pointer;
  color: #eee;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-option.selected {
  border-color: #4caf50;
  background: #314633;
}
#confirmModal p {
  margin: 0 0 16px 0;
  font-size: 1rem;
  text-align: center;
}
@media (max-width: 480px) {
  .modal {
    width: 95%;
    padding: 16px;
  }
  .method-btn,
  .submit-btn,
  .back-btn {
    width: 100%;
    margin: 6px 0;
  }
}
.history-content {
  padding: 20px;
  color: #eee;
}
#historyTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
#historyTable th,
#historyTable td {
  border: 1px solid #555;
  padding: 8px;
  text-align: left;
}
#historyTable th {
  background: #141416;
  color: #ffb400;
}
#historyTable tbody tr:nth-child(even) {
  background: #1e1e1e;
}
#historyTable tbody tr:nth-child(odd) {
  background: #2a2a2f;
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.settings-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1e3a5f, #2a517d);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s, background 0.3s;
}
.settings-item:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #233f6a, #365e8a);
}
.settings-item:active {
  transform: scale(0.98);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.settings-item > .fa-solid:first-child {
  font-size: 1.4rem;
  color: #fff;
  margin-right: 12px;
}
.settings-item .titles {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.settings-item .titles .main {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.settings-item .titles .sub {
  font-size: 0.85rem;
  color: #d0d0d0;
  margin-top: 4px;
}
.settings-item > .fa-chevron-right {
  font-size: 1rem;
  color: #fff;
  margin-left: 12px;
}
#helpFeedbackModal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#helpFeedbackModal h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}
#helpFeedbackModal label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
#helpFeedbackModal textarea {
  width: 100%;
  resize: vertical;
  padding: 8px;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
}
#error-msg {
  color: #f44336;
  font-size: 0.9rem;
}
#helpFeedbackModal .submit-btn,
#helpFeedbackModal .back-btn {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s;
}
#helpFeedbackModal .submit-btn {
  background: #4caf50;
  color: #fff;
}
#helpFeedbackModal .back-btn {
  background: #888;
  color: #fff;
}
#helpFeedbackModal .submit-btn:active,
#helpFeedbackModal .back-btn:active {
  transform: scale(0.97);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#howItWorksModal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
#howItWorksModal h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
}
#howItWorksModal .modal-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #eee;
  text-align: justify;
}
#howItWorksModal .submit-btn {
  align-self: center;
  width: auto;
  padding: 10px 24px;
}
.other-question {
  text-align: center;
  margin-top: 8px;
}
#openOtherQuestions {
  color: #4dabf7;
  text-decoration: underline;
  cursor: pointer;
}
#otherQuestionsModal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#otherQuestionsModal p {
  color: #eee;
  font-size: 1rem;
  line-height: 1.4;
}
#otherQuestionsModal a {
  color: #4dabf7;
  text-decoration: underline;
}

#termsBtn .fa-file-contract {
  font-size: 1.4rem;
  color: #fff;
  margin-right: 12px;
}
#termsModal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
}
#termsModal h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}
#termsModal .modal-scroll {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #eee;
  direction: ltr;
  text-align: justify;
}
#termsModal .modal-scroll p {
  margin-bottom: 1em;
}
#closeTermsBtn {
  align-self: center;
  padding: 10px 24px;
  font-size: 1rem;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s;
}
#closeTermsBtn:active {
  transform: scale(0.97);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#privacyBtn .fa-user-secret {
  font-size: 1.4rem;
  color: #fff;
  margin-right: 12px;
}
#privacyModal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
}
#privacyModal h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}
#privacyModal .modal-scroll {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #eee;
  text-align: justify;
}
#privacyModal .modal-scroll p {
  margin-bottom: 1em;
}
#privacyModal .modal-scroll a[href^="mailto:"] {
  color: #4dabf7;
}
#closePrivacyBtn {
  align-self: center;
  padding: 10px 24px;
  font-size: 1rem;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s;
}
#closePrivacyBtn:active {
  transform: scale(0.97);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#socialBtn .fa-telegram {
  font-size: 1.4rem;
  color: #fff;
  margin-right: 12px;
}
#socialModal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  width: 90%;
  max-width: 360px;
}
#socialModal h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}
#socialModal .modal-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0088cc 0%, #005f99 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}
.social-link-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0099dd 0%, #006fb0 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.social-link-btn:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #0077bb 0%, #004f88 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ad-cta-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #8b5e34;
  color: #fff;
  font-size: 1rem;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ad-cta-btn:hover {
  background: #7a522e;
}
.ad-cta-btn:active {
  transform: translateY(1px);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ad-email {
  color: #3f99e7;
}

.ad-close-btn {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #ffd54f;
  color: #333;
  cursor: pointer;
}
.ad-close-btn:hover {
  background: #ffca28;
}
.ad-close-btn:active {
  transform: translateY(1px);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#closeSocialBtn {
  align-self: center;
  padding: 10px 24px;
  font-size: 1rem;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s;
}
#closeSocialBtn:active {
  transform: scale(0.97);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.danger-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 24px 16px 0;
  padding: 12px 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}
.danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.danger-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#deleteAccountModal .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #2a2a2f;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  color: #eee;
}
#deleteAccountModal p {
  margin: 8px 0;
  line-height: 1.4;
}
#deleteAccountModal button.method-btn {
  border-radius: 6px;
  font-size: 1rem;
  transition: transform 0.1s;
}
#deleteAccountModal button.method-btn:hover {
  transform: scale(1.05);
}
#deleteAccountModal button.back-btn {
  border-radius: 6px;
  font-size: 1rem;
  transition: transform 0.1s;
}
#deleteAccountModal button.back-btn:hover {
  transform: scale(1.05);
}
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #081636 0%, #184295 100%);
  z-index: 5000;
  overflow: hidden;
}
.loading-lion {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: auto;
  z-index: 5001;
}
.loading-text {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5001;
}
.loading-text .fa-spinner {
  font-size: 1.5rem;
  color: #ffd700;
}
.money-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.money-rain i {
  position: absolute;
  top: -2rem;
  color: #4caf50;
  font-size: 1.8rem;
  opacity: 0.8;
  animation: fall linear infinite;
}
.money-rain i:nth-child(1n) {
  left: 10%;
  animation-duration: 4s;
  animation-delay: 0s;
}
.money-rain i:nth-child(2n) {
  left: 25%;
  animation-duration: 5s;
  animation-delay: 0.25s;
}
.money-rain i:nth-child(3n) {
  left: 40%;
  animation-duration: 6s;
  animation-delay: 0.5s;
}
.money-rain i:nth-child(4n) {
  left: 55%;
  animation-duration: 4.5s;
  animation-delay: 0.75s;
}
.money-rain i:nth-child(5n) {
  left: 70%;
  animation-duration: 5.5s;
  animation-delay: 1s;
}
.money-rain i:nth-child(6n) {
  left: 85%;
  animation-duration: 6.5s;
  animation-delay: 1.25s;
}
.money-rain i:nth-child(7n) {
  left: 5%;
  animation-duration: 5.2s;
  animation-delay: 1.5s;
}
.money-rain i:nth-child(8n) {
  left: 20%;
  animation-duration: 4.3s;
  animation-delay: 1.75s;
}
.money-rain i:nth-child(9n) {
  left: 35%;
  animation-duration: 6.1s;
  animation-delay: 2s;
}
.money-rain i:nth-child(10n) {
  left: 50%;
  animation-duration: 5.8s;
  animation-delay: 2.25s;
}
.money-rain i:nth-child(11n) {
  left: 65%;
  animation-duration: 4.7s;
  animation-delay: 2.5s;
}
.money-rain i:nth-child(12n) {
  left: 80%;
  animation-duration: 6.2s;
  animation-delay: 2.8s;
}
.money-rain i:nth-child(13n) {
  left: 15%;
  animation-duration: 5.1s;
  animation-delay: 3s;
}
.money-rain i:nth-child(14n) {
  left: 30%;
  animation-duration: 4.9s;
  animation-delay: 3.3s;
}
.money-rain i:nth-child(15n) {
  left: 45%;
  animation-duration: 6.3s;
  animation-delay: 3.6s;
}
.money-rain i:nth-child(16n) {
  left: 60%;
  animation-duration: 5.4s;
  animation-delay: 3.9s;
}
.money-rain i:nth-child(17n) {
  left: 75%;
  animation-duration: 4.6s;
  animation-delay: 4.2s;
}
.money-rain i:nth-child(18n) {
  left: 90%;
  animation-duration: 6.4s;
  animation-delay: 4.6s;
}
.money-rain i:nth-child(19n) {
  left: 12%;
  animation-duration: 5.6s;
  animation-delay: 4.9s;
}
.money-rain i:nth-child(20n) {
  left: 37%;
  animation-duration: 4.8s;
  animation-delay: 5.25s;
}
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.4;
  }
}
