/* game.urgentdeck.com, on top of bundle.css and work.css (the work site's look). */
.gm .vid-btn { display: block; }
.gm iframe { background: var(--ink); }
.gm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 18px; }
.gm-bar .vid-note { margin: 0; max-width: 64ch; min-width: 0; }
/* 7 steps: a row of 4, then 3, on a wide screen */
@media (min-width: 861px) { .chapters ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Wide screens: the facts sit beside the title and lead instead of under them, and the questions run in 2 columns */
@media (min-width: 861px) {
  .w-head { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); column-gap: 56px; align-items: end; }
  .w-head > :not(.meta) { grid-column: 1; }
  .w-head .meta { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
  .w-head .meta div { padding-block: 12px; }

}

/* Questions as cards in the Editorial look: paper boxes with an ink rule, a display numeral, 2 columns on wide screens.
   They rise in one after another (game.js) and lift on hover onto a highlighter offset, with a highlighter bar across
   the top. Without the script, or with reduced motion, they simply show. */
.faq-cards { counter-reset: q; gap: 18px; border-top: 0; }
.faq-cards > .faq-card { counter-increment: q; position: relative; overflow: hidden; display: grid; gap: 8px; align-content: start;
  padding: 18px 22px 22px; background: var(--paper-raised); border: 1.5px solid var(--ink); transition: transform 200ms ease, box-shadow 200ms ease; }
.faq-card::before { content: counter(q, decimal-leading-zero); font-family: var(--font-display); font-variation-settings: "opsz" 100; font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink); }
.faq-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--highlighter); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease; }
.faq-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--highlighter); }
.faq-card:hover::after { transform: scaleX(1); }
.faq-cards.arm .faq-card { opacity: 0; transform: translateY(14px); }
.faq-cards.arm.in .faq-card { opacity: 1; transform: none; transition: opacity 500ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--n) * 70ms); }
@media (min-width: 761px) { .faq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .faq-card, .faq-card::after { transition: none; }
  .faq-card:hover { transform: none; }
}

/* From 1024px: 4 columns. Short answers take 1, longer ones 2, a lead question the whole row (spans set per card) */
@media (min-width: 1024px) {
  .faq-cards.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-cards.quad > .s2 { grid-column: span 2; }
  .faq-cards.quad > .s4 { grid-column: 1 / -1; }
  .faq-cards.quad > .s4 dd { max-width: none; }
}
