@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
/* start.css */
/* html {
  scrollbar-gutter: stable;
} */

html, body {
  overflow-x: hidden !important;
}

div.fc-message-root, body div.fc-message-root {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 999999999 !important;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #1a0b2e;
  background-image: 
    radial-gradient(circle at 50% 0%, #3a1c71 0%, transparent 80%),
    repeating-radial-gradient(
      circle at 50% 120%, 
      transparent 0,
      transparent 80px,
      rgba(157, 78, 221, 0.05) 81px,
      rgba(157, 78, 221, 0.15) 82px,
      transparent 84px
    );
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
}

#app-container {
  width: 100%;
  max-width: 360px;
  min-height: 100vh;
  background-color: #030032;
  background-image: url('/nquiz/images/bg.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  overflow-y: auto;
  padding-bottom: 150px; /* Space at the bottom */
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.main-header {
  padding: 10px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-center-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: #f5a623;
  letter-spacing: -0.5px;
}

.coin-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #f5a623;
  border-radius: 30px;
  padding: 6px 14px 6px 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width:103px;
  min-height: 46px
}

/* Earn Free Coins Pill Button */
.fortune-close-content {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: #ff5722;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 3px solid #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.fortune-close-content:hover {
  background: #e64a19;
  transform: translateX(-50%) scale(1.08);
}

/* Lucky Spin Wheel Modal Styles */
#spin-modal-overlay {
  background-color: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spin-modal-inner {
  background: linear-gradient(180deg, #2c1e4a 0%, #1a102f 100%);
  border: 4px solid #ffd700;
  border-radius: 24px;
  width: 92%;
  max-width: 380px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.2);
  animation: modal-bounce-in 0.4s cubic-bezier(0.275, 0.665, 0.62, 2.475);
}

.spin-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.spin-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.spin-modal-title {
  color: #ffd700;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.5);
  margin: 0 0 4px 0;
  text-align: center;
}

.spin-chances-text {
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wheel-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 10px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Red Teardrop Pointer Pin at Top Center */
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 42px;
  background: radial-gradient(circle at 50% 30%, #ff4d4d 0%, #d90429 100%);
  clip-path: polygon(50% 100%, 0% 25%, 25% 0%, 75% 0%, 100% 25%);
  z-index: 25;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.wheel-pointer::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.wheel-disc-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 0 8px #ffffff;
  overflow: hidden;
}

.wheel-svg {
  width: 100%;
  height: 100%;
}

#wheel-rotator {
  transform-origin: 150px 150px;
  transition: transform 4s cubic-bezier(0.15, 0.9, 0.25, 1);
}

.spin-action-btn {
  background: linear-gradient(180deg, #ffe600 0%, #ff9900 100%);
  border: 3px solid #ffffff;
  color: #2c1e4a;
  font-size: 22px;
  font-weight: 700;
  padding: 10px 48px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 0 #b36b00, 0 8px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.2s ease;
  letter-spacing: 1px;
  outline: none;
}

.spin-action-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #b36b00, 0 10px 22px rgba(0, 0, 0, 0.5);
}

.spin-action-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #b36b00, 0 4px 10px rgba(0, 0, 0, 0.4);
}
.earn-free-coins-btn {
  background: linear-gradient(135deg, #fff066 0%, #ffd700 100%);
  border: 2px solid #ffffff;
  border-radius: 20px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  outline: none;
  animation: pulseZoom 1s infinite alternate;
  position: relative;
  overflow: hidden;
}

.earn-free-coins-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(-150%) skewX(-25deg);
  animation: btnShine 3s infinite;
  z-index: 1;
}

/* Locked Greyed-out Button State */
.earn-free-coins-btn.is-locked {
  background: #3a354d !important;
  border-color: #5a5472 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.9;
}

