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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Comic Sans MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background: linear-gradient(135deg, #FFA5C3 0%, #D88FFF 50%, #8FFFE3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
  animation: gradientShift 10s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Background decorative emojis */
.bg-emoji {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  user-select: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes float1 {
  0%, 100% {
    transform: translateY(0) rotate(-15deg);
  }
  50% {
    transform: translateY(-30px) rotate(-5deg);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateY(0) rotate(20deg);
  }
  50% {
    transform: translateY(-40px) rotate(30deg);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translateY(0) rotate(10deg);
  }
  50% {
    transform: translateY(-25px) rotate(20deg);
  }
}

@keyframes float4 {
  0%, 100% {
    transform: translateY(0) rotate(-20deg);
  }
  50% {
    transform: translateY(-35px) rotate(-10deg);
  }
}

@keyframes float5 {
  0%, 100% {
    transform: translateY(0) rotate(25deg);
  }
  50% {
    transform: translateY(-20px) rotate(35deg);
  }
}

@keyframes float6 {
  0%, 100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-30px) rotate(0deg);
  }
}

.bg-emoji-1 {
  font-size: 50px;
  top: 10%;
  left: 5%;
  animation: float1 6s ease-in-out infinite;
}

.bg-emoji-2 {
  font-size: 60px;
  top: 5%;
  right: 8%;
  animation: float2 7s ease-in-out infinite;
}

.bg-emoji-3 {
  font-size: 45px;
  bottom: 15%;
  left: 10%;
  animation: float3 5s ease-in-out infinite;
}

.bg-emoji-4 {
  font-size: 55px;
  bottom: 10%;
  right: 12%;
  animation: float4 6.5s ease-in-out infinite;
}

.bg-emoji-5 {
  font-size: 40px;
  top: 50%;
  left: 15%;
  animation: float5 5.5s ease-in-out infinite;
}

.bg-emoji-6 {
  font-size: 48px;
  top: 60%;
  right: 10%;
  animation: float6 6.2s ease-in-out infinite;
}

/* Landing Container */
.landing-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Section */
.hero {
  margin-bottom: 60px;
}

.main-title {
  color: white;
  font-size: 72px;
  font-weight: 900;
  margin-top: 40px;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0px #FF1493, 5px 5px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  animation: titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.tagline {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 50px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.download-buttons a {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
}

