/* Daily news quiz */
.nq-app {
  --nq-ink: #19243d;
  --nq-muted: #68748b;
  --nq-line: #e6eaf2;
  --nq-purple: #6846e8;
  --nq-purple-dark: #5034c7;
  --nq-teal: #dff7ef;
  max-width: 1040px;
  margin: 18px auto 42px;
  color: var(--nq-ink);
  font-family: inherit;
}
.nq-app * { box-sizing: border-box; }
.nq-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 245px;
  padding: 42px 52px;
  border-radius: 25px;
  color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.17), transparent 27%), linear-gradient(118deg, #252c59 0%, #5743b9 58%, #8665e9 100%);
  box-shadow: 0 18px 42px rgba(49, 44, 111, .18);
}
.nq-hero-copy { position: relative; z-index: 1; max-width: 670px; }
.nq-eyebrow, .nq-kicker {
  margin: 0 0 12px;
  color: #d8ceff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}
.nq-live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #80efbb; box-shadow: 0 0 0 4px rgba(128,239,187,.17); }
.nq-hero h1 { margin: 0; color: #fff; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.nq-intro { max-width: 570px; margin: 13px 0 20px; color: rgba(255,255,255,.82); font-size: 16px; }
.nq-hero-meta { display: flex; flex-wrap: wrap; gap: 9px 17px; color: rgba(255,255,255,.88); font-size: 12px; }
.nq-hero-art { position: relative; display: grid; place-items: center; flex: 0 0 135px; width: 135px; height: 135px; margin-right: 22px; border: 1px solid rgba(255,255,255,.45); border-radius: 36px; background: rgba(255,255,255,.13); transform: rotate(7deg); }
.nq-hero-art span { color: #fff; font-size: 88px; font-weight: 800; line-height: 1; }
.nq-hero-art i, .nq-hero-art b { position: absolute; color: #ffe28a; font-style: normal; }
.nq-hero-art i { top: 10px; right: 14px; font-size: 24px; }
.nq-hero-art b { bottom: 15px; left: 13px; font-size: 16px; }
.nq-shell { margin-top: 27px; padding: 30px; border: 1px solid var(--nq-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 36px rgba(38,48,74,.06); }
.nq-loading { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--nq-muted); }
.nq-spinner { width: 32px; height: 32px; border: 3px solid #e9e5ff; border-top-color: var(--nq-purple); border-radius: 50%; animation: nq-spin .8s linear infinite; }
@keyframes nq-spin { to { transform: rotate(360deg); } }
.nq-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.nq-section-heading .nq-kicker, .nq-results-card .nq-kicker { color: var(--nq-purple); }
.nq-section-heading h2, .nq-results-card h2 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.nq-question-count { padding: 7px 12px; border-radius: 999px; color: #4e3ab2; background: #f0edff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.nq-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.nq-topic {
  min-height: 92px; padding: 14px 15px; border: 1px solid var(--nq-line); border-radius: 14px;
  background: #fff; color: var(--nq-ink); text-align: left; transition: border-color .18s, background .18s, transform .18s; cursor: pointer;
}
.nq-topic:hover { transform: translateY(-2px); border-color: #beb3ff; }
.nq-topic[aria-pressed="true"] { border: 2px solid var(--nq-purple); padding: 13px 14px; background: #f7f5ff; box-shadow: 0 5px 15px rgba(104,70,232,.1); }
.nq-topic-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nq-topic-icon { font-size: 20px; }
.nq-topic-count { color: var(--nq-muted); font-size: 11px; }
.nq-topic-name { display: block; margin-top: 9px; font-size: 13px; font-weight: 800; }
.nq-start-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 23px; padding: 18px 20px; border-radius: 15px; background: #f8f9fc; }
.nq-start-row strong, .nq-start-row span { display: block; }
.nq-start-row strong { font-size: 15px; }
.nq-start-row span { margin-top: 4px; color: var(--nq-muted); font-size: 12px; }
.nq-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 0 20px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s; }
.nq-button:hover { transform: translateY(-1px); }
.nq-button-primary { color: #fff; background: var(--nq-purple); box-shadow: 0 7px 15px rgba(104,70,232,.19); }
.nq-button-primary:hover { background: var(--nq-purple-dark); }
.nq-button-secondary { color: var(--nq-ink); background: #f0f1f7; }
.nq-footnote, .nq-credit { color: var(--nq-muted); font-size: 11px; }
.nq-footnote { margin: 14px 0 0; }
.nq-game-top, .nq-progress-row, .nq-next-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nq-back, .nq-text-button { padding: 7px 0; border: 0; color: var(--nq-muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.nq-back:hover, .nq-text-button:hover { color: var(--nq-purple); }
.nq-score-pill { padding: 8px 12px; border-radius: 999px; color: #77561a; background: #fff4d6; font-size: 12px; font-weight: 800; }
.nq-progress-row { margin: 23px 0 8px; color: var(--nq-muted); font-size: 12px; font-weight: 700; }
#nq-streak-label { color: #e0714a; }
.nq-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #efeff5; }
.nq-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6f4be9, #a483ff); transition: width .35s ease; }
.nq-question-card { max-width: 750px; margin: 27px auto 0; }
.nq-question-meta { display: flex; align-items: center; gap: 10px; color: var(--nq-muted); font-size: 11px; }
.nq-feed-pill { padding: 5px 9px; border-radius: 99px; color: #4d3db3; background: #efedff; font-weight: 800; }
.nq-question-card h2 { margin: 16px 0 20px; font-size: clamp(21px, 3vw, 29px); font-weight: 800; letter-spacing: -.025em; line-height: 1.28; }
.nq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nq-option { display: flex; align-items: flex-start; gap: 11px; min-height: 67px; padding: 14px; border: 1px solid var(--nq-line); border-radius: 13px; color: var(--nq-ink); background: #fff; text-align: left; font-size: 13px; line-height: 1.45; cursor: pointer; }
.nq-option:hover:not(:disabled) { border-color: #aa9bf6; background: #faf9ff; }
.nq-option:disabled { cursor: default; }
.nq-option-letter { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; margin-top: -1px; border-radius: 8px; color: #626d82; background: #f0f2f7; font-size: 11px; font-weight: 800; }
.nq-option.is-correct { border-color: #55c99a; background: #f0fbf6; }
.nq-option.is-correct .nq-option-letter { color: #fff; background: #27aa77; }
.nq-option.is-wrong { border-color: #f0a095; background: #fff5f4; }
.nq-option.is-wrong .nq-option-letter { color: #fff; background: #dc6b60; }
.nq-feedback { margin-top: 15px; padding: 13px 15px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.nq-feedback.is-right { color: #176d4a; background: #e8f8f0; }
.nq-feedback.is-wrong { color: #9c4238; background: #fff0ee; }
.nq-story { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 13px 15px; border-left: 3px solid #8e7af2; border-radius: 0 10px 10px 0; background: #f7f6ff; }
.nq-story-label { color: #7768c7; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.nq-story a { color: var(--nq-ink); font-size: 12px; font-weight: 700; line-height: 1.4; }
.nq-story a:hover { color: var(--nq-purple); }
.nq-next-row { max-width: 750px; min-height: 52px; margin: 10px auto 0; color: var(--nq-muted); font-size: 11px; }
.nq-results-card { max-width: 560px; margin: 16px auto; padding: 34px 20px; border-radius: 18px; background: linear-gradient(145deg, #f7f5ff, #f3fbf8); text-align: center; }
.nq-results-emoji { margin-bottom: 10px; font-size: 50px; }
.nq-results-card .nq-kicker { margin-bottom: 8px; }
.nq-results-score { margin: 13px 0 20px; }
.nq-results-score strong { display: block; color: var(--nq-purple); font-size: 42px; font-weight: 900; letter-spacing: -.04em; }
.nq-results-score span { color: var(--nq-muted); font-size: 13px; }
.nq-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.nq-credit { margin: 12px 5px; text-align: center; }
.nq-credit a { color: var(--nq-purple); }
.nq-error { padding: 48px 20px; text-align: center; }
.nq-error-icon { font-size: 42px; }
.nq-error h2 { margin: 8px 0; font-size: 22px; }
.nq-error p { color: var(--nq-muted); font-size: 13px; }
.nq-error .nq-button { margin-top: 9px; }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  .nq-app { margin-top: 8px; }
  .nq-hero { min-height: 220px; padding: 30px 24px; border-radius: 18px; }
  .nq-hero-art { flex-basis: 82px; width: 82px; height: 82px; margin-right: 5px; border-radius: 23px; }
  .nq-hero-art span { font-size: 54px; }
  .nq-hero-art i { top: 5px; right: 8px; font-size: 16px; }
  .nq-hero-art b { bottom: 7px; left: 8px; }
  .nq-hero-meta { gap: 7px 12px; font-size: 10px; }
  .nq-shell { margin-top: 17px; padding: 20px 16px; border-radius: 17px; }
  .nq-topics { grid-template-columns: repeat(2, 1fr); }
  .nq-topic { min-height: 78px; padding: 11px; }
  .nq-topic[aria-pressed="true"] { padding: 10px; }
  .nq-topic-name { margin-top: 6px; }
  .nq-start-row { align-items: flex-start; padding: 15px; }
  .nq-start-row .nq-button { align-self: center; padding: 0 13px; }
  .nq-options { grid-template-columns: 1fr; }
  .nq-option { min-height: 57px; }
  .nq-section-heading h2 { font-size: 21px; }
}
@media (max-width: 410px) {
  .nq-hero-art { display: none; }
  .nq-hero { padding: 28px 21px; }
  .nq-start-row { flex-direction: column; }
  .nq-start-row .nq-button { align-self: stretch; }
}
