/* =========================================================
   FUZZDROP - PRODUCTION STYLESHEET
   Supports Light & Dark Modes, 2-Column Explore Grid & AdSense
========================================================= */

:root {
  /* Common Brand Colors */
  --brand-pink: #FF2E93;
  --brand-pink-glow: rgba(255, 46, 147, 0.35);
  --brand-orange: #FF8A00;
  --brand-purple: #7C3AED;
  --brand-emerald: #10B981;
  --brand-amber: #F59E0B;
  
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* [LIGHT MODE THEME] */
body.theme-light {
  --bg-page: #F6F8FC;
  --bg-header: rgba(246, 248, 252, 0.94);
  --bg-card: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: #CBD5E1;
  --card-border-hover: rgba(255, 46, 147, 0.55);
  --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 14px 32px rgba(15, 23, 42, 0.1);
  --card-shadow-active: 0 2px 8px rgba(15, 23, 42, 0.08);

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-sub: #475569;

  --search-bg: #FFFFFF;
  --search-border: #CBD5E1;
  --chip-bg: #FFFFFF;
  --chip-border: #CBD5E1;
  --chip-text: #475569;

  --bottom-nav-bg: rgba(255, 255, 255, 0.96);
  --bottom-nav-border: #EAEFF5;

  --modal-bg: #F6F8FC;
  --modal-card: #FFFFFF;
  --option-bg: #F1F5F9;
  --option-border: #CBD5E1;
  --option-text: #0F172A;

  --ad-bg: rgba(15, 23, 42, 0.025);
  --ad-border: rgba(15, 23, 42, 0.15);

  --footer-bg: #FFFFFF;
  --footer-border: #CBD5E1;
}

/* [DARK MODE THEME] */
body.theme-dark {
  --bg-page: #0B0E17;
  --bg-header: rgba(11, 14, 23, 0.94);
  --bg-card: #131722;
  --card-bg: #131722;
  --card-border: rgba(255, 255, 255, 0.16);
  --card-border-hover: rgba(255, 46, 147, 0.65);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  --card-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.75);
  --card-shadow-active: 0 2px 8px rgba(0, 0, 0, 0.6);

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-sub: #CBD5E1;

  --search-bg: #171B29;
  --search-border: rgba(255, 255, 255, 0.08);
  --chip-bg: #151926;
  --chip-border: rgba(255, 255, 255, 0.08);
  --chip-text: #94A3B8;

  --bottom-nav-bg: rgba(14, 17, 26, 0.96);
  --bottom-nav-border: rgba(255, 255, 255, 0.08);

  --modal-bg: #0B0E17;
  --modal-card: #141824;
  --option-bg: #1B2030;
  --option-border: rgba(255, 255, 255, 0.1);
  --option-text: #F1F5F9;

  --ad-bg: rgba(255, 255, 255, 0.03);
  --ad-border: rgba(255, 255, 255, 0.15);

  --footer-bg: #0E121D;
  --footer-border: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   BASE STYLES
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  transition: background var(--transition-smooth), color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  padding-bottom: 74px; /* Space for mobile tab bar */
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Container Constraint - Expands to Full Desktop Canvas */
.app-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .app-container {
    padding: 0 28px;
  }
}
@media (min-width: 1280px) {
  .app-container {
    padding: 0 36px;
  }
}

/* =========================================================
   TOP NAVIGATION BAR
========================================================= */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 20px;
}
.top-nav-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop Navigation Links */
.desktop-nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.desktop-nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.desktop-nav-link:hover, .desktop-nav-link.active {
  color: var(--brand-pink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast);
}
.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Feed Controls Header (Desktop & Mobile Unified) */
.feed-controls-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 22px;
}
@media (min-width: 900px) {
  .feed-controls-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}

/* Search Bar Container */
.search-input-wrap {
  position: relative;
  width: 100%;
}
@media (min-width: 900px) {
  .search-input-wrap {
    max-width: 400px;
    flex-shrink: 0;
  }
}
.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-md);
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.search-input:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px var(--brand-pink-glow);
}
.search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.6;
  pointer-events: none;
}

/* =========================================================
   CATEGORY FILTER CHIPS SCROLLER
========================================================= */
.category-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch;
}
.category-scroller::-webkit-scrollbar {
  display: none;
}
@media (min-width: 900px) {
  .category-scroller {
    padding: 0;
    justify-content: flex-end;
  }
}

.category-chip {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}
.category-chip.active {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--brand-pink-glow);
}
.category-chip:active {
  transform: scale(0.96);
}

