:root {
  color-scheme: light;
  --ink: #18353a;
  --ink-soft: #536a6a;
  --muted: #7d8b84;
  --paper: #f4f5ef;
  --white: #fffefa;
  --line: #dfe6de;
  --mint: #c8f16b;
  --mint-deep: #a9db4e;
  --coral: #f78e69;
  --gold: #f6bf76;
  --shadow: 0 24px 70px rgba(24, 53, 58, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #f28b69; outline-offset: 4px; }
[hidden] { display: none !important; }

.page-shell { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 0 clamp(22px, 6.2vw, 94px); }
.page-shell::before { position: absolute; z-index: 0; top: 118px; left: -88px; width: 228px; height: 228px; border: 1px solid rgba(24, 53, 58, .055); border-radius: 50%; content: ""; pointer-events: none; }
.page-shell::after { position: absolute; z-index: 0; top: 145px; left: -59px; width: 168px; height: 168px; border: 1px solid rgba(24, 53, 58, .055); border-radius: 50%; content: ""; pointer-events: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; width: min(100%, 1320px); margin-inline: auto; }
.site-header { display: flex; height: 96px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(24, 53, 58, .11); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--mint); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 15px; font-weight: 820; letter-spacing: -.035em; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.header-note { display: flex; align-items: center; gap: 9px; color: #6d7d76; font-size: 12px; font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #87bd3b; box-shadow: 0 0 0 4px rgba(135, 189, 59, .13); }

main { display: flex; flex: 1; align-items: center; }
.screen { width: 100%; animation: screen-in .42s cubic-bezier(.2,.75,.25,1) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.welcome-screen { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(400px, .97fr); align-items: center; gap: clamp(30px, 7vw, 100px); padding: 54px 0 62px; }
.welcome-copy { position: relative; z-index: 2; padding: 8px 0 10px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #697d65; font-size: 10px; font-weight: 820; letter-spacing: .17em; }
.eyebrow-line { width: 24px; height: 2px; background: var(--coral); }
h1, h2, p { margin-top: 0; }
.welcome-copy h1 { max-width: 680px; margin: 0; font-size: clamp(53px, 6vw, 87px); font-weight: 790; letter-spacing: -.075em; line-height: .99; }
.welcome-copy h1 span { color: #6a8d43; }
.welcome-description { max-width: 424px; margin: 25px 0 27px; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 22px; border: 0; border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 760; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { padding: 0 20px 0 23px; color: var(--ink); background: var(--mint); box-shadow: 0 8px 20px rgba(111, 152, 50, .12); }
.button-primary:hover:not(:disabled) { background: #d6fa8a; box-shadow: 0 12px 25px rgba(111, 152, 50, .2); }
.button-arrow { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: rgba(24, 53, 58, .09); font-size: 19px; line-height: 1; }
.start-button { min-width: 174px; }
.microcopy { display: flex; align-items: center; gap: 8px; margin: 19px 0 0; color: #78857f; font-size: 11px; font-weight: 560; }
.microcopy span { color: #e8a257; font-size: 15px; }

.welcome-art { position: relative; display: grid; min-height: 470px; place-items: center; isolation: isolate; }
.welcome-art::before { position: absolute; z-index: -2; top: 45px; right: 7%; width: min(33vw, 380px); aspect-ratio: 1; border-radius: 50%; background: #dcecb9; content: ""; }
.welcome-art::after { position: absolute; z-index: -1; top: 68px; right: 12%; width: min(27vw, 306px); aspect-ratio: 1; border: 1px solid rgba(24, 53, 58, .14); border-radius: 50%; content: ""; }
.orbit { position: absolute; z-index: -1; border: 1px dashed rgba(24, 53, 58, .16); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { top: 63px; right: 1%; width: 110%; height: 72%; }
.orbit-two { top: 104px; right: 6%; width: 96%; height: 64%; transform: rotate(25deg); }
.quiz-preview-card { position: relative; width: min(81%, 390px); min-height: 315px; padding: 25px 27px 21px; border: 1px solid rgba(255,255,255,.82); border-radius: 22px; background: var(--white); box-shadow: 0 28px 75px rgba(37, 71, 59, .16); transform: rotate(-4deg); }
.preview-top, .preview-bottom { display: flex; align-items: center; justify-content: space-between; }
.preview-kicker { color: #9ba69b; font-size: 9px; font-weight: 820; letter-spacing: .14em; }
.preview-badge { padding: 7px 10px; border-radius: 8px; color: #628238; background: #f0f7de; font-size: 10px; font-weight: 760; }
.preview-question { margin: 25px 0 17px; font-size: 32px; font-weight: 760; letter-spacing: -.06em; line-height: 1.08; }
.preview-options { display: grid; gap: 8px; }
.preview-options i { display: block; height: 21px; border: 1px solid #e8ece3; border-radius: 7px; background: linear-gradient(90deg, #f9faf6, #fffefa); }
.preview-options i:nth-child(2) { width: 83%; }
.preview-options i:nth-child(3) { width: 67%; }
.preview-bottom { margin-top: 22px; padding-top: 15px; border-top: 1px solid #edf0e9; color: #8a9790; font-size: 10px; }
.preview-bottom b { color: var(--ink); font-size: 13px; }
.floating-note { position: absolute; display: flex; min-height: 62px; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 14px; background: rgba(255,254,250,.95); box-shadow: 0 13px 34px rgba(24,53,58,.12); }
.floating-note > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.floating-note b { font-size: 11px; }
.floating-note small { color: #8b9990; font-size: 9px; }
.note-top { top: 69px; left: 2%; transform: rotate(-5deg); }
.note-bottom { right: 0; bottom: 62px; transform: rotate(4deg); }
.note-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; font-size: 16px; }
.note-sun { color: #c27d32; background: #fff0d7; }
.note-check { color: #52713c; background: #e3f4c5; }
.art-spark { position: absolute; color: #ee9a6d; }
.spark-one { top: 26px; right: 18%; font-size: 30px; }
.spark-two { right: 3%; bottom: 88px; color: #668e47; font-size: 23px; }
.art-sticker { position: absolute; right: 9%; top: 64%; display: flex; width: 77px; height: 77px; align-items: center; justify-content: center; flex-direction: column; border: 2px solid var(--paper); border-radius: 50%; color: var(--white); background: var(--coral); box-shadow: 0 9px 16px rgba(199,97,66,.22); text-align: center; transform: rotate(11deg); }
.art-sticker span { font-size: 7px; font-weight: 850; letter-spacing: .06em; line-height: 1.4; }
.art-sticker b { font-size: 15px; line-height: 1; }

.quiz-screen { max-width: 900px; margin: 0 auto; padding: 42px 0 38px; }
.quiz-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.quiz-heading .eyebrow { margin-bottom: 8px; }
.quiz-subtitle { margin: 0; color: #788680; font-size: 13px; }
.quiz-actions { display: flex; align-items: center; gap: 22px; }
.score-pill { display: flex; min-width: 104px; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid #e3e9dc; border-radius: 13px; background: rgba(255,254,250,.8); }
.score-star { color: #db9b3a; font-size: 20px; }
.score-pill > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.score-pill b { font-size: 15px; line-height: 1; }
.score-pill small { color: #8b9990; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.text-button { padding: 8px 0; border: 0; color: #64766e; background: transparent; cursor: pointer; font-size: 12px; font-weight: 680; }
.text-button span { padding-left: 4px; font-size: 16px; }
.text-button:hover { color: var(--ink); }
.progress-card { margin-bottom: 18px; padding: 16px 19px 17px; border: 1px solid #e7ece3; border-radius: 14px; background: rgba(255,254,250,.76); }
.progress-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: #6e8075; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.progress-copy span:last-child { color: #98a399; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e8eee1; }
.progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mint-deep); transition: width .35s ease; }
.question-card { padding: clamp(23px, 4vw, 40px) clamp(21px, 5vw, 49px) 26px; border: 1px solid rgba(226, 232, 222, .9); border-radius: 22px; background: var(--white); box-shadow: 0 18px 55px rgba(24,53,58,.065); }
.question-meta { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.question-number { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; color: #57753b; background: #eef6dc; font-size: 11px; font-weight: 820; }
.question-category { color: #9aa69a; font-size: 9px; font-weight: 820; letter-spacing: .14em; }
.question-card h2 { max-width: 710px; margin-bottom: 8px; font-size: clamp(25px, 3.2vw, 36px); font-weight: 750; letter-spacing: -.055em; line-height: 1.18; }
.answer-prompt { margin: 0 0 17px; color: #98a39c; font-size: 11px; }
.answer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.answer-option { display: flex; min-height: 58px; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid #e4e9e1; border-radius: 13px; background: #fff; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.answer-option:hover:not(:disabled) { border-color: #b6d886; background: #fbfdf5; box-shadow: 0 5px 14px rgba(46,77,52,.06); transform: translateY(-1px); }
.answer-option:disabled { cursor: default; }
.answer-letter { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 9px; color: #7d8b83; background: #f2f4ee; font-size: 10px; font-weight: 800; }
.answer-label { flex: 1; color: #405b59; font-size: 13px; font-weight: 630; line-height: 1.35; }
.answer-status { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; color: transparent; font-size: 12px; font-weight: 900; }
.answer-option.is-correct { border-color: #96c45c; background: #f1f9e5; }
.answer-option.is-correct .answer-letter { color: #476b2a; background: #dcedc1; }
.answer-option.is-correct .answer-status { border-radius: 50%; color: #fff; background: #72a43e; }
.answer-option.is-correct .answer-status::after { content: "✓"; }
.answer-option.is-wrong { border-color: #edb09b; background: #fff5f0; }
.answer-option.is-wrong .answer-letter { color: #a55e49; background: #fbe4d9; }
.answer-option.is-wrong .answer-status { border-radius: 50%; color: #fff; background: #df8065; }
.answer-option.is-wrong .answer-status::after { content: "×"; }
.answer-option.is-reveal { border-color: #b6d886; background: #f8fbed; }
.answer-option.is-reveal .answer-letter { color: #476b2a; background: #eaf4d8; }
.answer-option.is-reveal .answer-status { color: #5c8538; }
.answer-option.is-reveal .answer-status::after { content: "✓"; }
.question-footer { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 18px; margin-top: 19px; padding-top: 16px; border-top: 1px solid #edf0e9; }
.feedback { display: flex; min-height: 24px; align-items: center; gap: 9px; color: #87948c; font-size: 11px; line-height: 1.45; }
.feedback-mark { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; color: transparent; font-weight: 900; }
.feedback.is-correct { color: #52723b; font-weight: 700; }
.feedback.is-correct .feedback-mark { color: #fff; background: #77a84a; }
.feedback.is-correct .feedback-mark::after { content: "✓"; }
.feedback.is-wrong { color: #a86750; font-weight: 650; }
.feedback.is-wrong .feedback-mark { color: #fff; background: #df8065; }
.feedback.is-wrong .feedback-mark::after { content: "!"; }
.next-button { min-width: 162px; min-height: 48px; gap: 14px; border-radius: 12px; font-size: 12px; }
.next-button .button-arrow { width: 25px; height: 25px; font-size: 17px; }
.next-button:disabled { color: #a3ada5; background: #edf0e9; box-shadow: none; cursor: not-allowed; }
.next-button:disabled .button-arrow { background: rgba(24,53,58,.045); }
.quiz-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: #8c9991; font-size: 10px; }
.quiz-footnote span { color: #d9954f; }

.results-screen { display: flex; align-items: center; flex-direction: column; padding: 56px 0 45px; text-align: center; }
.results-card { position: relative; width: min(100%, 660px); padding: 45px clamp(25px, 6vw, 66px) 44px; overflow: hidden; border: 1px solid #e5eadd; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.results-card::before { position: absolute; top: -120px; right: -88px; width: 300px; height: 300px; border: 1px solid #e3ebd4; border-radius: 50%; content: ""; }
.results-card::after { position: absolute; top: -83px; right: -49px; width: 220px; height: 220px; border: 1px dashed #d9e5c9; border-radius: 50%; content: ""; }
.results-orbit { position: absolute; top: 18px; right: 20%; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #9a7029; background: #fff0cf; font-size: 21px; }
.results-screen .eyebrow { position: relative; justify-content: center; margin-bottom: 15px; }
.results-score { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 0 auto 1px; }
.results-score span { color: #63863d; font-size: clamp(83px, 13vw, 128px); font-weight: 790; letter-spacing: -.09em; line-height: .95; }
.results-score small { color: #96a196; font-size: 20px; font-weight: 650; }
.results-correct { position: relative; margin: 10px 0 21px; color: #859189; font-size: 12px; font-weight: 650; }
.results-card h1 { position: relative; margin-bottom: 9px; font-size: clamp(27px, 4vw, 39px); font-weight: 770; letter-spacing: -.06em; }
.results-message { position: relative; max-width: 410px; margin: 0 auto 25px; color: #74827a; font-size: 14px; line-height: 1.65; }
.results-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.results-actions .button { min-height: 49px; border-radius: 12px; font-size: 12px; }
.button-secondary { padding: 0 18px; border: 1px solid #e2e8de; background: transparent; }
.button-secondary:hover { background: #f7f8f3; }
.results-signoff { margin: 21px 0 0; color: #88958d; font-size: 11px; }
.results-signoff span { padding-left: 3px; color: #e3a04d; }

.site-footer { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(24, 53, 58, .1); color: #99a49b; font-size: 9px; font-weight: 720; letter-spacing: .09em; }
.site-footer > span:last-child { font-size: 10px; font-weight: 550; letter-spacing: 0; }
.footer-dot { padding-inline: 4px; color: var(--coral); }

@media (min-width: 1500px) { .page-shell { padding-inline: max(94px, calc((100vw - 1320px) / 2)); } }
@media (max-width: 900px) {
  .page-shell { padding-inline: clamp(23px, 5vw, 48px); }
  .welcome-screen { grid-template-columns: minmax(0, 1fr) minmax(325px, .9fr); gap: 25px; }
  .welcome-copy h1 { font-size: clamp(52px, 7vw, 72px); }
  .welcome-art { min-height: 410px; }
  .quiz-preview-card { width: 86%; }
  .note-top { left: -2%; }
  .note-bottom { right: -4%; }
  .art-sticker { right: 5%; }
}
@media (max-width: 700px) {
  .page-shell { padding-inline: 22px; }
  .site-header { height: 76px; }
  .header-note { max-width: 155px; font-size: 10px; text-align: right; }
  .welcome-screen { grid-template-columns: 1fr; gap: 6px; padding: 43px 0 38px; }
  .welcome-copy { padding-top: 4px; }
  .welcome-copy h1 { font-size: clamp(54px, 11.2vw, 76px); }
  .welcome-description { max-width: 470px; margin: 19px 0 22px; font-size: 15px; }
  .welcome-art { width: min(100%, 500px); min-height: 390px; margin: 5px auto 0; }
  .welcome-art::before { top: 34px; right: 15%; width: min(69vw, 320px); }
  .welcome-art::after { top: 51px; right: 19%; width: min(57vw, 268px); }
  .quiz-preview-card { width: min(75%, 350px); min-height: 290px; padding: 20px 22px 18px; }
  .preview-question { margin-top: 18px; font-size: 29px; }
  .note-top { top: 46px; left: 2%; }
  .note-bottom { right: 1%; bottom: 38px; }
  .art-sticker { top: 59%; right: 7%; width: 68px; height: 68px; }
  .spark-one { top: 14px; right: 18%; }
  .spark-two { right: 6%; bottom: 53px; }
  main { align-items: flex-start; }
  .quiz-screen { padding: 33px 0 30px; }
  .quiz-topline { align-items: flex-start; }
  .quiz-actions { gap: 12px; }
  .score-pill { min-width: 84px; gap: 7px; padding: 8px 10px; }
  .text-button { font-size: 11px; }
  .question-card { border-radius: 19px; }
  .answer-option { min-height: 56px; }
  .question-footer { align-items: flex-start; flex-direction: column; }
  .next-button { align-self: flex-end; }
  .feedback { min-height: 28px; }
  .results-screen { padding-top: 40px; }
}
@media (max-width: 460px) {
  .page-shell { padding-inline: 18px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .header-note { max-width: 112px; gap: 7px; font-size: 9px; }
  .welcome-screen { padding-top: 39px; }
  .welcome-copy h1 { font-size: clamp(51px, 13vw, 62px); }
  .welcome-art { min-height: 338px; }
  .quiz-preview-card { width: 78%; min-height: 269px; padding: 18px 18px 16px; }
  .preview-question { font-size: 26px; }
  .floating-note { min-height: 55px; gap: 8px; padding: 8px 10px; }
  .floating-note b { font-size: 10px; }
  .floating-note small { font-size: 8px; }
  .note-icon { width: 26px; height: 26px; }
  .note-top { left: -2%; }
  .note-bottom { right: -2%; bottom: 25px; }
  .art-sticker { width: 60px; height: 60px; }
  .art-sticker span { font-size: 6px; }
  .quiz-topline { gap: 8px; }
  .quiz-subtitle { max-width: 170px; font-size: 11px; }
  .quiz-actions { gap: 8px; }
  .score-pill { min-width: 70px; gap: 5px; padding: 7px; }
  .score-star { font-size: 16px; }
  .score-pill b { font-size: 13px; }
  .score-pill small { font-size: 7px; }
  .text-button { font-size: 10px; }
  .progress-card { padding: 13px 14px 14px; }
  .progress-copy { font-size: 8px; }
  .progress-copy span:last-child { font-size: 9px; }
  .question-card { padding: 23px 17px 20px; }
  .question-card h2 { font-size: 25px; }
  .answer-list { grid-template-columns: 1fr; gap: 8px; }
  .answer-option { min-height: 52px; padding-inline: 11px; }
  .answer-label { font-size: 12px; }
  .question-footer { gap: 12px; margin-top: 15px; padding-top: 13px; }
  .next-button { width: 100%; }
  .feedback { font-size: 10px; }
  .results-card { padding-top: 42px; padding-bottom: 34px; }
  .results-orbit { right: 12%; }
  .results-actions { flex-direction: column; }
  .results-actions .button { width: 100%; }
  .site-footer { min-height: 58px; font-size: 8px; }
  .site-footer > span:last-child { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.category-picker { max-width: 500px; margin: 0 0 19px; }
.category-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #78857c; font-size: 9px; font-weight: 820; letter-spacing: .12em; }
.category-picker-heading small { color: #9aa59c; font-size: 9px; font-weight: 550; letter-spacing: 0; }
.category-options { display: flex; flex-wrap: wrap; gap: 7px; }
.category-chip { min-height: 33px; padding: 0 12px; border: 1px solid #dfe7d8; border-radius: 999px; color: #587067; background: rgba(255,254,250,.75); cursor: pointer; font-size: 10px; font-weight: 680; transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease; }
.category-chip:hover { border-color: #b4d47e; transform: translateY(-1px); }
.category-chip.is-active { border-color: #b5d886; color: #38562f; background: #eaf5d6; box-shadow: inset 0 0 0 1px rgba(120,165,63,.08); }
.category-mode strong { color: #668c3d; }
@media (max-width: 460px) {
  .category-picker { margin-bottom: 17px; }
  .category-options { gap: 6px; }
  .category-chip { min-height: 32px; padding-inline: 10px; font-size: 9px; }
  .category-picker-heading { font-size: 8px; }
}

.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.leaderboard-launch { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #dfe7d8; border-radius: 12px; color: #526d5e; background: rgba(255,254,250,.65); cursor: pointer; font-size: 12px; font-weight: 700; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.leaderboard-launch:hover { border-color: #b5d886; background: #fbfdf5; transform: translateY(-1px); }
.leaderboard-launch span { color: #6d8c43; font-size: 15px; }
.score-save-status { position: relative; margin: -12px 0 18px; color: #74867b; font-size: 11px; }
.leaderboard-dialog { width: min(560px, calc(100% - 28px)); max-width: 560px; max-height: min(84vh, 760px); margin: auto; padding: 0; overflow-y: auto; border: 0; border-radius: 24px; color: var(--ink); background: transparent; box-shadow: 0 25px 80px rgba(14,34,33,.24); }
.leaderboard-dialog::backdrop { background: rgba(17,38,38,.48); backdrop-filter: blur(5px); }
.leaderboard-panel { position: relative; padding: clamp(23px, 5vw, 34px); border: 1px solid rgba(255,255,255,.78); border-radius: 24px; background: var(--white); }
.leaderboard-panel .eyebrow { margin-bottom: 9px; }
.leaderboard-panel h2 { margin: 0 48px 6px 0; font-size: clamp(27px, 5vw, 36px); letter-spacing: -.06em; }
.leaderboard-disclosure { margin: 0 0 21px; color: #829087; font-size: 12px; }
.dialog-close { position: absolute; top: 20px; right: 20px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e3e9df; border-radius: 12px; color: #587068; background: #fff; cursor: pointer; font-size: 23px; }
.dialog-close:hover { background: #f4f7ef; }
.leaderboard-filter-label { display: block; margin-bottom: 7px; color: #6e8075; font-size: 10px; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.leaderboard-filter { width: 100%; min-height: 43px; padding: 0 13px; border: 1px solid #dfe7dc; border-radius: 11px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.leaderboard-list { display: grid; gap: 17px; margin-top: 19px; }
.leaderboard-category h3 { margin: 0 0 8px; color: #688344; font-size: 12px; font-weight: 800; }
.leaderboard-entries { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.leaderboard-entry { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 57px; padding: 8px 12px; border: 1px solid #e7ece3; border-radius: 12px; background: #fff; }
.leaderboard-rank { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: #5c7a3e; background: #eff6e3; font-size: 10px; font-weight: 850; }
.leaderboard-run, .leaderboard-score-block { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.leaderboard-run strong { color: #36514d; font-size: 12px; }
.leaderboard-run small, .leaderboard-correct { color: #96a198; font-size: 9px; }
.leaderboard-score-block { align-items: flex-end; }
.leaderboard-points { color: #355c3d; font-size: 13px; }
.leaderboard-empty { margin: 3px 0 0; padding: 20px 16px; border: 1px dashed #dce5d7; border-radius: 13px; color: #7a8980; background: #fafbf7; font-size: 12px; line-height: 1.6; text-align: center; }
.leaderboard-footnote { margin: 17px 0 0; color: #9aa49d; font-size: 10px; text-align: center; }
@media (max-width: 460px) {
  .welcome-actions { gap: 8px; }
  .leaderboard-launch { min-height: 44px; padding-inline: 11px; font-size: 11px; }
  .leaderboard-dialog { width: calc(100% - 20px); max-height: 88vh; border-radius: 19px; }
  .leaderboard-panel { padding: 22px 17px; border-radius: 19px; }
  .dialog-close { top: 15px; right: 15px; width: 34px; height: 34px; }
  .leaderboard-entry { grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; padding-inline: 9px; }
}

.player-profile { max-width: 500px; margin: 0 0 17px; }
.player-profile .category-picker-heading { margin-bottom: 7px; }
.player-profile .category-picker-heading label { color: #78857c; font: inherit; font-weight: 820; letter-spacing: inherit; }
.player-name-control { display: flex; max-width: 370px; min-height: 45px; align-items: center; gap: 9px; padding: 5px 11px 5px 6px; border: 1px solid #dfe7dc; border-radius: 12px; background: rgba(255,254,250,.86); }
.avatar-preview { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: #eef5df; font-size: 20px; }
.player-name-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; font-weight: 650; }
.player-name-control input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 3px; }
.avatar-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.avatar-choice { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e1e8dc; border-radius: 11px; background: rgba(255,254,250,.8); cursor: pointer; font-size: 19px; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.avatar-choice:hover { transform: translateY(-1px); border-color: #b5d886; }
.avatar-choice.is-active { border-color: #a9cc71; background: #edf6dc; box-shadow: 0 0 0 2px rgba(169,204,113,.17); }
.profile-note { margin: 5px 0 0; color: #9aa49c; font-size: 9px; }
.leaderboard-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.leaderboard-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; background: #eff6e3; font-size: 19px; }
.leaderboard-run { min-width: 0; }
.leaderboard-run strong { overflow: hidden; max-width: 180px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 460px) {
  .player-profile { margin-bottom: 15px; }
  .player-name-control { max-width: 100%; }
  .avatar-choice { width: 32px; height: 32px; }
  .leaderboard-identity { gap: 6px; }
  .leaderboard-avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 17px; }
  .leaderboard-run strong { max-width: 120px; }
}


.header-actions { display: flex; align-items: center; gap: 16px; }
.install-button { min-height: 38px; padding: 0 13px; border: 1px solid #d6e2cc; border-radius: 11px; color: #4f7135; background: #fbfdf5; cursor: pointer; font-size: 11px; font-weight: 760; white-space: nowrap; }
.install-button:hover { border-color: #aacd7c; background: #f2f8e7; }
.install-button:focus-visible, .dialog-close:focus-visible { outline: 3px solid #f28b69; outline-offset: 3px; }
.install-dialog { width: min(460px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid #e2e8de; border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 0 24px 70px rgba(24, 53, 58, .2); }
.install-dialog::backdrop { background: rgba(19, 37, 39, .42); backdrop-filter: blur(3px); }
.install-panel { position: relative; padding: 34px 30px 30px; }
.install-panel .eyebrow { margin-bottom: 14px; }
.install-panel h2 { margin-bottom: 10px; font-size: 26px; letter-spacing: -.05em; }
.install-panel p { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.install-panel .install-platforms { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.dialog-close { position: absolute; top: 13px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 10px; color: #74827a; background: transparent; cursor: pointer; font-size: 25px; }
.dialog-close:hover { background: #f0f3eb; }
.site-footer #onlineStatus.is-offline { color: #b35f48; }
@media (max-width: 460px) {
  .header-actions { gap: 0; }
  .header-actions .header-note { display: none; }
  .install-button { min-height: 36px; padding-inline: 10px; font-size: 10px; }
  .install-panel { padding: 31px 22px 23px; }
}
