:root {
  --canvas: #f7f6f2; --surface: #fffefa; --ink: #2d2b38; --muted: #716e7c;
  --line: #e6e3eb; --accent: #6856b8; --accent-deep: #54439d; --accent-soft: #efebfb;
  --green: #296847; --green-soft: #e8f3e7; --amber: #805617; --amber-soft: #fbf0da;
  --shadow: 0 8px 36px #3d345808; --radius: 24px;
  --rose: #b53f68; --rose-soft: #faedf2; --rose-line: #ecd3df;
}
[data-bs-theme="dark"] {
  --canvas: #1b1c23; --surface: #24252f; --ink: #f2edf6; --muted: #b2adbd;
  --line: #3b3b4b; --accent: #b9a7fa; --accent-deep: #c9bbff; --accent-soft: #343047;
  --green: #a5d7af; --green-soft: #263a2e; --amber: #f0c788; --amber-soft: #3f3426;
  --shadow: 0 8px 36px #00000010;
  --rose: #f09abb; --rose-soft: #382632; --rose-line: #694055;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-deep); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a.btn { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1040px; margin: auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: -.7px; }
.brand:hover { color: var(--ink); }
.brand small { display: block; font-size: 8px; font-weight: 650; letter-spacing: 1.3px; margin-top: 5px; color: var(--muted); }
.brand-icon { background: #6856b8; color: #fff; display: block; width: 43px; height: 43px; border-radius: 14px; font-size: 33px; text-align: center; line-height: 41px; position: relative; }
.brand-icon span { color: #d8f3ad; font-size: 22px; }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.profile-strip { max-width: 1040px; margin: auto; padding: 0 28px 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.profile-strip > span { min-width: 0; overflow-wrap: anywhere; }
.profile-strip strong { color: var(--accent); }
.profile-strip a { flex-shrink: 0; padding: 10px 0; min-height: 44px; }
.profile-strip-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.profile-strip-actions form { margin: 0; }
.profile-strip-actions .text-button { font-size: inherit; padding: 10px 0; }
.stats-link { color: var(--muted); font-size: 14px; text-decoration: none; padding: 12px 0; }
.theme-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); font-size: 22px; }
.skip-link { position: absolute; top: -100px; left: 10px; padding: 8px 15px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 10px; }
.page { margin: auto; padding: 44px 24px 20px; width: 100%; max-width: 1040px; }
.home-page { display: grid; grid-template-columns: .92fr 1.08fr; gap: 32px; align-items: start; }
.home-page > .notice { grid-column: 1 / -1; }
.hero { padding: 42px 0 0; position: sticky; top: 30px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: var(--muted); margin: 0 0 14px; }
.little-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.7px; font-weight: 750; }
.hero h1 { font-size: clamp(34px, 4vw, 47px); line-height: 1.15; margin: 22px 0; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 16px; color: var(--muted); margin: 0 0 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 330px; }
.hero-tags span { border: 1px solid var(--line); border-radius: 24px; font-size: 11px; padding: 6px 10px; color: var(--muted); background: var(--surface); }
.anissa-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 19px; border: 1px solid var(--rose-line); border-radius: 20px; background: linear-gradient(120deg, var(--surface), var(--rose-soft)); }
.anissa-note > div:first-child { min-width: 0; }
.hero .anissa-note .anissa-eyebrow { margin: 0 0 7px; color: var(--rose); font-size: 9px; font-weight: 750; letter-spacing: 1.6px; }
.anissa-note h2 { margin: 0 0 6px; font-size: 20px; }
.anissa-heart { position: relative; flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; color: var(--rose); background: var(--rose-soft); border: 1px solid var(--rose-line); border-radius: 50%; }
.anissa-heart > span { font-size: 34px; line-height: 1; }
.anissa-heart button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.anissa-heart button[hidden] { display: none; }
.anissa-heart:has(button:not([hidden])):hover { border-color: var(--rose); }
.anissa-hearts { position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }
.anissa-particle { position: absolute; bottom: -40px; color: var(--rose); font-size: 28px; line-height: 1; opacity: 0; --drift: 25px; --tilt: 18deg; --delay: 0s; }
.anissa-particle:nth-child(1) { left: 7%; --drift: 28px; --delay: .1s; }
.anissa-particle:nth-child(2) { left: 17%; font-size: 20px; --drift: -18px; --tilt: -16deg; --delay: .5s; }
.anissa-particle:nth-child(3) { left: 28%; --drift: 38px; --delay: .25s; }
.anissa-particle:nth-child(4) { left: 38%; font-size: 22px; --drift: -30px; --tilt: -22deg; --delay: .7s; }
.anissa-particle:nth-child(5) { left: 48%; font-size: 32px; --delay: .4s; }
.anissa-particle:nth-child(6) { left: 58%; font-size: 20px; --drift: -25px; --delay: .05s; }
.anissa-particle:nth-child(7) { left: 68%; --drift: 20px; --tilt: -12deg; --delay: .6s; }
.anissa-particle:nth-child(8) { left: 78%; font-size: 23px; --drift: -32px; --delay: .3s; }
.anissa-particle:nth-child(9) { left: 89%; --drift: -22px; --delay: .8s; }
@keyframes anissa-hearts-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-10deg) scale(.7); }
  15% { opacity: .8; }
  70% { opacity: .65; }
  100% { opacity: 0; transform: translate3d(var(--drift), -110vh, 0) rotate(var(--tilt)) scale(1.1); }
}
@media (prefers-reduced-motion: no-preference) { .anissa-particle { animation: anissa-hearts-rise 2.5s ease-out var(--delay) both; } }
@media (prefers-reduced-motion: reduce) { .anissa-hearts { display: none; } }
.resume-link { display: inline-block; margin-top: 25px; padding: 10px 0; font-weight: 650; }
.setup-panel, .question-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.panel-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.panel-heading h2 { font-size: 27px; margin: 0; }
.duo-badge { font-size: 14px; border-radius: 20px; padding: 9px 13px; color: var(--accent); background: var(--accent-soft); font-weight: 700; transform: rotate(5deg); }
fieldset { min-width: 0; }
.setup-section { border: 0; padding: 0 0 22px; margin: 0; }
.setup-section legend { float: none; font-size: 14px; font-weight: 700; width: auto; margin-bottom: 13px; }
.section-number { font-size: 10px; color: var(--accent); margin-right: 9px; }
.format-grid, .category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice-card { cursor: pointer; border: 1px solid var(--line); padding: 13px 10px; border-radius: 13px; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; min-width: 0; }
.choice-card input { flex-shrink: 0; margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; }
.choice-card strong { display: block; font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.choice-card small { color: var(--muted); font-size: 10px; line-height: 1.45; display: block; }
.choice-card:has(input:checked), .category-choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.level-grid { display: flex; gap: 6px; background: var(--canvas); padding: 5px; border: 1px solid var(--line); border-radius: 14px; }
.level-choice { flex: 1; cursor: pointer; min-width: 0; }
.level-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.level-choice span { display: block; text-align: center; padding: 10px 4px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.level-choice input:checked + span { background: var(--surface); color: var(--accent); box-shadow: 0 1px 5px #00000010; font-weight: 750; }
.level-choice input:focus-visible + span { outline: 3px solid var(--accent); }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 9px 0 12px; }
.category-choice { display: grid; grid-template-columns: 33px minmax(0, 1fr) 15px; gap: 7px; align-items: center; position: relative; cursor: pointer; padding: 13px 9px; min-height: 76px; border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.category-choice[hidden] { display: none; }
.category-choice input { width: 15px; height: 15px; accent-color: var(--accent); grid-column: 3; grid-row: 1; }
.category-choice > .category-symbol { grid-column: 1; grid-row: 1; }
.category-symbol { flex-shrink: 0; background: var(--accent-soft); color: var(--accent); width: 33px; height: 33px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.category-copy { min-width: 0; grid-column: 2; grid-row: 1; }
.category-copy strong { display: block; font-size: 12px; font-weight: 700; }
.category-copy small { color: var(--muted); font-size: 11px; line-height: 1.4; display: block; margin-top: 3px; }
.level-requirement { font-style: italic; }
.start-button { --bs-btn-bg: #6856b8; --bs-btn-border-color: #6856b8; --bs-btn-hover-bg: #54439d; --bs-btn-hover-border-color: #54439d; --bs-btn-active-bg: #54439d; --bs-btn-active-border-color: #54439d; --bs-btn-disabled-bg: #7d748f; --bs-btn-disabled-border-color: #7d748f; width: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 55px; border-radius: 14px; font-size: 15px; font-weight: 650; padding: 14px 16px; }
.start-button span { font-size: 21px; line-height: 1; }
.shared-note { text-align: center; font-size: 10px; color: var(--muted); margin: 11px 0 0; }
.learning-note { grid-column: 1; grid-row: 2; display: flex; gap: 15px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-top: -80px; }
.learning-note > span { color: var(--accent); font-size: 30px; }
.learning-note strong { color: var(--ink); font-weight: 650; }
.site-footer { max-width: 1040px; padding: 25px 24px 32px; margin: auto; }
.safety { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); max-width: 730px; margin: auto; }
.safety > span { font-size: 16px; }
.safety p { font-size: 11px; line-height: 1.7; margin: 0; }
.footer-note { text-align: center; color: var(--muted); font-size: 10px; line-height: 1.8; margin: 14px 0 0; }
.notice { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--line); border-radius: 14px; padding: 15px; font-size: 13px; margin-bottom: 18px; }
.game-page { max-width: 650px; }
.game-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.game-topline .eyebrow { margin: 0; }
.question-counter { color: var(--muted); font-size: 13px; }
.question-counter strong { color: var(--ink); }
.question-track { display: flex; gap: 5px; margin: 18px 0 24px; }
.question-track span { height: 5px; flex: 1; background: var(--line); border-radius: 5px; }
.question-track .done { background: var(--accent); }
.question-track .current { background: var(--accent); opacity: .5; }
.scoreboard { display: flex; justify-content: space-between; padding: 18px 5px 22px; }
.scoreboard small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.scoreboard strong { font-size: 26px; font-weight: 750; }
.scoreboard > div:last-child { text-align: right; }
.scoreboard > div:last-child strong { color: var(--accent); }
.score-unit { font-size: 14px; font-weight: 500; color: var(--muted); }
.question-category { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; font-weight: 650; margin-bottom: 20px; }
.question-title { font-size: 22px; line-height: 1.6; letter-spacing: -.3px; margin-bottom: 20px; overflow-wrap: anywhere; }
.rounding-note { color: var(--muted); font-size: 13px; border-left: 3px solid var(--accent); padding-left: 13px; margin-bottom: 25px; }
.answer-form > label { font-size: 13px; font-weight: 650; margin-bottom: 9px; }
.answer-input-wrap { display: flex; align-items: center; border: 2px solid var(--line); background: var(--canvas); border-radius: 15px; min-height: 68px; overflow: hidden; }
.answer-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.answer-input-wrap input { width: 100%; min-width: 0; flex: 1; border: 0; background: transparent; color: var(--ink); outline: 0; padding: 12px 16px; font-size: 30px; font-weight: 650; }
.answer-input-wrap input::placeholder { color: var(--muted); opacity: .6; }
.answer-unit { font-size: 17px; font-weight: 650; color: var(--accent); padding: 0 18px 0 5px; white-space: nowrap; }
.input-error { font-size: 13px; color: var(--amber); background: var(--amber-soft); padding: 13px; border-radius: 12px; }
.think-note { font-size: 11px; text-align: center; color: var(--muted); margin: 16px 0 0; }
.finish-form { text-align: center; margin-top: 20px; }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 12px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.feedback-heading { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border-radius: 15px; }
.feedback-correct .feedback-heading { background: var(--green-soft); color: var(--green); }
.feedback-incorrect .feedback-heading { background: var(--amber-soft); color: var(--amber); }
.result-symbol { font-size: 28px; line-height: 1; }
.feedback-heading h2 { font-size: 18px; margin: 0 0 5px; letter-spacing: -.4px; }
.feedback-heading p { font-size: 12px; margin: 0; }
.anissa-encouragement { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin: 16px 0; border: 1px solid var(--rose-line); border-radius: 14px; background: var(--rose-soft); }
.anissa-encouragement > span { flex-shrink: 0; color: var(--rose); font-size: 25px; line-height: 1; }
.anissa-encouragement p { margin: 0; font-size: 12px; color: var(--ink); }
.answer-comparison { display: flex; gap: 20px; margin: 22px 0; }
.answer-comparison p { flex: 1; font-size: 11px; color: var(--muted); margin: 0; min-width: 0; }
.answer-comparison strong { display: block; color: var(--ink); font-size: 21px; margin-top: 3px; overflow-wrap: anywhere; }
.correction { border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; overflow: hidden; }
.correction summary { font-weight: 650; font-size: 13px; padding: 16px; cursor: pointer; min-height: 52px; color: var(--accent); }
.correction summary > span { float: right; }
.steps { margin: 0; padding: 5px 18px 5px 39px; }
.steps li { margin-bottom: 20px; padding-left: 6px; }
.steps li::marker { color: var(--accent); font-size: 12px; font-weight: 750; }
.steps h3 { font-size: 13px; letter-spacing: 0; line-height: 1.5; margin-bottom: 9px; }
.operation { font-size: 16px; font-weight: 650; line-height: 1.8; overflow-wrap: anywhere; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.operation-result { display: block; color: var(--accent); }
.step-explanation { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0; }
.summary-hero { text-align: center; padding-bottom: 22px; }
.summary-symbol { font-size: 70px; color: var(--accent); line-height: 1.1; }
.summary-hero .eyebrow { margin-top: 17px; }
.summary-hero h1, .stats-heading h1 { font-size: 34px; }
.summary-hero > p:last-child, .stats-heading > p:last-child { font-size: 14px; color: var(--muted); }
.summary-scores { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 25px 10px; margin-bottom: 22px; }
.summary-scores > div { flex: 1; min-width: 0; text-align: center; border-right: 1px solid var(--line); }
.summary-scores > div:last-child { border: 0; }
.summary-scores strong { color: var(--accent); display: block; font-size: 31px; line-height: 1.3; }
.summary-scores strong small { font-size: 17px; color: var(--muted); font-weight: 450; }
.summary-scores span { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.summary-scores strong > span { color: var(--accent); display: inline; font-size: inherit; }
.review-panel { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin: 24px 0; }
.review-panel h2 { font-size: 21px; }
.review-panel p { font-size: 13px; color: var(--muted); }
.review-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.review-tags span { font-size: 12px; border-radius: 20px; background: var(--surface); padding: 6px 11px; color: var(--accent); }
.missed-section > h2 { font-size: 23px; margin: 30px 0 15px; }
.missed-card { padding: 22px; margin: 15px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.missed-card h3 { font-size: 16px; line-height: 1.6; letter-spacing: -.2px; }
.missed-card > p { font-size: 12px; color: var(--muted); }
.summary-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; margin-top: 17px; }
.summary-links a { padding: 10px 0; }
.stats-heading { margin-bottom: 30px; }
.stats-heading h1, .shared-note strong { overflow-wrap: anywhere; }
.profile-heading { text-align: center; margin-bottom: 28px; }
.profile-heading h1 { font-size: 32px; }
.profile-heading > p:last-child { color: var(--muted); }
.profile-panel { padding: 24px; margin: 18px 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.profile-panel h2 { font-size: 20px; margin: 0 0 20px; }
.profile-list { display: grid; gap: 10px; }
.profile-choice { width: 100%; min-height: 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); color: var(--ink); padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left; }
.profile-choice > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.profile-choice > small { flex-shrink: 0; font-size: 11px; color: var(--accent); }
.profile-choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.profile-form label { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.profile-form .form-control { min-height: 56px; font-size: 18px; color: var(--ink); background: var(--canvas); border-color: var(--line); border-radius: 12px; }
.profile-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.profile-dialog { position: relative; width: min(100%, 460px); margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.profile-dialog:modal { position: fixed; inset: 0; margin: auto; width: min(calc(100% - 32px), 460px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.profile-dialog::backdrop { background: #16122280; backdrop-filter: blur(3px); }
.profile-dialog .profile-heading { margin-bottom: 24px; }
.profile-dialog .profile-heading h1 { font-size: 30px; }
.profile-dialog .profile-heading > p:last-child { margin-bottom: 0; font-size: 14px; }
.profile-options { border: 0; margin: 0 0 20px; padding: 0; }
.profile-options legend { float: none; width: auto; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.profile-dialog .profile-list { max-height: 180px; overflow-y: auto; padding: 4px; margin: -4px; }
.profile-dialog .profile-choice { cursor: pointer; margin: 0; font-size: 15px; }
.profile-dialog .profile-choice input { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.profile-dialog .profile-choice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-dialog .profile-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.profile-dialog .profile-choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.profile-dialog .profile-form .form-control { margin-bottom: 18px; }
.profile-dialog .profile-form .profile-passcode { font-size: 24px; letter-spacing: .4em; }
.profile-dialog .profile-form .input-error { margin-top: -6px; }
.profile-new { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 6px; }
.profile-new summary { padding: 12px 0; min-height: 44px; color: var(--accent); cursor: pointer; font-size: 14px; font-weight: 650; }
.profile-new form { padding-top: 8px; }
.profile-duration { margin: 18px 0 0; text-align: center; font-size: 12px; }
.profile-dialog .profile-return { margin-bottom: 0; }
.profile-return, .legacy-link { display: block; text-align: center; margin: 18px 0; padding: 10px 0; font-size: 13px; }
.empty-message { text-align: center; padding: 15px; font-size: 13px; color: var(--muted); }
.category-stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); margin-bottom: 10px; }
.stat-category-heading { display: flex; align-items: center; gap: 10px; }
.stat-category-heading h2 { font-size: 14px; flex: 1; margin: 0; letter-spacing: -.2px; }
.stat-category-heading strong { color: var(--accent); font-size: 15px; }
meter { display: block; width: 100%; height: 11px; margin: 14px 0 9px; background: var(--line); border-radius: 5px; accent-color: var(--accent); }
meter::-webkit-meter-bar { background: var(--line); border: 0; }
meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 5px; }
meter::-moz-meter-bar { background: var(--accent); }
.category-stat > p { font-size: 11px; color: var(--muted); margin: 0; }
.category-stat-list { margin-bottom: 25px; }
@keyframes bloom { from { transform: scale(.97); opacity: .7; } to { transform: scale(1); opacity: 1; } }
@keyframes twinkle { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: no-preference) { .feedback-correct .feedback-heading { animation: bloom .3s ease-out; } .streak-celebrate strong { display: inline-block; animation: twinkle .45s ease-out; } }
@media (max-width: 760px) {
  .home-page { display: block; max-width: 530px; }
  .hero { position: static; padding: 0 0 28px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 14px; margin-bottom: 18px; }
  .hero-tags { max-width: none; }
  .learning-note { margin-top: 25px; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 15px 16px; }
  .profile-strip { padding: 0 16px 6px; font-size: 11px; }
  .profile-strip-actions { gap: 12px; }
  .profile-dialog { padding: 24px 20px; border-radius: 21px; }
  .nav-actions { gap: 11px; }
  .stats-link { font-size: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand small { font-size: 7px; letter-spacing: .6px; }
  .brand-icon { width: 36px; height: 36px; line-height: 34px; font-size: 28px; border-radius: 12px; }
  .brand-icon span { font-size: 18px; }
  .theme-button { width: 44px; height: 44px; font-size: 21px; }
  .page { padding: 29px 16px 15px; }
  .hero h1 { font-size: 32px; margin-top: 17px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .hero-tags { gap: 5px; }
  .hero-tags span { font-size: 10px; padding: 5px 8px; }
  .setup-panel, .question-panel { padding: 21px 17px; border-radius: 21px; }
  .category-symbol { width: 27px; height: 30px; font-size: 19px; }
  .category-choice { padding: 13px 7px; gap: 6px; grid-template-columns: 27px minmax(0, 1fr) 15px; }
  .category-copy strong { font-size: 12px; }
  .category-copy small { font-size: 11px; }
  .choice-card { padding: 12px 8px; gap: 6px; }
  .choice-card strong { font-size: 12px; }
  .choice-card small { font-size: 11px; }
  .question-title { font-size: 19px; line-height: 1.65; }
  .answer-unit { font-size: 15px; padding-right: 13px; }
  .answer-comparison { gap: 12px; }
  .answer-comparison strong { font-size: 18px; }
  .feedback-heading { padding: 15px 12px; }
  .feedback-heading h2 { font-size: 16px; }
  .summary-hero h1, .stats-heading h1 { font-size: 29px; }
  .summary-scores { padding: 20px 5px; }
  .summary-scores strong { font-size: 27px; }
  .summary-scores span { font-size: 10px; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 350px) { .category-grid, .format-grid { grid-template-columns: 1fr; } .category-copy strong { font-size: 12px; } .category-copy small { font-size: 10px; } .brand small { display: none; } }
