:root {
  --ink: #172033;
  --muted: #5d6b82;
  --line: #dfe7f2;
  --purple: #6554f4;
  --purple-dark: #4637d7;
  --paper: rgba(255, 255, 255, 0.84);
  --shadow: 0 18px 44px rgba(45, 58, 95, 0.11);
  --soft-shadow: 0 10px 24px rgba(45, 58, 95, 0.08);
  --blue: #e8f3ff;
  --green: #e8f8ee;
  --yellow: #fff2cc;
  --pink: #ffe7f0;
  --purple-soft: #f0edff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.dyk-landing-body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 191, 77, 0.22), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(103, 87, 245, 0.14), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 45%, #fff9f1 100%);
  min-height: 100vh;
}

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

.dyk-landing-body .container {
  width: min(1120px, calc(100% - 44px));
  max-width: none;
  margin: 0 auto;
}

.dyk-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 231, 242, 0.9);
  padding: 0;
}

.dyk-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dyk-brand,
.dyk-landing-body .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.dyk-landing-body .brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4078ff, #6757f5);
  box-shadow: 0 12px 22px rgba(64, 120, 255, 0.22);
}

.dyk-landing-body .logo {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #172033;
}

.dyk-landing-body .tagline {
  display: block;
  margin-top: 7px;
  color: #718096;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.dyk-landing-body .site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.dyk-landing-body .site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #435067;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dyk-landing-body .site-nav a:hover {
  transform: translateY(-1px);
  background: #f2f0ff;
  color: var(--purple-dark);
}

.dyk-landing-body .site-nav a.active {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 12px 22px rgba(101, 84, 244, 0.24);
}

.dyk-landing-body .menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-width: 42px;
  min-height: 42px;
  font-weight: 900;
  color: #2f3a50;
}

.dyk-hero {
  padding: 60px 0 34px;
  border-bottom: 1px solid rgba(223, 231, 242, 0.86);
}

.dyk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #d8d2ff;
  border-radius: 999px;
  background: #f0edff;
  color: var(--purple-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0;
}

.dyk-hero-copy h1 {
  margin: 24px 0 14px;
  max-width: 680px;
  font-size: clamp(2.45rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.072em;
  color: var(--ink);
}

.dyk-hero-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 600;
  margin: 0;
}

.dyk-hero-buttons,
.dyk-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dyk-hero-buttons { margin-top: 22px; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #4b7cff);
  box-shadow: 0 14px 24px rgba(91, 77, 245, 0.24);
}

.btn-secondary {
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d8d2ff;
}

.dyk-stats {
  margin-top: 14px;
}

.dyk-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  color: #344055;
  font-size: 0.82rem;
  font-weight: 900;
}

.dyk-hero-panel {
  padding: 22px;
  border-radius: 30px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(223, 231, 242, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff6b8a; }
.dot-yellow { background: #ffd166; }
.dot-green { background: #70d58b; }

.spotlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #fff8ea);
  border: 1px solid #e8dfca;
}

.spotlight-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #fff;
  font-size: 1.5rem;
}

.spotlight-label,
.spotlight-card h2 {
  margin: 0;
}

.spotlight-label {
  color: #657084;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.spotlight-card h2 {
  margin-top: 3px;
  font-size: 1.25rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dyk-preview-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
}

.dyk-preview-board span {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 1.6rem;
}
.dyk-preview-board span:nth-child(1) { background: var(--blue); }
.dyk-preview-board span:nth-child(2) { background: var(--yellow); }
.dyk-preview-board span:nth-child(3) { background: var(--green); }
.dyk-preview-board span:nth-child(4) { background: var(--purple-soft); }
.dyk-preview-board span:nth-child(5) { background: var(--pink); }
.dyk-preview-board span:nth-child(6) { background: var(--blue); }

.dyk-topic-nav-card {
  width: min(1120px, calc(100% - 44px));
  margin: 34px auto 0;
  padding: 12px;
  display: flex;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.category-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.category-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #35445c;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-btn:hover {
  transform: translateY(-1px);
  color: var(--purple-dark);
  background: #f2f0ff;
  border-color: #d8d2ff;
}

.category-btn.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 12px 22px rgba(101, 84, 244, 0.22);
}