/* =========================================================
   FULL-CANVAS SOCIAL EXPLORE GRID (BUZZFUZZY STYLE - ENLARGED)
========================================================= */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

@media (min-width: 580px) {
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 880px) {
  .explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .explore-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1560px) {
  .explore-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px;
  }
}

.quiz-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
@media (max-width: 480px) {
  .quiz-card {
    border-radius: 20px;
  }
}
.quiz-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}
.quiz-card:active {
  transform: scale(0.98);
  box-shadow: var(--card-shadow-active);
}

.card-thumbnail-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px) {
  .card-thumbnail-wrap {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
}
.card-thumb-backdrop {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  object-position: center;
  filter: blur(18px) brightness(0.38) saturate(1.3);
  transform: scale(1.1);
  pointer-events: none;
  z-index: 1;
}
.card-thumb-img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}
.quiz-card:hover .card-thumb-img {
  transform: scale(1.06);
}

/* Card Badges */
.card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: clamp(0.60rem, 1.2vw, 0.68rem);
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}
.card-editorial-badge,
.card-plays-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(0.60rem, 1.2vw, 0.68rem);
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

/* Card Content Details */
.card-content {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
@media (min-width: 768px) {
  .card-content {
    padding: 13px 14px 15px;
  }
}
.card-title {
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  font-weight: 700;
  line-height: 1.34;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  word-break: normal;
  overflow-wrap: break-word;
}
@media (max-width: 480px) {
  .card-title {
    font-size: 0.82rem;
    line-height: 1.3;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.66rem, 1.3vw, 0.74rem);
  color: var(--text-muted);
  font-weight: 600;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: auto;
}
.card-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.card-tag {
  color: var(--brand-pink);
  font-weight: 750;
  font-size: clamp(0.68rem, 1.3vw, 0.76rem);
}

/* =========================================================
   ADSENSE AD UNITS (COMPLIANT & SEAMLESS)
========================================================= */
.ad-slot-container {
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  min-height: 90px;
  overflow: hidden;
}
.ad-label,
.ad-placeholder-text,
.ad-badge {
  display: none !important;
}

/* =========================================================
   FULL-SCREEN INTERACTIVE QUIZ MODAL
========================================================= */
.quiz-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  z-index: 9999;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  padding: 16px 16px 40px;
}

@media (min-width: 768px) {
  .quiz-modal-overlay {
    background: rgba(11, 14, 23, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 36px 20px 80px;
    align-items: center;
  }
}

.modal-header-nav {
  max-width: 640px;
  width: 100%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .modal-header-nav {
    max-width: 740px;
  }
}

.btn-close-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.quiz-runner-box {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .quiz-runner-box {
    max-width: 740px;
    background: var(--modal-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  }
}

/* Quiz Hero Thumbnail */
.quiz-hero-banner {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}
.quiz-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Question Box (Post Interactive Section) */
.question-card {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .question-card {
    padding: 34px 30px;
    border-radius: 28px;
  }
}
@media (max-width: 480px) {
  .question-card {
    border-radius: 22px;
    padding: 20px 16px;
  }
}
.quiz-progress-track {
  width: 100%;
  height: 8px;
  background: var(--option-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 18px;
}
.quiz-progress-fill {
  width: 33%;
  height: 100%;
  background: var(--brand-pink);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}
.question-title {
  font-size: 1.62rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  color: var(--option-text);
  padding: 17px 20px;
  border-radius: var(--radius-md);
  font-size: 1.14rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}
.option-btn:hover {
  border-color: var(--brand-pink);
}
.option-btn:active {
  background: var(--brand-pink);
  color: #fff;
  border-color: var(--brand-pink);
  transform: scale(0.98);
}

/* =========================================================
   3.5-SECOND VIRAL CALCULATION SUSPENSE LOADER
========================================================= */
.computing-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}
.loader-spinner {
  width: 64px;
  height: 64px;
  border: 5px solid var(--option-border);
  border-top-color: var(--brand-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Suspense Computing Loader (Post Interactive Section) */
.computing-box {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 48px 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px) {
  .computing-box {
    border-radius: 22px;
    padding: 36px 16px;
  }
}
.computing-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--option-border);
  border-top-color: var(--brand-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 18px;
}
.computing-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}
.computing-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Result Reveal Card (Post Interactive Section) */
.result-card {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 34px 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: popIn 0.25s ease-out;
}
@media (min-width: 768px) {
  .result-card {
    padding: 42px 34px;
    border-radius: 28px;
  }
}
@media (max-width: 480px) {
  .result-card {
    border-radius: 22px;
    padding: 26px 16px;
  }
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}
.result-tag-pill {
  background: var(--brand-pink);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.result-body {
  margin: 16px 0 28px;
  text-align: center;
  width: 100%;
}
.result-icon-large {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 16px;
}
.result-main-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.result-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-pink);
  margin-bottom: 14px;
}
.result-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-sub);
  max-width: 50ch;
  margin: 0 auto;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.btn-story-export {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 46, 147, 0.35);
  transition: transform var(--transition-fast), filter var(--transition-fast);
  border: none;
  cursor: pointer;
}
.btn-story-export:hover {
  filter: brightness(1.08);
}
.btn-story-export:active {
  transform: scale(0.98);
}
.result-btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
}
.btn-share-result,
.btn-retake-quiz {
  flex: 1;
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  color: var(--text-main);
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-share-result:hover,
.btn-retake-quiz:hover {
  border-color: var(--brand-pink);
}
.btn-share-result:active,
.btn-retake-quiz:active {
  transform: scale(0.98);
}

/* =========================================================
   RESULT SCREEN & 9:16 INSTAGRAM STORY EXPORTER
========================================================= */
.result-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

/* 9:16 Instagram Story Preview Card */
.story-preview-916 {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  background: linear-gradient(150deg, #FF2E93 0%, #7C3AED 55%, #0B0E17 100%);
  border-radius: var(--radius-xl);
  padding: 30px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin: 12px 0 20px;
  position: relative;
  text-align: center;
}
.story-tag-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-block;
  margin: 0 auto;
  text-transform: uppercase;
}
.story-result-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 14px 0 8px;
  letter-spacing: -0.02em;
}
.story-result-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.94;
  max-width: 32ch;
  margin: 0 auto;
}
.story-icon-center {
  font-size: 3.8rem;
}
.story-footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Download / Share Buttons */
.btn-save-story {
  width: 100%;
  background: var(--text-main);
  color: var(--bg-page);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
  transition: transform var(--transition-fast);
}
.btn-save-story:active {
  transform: scale(0.98);
}