.download-buttons a:hover {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.download-buttons a:active {
  transform: translateY(-2px) scale(1.02);
}

.badge {
  height: 60px;
  width: auto;
  display: block;
}

/* Screenshots Section */
.screenshots {
  margin-top: 60px;
}

.screenshot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.screenshot {
  width: 280px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  animation: screenshotFloat 3s ease-in-out infinite;
}

.screenshot:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.screenshot-center {
  animation-delay: 0.5s;
}

.screenshot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes screenshotFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* How It Works Section */
.how-it-works {
  margin-bottom: 50px;
}

.how-it-works-title {
  color: white;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.how-it-works-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 550px;
  margin: 0 auto;
}

.work-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardFloat 3s ease-in-out infinite;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.work-card-cyan {
  background: linear-gradient(135deg, #5FFFD4 0%, #4FE1C1 100%);
}

.work-card-peach {
  background: linear-gradient(135deg, #FFE4C4 0%, #FFD4A3 100%);
}

.work-card-pink {
  background: linear-gradient(135deg, #FFC0E5 0%, #FFB0DA 100%);
}

.work-card:nth-child(2) {
  animation-delay: 0.5s;
}

.work-card:nth-child(3) {
  animation-delay: 1s;
}

.work-card-icon {
  font-size: 42px;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-card-cyan .work-card-icon {
  background: linear-gradient(135deg, #4FE1C1 0%, #3DD4B3 100%);
}

.work-card-peach .work-card-icon {
  background: linear-gradient(135deg, #FFB84D 0%, #FFA940 100%);
}

.work-card-pink .work-card-icon {
  background: linear-gradient(135deg, #FF69B4 0%, #E94C8B 100%);
}

.work-card-content {
  flex: 1;
  text-align: left;
}

.work-card-title {
  color: #1f2937;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.work-card-text {
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* Name Input Section */
.name-input-section {
  max-width: 550px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.name-input-title {
  color: white;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.name-input-wrapper {
  position: relative;
  margin-bottom: 25px;
}

.name-input {
  width: 100%;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  transition: all 0.3s ease;
}

.name-input:focus {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.name-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.name-char-counter {
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #9ca3af;
  pointer-events: none;
}

.start-quiz-btn {
  width: 100%;
  padding: 24px 32px;
  font-size: 26px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #FF3B7D 0%, #FF6B35 50%, #FFA940 100%);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 59, 125, 0.8),
              0 5px 20px rgba(255, 107, 53, 0.7),
              0 2px 10px rgba(255, 169, 64, 0.6),
              0 15px 40px rgba(0, 0, 0, 0.15),
              inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
  animation: btnPulsate 2s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 20;
}

.start-quiz-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.start-quiz-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 50px rgba(255, 59, 125, 0.7),
              0 10px 35px rgba(255, 107, 53, 0.6),
              0 5px 20px rgba(255, 169, 64, 0.5),
              inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  animation: none;
}

.start-quiz-btn:active {
  transform: translateY(-2px) scale(1);
}

@keyframes btnPulsate {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* Loading Overlay Styles */
.loading-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: 9999;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: #00E676;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: white;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Quiz Success/Result Page Styles */
.quiz-success-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  /* Anchor content to the top — `align-items: center` was vertically
     centering `.result-content` inside the tall flex column, leaving a big
     empty band above the tabs/leaderboard. */
  align-items: flex-start;
  justify-content: center;
}

/* Floating emojis on result page */
.result-emoji {
  position: absolute;
  font-size: 80px;
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
  animation: float1 4s ease-in-out infinite;
}

.result-emoji-1 {
  top: 80px;
  left: 40px;
  animation-delay: 0s;
}

.result-emoji-2 {
  top: 200px;
  right: 40px;
  animation-delay: 1s;
}

.result-content {
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No Attempts Message */
.no-attempts-message {
  margin-bottom: 30px;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-attempts-text {
  color: white;
  font-size: 22px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 18px 30px;
  border-radius: 20px;
  display: inline-block;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.result-title {
  color: white;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0px rgba(255, 20, 147, 0.4),
               2px 2px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.live-badge {
  display: inline-block;
  background: white;
  color: #FF1493;
  font-size: 36px;
  font-weight: 900;
  padding: 15px 40px;
  border-radius: 50px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.result-subtitle {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 50px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* Link Card */
.link-card {
  background: white;
  border-radius: 32px;
  padding: 40px 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cardSlideUp 0.7s ease-out 0.3s both;
}

@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.link-icon {
  font-size: 32px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF69B4 0%, #3B82F6 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.4);
}

.link-title {
  color: #1f2937;
  font-size: 28px;
  font-weight: 900;
}

.link-display {
  background: linear-gradient(135deg, #FFE5F1 0%, #E0F2FE 100%);
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 20px 25px;
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 700;
  color: #7C3AED;
  font-family: 'Courier New', monospace;
  text-align: center;
  word-break: break-all;
  transition: all 0.3s ease;
}

.link-display:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.02);
}

.copy-link-btn {
  width: 100%;
  padding: 22px 32px;
  font-size: 24px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.5),
              0 5px 20px rgba(0, 200, 83, 0.4),
              inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: copyBtnPulsate 2s ease-in-out infinite;
}

@keyframes copyBtnPulsate {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.5),
                0 5px 20px rgba(0, 200, 83, 0.4),
                inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 230, 118, 0.7),
                0 8px 25px rgba(0, 200, 83, 0.6),
                inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  }
}

.copy-link-btn:hover {
  animation: none;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 230, 118, 0.7),
              0 8px 25px rgba(0, 200, 83, 0.6),
              inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.copy-link-btn:active {
  transform: translateY(-1px);
}

.copy-icon {
  font-size: 28px;
}

/* X Share Button inside Link Card */
.x-share-btn {
  width: 100%;
  padding: 16px 24px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
              inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.x-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.x-share-btn:active {
  transform: translateY(0);
}

.x-share-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.x-share-text {
  color: white;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Delete Quiz Button */
.delete-quiz-btn {
  width: 100%;
  max-width: 500px;
  padding: 18px 24px;
  margin: 30px auto 0;
  font-size: 18px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4),
              0 4px 16px rgba(220, 38, 38, 0.3),
              inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.delete-quiz-btn svg {
  stroke: white;
}

.delete-quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5),
              0 6px 20px rgba(220, 38, 38, 0.4),
              inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.delete-quiz-btn:active {
  transform: translateY(0);
}

/* Browser Notice */
.browser-notice {
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 25px;
  padding: 15px 20px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 16px;
  border: 2px solid rgba(239, 68, 68, 0.3);
  line-height: 1.5;
}

/* Promo Banner Styles */
.promo-banner-container {
  width: 100%;
  max-width: 500px;
  margin: 30px auto 0;
  animation: fadeInUp 0.8s ease-out;
}

/* Hide Imposter promo banner on desktop — mobile only */
@media (min-width: 769px) {
  .promo-banner-container {
    display: none !important;
  }
}

.promo-banner-container a {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.promo-banner-container a:hover {
  transform: translateY(-5px);
}

.promo-banner-container a:active {
  transform: translateY(-2px);
}

.promo-banner {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.promo-banner-container a:hover .promo-banner {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

/* Social Share Buttons */
.social-share-container {
  width: 100%;
  max-width: 400px;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-share-btn {
  width: 100%;
  border: none;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.social-share-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.social-share-btn:active {
  opacity: 0.85;
  transform: scale(1);
}

.share-btn-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.share-btn-text {
  color: white;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Platform-specific background colors */
.social-btn-instagram {
  background: linear-gradient(135deg, #E1306C 0%, #C13584 100%);
}

.social-btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-btn-messenger {
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

.social-btn-snapchat {
  background: linear-gradient(135deg, #FFFC00 0%, #FED500 100%);
}

.social-btn-snapchat .share-btn-text {
  color: #000000;
  text-shadow: none;
}

.social-btn-snapchat .share-btn-icon {
  filter: brightness(0);
}

.social-btn-x {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.social-btn-x .share-btn-icon {
  width: 20px;
  height: 20px;
}

.social-btn-imessage {
  background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
}

/* Friends Leaderboard Styles */
.friends-leaderboard {
  margin-top: 0;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Keep "Enter Name" form vertically centered even when leaderboard grows long */
#enterNamePage:not(.hidden) {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* The title + card section centers itself in the first viewport */
.enter-name-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Smaller than 100vh so the leaderboard peeks above the fold */
  min-height: 50vh;
}

.enter-name-hero > .title,
.enter-name-hero > .card {
  width: 100%;
}

#enterNamePage > .visitor-leaderboard {
  margin-top: 20px;
}

.leaderboard-title {
  color: white;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 3px 3px 0px rgba(255, 20, 147, 0.4),
               2px 2px 20px rgba(0, 0, 0, 0.3);
}

.leaderboard-subtitle {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Visitor Leaderboard (Simple version on Enter Name and Score pages) */
.visitor-leaderboard {
  margin-top: 50px;
  animation: fadeInUp 0.8s ease-out;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Tighter spacing on the answerer page: less whitespace above the leaderboard
   and reserved scroll-room below it so the bottom rows can scroll above the
   NitroPay anchor ad (~50–100px tall). Score-screen layout is untouched. */
#visitorResults .visitor-leaderboard {
  margin-top: 16px;
  padding-bottom: 140px;
}

.visitor-leaderboard .leaderboard-title {
  color: white;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.leaderboard-name {
  color: #FFD700;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.visitor-leaderboard .leaderboard-table {
  background: white;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  padding: 8px;
}

.visitor-leaderboard .leaderboard-header {
  background: linear-gradient(135deg, #FF8A65 0%, #FF6B9D 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 18px;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.visitor-leaderboard .leaderboard-header-name,
.visitor-leaderboard .leaderboard-header-score {
  color: white;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

.visitor-leaderboard .leaderboard-header-score {
  text-align: center;
}

.visitor-leaderboard .leaderboard-body {
  background: white;
  padding: 0 0 8px 0;
  border-radius: 0 0 12px 12px;
}

.visitor-leaderboard .leaderboard-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 18px;
  align-items: center;
  border-bottom: 2px solid #f3f4f6;
  transition: background 0.2s ease;
}

.visitor-leaderboard .leaderboard-row:hover {
  background: #f9fafb;
}

.visitor-leaderboard .leaderboard-row:last-child {
  border-bottom: none;
}

.visitor-leaderboard .leaderboard-friend-name {
  color: #1f2937;
  font-size: 17px;
  font-weight: 900;
  text-align: left;
}

.visitor-leaderboard .leaderboard-friend-score {
  color: #7C3AED;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
}

/* Friends Leaderboard Table (Owner's view on Result page) */
.friends-leaderboard .leaderboard-table {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.friends-leaderboard .leaderboard-header {
  background: linear-gradient(135deg, #FF8A65 0%, #FF6B9D 100%);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.5fr;
  gap: 10px;
  padding: 18px 20px;
  align-items: center;
  border-radius: 24px 24px 0 0;
  margin: 0;
}

.friends-leaderboard .leaderboard-header > div {
  color: white;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.friends-leaderboard .header-name {
  text-align: left !important;
}

.friends-leaderboard .header-delete {
  display: flex;
  align-items: center;
  justify-content: center;
}

.friends-leaderboard .header-delete svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.friends-leaderboard .leaderboard-body {
  background: white;
}

.friend-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.5fr;
  gap: 10px;
  padding: 20px;
  align-items: center;
  border-bottom: 2px solid #f3f4f6;
  transition: background 0.2s ease;
}

.friend-row:hover {
  background: #f9fafb;
}

.friend-row:last-child {
  border-bottom: none;
}

.friend-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.friend-name {
  color: #1f2937;
  font-size: 20px;
  font-weight: 900;
}

.friendship-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tag-certified-bff {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

.tag-true-friend {
  background: linear-gradient(135deg, #42A5F5 0%, #64B5F6 100%);
}

.tag-almost-bestie {
  background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
}

.tag-snap-friend {
  background: linear-gradient(135deg, #FDD835 0%, #FFC107 100%);
}

.tag-fake-friend {
  background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
}

.tag-acquaintance {
  background: linear-gradient(135deg, #757575 0%, #9E9E9E 100%);
}

.tag-stranger {
  background: linear-gradient(135deg, #EF5350 0%, #E57373 100%);
}

.friend-score {
  color: #7C3AED;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.view-btn {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.6);
}

.view-btn:active {
  transform: translateY(0);
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF69B4;
}

.delete-btn svg {
  width: 20px;
  height: 20px;
  stroke: #FF69B4;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  transform: scale(1.15);
}

.delete-btn:hover svg {
  stroke: #FF1493;
  stroke-width: 2.5;
}

/* Suggested Questions Bottom Sheet Styles */
.suggestions-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  animation: fadeIn 0.3s ease-out;
}

.suggestions-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70vh;
  background: white;
  border-radius: 32px 32px 0 0;
  padding: 20px 24px 40px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
}

.suggestions-sheet.active {
  transform: translateY(0);
}

.sheet-handle {
  width: 60px;
  height: 5px;
  background: #d1d5db;
  border-radius: 10px;
  margin: 0 auto 20px;
}

.sheet-title {
  color: #1f2937;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.suggestion-item {
  background: #f3f4f6;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.suggestion-item:hover {
  background: #e5e7eb;
  transform: translateX(5px);
}

.suggestion-item:active {
  transform: translateX(5px) scale(0.98);
}

.suggestion-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.suggestion-text {
  flex: 1;
}

.add-own-question {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE4E1 100%);
  border: 2px solid #FFB74D;
}

.add-own-question:hover {
  background: linear-gradient(135deg, #FFE4B3 0%, #FFD4D0 100%);
  border-color: #FFA726;
}

/* Friend Answers Modal Styles */
.friend-answers-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: linear-gradient(135deg, #FFA5C3 0%, #D88FFF 50%, #8FFFE3 100%);
  border-radius: 32px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.modal-title {
  background: white;
  color: #1f2937;
  font-size: 24px;
  font-weight: 900;
  padding: 18px 30px;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.go-back-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.go-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.go-back-btn:active {
  transform: translateY(0);
}

.answers-scroll-container {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 10px;
}

.answers-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.answers-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.answers-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.answers-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Inline ad slot inside the friend-answers modal (between Q2 and Q3).
   Slot must stay visible & measurable (NitroPay rejects hidden containers
   for inline formats) — but we don't want a 250px gap if no ad ever fills.
   So #banner_result reserves space, and JS hides the wrapper after a
   short delay if NitroPay never injected an iframe. */
.answers-inline-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.answers-inline-ad.is-empty {
  display: none;
}

.answers-inline-ad #banner_result {
  width: 100%;
  max-width: 336px;
  min-height: 250px;
}

/* Question Card in Modal */
.answer-question-card {
  background: #06b6d4;
  border-radius: 28px;
  padding: 25px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.answer-question-number {
  color: white;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.answer-question-text {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 15px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.answer-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-option {
  background: white;
  border-radius: 20px;
  padding: 16px 20px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.answer-option-wrong {
  background: linear-gradient(135deg, #ff6b7a 0%, #ff5268 100%);
  color: white;
}

.answer-option-correct {
  background: linear-gradient(135deg, #5dd897 0%, #4aba7f 100%);
  color: white;
}

.answer-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 10px;
}

.answer-option-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 3;
}

/* Instagram Instructions Modal */
.instagram-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.instagram-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.instagram-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  padding: 30px 20px;
  overflow-y: auto;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.instagram-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.instagram-close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.instagram-modal-title {
  color: #1f2937;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
  padding-right: 30px;
}

.instagram-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.instagram-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.instagram-step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, #E1306C 0%, #C13584 100%);
  color: white;
  font-size: 18px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instagram-step-content {
  flex: 1;
}

.instagram-step-text {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.instagram-step-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Snapchat Instructions Modal */
.snapchat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.snapchat-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.snapchat-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  padding: 30px 20px;
  overflow-y: auto;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.snapchat-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.snapchat-close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.snapchat-modal-title {
  color: #1f2937;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
  padding-right: 30px;
}

.snapchat-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.snapchat-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.snapchat-step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, #FFFC00 0%, #FED500 100%);
  color: #000000;
  font-size: 18px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.snapchat-step-content {
  flex: 1;
}

.snapchat-step-text {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.snapchat-step-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Create Quiz Page Styles */
.create-quiz-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  /* Extra bottom padding so "Create Quiz" button isn't crammed against the viewport edge */
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767px) {
  .create-quiz-container {
    padding-bottom: 80px;
  }
}

.create-quiz-header {
  text-align: center;
  margin-bottom: 40px;
}

.creator-emoji {
  font-size: 64px;
  margin-bottom: 15px;
  animation: float1 3s ease-in-out infinite;
}

.create-quiz-title {
  color: white;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 3px 3px 0px #FF1493, 5px 5px 20px rgba(0, 0, 0, 0.3);
}

.create-quiz-subtitle {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  opacity: 0.9;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
  will-change: contents;
}

.inline-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Reserve 250px so NitroPay's viewability check passes and the slot can fill.
   (Hiding empty slots prevents ads from ever loading — advertisers won't bid
   on a display:none container.) If no ad fills, the blank space is the cost. */

.question-creation-card {
  border-radius: 32px;
  padding: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease;
  contain: layout style paint;
}

.question-creation-card:hover {
  transform: translateY(-3px);
}

.question-number {
  color: white;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.question-input-box {
  background: white;
  border-radius: 20px;
  padding: 25px;
  padding-right: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: visible;
}

.question-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  font-family: inherit;
  background: transparent;
  resize: none;
  min-height: 60px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 5px;
}

.question-input::-webkit-scrollbar {
  width: 6px;
}

.question-input::-webkit-scrollbar-track {
  background: transparent;
}

.question-input::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.question-input::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.question-input::placeholder {
  color: #9ca3af;
}

.input-char-counter {
  position: absolute;
  bottom: 8px;
  right: 15px;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  pointer-events: none;
}

.question-dropdown-arrow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 35px;
  border-radius: 0 0 100px 100px;
  background: rgba(255, 255, 255, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.question-dropdown-arrow svg {
  color: white;
  stroke: white;
}

.question-dropdown-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%) scale(1.1);
}

.question-dropdown-arrow:active {
  transform: translateX(-50%) scale(0.95);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.option-item {
  background: white;
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  min-height: 68px;
}

.option-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.option-radio {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 3px solid #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.option-radio.selected {
  border-color: #00E676;
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.4);
}

.option-radio.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.option-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.option-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  font-family: inherit;
  background: transparent;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  resize: none;
  overflow: auto;
  line-height: 1.5;
  min-height: 27px;
  max-height: 150px;
}

.option-input::placeholder {
  color: #d1d5db;
}

.option-char-counter {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  white-space: nowrap;
  margin-left: 10px;
  flex-shrink: 0;
}

.option-delete {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: none;
  background: transparent;
  color: #FF69B4;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 300;
}

.option-delete:hover {
  transform: scale(1.2);
  color: #E94C8B;
}

.add-option-btn {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px dashed white;
  border-radius: 20px;
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.add-option-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.color-picker {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: nowrap;
}

.color-option {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.color-option:hover {
  transform: scale(1.15);
}

.color-option.selected {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5),
              0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.submit-quiz-btn {
  width: 100%;
  max-width: 500px;
  padding: 24px 32px;
  font-size: 26px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.5),
              0 5px 20px rgba(0, 200, 83, 0.4),
              inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
  display: block;
  margin: 0 auto;
}

.submit-quiz-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 230, 118, 0.7),
              0 8px 25px rgba(0, 200, 83, 0.6),
              inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.submit-quiz-btn:active {
  transform: translateY(-2px) scale(1);
}

/* Reserves clearance below the Create Quiz button so the NitroPay anchor ad
   (~50-100px tall, pinned to viewport bottom) never sits on top of it. */
.anchor-ad-spacer {
  width: 100%;
  height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-title {
    font-size: 48px;
  }

  .tagline {
    font-size: 22px;
    margin-bottom: 35px;
  }

  .how-it-works-title {
    font-size: 28px;
  }

  .work-card {
    padding: 20px;
  }

  .work-card-icon {
    font-size: 36px;
    min-width: 50px;
    height: 50px;
  }

  .work-card-title {
    font-size: 20px;
  }

  .work-card-text {
    font-size: 14px;
  }

  .name-input-title {
    font-size: 24px;
  }

  .start-quiz-btn {
    font-size: 22px;
    padding: 20px 28px;
  }

  .create-quiz-title {
    font-size: 42px;
  }

  .create-quiz-subtitle {
    font-size: 18px;
  }

  .question-creation-card {
    padding: 25px;
  }

  .submit-quiz-btn {
    font-size: 22px;
    padding: 20px 28px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 30px 15px;
  }

  .main-title {
    font-size: 36px;
  }

  .tagline {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .how-it-works-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .how-it-works-cards {
    gap: 15px;
  }

  .work-card {
    padding: 18px;
    gap: 15px;
  }

  .work-card-icon {
    font-size: 32px;
    min-width: 48px;
    height: 48px;
  }

  .work-card-title {
    font-size: 18px;
  }

  .work-card-text {
    font-size: 13px;
  }

  .name-input-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .name-input {
    padding: 18px 20px;
    font-size: 16px;
  }

  .name-char-counter {
    bottom: 18px;
    right: 20px;
  }

  .start-quiz-btn {
    font-size: 20px;
    padding: 18px 24px;
  }

  .create-quiz-container {
    padding: 10px;
  }

  .creator-emoji {
    font-size: 52px;
  }

  .create-quiz-title {
    font-size: 36px;
  }

  .create-quiz-subtitle {
    font-size: 16px;
  }

  .question-creation-card {
    padding: 22px;
  }

  .question-number {
    font-size: 20px;
  }

  .question-input-box {
    padding: 20px;
  }

  .question-input {
    font-size: 16px;
  }

  .option-item {
    padding: 16px 20px;
    gap: 10px;
  }

  .option-input {
    font-size: 16px;
  }

  .option-delete {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 24px;
  }

  .option-radio {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .color-picker {
    gap: 6px;
    margin-top: 20px;
  }

  .color-option {
    width: 30px;
    height: 30px;
  }

  .submit-quiz-btn {
    font-size: 20px;
    padding: 18px 24px;
  }

  .result-emoji {
    font-size: 60px;
  }

  .result-emoji-1 {
    top: 60px;
    left: 20px;
  }

  .result-emoji-2 {
    top: 150px;
    right: 20px;
  }

  .no-attempts-text {
    font-size: 18px;
    padding: 15px 25px;
  }

  .result-title {
    font-size: 36px;
  }

  .live-badge {
    font-size: 28px;
    padding: 12px 30px;
  }

  .result-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .link-card {
    padding: 30px 25px;
  }

  .link-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
  }

  .link-title {
    font-size: 24px;
  }

  .link-display {
    font-size: 18px;
    padding: 18px 20px;
  }

  .copy-link-btn {
    font-size: 20px;
    padding: 18px 24px;
  }

  .copy-icon {
    font-size: 24px;
  }

  .delete-quiz-btn {
    font-size: 16px;
    padding: 16px 20px;
  }

  .browser-notice {
    font-size: 12px;
    padding: 12px 15px;
    margin-top: 20px;
  }

  .social-share-btn {
    padding: 18px 25px;
  }

  .share-btn-icon {
    width: 28px;
    height: 28px;
  }

  .share-btn-text {
    font-size: 16px;
  }

  .leaderboard-title {
    font-size: 28px;
  }

  .leaderboard-subtitle {
    font-size: 16px;
  }

  .friends-leaderboard .leaderboard-header {
    grid-template-columns: 2fr 1fr 1fr 0.5fr;
    padding: 15px;
    font-size: 15px;
  }

  .friends-leaderboard .header-delete svg {
    width: 18px;
    height: 18px;
  }

  .friend-row {
    grid-template-columns: 2fr 1fr 1fr 0.5fr;
    padding: 15px;
  }

  .friend-name {
    font-size: 18px;
  }

  .friendship-tag {
    font-size: 12px;
    padding: 5px 10px;
  }

  .friend-score {
    font-size: 18px;
  }

  .view-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .delete-btn svg {
    width: 18px;
    height: 18px;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 20px;
    padding: 15px 25px;
  }

  .go-back-btn {
    font-size: 18px;
    padding: 16px 20px;
  }

  .answer-question-number {
    font-size: 16px;
  }

  .answer-question-text {
    font-size: 16px;
    padding: 18px;
  }

  .answer-option {
    font-size: 15px;
    padding: 14px 18px;
  }

  .answer-option-icon {
    width: 24px;
    height: 24px;
  }

  .answer-option-icon svg {
    width: 14px;
    height: 14px;
  }

  .loading-text {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .option-item {
    padding: 14px 16px;
    gap: 8px;
  }

  .option-radio {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .option-delete {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 25px 8px;
  }

  .create-quiz-container {
    padding: 5px;
  }

  .question-creation-card {
    padding: 18px;
  }

  .question-input-box {
    padding: 18px;
  }

  .option-item {
    padding: 12px 12px;
    gap: 8px;
  }

  .option-radio {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #d1d5db;
  }

  .option-radio.selected::after {
    font-size: 14px;
  }

  .option-delete {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 20px;
  }

  .color-picker {
    gap: 4px;
    margin-top: 18px;
  }

  .color-option {
    width: 26px;
    height: 26px;
  }
}

/* SEO Content Section */
.seo-content-section {
  max-width: 700px;
  margin: 60px auto 0;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out;
}

.seo-title {
  color: #1f2937;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
  margin-top: 35px;
  text-align: center;
}

.seo-title:first-child {
  margin-top: 0;
}

.seo-text {
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: left;
}

.seo-benefits {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 25px 0;
}

.seo-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.seo-benefit-item:hover {
  transform: translateX(5px);
}

.benefit-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8A5B 100%);
  color: white;
  font-size: 20px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.benefit-details {
  flex: 1;
}

.benefit-heading {
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.benefit-description {
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

/* Responsive SEO Section */
@media (max-width: 768px) {
  .seo-content-section {
    margin: 50px auto 0;
    padding: 35px 25px;
  }

  .seo-title {
    font-size: 24px;
    margin-top: 30px;
  }

  .seo-text {
    font-size: 15px;
  }

  .benefit-heading {
    font-size: 17px;
  }

  .benefit-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .seo-content-section {
    margin: 40px auto 0;
    padding: 30px 20px;
  }

  .seo-title {
    font-size: 22px;
    margin-top: 25px;
  }

  .seo-text {
    font-size: 14px;
  }

  .seo-benefit-item {
    padding: 16px;
    gap: 12px;
  }

  .benefit-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 18px;
  }

  .benefit-heading {
    font-size: 16px;
  }

  .benefit-description {
    font-size: 13px;
  }
}

/* Footer Styles */
.site-footer {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: auto;
  padding-top: 40px;
  /* Extra bottom padding so footer content clears the NitroPay anchor ad */
  padding-bottom: 120px;
  position: relative;
  z-index: 100;
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 80px;
  }
}

/* Hide footer when creating quiz, loading, or when friend is taking the quiz */
#loadingScreen:not(.hidden) ~ .site-footer,
#createQuizContainer:not([style*="display: none"]) ~ .site-footer,
#enterNamePage:not(.hidden) ~ .site-footer,
#questionsPage:not(.hidden) ~ .site-footer,
#scoreScreen:not(.hidden) ~ .site-footer {
  display: none;
}

/* Add breathing room above the score card and below the "Now It's Your Turn!" CTA */
#scoreScreen {
  padding-top: 40px;
}

#scoreScreen .create-quiz-btn {
  margin-bottom: 67px;
}

@media (max-width: 767px) {
  #scoreScreen {
    padding-top: 24px;
  }
  #scoreScreen .create-quiz-btn {
    margin-bottom: 53px;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

/* NitroPay CMP consent link — auto-injected button styled to match footer */
.footer-consent-link:empty,
.footer-consent-link:empty + .footer-consent-separator,
.footer-consent-separator:has(+ .footer-consent-link:empty) {
  display: none;
}

.footer-consent-link a,
.footer-consent-link button,
.footer-ccpa-link a,
.footer-ccpa-link button {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: none !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-consent-link a:hover,
.footer-consent-link button:hover,
.footer-ccpa-link a:hover,
.footer-ccpa-link button:hover {
  color: rgba(255, 255, 255, 1) !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* CCPA "Do Not Sell" link — only shown to California residents (auto-injected by NitroPay) */
.footer-ccpa-link:empty,
.footer-ccpa-link:empty + .footer-ccpa-separator,
.footer-ccpa-separator:has(+ .footer-ccpa-link:empty) {
  display: none;
}

/* Footer responsive */
@media (max-width: 480px) {
  .site-footer {
    padding: 10px 15px;
  }

  .footer-copyright {
    font-size: 11px;
  }

  .footer-link {
    font-size: 11px;
  }

  .footer-separator {
    font-size: 11px;
  }
}

/* =========================================================
   Tier Map CTA button (above leaderboard)
   ========================================================= */
/* Results view tabs (Leaderboard | Friend Tier List) — pill toggle */
.results-tabs {
  display: flex;
  gap: 4px;
  margin: 24px auto 22px auto;
  padding: 5px;
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.results-tab {
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.results-tab:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.results-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #FF8A65 0%, #FF6B9D 100%);
  box-shadow: 0 6px 14px rgba(255, 107, 157, 0.35);
}

.results-tab:active {
  transform: translateY(1px);
}

.ftm-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px auto;
  padding: 14px 22px;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #FF8A65 0%, #FF6B9D 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.ftm-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 107, 157, 0.45);
}

.ftm-cta-btn:active {
  transform: translateY(0);
}

.ftm-cta-emoji {
  font-size: 22px;
  line-height: 1;
}

.ftm-cta-label {
  letter-spacing: 0.5px;
}

/* Back button — sits above the Tier Map card */
.ftm-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  background: rgba(20, 20, 30, 0.85);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ftm-back-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.ftm-back-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   Friend Tier Map — NEON / DARK theme (owner's alternate view)
   Scoped strictly to .friend-tier-map and .ftm-* identifiers
   so it does not leak into the rest of the app.
   ========================================================= */

/* Neon color tokens (scoped via custom properties on the root container) */
.friend-tier-map {
  --ftm-bg: #0b0b10;
  --ftm-card-bg: #16161f;
  --ftm-card-bg-soft: #1b1b26;
  --ftm-border: #24242f;
  --ftm-text: #f5f5f7;
  --ftm-text-dim: rgba(245, 245, 247, 0.7);
  --ftm-tag-yellow: #FFE14D;

  --ftm-s: #34D17A;   /* green - CERTIFIED BFF */
  --ftm-a: #FFD60A;   /* yellow - BESTIES */
  --ftm-b: #3FA7FF;   /* blue - GOOD VIBES */
  --ftm-c: #FF7A1A;   /* orange - CASUALS */
  --ftm-d: #9AA0A6;   /* grey - FAKE FRIEND */
  --ftm-f: #FF3B30;   /* red - STRANGER */

  position: relative;
  width: auto;
  margin: 0 -60px 50px -60px;
  padding: 22px 18px 20px 18px;
  background: radial-gradient(120% 80% at 50% 0%, #15151f 0%, var(--ftm-bg) 55%, #060609 100%);
  border: 2px solid #1e1e2a;
  border-radius: 24px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: var(--ftm-text);
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Header block */
.ftm-header {
  position: relative;
  padding: 10px 8px 18px 8px;
  text-align: center;
}

.ftm-title {
  margin: 0;
  line-height: 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ftm-title-line {
  font-family: 'Bungee', 'Permanent Marker', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ftm-title-line-2 {
  color: var(--ftm-tag-yellow);
  font-size: 54px;
  letter-spacing: 2px;
  text-shadow:
    0 0 12px rgba(255, 225, 77, 0.45),
    0 4px 0 #000;
}

.ftm-title-world {
  color: var(--ftm-s);
  text-shadow:
    0 0 14px rgba(52, 209, 122, 0.55),
    0 4px 0 #000;
}

.ftm-subtitle {
  margin: 4px 0 12px 0;
  text-align: center;
  color: var(--ftm-text-dim);
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.ftm-hint {
  margin: 14px 0 4px 0;
  text-align: center;
  color: var(--ftm-text-dim);
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.2px;
  opacity: 0.85;
}

/* Board */
.ftm-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  padding: 0;
}

/* Tier rows with neon borders + subtle inner glow */
.ftm-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.25) 100%), var(--ftm-card-bg);
  border: 2px solid var(--ftm-row-color, #333);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 0 18px var(--ftm-row-glow, rgba(255, 255, 255, 0.06)),
    0 0 32px var(--ftm-row-glow, rgba(255, 255, 255, 0.04)) inset;
  min-height: 92px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ftm-row-s { --ftm-row-color: var(--ftm-s); --ftm-row-glow: rgba(52, 209, 122, 0.3); }
.ftm-row-a { --ftm-row-color: var(--ftm-a); --ftm-row-glow: rgba(255, 214, 10, 0.32); }
.ftm-row-b { --ftm-row-color: var(--ftm-b); --ftm-row-glow: rgba(63, 167, 255, 0.32); }
.ftm-row-c { --ftm-row-color: var(--ftm-c); --ftm-row-glow: rgba(255, 122, 26, 0.35); }
.ftm-row-d { --ftm-row-color: var(--ftm-d); --ftm-row-glow: rgba(154, 160, 166, 0.32); }
.ftm-row-f { --ftm-row-color: var(--ftm-f); --ftm-row-glow: rgba(255, 59, 48, 0.32); }

/* Tier letter + caption column */
.ftm-tier-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px 6px 8px;
  border-right: 2px dashed rgba(255, 255, 255, 0.08);
  color: var(--ftm-text);
  text-align: left;
}

.ftm-tier-letter {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 52px;
  line-height: 0.9;
  color: var(--ftm-row-color, #fff);
  text-shadow:
    0 0 10px var(--ftm-row-glow, rgba(255, 255, 255, 0.4)),
    0 0 22px var(--ftm-row-glow, rgba(255, 255, 255, 0.25));
}

.ftm-tier-emoji {
  position: absolute;
  top: -18px;
  left: -14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  background: var(--ftm-card-bg);
  border: 2.5px solid var(--ftm-row-color, #fff);
  box-shadow:
    0 0 10px var(--ftm-row-glow, rgba(255, 255, 255, 0.45)),
    0 0 18px var(--ftm-row-glow, rgba(255, 255, 255, 0.28)),
    inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotate(-14deg);
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.ftm-tier-caption {
  font-family: 'Bungee', 'Fredoka', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.2px;
  line-height: 1.15;
  color: #ffffff;
  text-transform: uppercase;
}

/* Friends container per row */
.ftm-tier-friends {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 4px;
  min-height: 68px;
}

/* Friend cards - dark with neon edge matching the row tier */
.ftm-friend-card {
  appearance: none;
  -webkit-appearance: none;
  background: var(--ftm-card-bg-soft);
  border: 1.5px solid var(--ftm-row-color, #333);
  border-radius: 10px;
  padding: 8px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 92px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ftm-text);
  box-shadow:
    0 0 10px var(--ftm-row-glow, rgba(255, 255, 255, 0.08)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.ftm-friend-card:hover {
  transform: translateY(-2px);
  background: #20202c;
  box-shadow:
    0 0 18px var(--ftm-row-glow, rgba(255, 255, 255, 0.25)),
    0 0 28px var(--ftm-row-glow, rgba(255, 255, 255, 0.18));
}

.ftm-friend-card:active {
  transform: translateY(0);
}

.ftm-friend-card-hidden {
  display: none !important;
}

.ftm-friend-card-more {
  background: var(--ftm-card-bg);
  border-style: dashed;
  opacity: 0.92;
}

.ftm-friend-card-more .ftm-friend-name {
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.8px;
}

.ftm-friend-card-more .ftm-friend-score {
  color: var(--ftm-row-color, #fff);
}

.ftm-friend-card-more .ftm-friend-score::before,
.ftm-friend-card-more .ftm-friend-score::after {
  display: none;
}

.ftm-friend-name {
  font-family: 'Bungee', 'Fredoka', system-ui, sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.ftm-friend-score {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ftm-row-color, #fff);
  position: relative;
  text-shadow: 0 0 8px var(--ftm-row-glow, rgba(255, 255, 255, 0.3));
  padding-bottom: 8px;
}

/* Double scribble-style underline under the score */
.ftm-friend-score::before,
.ftm-friend-score::after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--ftm-row-color, #fff);
  border-radius: 3px;
  opacity: 0.9;
  filter: blur(0.3px) drop-shadow(0 0 4px var(--ftm-row-glow, transparent));
  pointer-events: none;
}

.ftm-friend-score::before {
  left: 8%;
  right: 18%;
  bottom: 1px;
  transform: rotate(-2deg);
}

.ftm-friend-score::after {
  left: 18%;
  right: 8%;
  bottom: -3px;
  transform: rotate(2deg);
  opacity: 0.75;
}

.ftm-empty {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  padding: 8px 12px;
}

/* Friend Tier Map — mobile */
@media (max-width: 480px) {
  .ftm-cta-btn {
    max-width: 100%;
    padding: 12px 18px;
    font-size: 15px;
  }

  .ftm-cta-emoji { font-size: 20px; }

  .ftm-back-btn {
    padding: 7px 12px;
    font-size: 13px;
    margin-bottom: 10px;
  }

  .friend-tier-map {
    margin-left: -8px;
    margin-right: -8px;
    padding: 18px 12px 16px 12px;
    border-radius: 20px;
  }

  .ftm-title-line-2 { font-size: 30px; letter-spacing: 1.2px; }
  .ftm-subtitle { font-size: 12px; margin: 2px 0 10px 0; }

  .ftm-row {
    grid-template-columns: 92px 1fr;
    min-height: 84px;
    padding: 10px;
    gap: 10px;
  }

  .ftm-tier-letter { font-size: 44px; }
  .ftm-tier-emoji {
    width: 38px;
    height: 38px;
    font-size: 22px;
    top: -14px;
    left: -10px;
    border-width: 2px;
  }
  .ftm-tier-caption { font-size: 10px; letter-spacing: 1px; }

  .ftm-tier-friends {
    gap: 6px;
    padding: 2px;
  }

  .ftm-friend-card {
    min-width: 0;
    width: calc(50% - 3px);
    max-width: calc(50% - 3px);
    padding: 6px 8px 8px 8px;
    box-sizing: border-box;
  }

  .ftm-friend-name {
    font-size: 11px;
    max-width: 100%;
    width: 100%;
    letter-spacing: 0.3px;
  }

  .ftm-friend-score { font-size: 13px; }

}

/* Hide NitroPay anchor ad on the Create Quiz screen (overlaps with CREATE QUIZ button) */
body.hide-anchor-ad #anchor_bff,
body.hide-anchor-ad [id^="nn_mobile_lb"],
body.hide-anchor-ad [id*="anchor_bff"] {
  display: none !important;
  visibility: hidden !important;
}

/* Language Picker (above name input on landing) — temporarily disabled
   while shipping the new ads to prod. Remove `display: none` to re-enable. */
.language-picker-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.language-picker-label {
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.language-picker-wrapper {
  position: relative;
  display: inline-block;
}

.language-picker-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 38px 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%231f2937' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.language-picker-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.language-picker-select:focus {
  outline: none;
  border-color: #FF6B9D;
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.25);
}

@media (max-width: 480px) {
  .language-picker-row {
    margin-bottom: 18px;
  }
  .language-picker-label {
    font-size: 14px;
  }
  .language-picker-select {
    font-size: 15px;
    padding: 9px 34px 9px 14px;
  }
}

/* =========================================================
   New App Landing Page (lp-*)
   Shown only when the URL has no quiz ID.
   ========================================================= */

.landing-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ---------- Hero ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 24px 0 8px;
}

.lp-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #6b21a8;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(108, 70, 200, 0.15);
}

.lp-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1.5px;
  margin: 0;
  text-shadow: 0 2px 12px rgba(60, 10, 100, 0.45), 0 1px 2px rgba(60, 10, 100, 0.35);
}

.lp-title-accent {
  color: #FFE94D;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(60, 10, 100, 0.55), 0 1px 2px rgba(60, 10, 100, 0.4);
}

.lp-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: #ffffff;
  font-weight: 700;
  max-width: 540px;
  margin: 0;
  text-shadow: 0 1px 6px rgba(60, 10, 100, 0.35);
}

.lp-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.lp-store-buttons-center {
  justify-content: center;
}

.lp-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0e0a1f;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  border: 2px solid #0e0a1f;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 28px rgba(14, 10, 31, 0.28);
  min-width: 190px;
}

.lp-store-btn:hover {
  transform: translateY(-2px);
  background: #1a1233;
  box-shadow: 0 14px 32px rgba(14, 10, 31, 0.35);
}

.lp-store-btn:active {
  transform: translateY(0);
}

.lp-store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.lp-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.lp-store-small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.2px;
}

.lp-store-large {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.lp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(60, 10, 100, 0.35);
}

.lp-meta-dot {
  opacity: 0.4;
}

/* ---------- Phone mockup ---------- */
.lp-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.lp-hero-visual::before {
  content: '';
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.lp-phone {
  position: relative;
  z-index: 1;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #1a0b2e 0%, #2d1657 100%);
  box-shadow:
    0 30px 60px -20px rgba(26, 11, 46, 0.45),
    0 18px 40px -15px rgba(177, 76, 255, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease;
}

.lp-phone-main {
  transform: rotate(-3deg);
}

.lp-phone-main:hover {
  transform: rotate(-1deg) translateY(-6px);
}

.lp-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
  background: #fff;
}

/* ---------- Showcase rows ---------- */
.lp-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.lp-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.lp-showcase-row-reverse {
  grid-template-columns: 1.1fr 1fr;
}

.lp-showcase-row-reverse .lp-showcase-visual {
  order: 2;
}

.lp-showcase-row-reverse .lp-showcase-copy {
  order: 1;
}

.lp-showcase-visual {
  display: flex;
  justify-content: center;
}

.lp-showcase-visual .lp-phone {
  transform: rotate(2deg);
}

.lp-showcase-row-reverse .lp-showcase-visual .lp-phone {
  transform: rotate(-2deg);
}

.lp-showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-showcase-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.8px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(60, 10, 100, 0.4), 0 1px 2px rgba(60, 10, 100, 0.3);
}

.lp-showcase-text {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: #ffffff;
  font-weight: 700;
  max-width: 480px;
  margin: 0;
  text-shadow: 0 1px 6px rgba(60, 10, 100, 0.35);
}

/* ---------- How it works ---------- */
.lp-how {
  text-align: center;
}

.lp-section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.8px;
  margin: 0 0 32px;
  text-shadow: 0 2px 10px rgba(60, 10, 100, 0.4), 0 1px 2px rgba(60, 10, 100, 0.3);
}

.lp-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-how-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: left;
  box-shadow: 0 18px 40px -22px rgba(108, 70, 200, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -22px rgba(108, 70, 200, 0.55);
}

.lp-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF4DA6 0%, #B14CFF 100%);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px -6px rgba(177, 76, 255, 0.55);
}

.lp-how-title {
  font-size: 18px;
  font-weight: 800;
  color: #0e0a1f;
  margin: 0 0 6px;
}

.lp-how-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: #4a3a62;
  font-weight: 600;
  margin: 0;
}

/* ---------- Final CTA ---------- */
.lp-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 48px 28px;
  margin-top: 32px;
  box-shadow: 0 30px 60px -30px rgba(108, 70, 200, 0.5);
}

.lp-cta-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  color: #0e0a1f;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}

.lp-cta-text {
  font-size: 16px;
  color: #4a3a62;
  font-weight: 600;
  margin: 0 0 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .landing-container {
    gap: 56px;
    padding: 16px 12px 40px;
  }

  /* Switch hero + showcase rows to a single column.
     Use flex so source order (visual first, then copy) is guaranteed
     and the -reverse class doesn't flip image/text on mobile. */
  .lp-hero,
  .lp-showcase-row,
  .lp-showcase-row-reverse {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  /* On mobile, every showcase row renders as caption-then-phone */
  .lp-showcase-copy {
    order: 0;
    margin-top: 24px;
  }
  .lp-showcase-visual {
    order: 1;
  }

  .lp-hero-copy,
  .lp-showcase-copy {
    align-items: center;
  }

  .lp-subtitle,
  .lp-showcase-text {
    margin-left: auto;
    margin-right: auto;
  }

  .lp-store-buttons {
    justify-content: center;
  }

  .lp-how-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lp-showcase {
    gap: 48px;
  }

  .lp-cta {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .landing-container {
    gap: 44px;
  }

  .lp-title {
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: -1px;
  }

  .lp-subtitle {
    font-size: 15px;
  }

  .lp-showcase-title {
    font-size: clamp(24px, 7vw, 30px);
    letter-spacing: -0.4px;
  }

  .lp-showcase-text {
    font-size: 15px;
  }

  .lp-section-title {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .lp-phone {
    width: min(280px, 78vw);
    padding: 8px;
    border-radius: 36px;
  }

  .lp-phone img {
    border-radius: 28px;
  }

  .lp-phone-main {
    transform: rotate(-2deg);
  }

  .lp-showcase-visual .lp-phone,
  .lp-showcase-row-reverse .lp-showcase-visual .lp-phone {
    transform: none;
  }

  .lp-store-buttons {
    gap: 10px;
  }

  .lp-store-btn {
    flex: 1 1 100%;
    min-width: 0;
    justify-content: center;
    padding: 11px 18px;
  }

  .lp-eyebrow {
    font-size: 12px;
    padding: 7px 12px;
  }

  .lp-meta {
    font-size: 13px;
    justify-content: center;
  }

  .lp-how-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .lp-cta {
    padding: 36px 20px;
    border-radius: 22px;
  }

  .lp-cta-title {
    font-size: 24px;
  }
}