.dyk-section {
  padding: 54px 0 72px;
}

.dyk-section-heading {
  margin-bottom: 24px;
}

.dyk-section-heading h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.dyk-section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.dyk-play-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dyk-side-card,
.didyouknow-share-card {
  border: 1px solid rgba(223, 231, 242, 0.95);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.dyk-side-card {
  border-radius: 24px;
  padding: 22px;
  position: sticky;
  top: 104px;
}

.activity-icon,
.page-emoji {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  font-size: 1.7rem;
  box-shadow: 0 10px 20px rgba(45, 58, 95, 0.07);
}

.dyk-side-card h3 {
  margin: 16px 0 8px;
  font-size: 1.25rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.dyk-side-card p,
.dyk-side-card li {
  color: #4c5a70;
  font-size: 0.94rem;
  line-height: 1.55;
  font-weight: 600;
}

.dyk-side-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.dyk-side-card li { margin-bottom: 8px; }

.didyouknow-share-card {
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.compact-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 18px;
}

.compact-header h2 {
  margin: 0 0 2px;
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.fact-card {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid var(--line);
}

.riddle-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--purple-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question {
  margin: 0 0 18px;
  color: #253044;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-align: left;
}

.choices {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.choice-btn {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #e4ebf5;
  background: #f8fbff;
  color: #344054;
  border-radius: 18px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 850;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.choice-btn:hover {
  transform: translateY(-1px);
  border-color: #cfd9ea;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(45, 58, 95, 0.06);
}

.choice-btn.selected {
  background: #eef2ff;
  border-color: #a8b3ff;
  color: var(--purple-dark);
}

.choice-btn.correct {
  background: #ecfdf3;
  border-color: #6ce9a6;
  color: #067647;
}

.choice-btn.wrong {
  background: #fef3f2;
  border-color: #fda29b;
  color: #b42318;
}

.choice-btn:disabled {
  cursor: default;
  transform: none;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.reveal-btn,
.next-btn,
.share-panel-icons button,
.share-icon-btn {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.reveal-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #ff79a8);
  box-shadow: 0 12px 22px rgba(91, 77, 245, 0.20);
}

.next-btn,
.share-panel-icons button,
.share-icon-btn {
  background: #f1f4f9;
  color: #2f3a50;
}

.reveal-btn:hover,
.next-btn:hover,
.share-panel-icons button:hover,
.share-icon-btn:hover {
  transform: translateY(-2px);
}

.reveal-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.answer-box {
  margin-top: 18px;
  padding: 17px;
  border-radius: 20px;
  background: #effaf2;
  border: 1px solid #c8edcf;
  color: #1f6b2a;
  line-height: 1.6;
}

.answer-line {
  margin: 0 0 8px;
  font-weight: 800;
}

.fact-line {
  margin: 0;
  color: #2d6a3b;
  font-weight: 700;
}

.hidden { display: none !important; }

.share-wrap {
  width: min(1120px, calc(100% - 44px));
  margin: 26px auto 42px;
  text-align: center;
}

.share-panel-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-feedback {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dyk-site-footer {
  border-top: 1px solid rgba(223, 231, 242, 0.9);
  background: rgba(255,255,255,0.62);
}

.dyk-site-footer .footer-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dyk-site-footer h3 {
  margin: 0;
  font-size: 1rem;
}

.dyk-site-footer p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.dyk-site-footer .footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #3f4b5f;
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .dyk-landing-body .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .dyk-landing-body .site-nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 16px;
  }

  .dyk-landing-body .site-nav.open { display: flex; }

  .dyk-header-inner {
    min-height: 78px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .dyk-hero-grid,
  .dyk-play-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dyk-hero-panel { max-width: 520px; }
  .dyk-side-card { position: static; }
}

@media (max-width: 640px) {
  .dyk-landing-body .container,
  .dyk-topic-nav-card,
  .share-wrap {
    width: min(100% - 28px, 1120px);
  }

  .dyk-landing-body .logo { font-size: 1.15rem; }
  .dyk-landing-body .tagline { font-size: 0.63rem; }
  .dyk-landing-body .brand-badge { width: 38px; height: 38px; border-radius: 14px; }

  .dyk-hero { padding-top: 34px; }
  .dyk-hero-copy h1 { font-size: 2.55rem; }

  .dyk-topic-nav-card {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dyk-topic-nav-card::-webkit-scrollbar { display: none; }

  .category-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .category-btn { flex: 0 0 auto; }

  .didyouknow-share-card,
  .fact-card,
  .dyk-side-card,
  .dyk-hero-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .dyk-preview-board span { min-height: 58px; }
  .compact-header { align-items: flex-start; }
  .question { font-size: 1.35rem; }
  .choice-btn { min-height: 50px; font-size: 0.96rem; }
  .reveal-btn, .next-btn { width: 100%; }
  .dyk-site-footer .footer-inner { align-items: flex-start; flex-direction: column; padding: 22px 0; }
}


/* ===== Puzzle Games landing layout match update =====
   Aligns Did You Know hero spacing, hero panel sizing, preview board,
   topic navigation card, and responsive behavior with the Puzzle Games page. */
body.dyk-landing-body {
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 191, 77, 0.22), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(103, 87, 245, 0.14), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 45%, #fff9f1 100%);
}

.dyk-hero {
  padding: 62px 0 28px;
  border-bottom: 0;
}

.dyk-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.dyk-hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(2.05rem, 4.2vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.dyk-hero-lede {
  max-width: 610px;
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 600;
}

.dyk-hero-buttons {
  margin-top: 26px;
  gap: 12px;
}

.dyk-stats {
  margin-top: 20px;
  gap: 12px;
}

.dyk-stats span {
  padding: 9px 12px;
  min-height: auto;
  font-size: 0.9rem;
}

.dyk-hero-panel {
  width: 100%;
  max-width: none;
  padding: 20px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 45px rgba(34, 50, 84, 0.11);
}

.dyk-landing-body .panel-top {
  margin-bottom: 18px;
}

.dyk-landing-body .dot {
  width: 12px;
  height: 12px;
}

.dyk-spotlight-card,
.dyk-landing-body .spotlight-card {
  gap: 15px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef5ff, #fff7ea);
  border: 1px solid rgba(34, 50, 84, 0.08);
}

.dyk-landing-body .spotlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 1.85rem;
  box-shadow: 0 10px 25px rgba(34, 50, 84, 0.08);
}

.dyk-landing-body .spotlight-label {
  font-size: 0.8rem;
}

.dyk-landing-body .spotlight-card h2 {
  margin-top: 3px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.dyk-preview-board {
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f0f6ff, #fff7ea);
  border: 1px solid rgba(34, 50, 84, 0.08);
}

.dyk-preview-board span {
  min-height: 88px;
  border-radius: 22px;
  font-size: 2rem;
  box-shadow: 0 8px 18px rgba(34, 50, 84, 0.07);
}

.dyk-topic-nav-card {
  width: min(1120px, calc(100% - 44px));
  max-width: none;
  margin: 4px auto 36px;
  padding: 14px;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 231, 242, 0.9);
  box-shadow: 0 10px 25px rgba(34, 50, 84, 0.08);
}

.category-bar {
  gap: 10px;
}

.category-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.dyk-section {
  padding: 52px 0 72px;
  background: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(223, 231, 242, 0.85);
  border-bottom: 1px solid rgba(223, 231, 242, 0.85);
}

.dyk-section-heading {
  text-align: center;
  max-width: 700px;
}

.dyk-section-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

@media (max-width: 980px) {
  .dyk-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dyk-landing-body .container,
  .dyk-topic-nav-card,
  .share-wrap {
    width: min(100% - 28px, 1120px);
  }

  .dyk-header-inner {
    min-height: 74px;
  }

  .dyk-hero {
    padding-top: 42px;
  }

  .dyk-hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.75rem);
    line-height: 1.04;
  }

  .dyk-hero-buttons,
  .dyk-stats {
    flex-direction: column;
  }

  .dyk-landing-body .btn,
  .dyk-stats span {
    width: 100%;
  }

  .dyk-preview-board {
    grid-template-columns: 1fr;
  }

  .dyk-preview-board span {
    min-height: 64px;
  }

  .dyk-topic-nav-card {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dyk-topic-nav-card::-webkit-scrollbar {
    display: none;
  }

  .category-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .category-btn {
    flex: 0 0 auto;
  }
}