.reaction-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}
.reaction-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.reaction-pill:active {
  transform: scale(0.95);
  background: var(--brand-pink);
  color: #fff;
}

/* =========================================================
   BOTTOM MOBILE NAVIGATION BAR (APP TAB BAR)
========================================================= */
.bottom-nav,
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bottom-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bottom-nav-border);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 5000;
  padding: 0 8px;
  box-sizing: border-box;
  margin: 0;
}

.bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
  padding: 6px 12px;
  flex: 1;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--brand-pink);
}

.bottom-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}

.bottom-nav-item .nav-label,
.bottom-nav-item span:not(.nav-icon) {
  font-size: 0.72rem;
  font-weight: 700;
  display: block;
  white-space: nowrap;
}

/* Hide Bottom Nav on Desktop & Tablet Screens (>= 768px) */
@media (min-width: 768px) {
  body {
    padding-bottom: 0 !important;
  }
  .desktop-nav-links,
  .desktop-header-nav {
    display: flex !important;
  }
  .bottom-nav,
  .bottom-nav-bar {
    display: none !important;
  }
}

/* =========================================================
   SITE FOOTER (EDITORIAL CONTENT & ADSENSE TRUST)
========================================================= */
.site-footer,
.app-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 48px 20px 44px;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-inner-expanded {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-columns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 28px;
}
@media (min-width: 600px) {
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .footer-columns-grid {
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 48px;
  }
}
.footer-brand-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.footer-brand-title span {
  color: var(--brand-pink);
}
.footer-col.brand-col .footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-sub);
  margin: 4px 0 0;
  max-width: 38ch;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-header {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin: 0 0 4px;
}
.footer-col-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-nav a {
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col-nav a:hover {
  color: var(--brand-pink);
}
.footer-col-summary {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-sub);
  margin: 0;
}
.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-legal-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-bottom-links a:hover {
  color: var(--brand-pink);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 74px;
  left: 16px;
  right: 16px;
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
}
.cookie-btn {
  background: var(--brand-pink);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.8rem;
}

/* =========================================================
   INTERACTIVE FORTUNE WHEEL STYLES (MOBILE-PERFECT & FLUID)
========================================================= */
.wheel-game-view {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 28px 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  animation: popIn 0.25s ease-out;
}
@media (min-width: 768px) {
  .wheel-game-view {
    padding: 36px 30px;
    border-radius: 28px;
  }
}
@media (max-width: 480px) {
  .wheel-game-view {
    border-radius: 22px;
    padding: 20px 12px;
  }
}

