/* Guides, question tools and quizzes. Builds on site.css tokens (same 4px grid,
   same 16/20/24/32/48 type scale, same purple ramp and rounded font). */

.article {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 32px;
  animation: legal-in .8s var(--ease-out) both;
}
.crumbs { display: flex; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .45); margin-bottom: 24px; }
.crumbs a:hover { color: rgb(var(--ink)); }
.eyebrow {
  display: inline-block;
  font-size: 14px; line-height: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  color: #7923C0; background: rgb(var(--accent) / .1); border-radius: 16px; padding: 4px 12px; margin-bottom: 16px;
}
.article h1 {
  font-size: 48px; line-height: 56px; font-weight: 950; letter-spacing: -.025em;
  margin: 0 0 16px; text-wrap: balance;
}
.article .lede { font-size: 20px; line-height: 30px; font-weight: 600; color: rgb(var(--ink) / .6); margin-bottom: 32px; text-wrap: pretty; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .45); margin-bottom: 32px; }

.tldr {
  border-radius: 24px; padding: 24px; margin-bottom: 32px;
  background: #fff; box-shadow: 0 4px 24px rgb(121 35 192 / .08), inset 0 0 0 1px rgb(var(--accent) / .12);
}
.tldr-label { font-size: 14px; line-height: 20px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; color: #7923C0; margin-bottom: 8px; }
.tldr p:last-child { font-size: 18px; line-height: 28px; font-weight: 600; color: rgb(var(--ink) / .85); }

/* ---------- Prose ---------- */
.prose h2 { font-size: 32px; line-height: 40px; font-weight: 900; letter-spacing: -.02em; margin: 56px 0 16px; text-wrap: balance; }
.prose h3 { font-size: 20px; line-height: 28px; font-weight: 850; margin: 32px 0 8px; }
.prose p, .prose li { font-size: 18px; line-height: 30px; font-weight: 480; color: rgb(var(--ink) / .78); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: rgb(var(--accent)); font-weight: 800; }
.prose strong { color: rgb(var(--ink)); font-weight: 750; }
.prose a, .faq a, .sources a {
  color: #8A2BDB; font-weight: 650; text-decoration: underline;
  text-decoration-color: rgb(var(--accent) / .35); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: rgb(var(--accent)); }
.prose blockquote {
  margin: 24px 0; padding: 16px 24px; border-radius: 20px;
  background: rgb(var(--accent) / .07); font-size: 18px; line-height: 28px; font-weight: 600; color: rgb(var(--ink) / .85);
}
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid rgb(var(--ink) / .06); }
.prose th { font-weight: 850; background: rgb(var(--accent) / .07); color: rgb(var(--ink)); white-space: nowrap; }
.prose td { color: rgb(var(--ink) / .78); font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }

/* Question lists: numbered cards, easy to scan on a phone. */
.prose ol.q-list { list-style: none; padding: 0; counter-reset: q; display: grid; gap: 8px; }
.prose ol.q-list li {
  counter-increment: q; position: relative; margin: 0; padding: 12px 16px 12px 56px; border-radius: 16px;
  background: #fff; box-shadow: 0 1px 0 rgb(var(--ink) / .04), inset 0 0 0 1px rgb(var(--ink) / .05);
  font-weight: 560; color: rgb(var(--ink) / .88);
}
.prose ol.q-list li::before {
  content: counter(q); position: absolute; left: 16px; top: 12px; width: 28px; text-align: right;
  font-weight: 900; color: rgb(var(--accent) / .7);
}

/* ---------- Components ---------- */
.shot { margin: 32px auto; max-width: 320px; }
.shot img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 16px 48px rgb(62 14 110 / .18); }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .5); }