.earn-free-coins-btn.is-locked span {
  color: #f1f5f9 !important;
  font-family: monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.earn-free-coins-btn:hover:not(.is-locked) {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
}

/* Spin Result Popup Modal (No Alerts) */
.spin-result-inner {
  background: linear-gradient(180deg, #2c1e4a 0%, #1a102f 100%);
  border: 3px solid #ffd700;
  border-radius: 20px;
  width: 88%;
  max-width: 320px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.3);
  animation: modal-bounce-in 0.35s cubic-bezier(0.275, 0.665, 0.62, 2.475);
}

.spin-result-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.spin-result-title {
  color: #ffd700;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.spin-result-msg {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.spin-result-action-btn {
  background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 40px;
  border-radius: 26px;
  cursor: pointer;
  box-shadow: 0 5px 0 #1e8449, 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease, filter 0.2s ease;
  letter-spacing: 1px;
  outline: none;
}

.spin-result-action-btn.is-try-again {
  background: linear-gradient(180deg, #ff4757 0%, #ff6b81 100%);
  box-shadow: 0 5px 0 #c0392b, 0 6px 16px rgba(0, 0, 0, 0.4);
}

.spin-result-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.spin-result-action-btn:active {
  transform: translateY(2px);
}

@keyframes pulseZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes rotateCoin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes btnShine {
  0% { transform: translateX(-150%) skewX(-25deg); }
  50% { transform: translateX(300%) skewX(-25deg); }
  100% { transform: translateX(300%) skewX(-25deg); }
}

.earn-free-coins-btn img,
.earn-free-coins-btn span {
  position: relative;
  z-index: 2;
}

.earn-free-coins-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  animation: rotateCoin 1.5s linear infinite;
}

.earn-free-coins-btn span {
  font-size: 11px;
  font-weight: 700;
  color: #252136;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.coin-pill img {
  width: 24px;
  height: 24px;
  position: absolute;
  left: 16px;
}
.coin-pill span {
  color: #fff;
  font-weight: 700;
  font-size: 24px;
}
.add-coins {
  width: 32px;
  height: 32px;
  background: #000;
  border: 2px solid #f5a623;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5a623;
  margin-right: -8px;
  z-index: 2;
  cursor: pointer;
}
.add-coins svg {
  width: 20px;
  height: 20px;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}
.popup-icon {
  margin-bottom: 16px;
}
.popup-icon img {
  width: 60px;
  height: 60px;
}

.popup-text {
  color: #111;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}
.popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.popup-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s;
}
.btn-cancel {
  background: #252136;
  color: #fff;
}
.btn-watch {
  background: #ffaa1d;
  color: #fff;
}
.popup-btn:hover {
  opacity: 0.9;
}

.header-banner {
  width: 100%;
  height: 12px;
  background: #111;
}



.tabs-wrapper {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
}

.scroll-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.scroll-btn:hover {
  opacity: 1;
}
.scroll-btn svg {
  width: 24px;
  height: 24px;
}

.tabs-container {
  display: flex;
  flex-grow: 1;
  gap: 12px;
  padding: 18px 6px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  background: transparent;
  scroll-behavior: smooth;
}
.tabs-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.tab-item {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  text-transform: uppercase;
  transition: all 0.2s;
}
.tab-item.active {
  border-color: #f5a623; /* Matching the robust orange tab */
  color: #f5a623;
}
.tab-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  margin-top: -1px;
}

.quiz-list {
  padding: 12px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Qureka Style Mobile Quiz Card */
.qureka-quiz-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.qureka-quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-thumb-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-emoji {
  font-size: 32px;
}

.card-details-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-category-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #6c757d;
  margin-bottom: 2px;
}

.card-title-prize {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.card-title-text {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.prize-coins-stack {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prize-coin-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.prize-amount {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.winner-announcement-timer {
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  margin-top: 2px;
}

.live-timer-countdown {
  font-weight: 700;
  color: #666666;
  font-family: monospace, sans-serif;
}

/* Bottom Action Bar */
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.card-live-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-live-dot {
  width: 10px;
  height: 10px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
  animation: live-pulse 1.8s infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.live-text {
  font-size: 15px;
  font-weight: 700;
  color: #2ecc71;
}

.card-entry-fee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #222222;
}

.fee-coin-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.qureka-play-now-btn {
  background: #ffffff;
  color: #8338ec;
  border: 1.5px solid #8338ec;
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(131, 56, 236, 0.15);
}

.qureka-play-now-btn:hover {
  background: #8338ec;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(131, 56, 236, 0.35);
}

.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 40px;
  width: 100%;
}
.ad-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
  background: #f5f5f5;
}
.ad-text {
  font-size: 10px;
  color: #555566;
  margin-top: 4px;
  letter-spacing: 1px;
  font-weight: 700;
}

@media (max-width: 500px) {
  #app-container {
    max-width: 100%;
  }
}

/* Fortune Cookie Floating Widget & Modal Styles */
#fortune-cookie-trigger {
  position: fixed;
  bottom: 20px;
  right: calc(50vw - 230px);
  width: 95px;
  height: 95px;
  z-index: 99;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

#fortune-cookie-trigger:hover {
  transform: scale(1.08);
}

#fortune-cookie-trigger img {
  width: 95%;
  height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

@media (max-width: 500px) {
  #fortune-cookie-trigger {
    right: 8px;
    bottom: 15px;
    width: 88px;
    height: 88px;
  }
}

/* Fortune Modal Card (Exact Qureka Style) */
#fortune-modal-overlay {
  background-color: rgba(0, 0, 0, 0.83);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.fartune-inner {
  background-image: url(/nquiz/images/FortuneCookiePopup.gif);
  padding: 193px 40px 60px;
  min-height: 440px;
  width: 320px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  animation: modal-bounce-in 0.4s cubic-bezier(0.275, 0.665, 0.62, 2.475);
  background-size: contain;
  background-position: center;
  align-items: center;
  position: relative;
  background-repeat: no-repeat;
}

@keyframes modal-bounce-in {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.fartune-body {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border: 1px solid #eee;
}

.fartune-body h2 {
  text-align: center;
  font-weight: 700;
  line-height: 1.45;
  font-size: 17px;
  color: #222;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fartune-reward-coin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 13px;
  color: #b45309;
}

.fortune-close-content {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #f97316;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.2s;
}

.fortune-close-content:hover {
  transform: translateX(-50%) scale(1.1);
}

/* Contest Ended Modal */
.contest-ended-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.contest-ended-inner {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px 14px;
  width: 85%;
  max-width: 320px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contest-ended-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 30px;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.contest-ended-text {
  color: #9015c5;
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  margin-top: 1rem;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text-short {
  min-height: 16px;
  min-width: 40px;
  display: inline-block;
  vertical-align: middle;
}