.wheel-header {
  text-align: center;
  margin-bottom: 16px;
  width: 100%;
}
.wheel-headline {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(1.4rem, 4.8vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.wheel-subheadline {
  color: var(--text-muted);
  font-size: clamp(0.82rem, 2.4vw, 0.94rem);
  max-width: 44ch;
  margin: 6px auto 0;
  line-height: 1.45;
}

/* Presets Bar */
.wheel-presets-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
}
.presets-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.wheel-presets-bar {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wheel-presets-bar::-webkit-scrollbar {
  display: none;
}
.preset-chip {
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.preset-chip:hover {
  border-color: var(--brand-pink);
}
.preset-chip.active {
  background: var(--brand-pink);
  color: #fff;
  border-color: var(--brand-pink);
  box-shadow: 0 4px 14px var(--brand-pink-glow);
}

/* Wheel Canvas Stage (Guaranteed Perfect Circle & Responsive) */
.wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 18px;
  margin: 4px 0 20px;
}
.wheel-pointer-arrow {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(2rem, 6.2vw, 2.5rem);
  line-height: 1;
  color: #EF4444;
  z-index: 25;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.1s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
}
.wheel-pointer-arrow.tick {
  transform: translateX(-50%) translateY(3px) scale(1.22);
  color: #FCD34D;
}

.wheel-canvas-container {
  position: relative;
  width: min(320px, calc(100% - 16px));
  max-width: 320px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 0 5px var(--card-border);
  overflow: hidden;
  margin: 0 auto;
  touch-action: none;
}
#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: pointer;
  touch-action: none;
}

/* Center Spin Hub (Scales proportionally to never overlap slice text) */
.wheel-hub-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22.4%;
  height: 22.4%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #E2E8F0 100%);
  border: 3.5px solid #0F172A;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: transform var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
}
.wheel-hub-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.wheel-hub-btn:active {
  transform: translate(-50%, -50%) scale(0.93);
}
.hub-icon {
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  line-height: 1;
}
.hub-text {
  font-size: clamp(0.52rem, 1.6vw, 0.65rem);
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Wheel Action Bar */
.wheel-action-bar {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 22px;
}
.btn-spin-wheel {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  color: #fff;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: clamp(0.92rem, 3.8vw, 1.1rem);
  font-weight: 900;
  font-family: 'Cabinet Grotesk', sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px var(--brand-pink-glow);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.btn-spin-wheel:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(0.6);
  box-shadow: none;
}
.btn-spin-wheel:hover:not(:disabled) {
  filter: brightness(1.07);
}
.btn-spin-wheel:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-sound-toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  color: var(--text-main);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.btn-sound-toggle:active {
  transform: scale(0.92);
}

/* Winner Announcement Card */
.wheel-winner-banner {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #10B981, #047857);
  border-radius: 24px;
  padding: 22px 18px;
  color: #fff;
  text-align: center;
  margin-bottom: 22px;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.38);
  animation: popIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@media (max-width: 480px) {
  .wheel-winner-banner {
    padding: 18px 14px;
    border-radius: 20px;
  }
}
.winner-tag {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22);
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.winner-choice-text {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(1.6rem, 5.5vw, 2.3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  word-break: break-word;
}
.winner-quote {
  font-size: 0.88rem;
  opacity: 0.95;
  margin-bottom: 16px;
}
.winner-btns-row {
  display: flex;
  gap: 8px;
  flex-direction: row;
}
@media (max-width: 480px) {
  .winner-btns-row {
    flex-direction: column;
    gap: 8px;
  }
}
.btn-story-wheel {
  flex: 1;
  background: #FFFFFF;
  color: #0F172A;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}
.btn-story-wheel:active {
  transform: scale(0.97);
}
.btn-remove-winner {
  flex: 1;
  background: rgba(0, 0, 0, 0.26);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform var(--transition-fast);
}
.btn-remove-winner:active {
  transform: scale(0.97);
}

/* Slices & Names Editor */
.wheel-editor-box {
  width: 100%;
  max-width: 480px;
  background: var(--option-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: var(--card-shadow);
}
@media (max-width: 480px) {
  .wheel-editor-box {
    padding: 16px 12px;
    border-radius: 18px;
  }
}
.editor-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.editor-heading {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}
.editor-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.wheel-input-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.wheel-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
.wheel-input:focus {
  border-color: var(--brand-pink);
}
.btn-add-slice {
  background: var(--brand-pink);
  color: #fff;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast);
}
.btn-add-slice:active {
  transform: scale(0.95);
}
.wheel-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 2px 0 12px;
}
.wheel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 100%;
}
.chip-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.wheel-chip span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.chip-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.chip-remove-btn:hover {
  color: #EF4444;
}
.wheel-editor-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
  flex-wrap: wrap;
}
.editor-tool-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.editor-tool-btn:active {
  transform: scale(0.95);
}
.editor-tool-btn.danger {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.35);
}

