/* ===== Design Tokens ===== */
:root {
  --t-main-color: #4F46E5;
  --t-main-color-hover: #4338CA;
  --t-text-color: #1F2937;
  --t-light-bg: #F9FAFB;
  --t-border-color: #E5E7EB;
  --t-correct-color: #10B981;
  --t-incorrect-color: #EF4444;
  --t-card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --t-quiz-accent: #4F46E5;
  --t-article-accent: #0D9488;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--t-text-color);
  background: var(--t-light-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--t-main-color); text-decoration: none; }
a:hover { color: var(--t-main-color-hover); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; }

/* ===== Header ===== */
header.top-header {
  background: #fff;
  border-bottom: 1px solid var(--t-border-color);
  padding: 0 24px;
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
header.top-header > .menu-items-column,
header.top-header > .mobile-menu-icon,
header.top-header > .mobile-menu-items-container {
  display: none !important;
}

.site-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--t-main-color);
  letter-spacing: -0.5px;
}

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--t-text-color);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--t-main-color); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t-text-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--t-border-color);
  padding: 16px 24px;
  z-index: 99;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: var(--t-text-color);
  border-bottom: 1px solid var(--t-border-color);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }
}

/* ===== Override ad-stack base resets ===== */
main { padding-top: 0; }

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 32px;
}
.content-wrapper { flex: 1; min-width: 0; padding: 0; }
.right-sidebar { width: 300px; flex-shrink: 0; }

@media (max-width: 1024px) {
  .right-sidebar { display: none; }
}

/* ===== Homepage Hero ===== */
.hero-section {
  padding: 40px 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 400px;
}
.hero-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.18);
  color: #fff;
}
.hero-card--featured { grid-row: 1 / 3; }
.hero-card img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 1;
}
.hero-card > * { position: relative; z-index: 2; }
.hero-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}
.badge--quiz { background: var(--t-quiz-accent); }
.badge--read { background: var(--t-article-accent); }
.hero-card h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.hero-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.hero-card p { font-size: 0.85rem; opacity: 0.9; margin-top: 6px; }

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
  .hero-card--featured { grid-row: auto; min-height: 280px; }
  .hero-card { min-height: 200px; }
}

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--t-text-color);
}
.section-header .see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t-main-color);
}

/* ===== Content Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.content-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--t-card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: var(--t-text-color);
  display: flex;
  flex-direction: column;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.15);
  color: var(--t-text-color);
}

.card-image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
}
.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-image .gradient-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image .gradient-placeholder .card-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}
.card-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 6px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-image .badge svg { width: 14px; height: 14px; fill: #fff; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.card-body p { font-size: 0.83rem; color: #6B7280; line-height: 1.5; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--t-border-color);
  font-size: 0.75rem;
  color: #9CA3AF;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Footer ===== */
footer.bottom-footer {
  background: #fff;
  border-top: 1px solid var(--t-border-color);
  padding: 32px 24px;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-container .links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-container .links a { font-size: 0.85rem; color: #6B7280; font-weight: 600; }
.footer-container .links a:hover { color: var(--t-main-color); }
.footer-container .copyright { font-size: 0.8rem; color: #9CA3AF; }

/* ===== Article Header & Content ===== */
.article-header { padding: 32px 0 16px; }
.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.gallery-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.article-header p { color: #6B7280; font-size: 0.9rem; }

.article-content { padding-bottom: 40px; }
.article-content .article-intro { margin-bottom: 32px; }
.article-content .article-intro p { font-size: 1.05rem; line-height: 1.7; color: #374151; }

.inner-page {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--t-border-color);
}
.inner-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--t-text-color);
}
.inner-page p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 12px;
}
.inner-page p:last-child { margin-bottom: 0; }
.inner-page .section-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  object-fit: cover;
  max-height: 420px;
}

/* ===== Ad Containers ===== */
.ko-ads-container {
  margin: 24px 0;
  text-align: center;
}
.ko-ads-container .ads-top {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9CA3AF;
  margin-bottom: 4px;
}

/* ===== Trivia Styles ===== */