.cta-card {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px 24px;
  margin: 40px 0; padding: 24px; border-radius: 32px;
  background: linear-gradient(160deg, #3A0F63 0%, #22073D 100%); color: #fff;
  box-shadow: 0 16px 48px rgb(40 6 70 / .3);
}
.cta-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 16px rgb(0 0 0 / .3); }
.cta-title { font-size: 20px; line-height: 28px; font-weight: 900; letter-spacing: -.01em; margin: 0; color: #fff; }
.cta-text { font-size: 16px; line-height: 24px; font-weight: 550; color: rgb(255 255 255 / .75); margin: 4px 0 0; }
.cta-proof { font-size: 14px; line-height: 20px; font-weight: 700; color: #E3C2FF; margin: 8px 0 0; }
.cta-card .cta-btn { flex: none; white-space: nowrap; }

.picker {
  margin: 0 0 40px; padding: 24px; border-radius: 32px; background: rgb(var(--accent) / .075);
  display: flex; flex-direction: column; gap: 16px;
}
.picker[hidden], .quiz[hidden] { display: none; }
.picker-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-cats button {
  height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; font-weight: 750;
  background: #fff; color: rgb(var(--ink) / .7); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08);
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-out);
}
.picker-cats button[aria-pressed="true"] { background: rgb(var(--ink)); color: #fff; box-shadow: none; }
.picker-cats button:active { transform: scale(.96); }
.picker-card {
  min-height: 120px; display: grid; place-items: center; text-align: center; padding: 24px; border-radius: 24px;
  background: #fff; box-shadow: 0 8px 32px rgb(121 35 192 / .12);
  font-size: 24px; line-height: 32px; font-weight: 850; letter-spacing: -.01em; color: rgb(var(--ink)); text-wrap: balance;
}
.picker-card.is-new { animation: card-in .45s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.picker-actions { display: flex; gap: 12px; }
.picker-actions .btn-secondary { flex: 0 0 auto; }
.picker-hint { font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .5); text-align: center; }

.quiz { margin: 0 0 40px; padding: 24px; border-radius: 32px; background: rgb(var(--accent) / .075); }
.quiz-progress { height: 8px; border-radius: 4px; background: rgb(var(--ink) / .08); overflow: hidden; margin-bottom: 16px; }
.quiz-progress span { display: block; height: 100%; background: var(--ramp); border-radius: 4px; transition: width .4s var(--ease-out); }
.quiz-step { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .5); margin-bottom: 8px; }
.quiz-q { font-size: 20px; line-height: 28px; font-weight: 850; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-options button {
  text-align: left; padding: 16px 20px; border-radius: 20px; background: #fff;
  font-size: 18px; line-height: 26px; font-weight: 600; color: rgb(var(--ink) / .88);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08), 0 2px 8px rgb(121 35 192 / .06);
  transition: transform .3s var(--ease-out), box-shadow .2s ease;
}
@media (hover: hover) { .quiz-options button:hover { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .6); } }
.quiz-options button:active { transform: scale(.98); }
.quiz-result h3 { font-size: 32px; line-height: 40px; font-weight: 950; margin: 8px 0 12px; }
.quiz-result h3:focus { outline: none; } /* focused by script so keyboard users land on the result; not a control */
.quiz-bars { display: grid; gap: 10px; margin: 20px 0; }
.quiz-bar { display: grid; grid-template-columns: 170px 1fr 44px; gap: 12px; align-items: center; font-size: 15px; font-weight: 700; }
.quiz-bar .track { height: 12px; border-radius: 6px; background: rgb(var(--ink) / .08); overflow: hidden; }
.quiz-bar .fill { height: 100%; background: var(--ramp); border-radius: 6px; }
.quiz-result p { font-size: 17px; line-height: 27px; color: rgb(var(--ink) / .78); margin-bottom: 12px; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.faq { margin-top: 56px; }
.faq h2, .related h2, .sources h2, .hub-group h2 { font-size: 32px; line-height: 40px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 16px; }
.faq details { border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06); margin-bottom: 8px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative;
  font-size: 18px; line-height: 26px; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 14px; font-size: 24px; font-weight: 700; color: rgb(var(--accent));
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 16px; font-size: 17px; line-height: 27px; color: rgb(var(--ink) / .75); }