/* =========================================================
   STANDALONE POST PAGE STYLES
========================================================= */
.post-page-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .post-page-container {
    padding: 32px clamp(16px, 3vw, 40px) 100px;
  }
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.post-breadcrumb a:hover {
  color: var(--brand-pink);
}
.post-breadcrumb .sep {
  opacity: 0.5;
}
.post-breadcrumb .current {
  color: var(--text-main);
  font-weight: 700;
}

.post-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  gap: 32px;
}

@media (min-width: 1080px) {
  .post-layout-grid {
    grid-template-columns: minmax(0, 840px) minmax(280px, 1fr);
    align-items: start;
  }
}

.post-main-column {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.post-standalone-runner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.wheel-game-view,
.wheel-stage,
.wheel-action-bar,
.wheel-editor-box,
.post-sidebar-column,
.sidebar-card,
.editorial-guide-card,
.benchmark-stage-box,
.question-card,
.result-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile-First Full Experience for Fortune Wheel */
@media (max-width: 768px) {
  body.is-wheel-post .post-breadcrumb,
  body.is-wheel-post .post-header-card {
    display: none;
  }
  body.is-wheel-post .post-page-container {
    padding-top: 8px;
  }
  body.is-wheel-post .wheel-game-view {
    margin-top: 0;
    padding: 16px 12px 20px;
    border-radius: 22px;
  }
  body.is-wheel-post .wheel-header {
    margin-bottom: 10px;
  }
  body.is-wheel-post .wheel-headline {
    font-size: 1.45rem;
  }
  body.is-wheel-post .wheel-subheadline {
    font-size: 0.82rem;
    margin-top: 4px;
  }
  body.is-wheel-post .wheel-stage {
    margin: 2px 0 14px;
    padding-top: 14px;
  }
  body.is-wheel-post .wheel-canvas-container {
    width: min(290px, calc(100vw - 44px));
    max-width: 290px;
  }
  body.is-wheel-post .wheel-action-bar {
    margin-bottom: 16px;
  }
}

.post-header-card {
  margin-bottom: 24px;
}

.post-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.post-category-tag {
  background: var(--brand-pink);
  color: #fff;
  font-size: 0.90rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.post-category-tag:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.post-stat-pill {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  color: var(--text-muted);
  font-size: 0.90rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-h1 {
  font-size: clamp(1.92rem, 4vw, 2.88rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.post-lead {
  font-size: clamp(1.2rem, 2vw, 1.38rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.post-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.author-name {
  font-weight: 800;
  color: var(--text-main);
}

.author-date {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.post-share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.share-btn:hover {
  border-color: var(--brand-pink);
  transform: translateY(-1px);
}
.share-btn.whatsapp {
  color: #25D366;
}
.share-btn.twitter {
  color: #1DA1F2;
}

.post-hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  max-height: 500px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--card-shadow);
  border: 2px solid var(--card-border);
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-hero-backdrop {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.post-hero-backdrop img,
#postHeroBackdropImg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: blur(36px) brightness(0.3) saturate(1.4) !important;
  transform: scale(1.15);
  opacity: 0.95;
}

.post-hero-frame {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px 16px;
}

.post-hero-frame img,
.post-hero-visual > img,
#postHeroImg {
  max-height: 460px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .post-hero-visual {
    height: 420px;
    max-height: 420px;
    border-radius: 20px;
  }
  .post-hero-frame {
    padding: 14px 10px;
  }
  .post-hero-frame img,
  .post-hero-visual > img,
  #postHeroImg {
    max-height: 390px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  .post-hero-visual {
    height: 360px;
    max-height: 360px;
    border-radius: 16px;
  }
  .post-hero-frame {
    padding: 10px 8px;
  }
  .post-hero-frame img,
  .post-hero-visual > img,
  #postHeroImg {
    max-height: 335px !important;
    border-radius: 10px !important;
  }
}

.post-standalone-runner {
  margin-bottom: 40px;
}

/* =========================================================
   POST INTERACTIVE RUNNER - DISTINCT WARM STAGE HIGHLIGHT
   Slight yellow/brown warm amber-sand tone so the interactive
   game stage pops clearly against the clean white header & blog.
========================================================= */
:root {
  --runner-interactive-bg: linear-gradient(175deg, #FDF7E7 0%, #F8EFE0 100%);
  --runner-interactive-border: #E8D6B0;
  --runner-interactive-shadow: 0 12px 36px rgba(180, 83, 9, 0.09), 0 2px 8px rgba(180, 83, 9, 0.04);
  --runner-tile-bg: #FFFFFF;
  --runner-tile-border: #E5D5B5;
  --runner-tile-shadow: 0 2px 6px rgba(180, 83, 9, 0.04);
}

body.theme-dark {
  --runner-interactive-bg: linear-gradient(175deg, #1E1810 0%, #16120B 100%);
  --runner-interactive-border: rgba(245, 158, 11, 0.35);
  --runner-interactive-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(245, 158, 11, 0.08);
  --runner-tile-bg: #251F15;
  --runner-tile-border: rgba(245, 158, 11, 0.24);
  --runner-tile-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.post-standalone-runner .question-card,
.post-standalone-runner .computing-box,
.post-standalone-runner .result-card,
.post-standalone-runner .wheel-game-view,
.post-standalone-runner .benchmark-stage-box,
.quiz-modal-overlay .question-card,
.quiz-modal-overlay .computing-box,
.quiz-modal-overlay .result-card {
  background: var(--runner-interactive-bg) !important;
  border: 2px solid var(--runner-interactive-border) !important;
  box-shadow: var(--runner-interactive-shadow) !important;
}

/* Elevated tiles and interactive elements on the warm runner */
.post-standalone-runner .option-btn,
.post-standalone-runner .trivia-option-btn,
.post-standalone-runner .dilemma-btn,
.post-standalone-runner .stat-box,
.post-standalone-runner .wheel-editor-box,
.post-standalone-runner .typing-quote-display,
.post-standalone-runner .memory-display-card,
.post-standalone-runner .trivia-feedback-box,
.post-standalone-runner .trivia-review-item,
.post-standalone-runner .dilemma-card,
.quiz-modal-overlay .option-btn {
  background: var(--runner-tile-bg) !important;
  border: 1.5px solid var(--runner-tile-border) !important;
  box-shadow: var(--runner-tile-shadow);
}

.post-standalone-runner .option-btn:hover,
.post-standalone-runner .trivia-option-btn:hover:not(:disabled),
.post-standalone-runner .dilemma-btn:hover,
.quiz-modal-overlay .option-btn:hover {
  border-color: var(--brand-pink) !important;
  box-shadow: 0 4px 14px rgba(255, 46, 147, 0.16);
  transform: translateY(-1px);
}

.post-standalone-runner .trivia-quote-box {
  background: var(--runner-tile-bg) !important;
  border: 1px solid var(--runner-tile-border) !important;
  border-left: 4px solid var(--brand-pink) !important;
}

.post-standalone-runner .trivia-emoji-display {
  background: var(--runner-tile-bg) !important;
  border: 1.5px solid var(--runner-tile-border) !important;
}

.post-standalone-runner .trivia-clue-box {
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1.5px dashed var(--runner-tile-border) !important;
}

.post-standalone-runner .quiz-progress-track {
  background: rgba(180, 83, 9, 0.12) !important;
}

body.theme-dark .post-standalone-runner .quiz-progress-track {
  background: rgba(245, 158, 11, 0.18) !important;
}

.post-standalone-runner .wheel-input {
  background: var(--runner-interactive-bg) !important;
  border: 1.5px solid var(--runner-tile-border) !important;
}

.post-standalone-runner .preset-chip,
.post-standalone-runner .slice-chip {
  background: var(--runner-tile-bg) !important;
  border: 1px solid var(--runner-tile-border) !important;
}

.post-standalone-runner .score-circle-inner {
  background: var(--runner-tile-bg) !important;
}

.post-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-quiz-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-quiz-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
  transition: transform var(--transition-fast);
}
.sidebar-quiz-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-quiz-item:hover {
  transform: translateX(3px);
}
.sidebar-thumb {
  width: 58px;
  height: 84px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.sidebar-info {
  flex: 1;
  min-width: 0;
}
.sidebar-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.sidebar-item-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.post-related-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--card-border);
}
.post-related-title {
  font-size: 1.62rem;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toast Notification */
.fuzzdrop-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10B981;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 999999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.fuzzdrop-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   AUTHENTIC BENCHMARK ENGINES & LIVE DILEMMAS
========================================================= */
.benchmark-stage-box {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .benchmark-stage-box {
    padding: 34px 28px;
    border-radius: 28px;
  }
}
@media (max-width: 480px) {
  .benchmark-stage-box {
    border-radius: 22px;
    padding: 22px 16px;
  }
}
.benchmark-header {
  text-align: center;
  margin-bottom: 24px;
}
.benchmark-badge {
  display: inline-block;
  background: var(--brand-pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.benchmark-title {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.benchmark-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Reaction Time Pad */
.reaction-pad {
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease, transform 0.1s ease;
  color: #fff;
}
.reaction-pad:active {
  transform: scale(0.99);
}
.reaction-pad.state-blue {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}
.reaction-pad.state-red {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
}
.reaction-pad.state-green {
  background: linear-gradient(135deg, #10B981, #047857);
}
.reaction-pad.state-result {
  background: linear-gradient(135deg, #7C3AED, #4C1D95);
}
.reaction-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.reaction-heading {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.reaction-desc {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 400px;
}
.reaction-stats-bar, .typing-stats-row, .color-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat-box {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-align: center;
}
.stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
}

/* Typing Test */
.typing-quote-display {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 600;
  margin: 18px 0 14px;
  letter-spacing: 0.01em;
}
.typing-char {
  position: relative;
  transition: color 0.05s ease;
}
.typing-char-pending {
  color: var(--text-muted);
  opacity: 0.55;
}
.typing-char-correct {
  color: #10B981;
  font-weight: 700;
}
.typing-char-wrong {
  color: #EF4444;
  text-decoration: underline;
  background: rgba(239, 68, 68, 0.22);
  border-radius: 2px;
}
.typing-char-cursor {
  color: var(--text-main);
  background: rgba(255, 46, 147, 0.2);
  border-bottom: 2px solid var(--brand-pink);
  animation: blink 0.9s infinite;
}
@keyframes blink {
  50% { opacity: 0.4; }
}
.typing-input {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast);
}
.typing-input:focus {
  border-color: var(--brand-pink);
}

/* Number Memory */
.memory-display-card {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
}
.memory-level-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.memory-number-txt {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text-main);
  margin-bottom: 24px;
}
.memory-countdown-bar {
  width: 100%;
  max-width: 320px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}
.memory-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--brand-pink);
  transition: width 2.5s linear;
}
.memory-input-form {
  margin-top: 20px;
  text-align: center;
}

/* Color Perception Matrix */
.color-matrix-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 20px auto 10px;
}
.color-cell {
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.color-cell:active {
  transform: scale(0.92);
}

/* Live Dilemma Card */
.dilemma-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dilemma-btn {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}
.dilemma-btn:hover {
  border-color: #10B981;
}
.dilemma-btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
}
.dilemma-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(16, 185, 129, 0.18);
  border-right: 3px solid #10B981;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.dilemma-pct-label {
  font-size: 1.15rem;
  font-weight: 900;
  color: #10B981;
}

.benchmark-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* =========================================================
   COMPREHENSIVE EDITORIAL BLOG GUIDE & DEEP-DIVE
   AdSense Compliant Long-Form Articles & Reader Value
========================================================= */
.post-editorial-guide {
  width: 100%;
  margin: 36px 0 28px;
}
.editorial-guide-card {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 32px 22px;
  box-shadow: var(--card-shadow);
}
@media (min-width: 768px) {
  .editorial-guide-card {
    padding: 44px 36px;
    border-radius: 32px;
  }
}
@media (max-width: 480px) {
  .editorial-guide-card {
    border-radius: 22px;
    padding: 24px 16px;
  }
}
.editorial-byline-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 22px;
  margin-bottom: 28px;
}
@media (min-width: 680px) {
  .editorial-byline-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.editorial-author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.editorial-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-pink);
  flex-shrink: 0;
}
.editorial-author-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-main);
}
.editorial-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.editorial-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-badge {
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  color: var(--text-sub);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.editorial-main-body {
  width: 100%;
}
.editorial-article-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0 0 14px;
}
.editorial-article-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--brand-pink);
  margin: 0 0 28px;
}
.editorial-subheading {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin: 34px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.editorial-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 18px;
}
.editorial-figure {
  margin: 28px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--card-border);
  background: var(--option-bg);
}
.editorial-image {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.editorial-figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
}
.editorial-archetypes-wrap {
  margin: 32px 0;
  background: var(--option-bg);
  border: 2px solid var(--card-border);
  border-radius: 24px;
  padding: 24px 20px;
}
.archetypes-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 16px;
}
.editorial-archetypes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .editorial-archetypes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.archetype-tier-card {
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-left: 4px solid var(--brand-pink);
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-fast);
}
.archetype-tier-card:hover {
  transform: translateY(-2px);
}
.archetype-tier-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.archetype-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}
.archetype-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-amber);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.archetype-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-sub);
  margin: 0;
}
.editorial-faq-section {
  margin: 36px 0 24px;
}
.editorial-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.editorial-faq-item {
  background: var(--option-bg);
  border: 1.5px solid var(--option-border);
  border-radius: 18px;
  padding: 16px 18px;
  transition: border-color var(--transition-fast);
}
.editorial-faq-item[open] {
  border-color: var(--brand-pink);
}
.editorial-faq-question {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editorial-faq-question::-webkit-details-marker {
  display: none;
}
.editorial-faq-question::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--brand-pink);
  transition: transform 0.2s ease;
}
.editorial-faq-item[open] .editorial-faq-question::after {
  transform: rotate(180deg);
}
.editorial-faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--option-border);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-sub);
}
.editorial-faq-answer p {
  margin: 0;
}