/* Stats Section */
.trivia-stats-section {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: var(--t-card-shadow);
}
.trivia-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: #fff;
}
.trivia-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: block;
}
.trivia-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  margin-top: 0.5rem;
  font-weight: 500;
}
@media (max-width: 600px) {
  .trivia-stats-section { flex-direction: column; gap: 16px; }
  .trivia-stat-item { border-bottom: 1px dashed rgba(255,255,255,0.3); padding-bottom: 16px; }
  .trivia-stat-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* Question Container */
.trivia-question-container { margin-bottom: 16px; }
.trivia-question-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t-main-color);
  margin-bottom: 12px;
}
.trivia-question-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
}
.trivia-question-wrapper { margin-bottom: 20px; }
.trivia-question-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--t-text-color);
}

/* Scroll to Answer Button */
.scroll-to-answer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 2px dashed var(--t-main-color);
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.05);
  color: var(--t-main-color);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  animation: pulseGlow 2.5s infinite;
}
.scroll-to-answer-btn:hover {
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}
.scroll-to-answer-btn svg {
  animation: bounceArrow 1.5s infinite;
}
.scroll-to-answer-btn.hidden { display: none; }

/* Players Stats (below Next button) */
.trivia-players-section {
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  animation: fadeInUp 0.5s ease;
}
.trivia-players-section .trivia-players-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.trivia-players-section .trivia-players-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}
.trivia-full-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  animation: fadeInUp 0.5s ease;
}
.trivia-full-stats .trivia-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
  color: #fff;
}
.trivia-full-stats .trivia-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.trivia-full-stats .trivia-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  margin-top: 4px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .trivia-full-stats { flex-direction: column; gap: 12px; }
  .trivia-full-stats .trivia-stat-item { border-bottom: 1px dashed rgba(255,255,255,0.3); padding-bottom: 12px; }
  .trivia-full-stats .trivia-stat-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* Answer Cards */
.trivia-answers-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trivia-answer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--t-border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
}
.trivia-answer:hover {
  border-color: var(--t-main-color);
  background: #F0F0FF;
  transform: translateX(4px);
}

.trivia-answer .trivia-answer-icon {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0;
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: inherit !important;
}
.trivia-answer .trivia-answer-index {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  background: var(--t-light-bg);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700;
  font-size: 0.9rem !important;
  color: var(--t-main-color);
  border: 2px solid var(--t-border-color);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.trivia-answer .trivia-answer-correct-icon,
.trivia-answer .trivia-answer-incorrect-icon {
  display: none !important;
  position: absolute !important;
  inset: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  -webkit-mask: none !important;
  mask: none !important;
}
.trivia-answer .trivia-answer-correct-icon {
  background: var(--t-correct-color) !important;
}
.trivia-answer .trivia-answer-correct-icon::after {
  content: '' !important;
  width: 10px;
  height: 16px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.trivia-answer .trivia-answer-incorrect-icon {
  background: var(--t-incorrect-color) !important;
}
.trivia-answer .trivia-answer-incorrect-icon::after {
  content: '\00D7' !important;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.trivia-answer .trivia-answer-text {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--t-text-color);
  line-height: 1.4 !important;
}

/* Answered States */
.trivia-answers-wrapper.answered .trivia-answer {
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
  transform: none;
}
.trivia-answers-wrapper.answered .trivia-answer:hover {
  border-color: var(--t-border-color);
  background: #fff;
  transform: none;
}

.trivia-answers-wrapper.answered .trivia-answer.correct {
  opacity: 1;
  border-color: var(--t-correct-color) !important;
  background: #ECFDF5 !important;
}
.trivia-answers-wrapper.answered .trivia-answer.correct .trivia-answer-index { display: none !important; }
.trivia-answers-wrapper.answered .trivia-answer.correct .trivia-answer-correct-icon { display: flex !important; }

.trivia-answers-wrapper.answered .trivia-answer.incorrect {
  opacity: 1;
  border-color: var(--t-incorrect-color) !important;
  background: #FEF2F2 !important;
}
.trivia-answers-wrapper.answered .trivia-answer.incorrect .trivia-answer-index { display: none !important; }
.trivia-answers-wrapper.answered .trivia-answer.incorrect .trivia-answer-incorrect-icon { display: flex !important; }

.trivia-answers-wrapper.answered .trivia-answer.selected-wrong {
  opacity: 1;
  border-color: var(--t-incorrect-color) !important;
  background: #FEF2F2 !important;
}
.trivia-answers-wrapper.answered .trivia-answer.selected-wrong .trivia-answer-index { display: none !important; }
.trivia-answers-wrapper.answered .trivia-answer.selected-wrong .trivia-answer-incorrect-icon { display: flex !important; }

/* Answer Info / Explanation */
.trivia-answers-info {
  margin-top: 16px;
  padding: 16px 20px !important;
  background: #EEF2FF;
  border-left: 4px solid var(--t-main-color);
  border-radius: 0 8px 8px 0;
}
.trivia-answers-info-title {
  font-size: 0.9rem !important;
  font-weight: 700;
  color: var(--t-main-color);
  margin-bottom: 6px;
  text-align: left !important;
}
.trivia-answers-info-title::after { content: none !important; }
.trivia-answers-info-text {
  font-size: 0.88rem !important;
  line-height: 1.55;
  color: #374151;
  text-align: left !important;
}

/* Navigation Buttons */
.trivia-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}

.trivia-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.primary-button {
  background: var(--t-main-color);
  color: #fff;
}
.primary-button:hover:not(:disabled) {
  background: var(--t-main-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(79 70 229 / 0.35);
}
.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.primary-button:not(:disabled) {
  animation: pulseGlow 2.5s infinite;
}

.scroll-button {
  background: var(--t-main-color);
  color: #fff;
  animation: colorShift 3s infinite alternate;
}

/* Result Page */
.trivia-result-page {
  text-align: center;
  padding: 32px 0;
}
.trivia-result-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--t-text-color);
  position: relative;
  z-index: 1;
}

