:root { color-scheme:light; --ink:#202436; --muted:#686f84; --blue:#3953ed; --blue-dark:#293ac7; --line:#e6e8f0; --canvas:#f6f7fb; --yellow:#ffdd66; font-family:'Segoe UI',system-ui,sans-serif; color:var(--ink); background:var(--canvas); font-synthesis:none; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; min-height:44px; border:0; border-radius:12px; }
button:disabled { cursor:default; opacity:.65; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--focus-ring); outline-offset:4px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:clamp(1.8rem,2.45vw,2.45rem); line-height:1.22; letter-spacing:-1.4px; font-weight:800; margin-bottom:12px; }
h2 { font-size:1.15rem; letter-spacing:-.45px; line-height:1.4; margin-bottom:12px; }
p { line-height:1.6; }
svg.icon { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.svg-defs { position:absolute; width:0; height:0; overflow:hidden; }
.skip-link { position:fixed; top:8px; left:8px; transform:translateY(-180%); z-index:20; padding:12px; background:white; color:var(--blue); }.skip-link:focus { transform:none; }
.eyebrow,.nav-label,.tiny-label { font-size:12px; font-weight:800; letter-spacing:.04em; line-height:1.5; }.eyebrow { color:var(--muted); margin-bottom:10px; }.muted { color:var(--muted); font-size:13px; }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; gap:14px; padding:14px 23px; font-weight:700; font-size:14px; text-decoration:none; transition:background .18s,transform .18s; }.primary { background:var(--blue); color:white; box-shadow:0 4px 0 var(--blue-dark); }.primary:hover:not(:disabled) { background:var(--blue-dark); transform:translateY(-2px); }.primary:active:not(:disabled) { transform:translateY(2px); box-shadow:0 1px 0 var(--blue-dark); }.primary.yellow { background:var(--yellow); color:#222735; box-shadow:0 4px 0 #dba939; }.primary.yellow:hover { background:#ffe58b; }.secondary { background:white; color:var(--ink); border:1px solid #dfe1ed; }.secondary:hover { background:#f0f1fb; }.text-button { background:transparent; padding:4px 0; display:inline-flex; align-items:center; gap:8px; color:var(--blue); font-size:12px; font-weight:700; }.text-button:hover { text-decoration:underline; }
.brand-mark { display:grid; place-items:center; width:42px; height:46px; border-radius:14px; background:var(--blue); color:var(--yellow); transform:rotate(-5deg); }.brand-mark .icon { width:27px; height:27px; fill:currentColor; stroke:none; }
.auth-screen { max-width:560px; min-height:100vh; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:40px; margin:auto; }.auth-screen .brand-mark { margin-bottom:38px; width:64px; height:68px; }.auth-screen h1 { font-size:clamp(2.5rem,5vw,4rem); line-height:1.1; letter-spacing:-2.5px; }.auth-screen #authMessage { color:var(--muted); overflow-wrap:anywhere; }.auth-brand { margin-top:64px; font-size:12px; font-weight:800; letter-spacing:.04em; }.auth-brand span { color:var(--muted); font-size:12px; }
#appShell { display:grid; grid-template-columns:226px minmax(0,1fr); min-height:100vh; }.sidebar { position:sticky; top:0; height:100vh; background:white; border-right:1px solid var(--line); display:flex; flex-direction:column; padding:38px 23px 25px; }.brand { display:flex; align-items:center; gap:11px; color:var(--ink); text-decoration:none; font-size:25px; font-weight:800; letter-spacing:-1px; }.brand-light { font-weight:400; }.brand small { display:block; font-size:12px; font-weight:700; letter-spacing:.04em; margin-top:4px; color:var(--muted); }.nav-label { margin:50px 12px 16px; font-size:12px; color:var(--muted); letter-spacing:.04em; }.sidebar nav { display:grid; gap:7px; }.nav-item { display:flex; align-items:center; gap:14px; padding:15px; border-radius:10px; background:transparent; color:#626a80; font-size:13px; font-weight:600; text-align:left; }.nav-item:hover { background:#f5f6fb; }.nav-item.active { background:#edf0ff; color:var(--blue); }.nav-item .icon { width:19px; height:19px; }.sidebar-bottom { margin-top:auto; padding-top:50px; }
.sidebar-note { padding:26px 10px 0; margin:0; color:#777e94; font-size:12px; position:relative; line-height:1.8; }.sidebar-note span { position:absolute; right:10px; top:30px; font-size:26px; color:#a0abcf; }progress { appearance:none; display:block; height:7px; width:100%; border:0; border-radius:10px; overflow:hidden; background:#e0e4f2; }progress::-webkit-progress-bar { background:#e0e4f2; border-radius:10px; }progress::-webkit-progress-value { background:var(--blue); border-radius:10px; transition:width .4s; }progress::-moz-progress-bar { background:var(--blue); border-radius:10px; }
.workspace { min-width:0; }.env-badge { display:inline-block; margin-right:10px; padding:1px 7px; border:1px solid currentColor; border-radius:6px; font-weight:800; letter-spacing:.08em; }.topbar { height:86px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 42px; border-bottom:1px solid var(--line); background:#ffffff9c; }.breadcrumb { font-size:12px; color:#777e92; }.breadcrumb span { margin:0 13px; color:#a3aabc; }.breadcrumb strong { color:var(--ink); font-weight:500; }.account { display:flex; align-items:center; gap:10px; font-size:12px; }.account #actorName { max-width:180px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:700; }.connected { font-size:12px; color:#636d7f; padding-right:15px; display:flex; align-items:center; gap:7px; }.connected i { width:6px; height:6px; border-radius:50%; background:#1b976f; }.avatar { flex-shrink:0; height:35px; width:35px; border-radius:12px; display:grid; place-items:center; color:#4c566b; background:#e9edfa; font-size:12px; font-weight:800; overflow:hidden; }.avatar img { width:100%; height:100%; object-fit:cover; }
main { max-width:1370px; margin:auto; padding:36px 42px 20px; outline:none; }.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }.page-heading>div>p:last-child { color:var(--muted); font-size:14px; margin:0; }.page-heading .eyebrow { font-size:12px; margin-bottom:9px; }.weekly-tag { font-size:12px; font-weight:700; letter-spacing:.04em; color:#6e7893; display:flex; align-items:center; gap:7px; white-space:nowrap; }.weekly-tag .icon { width:15px; height:15px; color:var(--blue); }
.mission-card { min-height:330px; border-radius:22px; background:var(--blue); color:white; display:grid; grid-template-columns:1.3fr 1fr; overflow:hidden; position:relative; }.mission-copy { padding:32px 0 30px 34px; position:relative; z-index:1; }.mission-tag { display:inline-flex; border:1px solid #8b9aff; background:#4860f0; padding:6px 11px; font-size:12px; letter-spacing:.04em; font-weight:700; border-radius:7px; }.mission-copy h2 { font-size:clamp(1.65rem,2.5vw,2.55rem); line-height:1.17; letter-spacing:-1.3px; margin:17px 0 12px; font-weight:800; }.mission-copy>p { color:#e0e5ff; font-size:12px; margin-bottom:18px; }.mission-facts { display:flex; flex-wrap:wrap; gap:15px; margin:0 0 23px; color:#e5e9ff; font-size:12px; }.mission-facts span { display:flex; align-items:center; gap:5px; }.mission-facts b { font-weight:500; }.mission-facts .icon { width:14px; height:14px; }.mission-copy .primary { min-width:182px; font-size:13px; padding:12px 18px; border-radius:10px; gap:28px; }.mission-copy p.deadline-hint { color:#e0e5ff; font-size:12px; margin:14px 0 0; }.mission-art { position:relative; display:flex; align-items:center; justify-content:center; min-width:0; padding:4px 25px 12px 0; }.trophy-art { width:100%; max-width:345px; height:auto; animation:bob 5s ease-in-out infinite; }.art-sticker { display:flex; align-items:center; gap:7px; position:absolute; right:18%; bottom:41px; transform:rotate(7deg); font-size:12px; letter-spacing:.04em; font-weight:800; background:#def9ed; color:#24634e; padding:10px 15px; border-radius:7px; box-shadow:0 4px 0 #203aac55; }.art-sticker .icon { width:14px; height:14px; }
.stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:22px 0; }.stat-card { display:flex; align-items:flex-start; gap:16px; background:white; padding:24px 20px; border:1px solid var(--line); border-radius:15px; }.stat-icon { display:grid; place-items:center; flex-shrink:0; width:41px; height:43px; border-radius:12px; }.gold { background:#fff5cd; color:#986b08; }.coral { background:#fff0e9; color:#b45b30; }.lilac { background:#f0ecff; color:#7d5cbd; }.stat-card p { color:var(--muted); font-size:12px; margin:0 0 7px; }.stat-card strong { font-size:29px; line-height:1.1; font-weight:800; letter-spacing:-.7px; }.stat-card strong small { color:#777f96; font-size:12px; font-weight:500; letter-spacing:0; }.stat-caption { display:block; color:#777f94; font-size:12px; margin-top:9px; line-height:1.5; }
.card { background:white; border:1px solid var(--line); border-radius:17px; padding:25px; margin-bottom:22px; min-width:0; }.home-lower { display:grid; grid-template-columns:1.4fr 1fr; gap:22px; }.home-lower .card { margin-bottom:0; }.section-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:18px; }.section-heading h2 { margin-bottom:0; }.section-heading .eyebrow { font-size:12px; margin-bottom:6px; }.section-heading .text-button { font-size:12px; white-space:nowrap; }.board-preview>.section-heading>.icon { color:#9383b4; width:25px; height:25px; }
.badge-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }.achievement { text-align:center; position:relative; }.achievement .badge-art { width:64px; height:70px; margin:9px auto 12px; display:grid; place-items:center; border-radius:22px 22px 28px 28px; background:#f2f3f7; border:1px solid #e0e3eb; color:#8a92a6; transform:rotate(-5deg); }.achievement .badge-art .icon { width:30px; height:30px; }.achievement h3 { font-size:12px; margin:0 0 5px; letter-spacing:0; }.achievement>p { font-size:12px; color:#727b91; line-height:1.4; margin-bottom:0; }.achievement.earned .badge-art { background:#fff0ad; border-color:#eac764; color:#97670b; box-shadow:0 3px 0 #ead996; }.achievement.earned:nth-child(2) .badge-art { background:#d5f4e9; border-color:#a6d9c9; color:#258260; box-shadow:0 3px 0 #b3ded0; }.achievement.earned:nth-child(3) .badge-art { background:#e7dffd; border-color:#c9b9f1; color:#8460c4; box-shadow:0 3px 0 #d4c6f2; }.achievement.earned:nth-child(4) .badge-art { background:#ffe5d8; border-color:#edb89b; color:#bd6038; box-shadow:0 3px 0 #f0c5ae; }.achievement .badge-state { display:inline-flex; align-items:center; gap:4px; color:#727b91; font-size:12px; margin-top:7px; }.badge-state .icon { width:10px; height:10px; }.achievement.earned .badge-state { color:#27805e; }.card-footnote { color:#767e92; font-size:12px; line-height:1.6; margin:21px 0 0; }.achievements-preview .card-footnote { text-align:center; padding-top:14px; border-top:1px solid var(--line); }
.board-list { list-style:none; padding:0; margin:0; }.board-list li { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid #f0f1f6; }.board-list li:last-child { border-bottom:0; }.board-place { width:19px; text-align:center; flex-shrink:0; font-size:12px; color:#7a8399; font-weight:700; }.board-list li:nth-child(1) .board-place { color:#997314; }.board-list .avatar { width:32px; height:32px; border-radius:11px; font-size:12px; }.board-list li:nth-child(3n+2) .avatar { background:#ece6f7; color:#755b8c; }.board-list li:nth-child(3n) .avatar { background:#def0e7; color:#35765d; }.board-person { flex:1; min-width:0; }.board-person strong { display:block; font-size:12px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.board-person small { display:block; font-size:12px; color:#737d92; margin-top:3px; }.board-points { font-size:13px; font-weight:800; white-space:nowrap; }.board-points small { font-size:12px; font-weight:400; color:#737d92; }.board-link { width:100%; justify-content:center; padding-top:10px; border-top:1px solid var(--line); border-radius:0; margin-top:10px; font-size:12px; }.empty-state { display:block !important; text-align:center; padding:25px 12px !important; color:var(--muted); font-size:12px; line-height:1.7; }.empty-state .icon { display:block; width:32px; height:32px; margin:3px auto 14px; color:#929fc2; }.empty-state strong { display:block; color:#5e647c; font-size:13px; }.empty-state p { margin:7px 0 0; font-size:12px; }
.encouragement { display:flex; align-items:center; gap:15px; margin-top:24px; padding:19px 23px; background:#edeffa; border-radius:13px; }.encouragement-star { font-size:30px; color:#7e8bd3; }.encouragement p { margin:0; font-size:12px; color:#626983; }.encouragement strong { display:block; font-size:12px; color:#4b5377; }.encouragement .tiny-label { margin-left:auto; font-size:12px; color:#68739b; white-space:nowrap; }.footer { display:flex; align-items:center; justify-content:space-between; gap:20px; color:#7a8399; font-size:12px; margin:35px 0 0; padding:20px 0 0; border-top:1px solid var(--line); }.footer span span { color:#8795bd; margin:0 6px; }
.notice { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:13px 17px; border-radius:11px; background:#fff6d8; color:#7e6525; font-size:12px; line-height:1.6; margin:0 0 20px; }.notice.error { background:#fff0ed; color:#a33f34; }.notice .text-button { color:inherit; }.loading-status { font-size:13px; color:var(--muted); padding:24px 0; }.pill { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:9px; font-size:12px; color:#626e8d; background:#f0f2f8; }.blue-pill { color:var(--blue); background:#e9edff; font-size:12px; letter-spacing:.04em; }.pill .icon { width:13px; height:13px; }
.journey-level { display:flex; align-items:center; gap:25px; background:#edf0ff; border-color:#dfe4ff; padding:32px; }.journey-emblem { display:grid; place-items:center; flex-shrink:0; width:86px; height:94px; color:#96701b; background:var(--yellow); border-radius:25px 25px 36px 36px; transform:rotate(-7deg); box-shadow:0 4px 0 #dfb752; }.journey-emblem .icon { width:42px; height:42px; }.journey-level>div { flex:1; }.journey-level h2 { font-size:21px; }.journey-level .eyebrow { color:var(--blue); font-size:12px; }.journey-level progress { margin-top:17px; max-width:400px; height:9px; }.journey-level p:last-child { margin:10px 0 0; font-size:12px; color:var(--muted); }.journey-total { text-align:center; max-width:110px; font-size:12px; color:#6b789b; margin-left:20px; }.journey-total strong { display:block; font-size:32px; color:var(--ink); margin-bottom:6px; }.collection { gap:25px; }.collection .achievement { padding:14px; border:1px solid var(--line); border-radius:15px; }.collection .badge-art { width:84px; height:91px; margin-bottom:20px; }.collection .badge-art .icon { width:38px; height:38px; }.collection h3 { font-size:13px; }.collection .achievement>p { font-size:12px; }.collection .badge-state { font-size:12px; margin-top:13px; }.history-row { display:flex; align-items:center; gap:15px; padding:18px 0; border-top:1px solid var(--line); }.history-row .history-copy { flex:1; }.history-row h3 { font-size:14px; margin:0 0 6px; }.history-row p { color:var(--muted); font-size:12px; margin:0; }.history-row strong { white-space:nowrap; font-size:15px; color:#466351; }.history-row .stat-icon { width:35px; height:35px; }
.board-summary { display:flex; align-items:center; gap:16px; background:#fff6d8; padding:21px 25px; border-radius:15px; margin-bottom:22px; }.board-summary p { font-size:13px; color:#776430; margin:0; }.board-summary p:last-child { margin-left:auto; }.board-summary strong { color:#6b531e; }.full-board li { padding:17px 12px; }.full-board .board-place { width:40px; font-size:14px; }.full-board .avatar { width:40px; height:40px; font-size:13px; }.full-board .board-person strong { font-size:14px; }.full-board .board-person small { font-size:12px; }.full-board .board-points { font-size:16px; }.full-board .board-points small { font-size:12px; }.board-list li.is-me { background:#f0f3ff; border-radius:10px; padding-left:12px; padding-right:12px; }
.play-view { max-width:790px; margin:auto; }.play-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 25px; }.play-toolbar .text-button { font-size:13px; }.play-toolbar .muted { font-size:12px; text-align:right; }.play-heading { text-align:center; }.play-heading h1 { font-size:32px; margin:17px 0 10px; }.play-heading p { font-size:14px; color:var(--muted); }.question-steps { display:flex; align-items:center; justify-content:center; margin:28px 0; }.step-dot { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#e9ecf5; color:#707d99; font-size:12px; font-weight:700; }.step-dot.current { background:var(--blue); color:white; box-shadow:0 0 0 5px #e4e9ff; }.step-dot.done { background:#d5eee4; color:#2c8766; }.step-line { height:2px; width:48px; background:#e0e5f2; }.step-dot .icon { width:15px; height:15px; }
fieldset.card { padding:28px; margin:0; }.question-card legend,.profile-step legend { color:var(--blue); font-size:12px; font-weight:700; padding:0 8px; background:var(--canvas); border-radius:6px; }.profile-step legend { font-size:16px; }.profile-step>p { color:var(--muted); font-size:13px; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:23px 0; }label { font-size:13px; line-height:1.4; font-weight:600; }.form-grid label { display:flex; flex-direction:column; gap:8px; }.optional { font-size:12px; font-weight:400; color:var(--muted); }input { background:#fafbfe; border:1px solid #d3d9e9; border-radius:10px; padding:13px 14px; color:var(--ink); width:100%; min-width:0; }input::placeholder { color:#7c879f; font-size:12px; }.profile-note { display:flex; align-items:center; gap:7px; font-size:12px !important; }.profile-note .icon { width:14px; height:14px; }.question-card h2 { font-size:24px; line-height:1.4; letter-spacing:-.7px; margin:0 0 27px; outline:none; }.answer-options { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.answer-option { display:flex; gap:13px; align-items:center; position:relative; min-height:98px; padding:20px 17px; background:#fcfcfe; border:2px solid #e1e5ef; border-radius:14px; cursor:pointer; font-weight:500; font-size:14px; line-height:1.6; transition:background .15s,border-color .15s,transform .15s; }.answer-option:hover { background:#f3f5ff; border-color:#b0baff; transform:translateY(-2px); }.answer-option:has(input:checked) { border-color:var(--blue); background:#edf0ff; color:var(--blue-dark); box-shadow:0 3px 0 #d8dfff; }.answer-option:has(input:focus-visible) { outline:3px solid var(--focus-ring); outline-offset:4px; }.answer-option input { position:absolute; opacity:0; width:1px; height:1px; padding:0; }.answer-letter { display:grid; place-items:center; width:31px; height:33px; flex-shrink:0; border-radius:8px; background:#eceef5; color:#64718f; font-size:13px; font-weight:800; }.answer-option:has(input:checked) .answer-letter { background:var(--blue); color:white; }.answer-hint { color:var(--muted); font-size:12px; margin:24px 0 0; text-align:center; min-height:16px; }.quiz-actions { display:flex; align-items:center; gap:16px; margin:22px 0; }.quiz-actions .primary { margin-left:auto; min-width:165px; }.quiz-actions .muted { font-size:12px; }.play-footnote { color:#727e96; font-size:12px; text-align:center; margin:28px 0; }#quizError { margin-top:20px; }
.results-view { position:relative; max-width:780px; margin:auto; }.result-heading { text-align:center; padding:5px 0 15px; }.result-heading h1 { font-size:38px; outline:none; }.result-heading>p:last-child { font-size:14px; color:var(--muted); }.result-medal { display:grid; place-items:center; width:86px; height:90px; margin:0 auto 28px; border-radius:28px; background:#ffecaa; color:#9e7015; transform:rotate(-8deg); box-shadow:0 5px 0 #ebd28a; }.result-medal .icon { width:45px; height:45px; }.result-heading .eyebrow { font-size:12px; color:#826e32; }.result-score { display:grid; grid-template-columns:1fr 1.4fr; gap:30px; padding:30px; background:#fffef9; border-color:#eae4cd; }.big-score { text-align:center; padding:3px 10px; border-right:1px solid #eae4cd; }.big-score>span { display:block; font-size:64px; line-height:1.1; font-weight:800; color:#9b7e25; letter-spacing:-3px; }.big-score small { display:block; font-size:12px; color:#7e7149; margin-top:8px; }.score-breakdown { display:flex; flex-direction:column; justify-content:center; gap:13px; }.score-breakdown p { display:flex; justify-content:space-between; gap:15px; margin:0; font-size:13px; color:#797566; }.score-breakdown strong { color:#515348; }.result-buttons { display:flex; justify-content:center; gap:15px; margin:25px 0 35px; }.review-item { padding:19px 0; border-top:1px solid var(--line); }.review-item summary { display:flex; align-items:flex-start; gap:12px; cursor:pointer; list-style:none; font-size:14px; font-weight:600; line-height:1.6; }.review-item summary::-webkit-details-marker { display:none; }.review-item summary:after { content:'+'; margin-left:auto; color:#697994; }.review-item[open] summary:after { content:'−'; }.review-status { display:grid; place-items:center; width:23px; height:23px; flex-shrink:0; background:#fceae5; color:#a64d37; border-radius:7px; font-size:14px; }.review-status.correct { background:#def3e8; color:#277b59; }.review-status .icon { width:15px; height:15px; }.review-content { padding:10px 0 0 35px; }.review-content p { font-size:13px; color:var(--muted); margin:5px 0; }.review-content p.correct-answer { color:#277b59; }.review-content .explanation { padding:11px 13px; background:#f4f6fa; border-radius:9px; color:#626d84; margin-top:12px; }.celebration { position:absolute; inset:0; pointer-events:none; overflow:hidden; }.confetti { position:absolute; top:-15px; width:7px; height:11px; border-radius:2px; animation:fall 1.8s ease-in forwards; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin:0; }.metrics dt { font-size:12px; color:var(--muted); }.metrics dd { margin:10px 0 0; font-size:26px; font-weight:800; }.participants { list-style:none; padding:0; margin:0; }.participants li { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); font-size:13px; }.participants li p { margin:5px 0 0; font-size:12px; color:var(--muted); }.participants button { font-size:12px; min-height:40px; padding:8px 14px; }
@keyframes bob { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-6px) rotate(1deg); } }@keyframes fall { to { transform:translateY(500px) rotate(400deg); opacity:0; } }
@media(min-width:1600px) { main { padding-top:45px; }.mission-card { min-height:355px; }.mission-copy { padding:39px 0 36px 42px; }.mission-copy h2 { font-size:42px; }.mission-copy>p { font-size:14px; }.mission-facts { font-size:13px; }.mission-copy p.deadline-hint { font-size:12px; }.card { padding:28px; }.stat-card { padding:28px; } }
@media(max-width:1150px) { #appShell { grid-template-columns:190px minmax(0,1fr); }.sidebar { padding:30px 15px; }.brand { font-size:21px; }.brand-mark { width:34px; height:39px; }.brand small { font-size:12px; }.topbar { padding:0 26px; }main { padding:30px 26px 20px; }.weekly-tag { display:none; }.mission-copy { padding-left:26px; }.mission-facts { gap:10px; }.mission-art { padding-right:10px; }.stat-card { gap:11px; padding:20px 14px; }.stat-icon { width:34px; height:36px; }.stat-caption { font-size:12px; }.home-lower { grid-template-columns:1.2fr 1fr; gap:16px; }.card { padding:21px; }.badge-grid { gap:6px; }.achievement .badge-art { width:50px; height:57px; border-radius:17px 17px 23px 23px; }.achievement .badge-art .icon { width:25px; height:25px; }.achievement h3 { font-size:12px; }.achievement>p { font-size:12px; }.section-heading h2 { font-size:15px; }.section-heading .eyebrow { font-size:12px; letter-spacing:.04em; }.collection { gap:12px; }.collection .badge-art { width:64px; height:72px; }.journey-level { padding:25px; }.journey-total { margin-left:0; }.journey-level h2 { font-size:18px; } }
@media(max-width:850px) { #appShell { grid-template-columns:1fr; }.sidebar { position:fixed; top:auto; bottom:0; width:100%; height:auto; padding:7px 16px calc(7px + env(safe-area-inset-bottom)); z-index:10; background:#fffffff5; backdrop-filter:blur(12px); border-top:1px solid var(--line); border-right:0; }.sidebar>.brand,.nav-label,.sidebar-bottom { display:none; }.sidebar nav { display:flex; justify-content:space-around; gap:5px; }.nav-item { flex-direction:column; justify-content:center; gap:5px; padding:7px 10px; font-size:12px; flex:1; max-width:150px; min-width:0; }.nav-item .icon { width:19px; height:19px; }.nav-item.active { border-radius:11px; }.topbar { height:68px; padding:0 24px; }main { padding:29px 24px 100px; }.connected { padding-right:5px; }.mission-card { grid-template-columns:1.2fr 1fr; }.mission-copy h2 { font-size:32px; }.home-lower { grid-template-columns:1.2fr 1fr; }.card { padding:22px; }.stat-card { padding:21px 17px; }.achievement .badge-art { width:57px; height:64px; }.page-heading h1 { font-size:28px; }.footer { margin-top:28px; }.collection .badge-art { width:64px; height:74px; } }
@media(max-width:580px) { .topbar { padding:0 20px; height:65px; }.breadcrumb { font-size:12px; }.breadcrumb>span { margin:0 6px; }.account #actorName,.connected { display:none; }.account .avatar { width:33px; height:33px; }.page-heading { margin-bottom:22px; }.page-heading h1 { font-size:27px; letter-spacing:-1.1px; }.page-heading>div>p:last-child { font-size:13px; }.page-heading .eyebrow { font-size:12px; }main { padding:26px 18px 98px; }.mission-card { min-height:0; grid-template-columns:1fr; border-radius:19px; }.mission-copy { padding:28px 24px 27px; }.mission-copy h2 { font-size:31px; margin-top:18px; }.mission-copy>p { font-size:12px; max-width:90%; }.mission-copy .mission-facts { font-size:12px; gap:14px; margin-bottom:22px; }.mission-art { position:absolute; width:136px; height:144px; right:-13px; top:27px; opacity:.18; padding:0; }.art-sticker { display:none; }.mission-copy .primary { width:100%; font-size:14px; justify-content:space-between; padding:13px 18px; }.mission-copy p.deadline-hint { font-size:12px; text-align:center; }.stats-grid { gap:8px; margin:15px 0; }.stat-card { flex-direction:column; align-items:flex-start; gap:11px; padding:15px 12px; border-radius:12px; }.stat-icon { width:30px; height:31px; border-radius:9px; }.stat-icon .icon { width:17px; height:17px; }.stat-card p { font-size:12px; line-height:1.4; min-height:28px; margin-bottom:5px; }.stat-card strong { font-size:25px; }.stat-card strong small { font-size:12px; display:block; margin-top:3px; }.stat-caption { display:none; }.home-lower { grid-template-columns:1fr; gap:15px; }.card { padding:21px 19px; border-radius:14px; margin-bottom:16px; }.section-heading h2 { font-size:16px; }.section-heading .eyebrow { font-size:12px; letter-spacing:.04em; }.achievement .badge-art { width:53px; height:60px; }.achievement h3 { font-size:12px; }.achievement>p { font-size:12px; }.board-person strong { font-size:12px; }.board-person small { font-size:12px; }.board-points { font-size:13px; }.board-list li { padding:12px 0; }.encouragement { padding:17px; margin-top:15px; }.encouragement p,.encouragement strong { font-size:12px; }.encouragement .tiny-label { display:none; }.footer { font-size:12px; flex-direction:column; gap:9px; align-items:flex-start; margin-top:25px; }.footer>span:last-child { display:none; }.journey-level { flex-wrap:wrap; gap:20px; }.journey-emblem { width:55px; height:62px; border-radius:17px 17px 25px 25px; }.journey-emblem .icon { width:29px; height:29px; }.journey-level>div { min-width:180px; }.journey-level h2 { font-size:16px; }.journey-level .eyebrow { font-size:12px; }.journey-level p:last-child { font-size:12px; }.journey-total { display:flex; align-items:center; gap:8px; max-width:none; text-align:left; }.journey-total strong { font-size:18px; margin:0; }.collection { grid-template-columns:1fr 1fr; gap:12px; }.collection .achievement { padding:10px; }.collection .achievement>p { min-height:32px; }.collection .badge-art { width:72px; height:80px; }.history-card>.section-heading { align-items:flex-start; flex-direction:column; gap:5px; }.history-card .muted { font-size:12px; }.history-row h3 { font-size:12px; }.history-row p { font-size:12px; }.history-row strong { font-size:13px; }.board-summary { padding:18px; gap:10px; flex-wrap:wrap; }.board-summary p { font-size:12px; }.board-summary p:last-child { margin:0; }.leaderboard-card>.section-heading { flex-direction:column; align-items:flex-start; gap:8px; }.full-board .board-place { width:20px; font-size:12px; }.full-board .avatar { width:30px; height:30px; font-size:12px; }.full-board li { gap:9px; padding:14px 0; }.full-board .board-person strong { font-size:12px; }.full-board .board-person small { font-size:12px; }.full-board .board-points { font-size:13px; }.full-board .board-points small { font-size:12px; }.play-toolbar { margin-bottom:22px; }.play-toolbar .muted { max-width:150px; font-size:12px; }.play-heading h1 { font-size:26px; letter-spacing:-1.1px; }.play-heading p { font-size:13px; }.question-steps { margin:25px 0; }.step-line { width:35px; }.form-grid { grid-template-columns:1fr; gap:17px; }fieldset.card { padding:23px 19px; }.question-card h2 { font-size:21px; margin-bottom:23px; }.answer-options { grid-template-columns:1fr; gap:12px; }.answer-option { min-height:73px; padding:15px; font-size:14px; }.answer-hint { margin-top:20px; font-size:12px; }.quiz-actions { gap:10px; flex-wrap:wrap; }.quiz-actions>.muted { display:none; }.quiz-actions .primary { flex:1; min-width:0; }.quiz-actions .secondary { padding:14px 18px; }.play-footnote { font-size:12px; }.result-heading h1 { font-size:31px; }.result-heading>p:last-child { font-size:13px; }.result-score { gap:18px; padding:24px 17px; }.big-score { padding:6px 12px 6px 0; }.big-score>span { font-size:50px; }.big-score small { font-size:12px; }.score-breakdown p { font-size:12px; }.result-buttons { gap:10px; }.result-buttons button { font-size:12px; padding:12px 14px; gap:8px; }.result-buttons .icon { width:16px; }.review-item summary { font-size:13px; }.review-content p { font-size:12px; }.metrics { grid-template-columns:1fr 1fr; }.participants li { font-size:12px; }.participants li p { font-size:12px; } }
/* Comic quiz art direction. Layout and interaction rules above remain shared. */
:root { --ink:#131b58; --muted:#586389; --blue:#343bff; --blue-dark:#141663; --line:#c4d4f0; --canvas:#e6f0ff; --surface-card:#eef5ff; --surface-card-alt:#e3eeff; --surface-input:#f7fbff; --copy-muted:#53627d; --copy-on-yellow:#5d4b16; --copy-on-canvas:#d9eaff; --focus-ring:#ba6800; --type-body:14px; --type-meta:12px; --type-label:12px; --tracking-label:.04em; background:#10166b; }
body { background:repeating-conic-gradient(from -15deg at 70% 15%,#0d145e 0deg 12deg,#172876 12deg 24deg,#153568 24deg 36deg,#23257c 36deg 48deg); background-attachment:fixed; }
.sidebar { background:#0b124f; border-color:#2e459b; color:white; box-shadow:5px 0 0 #090f40; }
.brand { color:white; font-family:Impact,'Arial Black',sans-serif; font-style:italic; font-size:30px; text-transform:uppercase; letter-spacing:.04em; }
.brand-light { color:#4bd1ff; font-weight:800; }.brand small { color:#bdcffa; font-family:'Segoe UI',sans-serif; font-style:normal; font-size:12px; letter-spacing:.04em; }
.brand-mark { background:#4142ff; color:#ffdf72; border:2px solid #97b6ff; border-radius:9px; box-shadow:3px 3px 0 #050a33; }
.nav-label { color:#93a9df; }.nav-item { color:#c3d3f7; border:2px solid transparent; }.nav-item:hover { background:#192d7b; }.nav-item.active { background:#333bff; border-color:#779fff; color:white; box-shadow:4px 4px 0 #060b34; }
.sidebar-note { color:#b8cef2; }.sidebar-note span { color:#4bc7ff; }
.topbar { background:#0d175ee6; border-bottom:2px solid #34529c; }.breadcrumb,.connected { color:#a8bff0; }.breadcrumb strong,.account #actorName { color:white; }.connected i { background:#5de0b0; }.avatar { background:#bbdaff; border:2px solid #283d94; color:#253783; border-radius:9px; }
.page-heading h1,.play-heading h1,.result-heading h1,.auth-screen h1 { color:white; font-family:Impact,'Arial Black',sans-serif; text-transform:uppercase; font-style:italic; font-weight:900; letter-spacing:.04em; -webkit-text-stroke:1px #fff; text-shadow:3px 3px 0 #121762,5px 5px 0 #3366d6; }
.page-heading h1 { font-size:clamp(30px,3vw,43px); }.page-heading .eyebrow,.weekly-tag,.play-toolbar .muted,.play-heading>p,.result-heading>p:last-child,.footer { color:#bad6ff; }.page-heading>div>p:last-child { color:#d1e3ff; }.weekly-tag .icon { color:#ffdf72; }
.mission-card { border:4px solid #080c4a; border-radius:16px; box-shadow:8px 8px 0 #060a3c; background:repeating-conic-gradient(from -14deg at 76% 42%,#101574 0deg 12deg,#305bea 12deg 24deg,#28aadd 24deg 36deg,#6545fa 36deg 48deg); }
.mission-copy { padding:32px 0 30px 34px; }.mission-copy::before { content:''; position:absolute; inset:0 -70px 0 0; z-index:-1; background:linear-gradient(90deg,#171780 65%,#17178000); }
.mission-copy h2 { font-family:Impact,'Arial Black',sans-serif; font-size:clamp(42px,4.2vw,65px); font-weight:900; font-style:italic; line-height:1.02; text-transform:uppercase; letter-spacing:.04em; transform:rotate(-3deg); transform-origin:left center; -webkit-text-stroke:1.5px white; text-shadow:4px 5px 0 #111465,7px 8px 0 #080d46; margin:21px 0 23px; }
.mission-copy>p { color:white; font-weight:600; }.mission-tag { background:#deeaff; color:#202581; border:2px solid #13175c; border-radius:5px; box-shadow:3px 3px 0 #080e45; }.mission-facts { color:white; }.mission-facts b { font-weight:800; }.mission-copy p.deadline-hint { color:#d9efff; }
.mission-art { padding:0 10px 15px 0; }.trophy-art { max-width:365px; filter:drop-shadow(0 8px 0 #0b125080); }.art-sticker { background:#ffdf72; color:#141858; border:3px solid #0d1255; font-family:Impact,'Arial Black',sans-serif; font-size:28px; font-style:italic; padding:8px 19px; letter-spacing:.04em; bottom:30px; right:17%; box-shadow:5px 5px 0 #0d1255; }.art-sticker .icon { width:22px; height:22px; }
.primary,.secondary { border:2px solid #121960; border-radius:9px; box-shadow:4px 4px 0 #0a104b; }.primary { background:#353dff; }.primary.yellow { border-color:#131751; box-shadow:4px 4px 0 #080d45; }.secondary { background:#dcebff; }.primary:active:not(:disabled),.secondary:active:not(:disabled) { transform:translate(2px,2px); box-shadow:1px 1px 0 #080d45; }.text-button { color:#2a39cb; }
.card,.stat-card { background:var(--surface-card); border:3px solid #121954; border-radius:13px; box-shadow:5px 5px 0 #070d4580; }.card h2 { color:#202669; font-weight:800; }.stat-card strong { color:#202683; }.stat-icon { border:2px solid #283275; border-radius:10px; }.gold { background:#ffe27a; color:#7e5700; }.coral { background:#a5e8ff; color:#205586; }.lilac { background:#c8c4ff; color:#454397; }
.achievement .badge-art { background:#dce6f6; border:2px solid #a1b4d7; color:#667daa; box-shadow:3px 3px 0 #b6c9e5; border-radius:14px 14px 23px 23px; }.achievement.earned .badge-art { border:3px solid #223277; }.achievement.earned:nth-child(1) .badge-art { background:#ffdf72; color:#775517; box-shadow:4px 4px 0 #253477; }.achievement.earned:nth-child(2) .badge-art { background:#90e0ff; color:#1c5ca2; box-shadow:4px 4px 0 #253477; }.achievement.earned:nth-child(3) .badge-art { background:#bba8ff; color:#54369b; box-shadow:4px 4px 0 #253477; }.achievement.earned:nth-child(4) .badge-art { background:#9ae9c9; color:#236847; box-shadow:4px 4px 0 #253477; }
.board-list li { border-color:#cedcf2; }.board-list li.is-me { background:#c8dcff; border:2px solid #5079d8; }.board-link,.card-footnote { border-color:#cbdaf0; }.encouragement { background:#182c7b; color:white; border:2px solid #476fc0; border-radius:9px; }.encouragement p,.encouragement strong { color:#d0e4ff; }.encouragement-star { color:#ffdf72; }.encouragement .tiny-label { color:#a9c9fa; }.footer { border-color:#3b5093; }
.journey-level { background:#dbeaff; border:3px solid #142061; }.journey-emblem { border:3px solid #263573; box-shadow:4px 4px 0 #263573; border-radius:15px 15px 25px 25px; }.collection .achievement { background:var(--surface-card-alt); border:2px dashed #abc3e9; border-radius:11px; }.board-summary { background:#ffe589; border:3px solid #17215e; border-radius:11px; box-shadow:4px 4px 0 #080e45; }.pill { background:#d9e6ff; color:#344aa1; border-radius:6px; }
.play-view { max-width:850px; }.play-toolbar>.text-button { color:#b9e5ff; }.play-heading { position:relative; padding:3px 0 0; }.play-heading h1 { font-size:clamp(36px,4.5vw,64px); transform:rotate(-2deg); letter-spacing:.04em; margin:19px 0 16px; }.play-heading .blue-pill { color:#121951; background:#ffdf72; border:2px solid #11175e; box-shadow:3px 3px 0 #080b3a; font-weight:800; }.play-heading::before,.play-heading::after { position:absolute; top:12px; display:grid; place-items:center; width:49px; height:55px; background:#31baf3; border:4px solid #0b1358; box-shadow:4px 4px 0 #3455bc; color:white; font:bold 43px/1 Arial,sans-serif; border-radius:8px; transform:rotate(-13deg); }.play-heading::before { content:'?'; left:12px; }.play-heading::after { content:'!'; right:12px; transform:rotate(13deg); background:#6a4cfa; }
.step-dot { background:#c0d7ff; color:#303c87; border:2px solid #131c63; width:34px; height:34px; }.step-dot.current { background:#ffdf72; color:#282260; box-shadow:3px 3px 0 #07124f; }.step-dot.done { background:#a2e7df; color:#1d5e77; }.step-line { background:#5f91d1; height:3px; }
fieldset.card { background:#dfeeff; border:4px solid #0c1452; padding:28px; box-shadow:7px 7px 0 #050e40; }.question-card legend,.profile-step legend { font-weight:800; font-size:14px; color:white; background:#343aff; border:3px solid #11155b; box-shadow:3px 3px 0 #11155b; padding:11px 20px; border-radius:6px; }.question-card h2 { font-size:25px; color:#111c50; line-height:1.4; border-bottom:2px dashed #92bade; padding-bottom:20px; margin-bottom:22px; }.answer-option { border:2px solid #8aabd6; background:#f4f8ff; border-radius:9px; min-height:96px; box-shadow:3px 3px 0 #9ab7db; }.answer-letter { background:#bfd5ff; border:2px solid #759ada; color:#2a428a; border-radius:6px; }.answer-option:nth-child(2) .answer-letter { background:#c4baff; }.answer-option:nth-child(3) .answer-letter { background:#a0e4f1; }.answer-option:nth-child(4) .answer-letter { background:#ffe394; }.answer-option:has(input:checked) { background:#3c44ff; color:white; border-color:#161d70; box-shadow:4px 4px 0 #131c60; }.answer-option:has(input:checked) .answer-letter { background:#ffdf72; color:#232d7b; border-color:#1b286f; }.answer-option:hover { background:#e7f2ff; border-color:#354fbb; }.answer-option:has(input:checked):hover { background:#343ce0; }.answer-hint { color:#425788; }.quiz-actions>.muted,.play-footnote { color:#bfd8ff; }.profile-note { color:#4c638c; }.form-grid input { border:2px solid #a1bbdf; background:var(--surface-input); }
.result-medal { background:#ffdf72; border:4px solid #141c63; box-shadow:6px 6px 0 #081046; color:#70541e; border-radius:15px; }.result-heading .eyebrow { color:#8cd4ff; }.result-heading h1 { font-size:clamp(38px,4vw,55px); }.result-score { background:#fff3c0; border:4px solid #131957; box-shadow:6px 6px 0 #070d47; }.big-score>span { color:#242c82; text-shadow:2px 2px 0 #ffdc68; }.big-score { border-color:#d8c26f; }.score-breakdown p { color:#675c33; }.review-content .explanation { background:#d6e6fa; }.notice { border:2px solid #121a59; box-shadow:3px 3px 0 #080d42; border-radius:8px; background:#fff1ae; color:#655320; }.notice.error { background:#ffe0da; color:#922c24; }.loading-status { color:#d2e6ff; }
.auth-screen { max-width:690px; color:white; }.auth-screen .eyebrow,.auth-screen #authMessage,.auth-brand span { color:#c5dcff; }.auth-screen h1 { font-size:clamp(48px,6vw,78px); line-height:1.03; transform:rotate(-3deg); margin-bottom:30px; }.auth-brand { color:white; }
@media(min-width:1600px) { .mission-copy h2 { font-size:70px; } }
@media(max-width:1150px) { .brand { font-size:25px; }.mission-copy h2 { font-size:48px; }.mission-copy { padding-left:26px; }.art-sticker { font-size:23px; }.stat-card { gap:10px; }.page-heading h1 { font-size:32px; } }
@media(max-width:850px) { .sidebar { background:#0b1659f5; border-top:2px solid #5078cd; box-shadow:0 -4px 0 #060b3e55; }.nav-item { font-size:12px; border-width:1px; }.nav-item.active { box-shadow:2px 2px 0 #060b34; }.mission-copy h2 { font-size:49px; } }
@media(max-width:580px) { body { background-attachment:scroll; }.topbar { border-bottom-width:2px; }.page-heading h1 { font-size:33px; letter-spacing:.04em; }.page-heading>div>p:last-child { font-size:13px; }.mission-card { border-width:3px; box-shadow:5px 5px 0 #050b3d; }.mission-copy { padding:23px 21px 24px; }.mission-copy h2 { font-size:47px; line-height:1.05; margin:20px 0 21px; max-width:225px; }.mission-copy::before { inset:0; background:linear-gradient(90deg,#171780 15%,#171780c9 68%,#17178000); }.mission-art { width:126px; height:140px; right:-13px; top:77px; opacity:1; z-index:0; }.mission-copy h2 { -webkit-text-stroke:1px white; text-shadow:3px 4px 0 #101456,5px 6px 0 #060c3d; }.mission-copy>p { max-width:none; }.mission-copy .mission-facts { font-size:12px; gap:10px; }.stat-card { padding:14px 10px; border-width:2px; }.stat-card p { font-size:12px; }.stat-icon { width:31px; height:32px; }.card { border-width:2px; }.achievement .badge-art { width:51px; height:59px; }.collection .badge-art { width:70px; height:78px; }.encouragement { padding:15px; }.play-toolbar { margin-bottom:19px; }.play-heading h1 { font-size:34px; max-width:275px; margin:21px auto 13px; line-height:1.15; -webkit-text-stroke:.5px white; }.play-heading::before,.play-heading::after { width:32px; height:37px; font-size:29px; border-width:3px; top:42px; box-shadow:2px 2px 0 #3455bc; }.play-heading::before { left:-4px; }.play-heading::after { right:-4px; }.play-heading .blue-pill { font-size:12px; }.play-heading>p { font-size:12px; }fieldset.card { border-width:3px; padding:24px 17px; box-shadow:5px 5px 0 #050e40; }.question-card legend,.profile-step legend { font-size:12px; padding:9px 16px; border-width:2px; }.question-card h2 { font-size:21px; padding-bottom:17px; }.answer-option { min-height:70px; padding:13px; font-size:14px; }.answer-letter { width:29px; height:32px; }.quiz-actions { margin:23px 0; }.question-steps { margin:23px 0; }.result-heading h1 { font-size:37px; }.result-heading>p:last-child { font-size:13px; }.result-medal { width:77px; height:82px; }.result-score { border-width:3px; }.nav-item span { text-align:center; }.full-board li.is-me { padding-left:7px; padding-right:7px; }.auth-screen { padding:30px; }.auth-screen h1 { font-size:55px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }.confetti { display:none; } }
#questionPrompt, .review-item summary > span:last-child { white-space: pre-line; }
#nl-badge-frame { display: none !important; }
.badge-progress-copy { display:grid; gap:5px; margin:12px auto 0; max-width:155px; text-align:left; }.badge-progress-copy progress { height:7px; }.badge-progress-copy span { color:var(--copy-muted); font-size:11px; line-height:1.3; text-align:center; }.achievement.earned .badge-progress-copy span { color:#277c5d; }.collection .badge-progress-copy { max-width:none; margin-top:14px; }.collection .badge-progress-copy span { font-size:12px; }
.stat-card p,.stat-card strong small,.stat-caption,.achievement>p,.achievement .badge-state,.card-footnote,.board-person small,.board-points small,.history-row p { color:var(--copy-muted); }
.play-footnote { color:var(--copy-on-canvas); }
.big-score small,.score-breakdown p,.score-breakdown strong,.notice,.board-summary p,.board-summary strong { color:var(--copy-on-yellow); }
.achievement[data-tier="1"] .badge-art { background:#c98b5b; border-color:#8e522d; color:#fff4e8; box-shadow:4px 4px 0 #253477; }
.achievement[data-tier="2"] .badge-art { background:#dce6f6; border-color:#8ea4c7; color:#526985; box-shadow:4px 4px 0 #253477; }
.achievement[data-tier="3"] .badge-art { background:#ffdf72; border-color:#b88513; color:#775517; box-shadow:4px 4px 0 #253477; }
.achievement[data-tier="4"] .badge-art { background:#c8f1ff; border-color:#55a7c7; color:#23729a; box-shadow:4px 4px 0 #253477; }
.achievement[data-tier="5"] .badge-art { background:#bba8ff; border-color:#7354c3; color:#54369b; box-shadow:4px 4px 0 #253477; }

@media(max-width:850px) {
  html { scroll-padding-bottom:calc(98px + env(safe-area-inset-bottom)); }
}

@media(max-width:360px) {
  #adminView .page-heading { flex-direction:column; align-items:flex-start; gap:12px; }
  #adminView .page-heading > .secondary { width:100%; }
}

@media(max-width:580px) and (max-height:720px) {
  .mission-copy { padding-top:16px; padding-bottom:14px; }
  .mission-copy h2 { font-size:36px; margin-top:11px; margin-bottom:12px; }
  .mission-copy > p { margin-bottom:12px; }
  .mission-copy .mission-facts { margin-bottom:13px; }
  .mission-copy p.deadline-hint { margin-top:10px; line-height:1.35; }
}
.missed-intro { color:var(--copy-muted); font-size:13px; margin:-6px 0 18px; }
.missed-list { display:grid; gap:12px; }
.missed-quiz-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px; background:var(--surface-card-alt); border:2px solid #abc3e9; border-radius:10px; }
.missed-copy { min-width:0; }
.missed-week { display:block; color:var(--blue); font-size:12px; font-weight:800; letter-spacing:.04em; }
.missed-copy h3 { color:var(--ink); font-size:15px; margin:5px 0; }
.missed-copy p { color:var(--copy-muted); font-size:12px; margin:0; }
.missed-quiz-row .primary { flex-shrink:0; padding:11px 16px; }
@media(max-width:580px) {
  .missed-quiz-row { align-items:stretch; flex-direction:column; gap:13px; }
  .missed-quiz-row .primary { width:100%; }
}


/* Timed pop-out bonus questions */
.popout-dialog { width:min(480px,calc(100% - 28px)); max-width:480px; max-height:calc(100% - 28px); border:0; padding:0; overflow:visible; background:transparent; color:var(--ink); }
.popout-dialog::backdrop { background:rgba(15,20,62,.68); }
.popout-card { border:2px solid #111568; border-radius:18px; background:var(--surface-card,#fff); box-shadow:0 22px 70px rgba(6,12,56,.3); padding:24px; }
.popout-dialog[open] .popout-card { animation:popout-enter .24s ease-out both; }
.popout-head { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.popout-head .eyebrow { margin:0; color:var(--blue); font-size:11px; font-weight:850; letter-spacing:.08em; }
.popout-timer { flex:0 0 auto; border-radius:999px; padding:7px 11px; background:#e8f3ff; color:#263dbb; font-size:14px; font-weight:850; font-variant-numeric:tabular-nums; }
.popout-timer.urgent { background:#fff0ed; color:#b62b24; }
.popout-meter { height:7px; margin:15px 0 24px; overflow:hidden; border-radius:999px; background:#e8eaf2; }
.popout-meter > span { display:block; width:100%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#36bfff,#3953ed); transform:scaleX(1); transform-origin:left center; }
.popout-meter.urgent > span { background:#ed635b; }
.popout-kicker { margin:0 0 8px; color:var(--muted); font-size:10px; letter-spacing:.1em; }
.popout-card h2 { margin:0 0 20px; color:var(--ink); font-size:clamp(20px,5vw,25px); line-height:1.22; }
.popout-options { display:grid; gap:9px; }
.popout-option { display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:11px 13px; border:1.5px solid var(--line,#e6e8f0); border-radius:11px; background:var(--surface-card-alt,#f6f7fb); color:var(--ink); text-align:left; font:inherit; font-size:14px; cursor:pointer; }
.popout-option:hover:not(:disabled) { border-color:#3953ed; background:#f0f4ff; }
.popout-option:focus-visible { outline:3px solid #36bfff; outline-offset:2px; }
.popout-option:disabled { cursor:default; opacity:.68; }
.popout-option-letter { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; border-radius:8px; background:#e5eaff; color:#293ac7; font-weight:850; }
.popout-feedback { min-height:22px; margin:16px 0 0; color:#253bbd; font-weight:750; text-align:center; }
.popout-feedback.wrong { color:#8d4b13; }
.popout-feedback.timeout { color:var(--muted); }
.popout-feedback.error { color:#b62b24; }
.popout-card.shake { animation:popout-shake .42s ease-in-out; }
@keyframes popout-enter { from { opacity:0; transform:translateY(10px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes popout-shake { 0%,100% { transform:translateX(0); } 20% { transform:translateX(-4px); } 40% { transform:translateX(4px); } 60% { transform:translateX(-3px); } 80% { transform:translateX(3px); } }
@media(prefers-reduced-motion:reduce) {
  .popout-dialog[open] .popout-card,
  .popout-card.shake { animation:none !important; }
}
@media(max-width:480px) {
  .popout-card { padding:20px 17px; }
  .popout-option { font-size:13px; }
}