/* =========================================================
   INTERACTIVE MOVIES & POP CULTURE TRIVIA FRAMEWORK
========================================================= */
.trivia-stage-box {
  position: relative;
  overflow: hidden;
}

.trivia-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.trivia-progress-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trivia-live-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #D97706;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

body.theme-dark .trivia-live-score {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.18);
}

.trivia-question-wrap {
  margin-top: 14px;
}

.trivia-format-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--brand-pink);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.trivia-clue-container {
  margin: 14px 0 16px;
}

.trivia-quote-box {
  background: var(--option-bg);
  border-left: 4px solid var(--brand-pink);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.trivia-clue-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1.5px dashed rgba(59, 130, 246, 0.35);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main);
}
.trivia-clue-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
body.theme-dark .trivia-clue-label {
  color: #60A5FA;
}

.trivia-emoji-display {
  background: var(--option-bg);
  border: 2px solid var(--option-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: 0.25em;
  line-height: 1.2;
}

.trivia-picture-box {
  width: 100%;
  max-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}
.trivia-picture-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
body[data-theme="dark"] .trivia-picture-box,
body.theme-dark .trivia-picture-box {
  background: rgba(255, 255, 255, 0.05);
}

.trivia-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.trivia-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--option-bg);
  border: 2px solid var(--option-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: clamp(0.92rem, 2.5vw, 1.02rem);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  user-select: none;
}

