/* General body */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #111827;
  color: #fff;
  padding-top: 70px;
}

/* Header */
header {
  text-align: center;
  padding: 15px;
  background: #1f2937;
  border-bottom: 2px solid #374151;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

header p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

/* Tab Bar */
.tab-bar {
  display: flex;
  justify-content: space-around;
  background: #1f2937;
  padding: 8px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 2px solid #374151;
}

.tab-bar button {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  flex: 1;
  padding: 5px;
  cursor: pointer;
}

.tab-bar button.active {
  color: #f87171;
  font-weight: bold;
}

/* ✅ Fix for scrollable content under tab bar */
#content {
  overflow-y: auto;
  padding-bottom: 80px; /* leave space for tab bar */
  box-sizing: border-box;
}

/* Content */
.content {
  padding: 15px;
  margin-bottom: 60px;
}

/* Card */
.card {
  background: #1f2937;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #374151;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #f9fafb;
}

.card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #9ca3af;
}

/* Buttons */
.card button {
  background: #10b981;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.card button.blue { background: #3b82f6; }
.card button.red { background: #ef4444; }

/* Account Fields */
.account-field {
  margin-bottom: 10px;
}

.account-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.account-field input, .account-field select {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: none;
}

/* Withdraw Button */
.withdraw-btn {
  background: #fbbf24;
  color: #111827;
  font-weight: bold;
  padding: 10px;
  border-radius: 6px;
  border: none;
  width: 100%;
  cursor: pointer;
}

button.gray {
  background-color: #9ca3af;
  color: white;
  cursor: not-allowed;
}

/* 🎬 Watch Ad Buttons */
#ads-container {
  display: flex;
  flex-direction: column; /* တစ်တန်းတည်းအပေါ်ကနေအောက် */
  align-items: center;
  gap: 12px; /* Button တွေအကြားအကွာအဝေး */
  margin-top: 10px;
}

.ad-btn {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 20px; /* နည်းနည်းကြီးအောင် */
  font-size: 17px; /* စာလုံးနည်းနည်းကြီး */
  font-weight: 600;
  width: 85%;
  max-width: 300px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background 0.3s ease, opacity 0.3s ease;
}

.ad-btn:hover:not(:disabled) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.ad-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 🎡 Countdown Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* 🎯 Lucky Spin Wheel Layout */
.wheel-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  overflow: visible;
}

/* 🎯 Wheel Pointer (Right Center) */
.wheel-pointer {
  position: absolute;
  top: 50%;
  right: 5px;              
  transform: translateY(-50%) rotate(90deg); 
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid #f87171;  
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  z-index: 10;
}

#wheel {
  border-radius: 50%;
  border: 4px solid #334155;
  z-index: 1;
  transition: transform 3s ease-out;
}

#spinBtn {
  margin-top: 20px;
  position: relative;
  z-index: 10;
}

body, html {
  overflow-y: auto; /* allow scrolling normally */
  height: 100%;
}

.content {
  position: relative;
  min-height: calc(100vh - 130px); /* space for header + tab bar */
  overflow-y: auto;
}

/* ✅ Prevent canvas rotation from affecting outer layout */
#wheel {
  display: block;
  margin: 0 auto;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
}

/* Lucky Spin section spacing fix */
#spin-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 12px;   /* was 100px */
  margin-bottom: 8px;     /* was 20px */
}

  .leaderboard-section {
    margin-top: 20px;
    padding: 15px;
    background: #111827;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
  }
  .leaderboard-section h3 {
    text-align: left;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .leaderboard-list {
    list-style: none;
    padding: 0;
  }
  .leaderboard-list li {
    padding: 8px;
    border-bottom: 1px solid #334155;
  }

iframe#gm-iframe { border-radius: 8px; overflow: hidden; }

#gm-iframe {
  object-fit: contain;
  background: black;
}

.bomb-cell {
  aspect-ratio: 1 / 1;
  box-shadow: inset 0 -4px 12px rgba(255, 255, 255, 0.05);
}
.bomb-cell:active {
  transform: scale(0.96);
}
.bomb-btn {
  background: linear-gradient(90deg, #ffd166, #ffb84d);
  color: #032047;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.bomb-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.6);
}

@keyframes neonPulse {
  from {
    box-shadow: 0 0 10px #facc15, 0 0 20px #facc15;
  }
  to {
    box-shadow: 0 0 25px #facc15, 0 0 50px #facc15;
  }
}

/* Daily Tasks */
.task-tab {
  background:#1e293b;
  color:#f8fafc;
  border:none;
  padding:6px 12px;
  margin:3px;
  border-radius:8px;
  cursor:pointer;
  font-weight:bold;
  transition:0.2s;
}
.task-tab.active {
  background:#3b82f6;
  color:white;
}
.daily-task-card {
  background:#1e293b;
  border-radius:10px;
  padding:12px;
  margin:10px auto;
  width:90%;
  box-shadow:0 3px 10px rgba(0,0,0,0.3);
}
.daily-task-card button {
  margin-top:8px;
  padding:6px 10px;
  background:#3b82f6;
  color:white;
  border:none;
  border-radius:8px;
  font-weight:bold;
}

/* ✅ Fix Lucky Spin overflow issue */
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 90px; /* bottom padding for tab bar */
  box-sizing: border-box;
}

#wheel {
  display: block;
  margin: 0 auto;
  max-width: 280px;
  height: auto;
}

/* ✅ Final fix for Lucky Spin overlapping tab bar */
.wheel-wrapper {
  position: relative;
  overflow: hidden;  /* prevent content from escaping */
  z-index: 1;        /* lower than tab bar */
}

.wheel-pointer {
  z-index: 2; /* small, but still above wheel */
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2937;
  border-top: 2px solid #374151;
  z-index: 9999 !important; /* always on top */
}

#luckySpinSection {
  padding-bottom: 18px; /* balanced with top spacing */
  margin-bottom: 8px;
}

#spinBtn {
  margin-bottom: 8px; /* make button closer to bottom */
}

/* tighten Lucky Spin card bottom space */
#luckySpinSection { padding-bottom: 12px; }
#spinBtn { margin-bottom: 0; }