.related { margin-top: 56px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 24px; background: #fff;
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06), 0 4px 16px rgb(121 35 192 / .06);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
@media (hover: hover) { .related-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(var(--accent) / .3), 0 8px 24px rgb(121 35 192 / .12); } }
.related-eyebrow { font-size: 12px; line-height: 16px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; color: #7923C0; }
.related-title { font-size: 18px; line-height: 24px; font-weight: 850; color: rgb(var(--ink)); }
.related-desc { font-size: 15px; line-height: 22px; font-weight: 500; color: rgb(var(--ink) / .6); }
.hub-group { margin-top: 48px; }

.sources { margin-top: 48px; }
.sources h2 { font-size: 20px; line-height: 28px; }
.sources ol { padding-left: 20px; }
.sources li { font-size: 14px; line-height: 22px; color: rgb(var(--ink) / .55); margin-bottom: 4px; word-break: break-word; }
.sources a { font-weight: 550; }

@media (max-width: 899px) {
  .article { padding-top: calc(var(--nav-h) + 24px); }
  .article h1 { font-size: 32px; line-height: 40px; }
  .prose h2, .faq h2, .related h2, .hub-group h2 { font-size: 24px; line-height: 32px; margin-top: 40px; }
  .prose p, .prose li { font-size: 17px; line-height: 28px; }
  .cta-card { grid-template-columns: 48px 1fr; padding: 20px; border-radius: 28px; }
  .cta-icon { width: 48px; height: 48px; border-radius: 12px; }
  .cta-card .cta-btn { grid-column: 1 / -1; width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .picker-card { font-size: 20px; line-height: 28px; min-height: 140px; }
  .picker-actions { flex-direction: column; }
  .picker-actions .btn { width: 100%; }
  .quiz-bar { grid-template-columns: 120px 1fr 40px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .article, .picker-card.is-new { animation: none; }
}

/* The CTA card sits inside .prose on articles: keep its own colors and sizes. */
.article .cta-card p { margin: 0; }
.article .cta-card .cta-title { font-size: 20px; line-height: 28px; font-weight: 900; color: #fff; }
.article .cta-card .cta-text { margin-top: 4px; font-size: 16px; line-height: 24px; font-weight: 550; color: rgb(255 255 255 / .75); }
.article .cta-card .cta-proof { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 700; color: #E3C2FF; }
.article .cta-card a.btn { color: #fff; text-decoration: none; font-weight: 800; }
.prose a.btn { text-decoration: none; }
.quiz-bar .track, .quiz-bar .fill { display: block; }
.quiz-bar > span:first-child { min-width: 0; overflow-wrap: anywhere; } /* long (translated) type names wrap inside their column */
.prose td:first-child { font-weight: 750; color: rgb(var(--ink)); }

/* Real gameplay clips (muted, loop, play only while on screen). */
.clip { margin: 32px auto; max-width: 340px; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1560; border-radius: 28px; background: #22073D; box-shadow: 0 16px 48px rgb(62 14 110 / .22); }
.clip figcaption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .5); }
.shot img { aspect-ratio: 720 / 1558; object-fit: cover; }
.shots-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 560px; margin: 32px auto; }
.shots-row .shot { margin: 0; }
.provenance { margin-top: 40px; padding: 16px 20px; border-radius: 20px; background: rgb(var(--ink) / .04); font-size: 14px; line-height: 22px; font-weight: 500; color: rgb(var(--ink) / .6); }
.provenance strong { color: rgb(var(--ink) / .8); font-weight: 750; }

/* Real cards quoted from the live app. */
.app-deck { margin: 40px 0; padding: 28px; border-radius: 32px; background: linear-gradient(160deg, #3A0F63 0%, #22073D 100%); color: #fff; box-shadow: 0 16px 48px rgb(40 6 70 / .25); }
.prose .app-deck p, .prose .app-deck li { color: inherit; }
.app-deck-badge { display: inline-block; font-size: 12px !important; line-height: 16px !important; font-weight: 850 !important; letter-spacing: .06em; text-transform: uppercase; color: #E3C2FF !important; background: rgb(255 255 255 / .1); border-radius: 12px; padding: 4px 10px; margin: 0 0 12px !important; }
.prose .app-deck h3 { color: #fff; margin: 0 0 8px; font-size: 24px; line-height: 32px; }
.prose .app-deck .app-deck-intro { font-size: 16px; line-height: 24px; color: rgb(255 255 255 / .7); margin-bottom: 20px; }
.prose .app-deck .app-deck-intro strong { color: #fff; }
.prose ul.app-deck-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prose ul.app-deck-list li { margin: 0; padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / .08); font-size: 17px; line-height: 26px; font-weight: 650; color: #fff; }
.app-deck-tag { display: block; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #CB8CFF; margin-bottom: 4px; }
.author-photo { width: 120px; height: 120px; border-radius: 60px; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 8px 24px rgb(121 35 192 / .24); margin-bottom: 24px; }
.meta-line a { color: #8A2BDB; font-weight: 750; }
.provenance a { color: #8A2BDB; font-weight: 700; }

/* Data report */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 32px 0; }
.stat { padding: 24px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px rgb(var(--accent) / .14), 0 8px 24px rgb(121 35 192 / .08); }
.prose .stat .stat-num { font-size: 40px; line-height: 44px; font-weight: 950; letter-spacing: -.03em; color: #7923C0; margin: 0 0 6px; }
.prose .stat .stat-label { font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .7); margin: 0; }
td[data-bar] { position: relative; min-width: 160px; }
.bar { display: block; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--ramp); }
@media (max-width: 899px) { .stat-grid { grid-template-columns: 1fr 1fr; } .prose .stat .stat-num { font-size: 32px; line-height: 36px; } }

.clip-fallback { max-width: 760px; margin: 16px auto 0; font-size: 16px; line-height: 24px; color: rgb(var(--ink) / .68); text-align: center; }