.trivia-result-score {
  margin-bottom: 24px;
}
.trivia-score-summary {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}
.trivia-score-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--t-main-color);
}
.trivia-score-total {
  font-weight: 800;
  color: var(--t-text-color);
}

.trivia-result-score-tier h2 {
  font-size: 1.5rem;
  margin-top: 12px;
}

.trivia-result-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Confetti */
.confetti {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: -1;
  background-size: 230%;
  background-position: center center;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 1080 720%22 xmlns=%22http:%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill=%22%23fff%22 d=%22M0 0h1080v720H0z%22%2F%3E%3Crect x=%221002%22 y=%22687%22 width=%223.6%22 height=%228.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.84114 .9599 -.70194 .38782 884.134 -271.372)%22%2F%3E%3Crect x=%2260%22 y=%22465%22 width=%225.6%22 height=%226.6%22 fill=%22%239CFFA5%22 rx=%220%22 transform=%22matrix(.0143 .96886 -1.03679 -.3148 614.961 567.084)%22%2F%3E%3Crect x=%22722%22 y=%22263%22 width=%224.6%22 height=%229.6%22 fill=%22%23FFF781%22 rx=%220%22 transform=%22matrix(-.42262 .92846 -.9063 -.37512 1273.112 -342.183)%22%2F%3E%3Crect x=%22114%22 y=%22416%22 width=%225.6%22 height=%2210.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(-.92505 .37552 -.37338 -.92945 352.119 777.183)%22%2F%3E%3Crect x=%221065%22 y=%22279%22 width=%225.6%22 height=%225.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.22388 .96823 -.96437 .29602 1110.356 -1004.611)%22%2F%3E%3Crect x=%22389%22 y=%2285%22 width=%225.6%22 height=%2214.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.58702 .7891 -.80865 .6165 226.571 -253.236)%22%2F%3E%3Crect x=%22158%22 y=%22367%22 width=%225.6%22 height=%229.6%22 fill=%22%23FFF781%22 rx=%220%22 transform=%22matrix(.79854 .78143 -.63307 .63279 383.082 -6.024)%22%2F%3E%3Crect x=%22404%22 y=%22643%22 width=%225.6%22 height=%226.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.61307 .80169 -.78539 .60411 617.317 -34.674)%22%2F%3E%3Crect x=%22541%22 y=%22389%22 width=%225.6%22 height=%2215.6%22 fill=%22%23B8CAFF%22 rx=%220%22 transform=%22matrix(-.54322 .86933 -.83668 -.50191 1183.392 75.638)%22%2F%3E%3Crect x=%22860%22 y=%22450%22 width=%225.6%22 height=%225.6%22 fill=%22%23B8CAFF%22 rx=%220%22 transform=%22matrix(.68948 .89099 -.74016 .49388 635.58 -371.865)%22%2F%3E%3Crect x=%22517%22 y=%22402%22 width=%224.6%22 height=%2210.6%22 fill=%22%239CFFA5%22 rx=%220%22 transform=%22matrix(.05759 1.0069 -.99516 -.03516 967.745 -165.022)%22%2F%3E%3Crect x=%22197%22 y=%22567%22 width=%225.6%22 height=%226.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.86645 .82028 -.61241 .57436 553.501 89.32)%22%2F%3E%3Crect x=%22770%22 y=%22527%22 width=%224.6%22 height=%226.6%22 fill=%22%23B8CAFF%22 rx=%220%22 transform=%22matrix(.79677 .9601 -.7672 .3306 780.357 -250.324)%22%2F%3E%3Crect x=%22893%22 y=%22523%22 width=%223.6%22 height=%228.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(-.65939 .68241 -.75828 -.7318 1923.718 333.8)%22%2F%3E%3Crect x=%22991%22 y=%22176%22 width=%225.6%22 height=%2210.6%22 fill=%22%239CFFA5%22 rx=%220%22 transform=%22matrix(-.94167 .13936 -.47515 -.99163 2082.694 274.665)%22%2F%3E%3Crect x=%2238%22 y=%22109%22 width=%225.6%22 height=%2214.6%22 fill=%22%23FFF781%22 rx=%220%22 transform=%22matrix(.95828 .81648 -.50266 .61526 91.32 20.105)%22%2F%3E%3Crect x=%22522%22 y=%2236%22 width=%225.6%22 height=%229.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(-.76396 .63086 -.64173 -.77904 952.267 -295.186)%22%2F%3E%3Crect x=%22968%22 y=%22427%22 width=%225.6%22 height=%2211.6%22 fill=%22%239CFFA5%22 rx=%220%22 transform=%22matrix(1.03217 .22998 .12255 .99614 5.56 -15.24)%22%2F%3E%3Crect x=%22197%22 y=%22639%22 width=%225.6%22 height=%2211.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.9994 .05234 -.03488 .99878 45.006 -13.16)%22%2F%3E%3Crect x=%22231%22 y=%22625%22 width=%224.6%22 height=%229.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.0524 1 -1.00183 -.03492 885.46 426.64)%22%2F%3E%3Crect x=%22788%22 y=%22575%22 width=%224.6%22 height=%224.6%22 fill=%22%23B8CAFF%22 rx=%220%22 transform=%22matrix(-.89719 .34966 -.3949 -.96069 1622.584 1023.55)%22%2F%3E%3Crect x=%22231%22 y=%22197%22 width=%223.6%22 height=%225.6%22 fill=%22%23E7E6E1%22 rx=%220%22 transform=%22matrix(.10999 1.00921 -.98703 .03524 439.918 -74.904)%22%2F%3E%3C%2Fsvg%3E");
}
.trivia-result-title {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Progress Bar ===== */
.trivia-progress {
  width: 100%;
  height: 6px;
  background: var(--t-border-color);
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}
.trivia-progress-bar {
  height: 100%;
  background: var(--t-main-color);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ===== Animations ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(79 70 229 / 0.4); }
  50% { box-shadow: 0 0 0 8px rgb(79 70 229 / 0); }
}

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

@keyframes bounceArrowRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@keyframes arrowGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgb(79 70 229 / 0.3)); }
  50% { filter: drop-shadow(0 0 6px rgb(79 70 229 / 0.6)); }
}

@keyframes colorShift {
  0% { background: var(--t-main-color); }
  50% { background: #6366F1; }
  100% { background: var(--t-main-color-hover); }
}

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

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

.trivia-button svg {
  animation: bounceArrowRight 1.5s infinite;
}

/* ===== Legal Page ===== */
.legal-content {
  max-width: 800px;
  padding: 32px 0 64px;
}
.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 8px 0 16px 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #374151;
}

/* ===== Post Page ===== */
.post-page { padding-bottom: 40px; }

/* ===== Responsive Tweaks ===== */
@media (max-width: 600px) {
  .article-title, .gallery-title { font-size: 1.5rem; }
  .trivia-question-title h2 { font-size: 1.1rem; }
  .trivia-answer { padding: 12px 14px; }
  .trivia-stats-section { gap: 16px; }
  .trivia-stat-number { font-size: 1.2rem; }
  .hero-section { padding: 24px 0 20px; }
  .section-header { padding: 24px 24px 12px; }
}

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