.trivia-option-btn:hover:not(:disabled) {
  border-color: var(--brand-pink);
  transform: translateY(-1px);
}

.trivia-option-btn:disabled {
  cursor: default;
}

.trivia-option-btn.correct {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: #10B981 !important;
  color: #065F46 !important;
}
body.theme-dark .trivia-option-btn.correct {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34D399 !important;
}

.trivia-option-btn.wrong {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #EF4444 !important;
  color: #991B1B !important;
}
body.theme-dark .trivia-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #F87171 !important;
}

.trivia-option-btn.dimmed {
  opacity: 0.45;
}

.option-status-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Feedback & Explanation Banner */
.trivia-feedback-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  animation: popIn 0.25s ease-out;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feedback-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.feedback-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.feedback-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.feedback-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.btn-trivia-next {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--brand-pink-glow);
  transition: transform var(--transition-fast);
}
.btn-trivia-next:active {
  transform: scale(0.97);
}

/* Trivia Scorecard Display */
.trivia-score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-pink), var(--brand-orange));
  padding: 5px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px var(--brand-pink-glow);
}
.score-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-num {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}
.score-pct {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Review Accordion */
.trivia-review-wrap {
  width: 100%;
  margin: 20px 0;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}
.btn-toggle-review {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--option-bg);
  border: 1.5px solid var(--option-border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
}
.trivia-review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.trivia-review-item {
  background: var(--option-bg);
  border: 1px solid var(--option-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
}
.review-q-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}
.review-ans-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
}
.review-user-pick {
  color: var(--text-muted);
}
.review-user-pick.was-correct {
  color: #10B981;
  font-weight: 700;
}
.review-user-pick.was-wrong {
  color: #EF4444;
  font-weight: 700;
}
.review-correct-ans {
  color: #10B981;
  font-weight: 700;
}
.review-exp {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}
