:root {
  color-scheme: light;
  --ink: #17182c;
  --muted: #707386;
  --line: #e8e7ed;
  --paper: #ffffff;
  --canvas: #f6f6f3;
  --lime: #ccff48;
  --lime-deep: #a8dc1c;
  --violet: #7b61ff;
  --danger: #f0506e;
  --success: #269766;
  --shadow: 0 24px 70px rgba(29, 28, 54, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(123, 97, 255, 0.38); outline-offset: 3px; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 420px; height: 420px; top: -230px; right: 8%; background: rgba(204, 255, 72, 0.34); }
.ambient-two { width: 340px; height: 340px; top: 380px; left: -230px; background: rgba(123, 97, 255, 0.09); }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; text-decoration: none; line-height: 1; }
.brand > span:last-child { display: grid; gap: 4px; }
.brand strong { font-size: 18px; letter-spacing: -0.03em; }
.brand small { font-size: 8px; letter-spacing: 0.22em; font-weight: 800; color: var(--muted); }
.brand-mark, .auth-mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); transform: rotate(-8deg);
}
.brand-mark::before, .auth-mark::before { content: ""; position: absolute; width: 36px; height: 2px; background: var(--canvas); }
.brand-mark span, .auth-mark span { width: 9px; height: 9px; border: 2px solid var(--canvas); background: var(--ink); border-radius: 50%; z-index: 1; }
.desktop-nav { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.nav-link { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.nav-link.active { background: var(--ink); color: white; }
.account-button { justify-self: end; border: 1px solid var(--line); background: rgba(255,255,255,.78); padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: #b7b8bf; }
.account-button #account-label { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button.logged-in .account-dot { background: var(--lime-deep); box-shadow: 0 0 0 4px rgba(168,220,28,.15); }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: calc(100vh - 180px); }
.view { animation: view-in .35s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.hero { min-height: 220px; padding: 54px 4px 42px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.eyebrow { margin: 0 0 12px; color: var(--violet); font-size: 10px; line-height: 1; letter-spacing: .2em; font-weight: 900; }
.hero h1, .dashboard-heading h1 { margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 span { position: relative; z-index: 0; }
.hero h1 span::after { content: ""; position: absolute; left: -3px; right: -4px; height: .27em; bottom: .02em; background: var(--lime); z-index: -1; transform: rotate(-1deg); }
.hero-copy { max-width: 570px; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.hero-stat { flex: 0 0 auto; display: grid; justify-items: end; padding-bottom: 8px; }
.hero-stat strong { font-size: 58px; line-height: 1; letter-spacing: -.07em; }
.hero-stat span { margin-top: 6px; font-size: 9px; letter-spacing: .2em; font-weight: 900; color: var(--muted); }

.quiz-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 22px; align-items: start; min-width: 0; }
.quiz-layout > * { min-width: 0; }
.study-panel, .question-card, .dashboard-card, .summary-card, .login-prompt { background: var(--paper); border: 1px solid rgba(230,229,236,.9); box-shadow: 0 10px 34px rgba(29,28,54,.045); }
.study-panel { border-radius: var(--radius-md); padding: 23px 16px 18px; position: sticky; top: 18px; }
.panel-heading { display: grid; gap: 2px; padding: 0 8px 17px; }
.panel-heading span, .card-title span { color: var(--violet); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.panel-heading strong { font-size: 15px; }
.mode-list { display: grid; gap: 5px; }
.mode-button { width: 100%; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 8px; border: 0; border-radius: 13px; background: transparent; padding: 10px; text-align: left; }
.mode-button:hover { background: #f7f7f8; }
.mode-button.active { background: var(--ink); color: white; box-shadow: 0 8px 20px rgba(23,24,44,.16); }
.mode-button span:last-child { display: grid; }
.mode-button strong { font-size: 12px; }
.mode-button small { color: #9899a5; font-size: 9px; }
.mode-button.active small { color: #bfc0ca; }
.mode-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--violet); background: #f0edff; font-weight: 900; }
.mode-button.active .mode-icon { background: var(--lime); color: var(--ink); }
.select-label { display: block; margin: 21px 8px 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 10px 30px 10px 11px; font-size: 11px; font-weight: 700; }
.guest-note { margin: 17px 5px 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.guest-note span { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 3px; border-radius: 50%; background: #eeeef3; font-style: normal; font-weight: 800; }

.question-card { min-height: 530px; border-radius: var(--radius-lg); padding: 42px 48px 32px; box-shadow: var(--shadow); overflow: hidden; }
.question-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.question-meta > div { display: flex; gap: 9px; align-items: center; }
.category-pill { padding: 5px 10px; border-radius: 999px; background: #f0edff; color: #6650d9; font-size: 10px; font-weight: 800; }
.difficulty, .question-number { color: var(--muted); font-size: 10px; font-weight: 700; }
.question-card h2 { margin: 0 0 30px; font-size: clamp(20px, 2.5vw, 29px); line-height: 1.55; letter-spacing: -.025em; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.choice-button { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; min-height: 68px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 15px; background: white; text-align: left; font-size: 13px; font-weight: 700; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.choice-button:hover:not(:disabled) { transform: translateY(-2px); border-color: #bbb3ea; box-shadow: 0 8px 20px rgba(50,39,100,.08); }
.choice-key { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #f3f3f5; color: var(--muted); font-size: 10px; }
.choice-button.correct { border-color: #62bd91; background: #f0fbf5; color: #14724a; }
.choice-button.correct .choice-key { background: var(--success); color: white; }
.choice-button.wrong { border-color: #f3a4b6; background: #fff4f6; color: #b72e50; }
.choice-button.wrong .choice-key { background: var(--danger); color: white; }
.choice-button.muted { opacity: .48; }
.choice-button:disabled { cursor: default; }
.answer-result { margin-top: 22px; padding: 18px 20px; border-radius: 15px; background: #f5f5f3; border-left: 4px solid var(--success); }
.answer-result.incorrect { border-left-color: var(--danger); }
.result-heading { display: flex; align-items: center; gap: 8px; }
.result-heading span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: white; font-size: 12px; font-weight: 900; }
.answer-result.incorrect .result-heading span { background: var(--danger); }
.result-heading strong { font-size: 13px; }
.answer-result p { margin: 7px 0 8px 31px; color: #555766; font-size: 12px; }
.source-row { margin: 11px 0 0 31px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }
.source-label { padding: 2px 7px; border-radius: 999px; background: #e9e5ff; color: #5e49cc; font-size: 8px; font-weight: 900; }
.source-row > div { min-width: 0; display: grid; gap: 3px; }
.answer-result .source-row a { color: #5e49cc; font-size: 10px; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
.source-row small { color: #747685; font-size: 9px; line-height: 1.5; }
.report-action-row { display: flex; justify-content: flex-end; margin: 12px 0 0 31px; }
.report-link { border: 0; background: transparent; padding: 5px 0; color: #7a7b88; font-size: 9px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.report-link:hover { color: var(--danger); }
.question-footer { min-height: 55px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 19px; display: flex; justify-content: space-between; align-items: center; }
.keyboard-hint { color: #9697a3; font-size: 9px; }
kbd { padding: 2px 5px; border: 1px solid #d8d8de; border-bottom-width: 2px; border-radius: 4px; background: #fafafa; font-family: inherit; }
.primary-button, .secondary-button { border: 0; border-radius: 12px; padding: 11px 17px; font-size: 11px; font-weight: 800; }
.primary-button { color: white; background: var(--ink); box-shadow: 0 8px 20px rgba(23,24,44,.14); }
.primary-button:hover { background: #2a2c49; transform: translateY(-1px); }
.primary-button span { margin-left: 9px; color: var(--lime); }
.secondary-button { border: 1px solid var(--line); background: white; }
.primary-button.full { width: 100%; padding: 13px; margin-top: 8px; }
.question-loading, .empty-state { min-height: 445px; display: grid; align-content: center; justify-items: center; text-align: center; color: var(--muted); }
.question-loading p { font-size: 11px; font-weight: 700; }
.spinner { width: 26px; height: 26px; border: 3px solid #ececf0; border-top-color: var(--violet); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 900; }
.empty-state h2 { margin: 0 0 5px; color: var(--ink); }
.empty-state p { max-width: 420px; margin: 0 0 20px; font-size: 12px; }

.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 58px 4px 38px; }
.dashboard-heading h1 { font-size: clamp(38px, 5vw, 60px); }
.dashboard-heading > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 17px; }
.summary-card { min-height: 152px; padding: 20px; border-radius: var(--radius-md); }
.summary-card.accent { background: var(--ink); color: white; }
.summary-card > span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
.summary-card.accent > span { color: #adaeba; }
.summary-card strong { display: block; margin-top: 10px; font-size: 38px; line-height: 1.1; letter-spacing: -.05em; }
.summary-card strong small { font-size: 12px; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.summary-card.accent strong small { color: #bbbdc8; }
.summary-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.progress-track { height: 4px; margin-top: 17px; background: #37394f; border-radius: 99px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .55s ease; }
.text-button { border: 0; background: none; padding: 5px 0; color: #6250c8; font-size: 10px; font-weight: 800; }
.summary-card .text-button { margin-top: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.dashboard-card { border-radius: var(--radius-md); padding: 23px; }
.card-title { min-height: 43px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.card-title h2 { margin: 2px 0 0; font-size: 16px; }
.category-stats { display: grid; gap: 13px; margin-top: 16px; }
.category-row { display: grid; grid-template-columns: 100px minmax(60px, 1fr) 35px; gap: 9px; align-items: center; font-size: 10px; font-weight: 700; }
.category-bar { height: 7px; border-radius: 99px; background: #eeeef1; overflow: hidden; }
.category-bar i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.category-row > span:last-child { text-align: right; color: var(--muted); }
.weak-list, .recent-list { margin-top: 10px; }
.weak-item, .recent-item { display: grid; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.weak-item { grid-template-columns: 30px minmax(0,1fr) auto; }
.recent-item { grid-template-columns: 30px minmax(0,1fr) auto; }
.weak-rank, .recent-status { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #f2f1f5; color: var(--muted); font-size: 9px; font-weight: 900; }
.recent-status.correct { background: #e7f8ef; color: var(--success); }
.recent-status.wrong { background: #fff0f3; color: var(--danger); }
.weak-copy, .recent-copy { min-width: 0; }
.weak-copy strong, .recent-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.weak-copy small, .recent-copy small { color: var(--muted); font-size: 8px; }
.weak-score { color: var(--danger); font-size: 11px; font-weight: 900; }
.recent-date { color: var(--muted); font-size: 8px; white-space: nowrap; }
.recent-card { margin-top: 17px; }
.recent-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.login-prompt { max-width: 680px; margin: 30px auto; border-radius: var(--radius-lg); padding: 55px 30px; text-align: center; }
.login-prompt .lock-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 17px; background: #f0edff; color: var(--violet); font-size: 23px; }
.login-prompt h2 { margin: 0; }
.login-prompt p { max-width: 430px; margin: 8px auto 22px; color: var(--muted); font-size: 12px; }
.data-empty { padding: 22px 0; text-align: center; color: var(--muted); font-size: 10px; }

.site-footer { width: min(1180px, calc(100% - 48px)); margin: 50px auto 0; padding: 24px 4px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #9697a2; font-size: 9px; }
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 14px; flex: 0 0 auto; }
.mobile-nav { display: none; }

.auth-dialog { width: min(430px, calc(100% - 28px)); border: 0; border-radius: 25px; padding: 33px 35px 29px; color: var(--ink); box-shadow: 0 30px 100px rgba(17,17,35,.3); }
.auth-dialog::backdrop { background: rgba(19,20,35,.55); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 14px; right: 15px; width: 31px; height: 31px; border: 0; border-radius: 50%; background: #f2f2f4; font-size: 18px; }
.auth-mark { position: relative; width: 43px; height: 43px; margin-bottom: 25px; }
.auth-mark::before { width: 43px; background: white; }
.auth-mark span { border-color: white; }
.auth-dialog h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.dialog-copy { margin: 7px 0 21px; color: var(--muted); font-size: 11px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: #f2f2f4; }
.auth-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 8px; font-size: 11px; font-weight: 800; }
.auth-tabs button.active { background: white; box-shadow: 0 2px 8px rgba(30,30,50,.08); }
.auth-dialog form { display: grid; }
.auth-dialog label { margin: 0 0 5px; font-size: 10px; font-weight: 800; }
.auth-dialog input { width: 100%; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; font-size: 13px; }
.auth-dialog input:focus { border-color: var(--violet); outline: 3px solid rgba(123, 97, 255, .12); }
.field-help { margin: -5px 0 10px; color: var(--muted); font-size: 9px; }
.form-error { margin: 0 0 9px; padding: 8px 10px; border-radius: 8px; background: #fff0f3; color: #b72e50; font-size: 10px; }
.subtle-link { width: 100%; margin-top: 13px; border: 0; background: none; color: var(--violet); font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.verification-sent { padding: 4px 0 2px; text-align: center; }
.verification-sent > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 15px; border-radius: 16px; background: #f0edff; color: var(--violet); font-size: 22px; }
.verification-sent h3 { margin: 0; font-size: 18px; }
.verification-sent p { margin: 7px 0 18px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.verification-sent p strong { color: var(--ink); }
.danger-link { width: 100%; margin-top: 15px; border: 0; background: none; color: var(--danger); font-size: 10px; font-weight: 800; }
.report-dialog { width: min(480px, calc(100% - 28px)); max-height: min(720px, calc(100dvh - 28px)); overflow-y: auto; border: 0; border-radius: 25px; padding: 33px 35px 29px; color: var(--ink); box-shadow: 0 30px 100px rgba(17,17,35,.3); }
.report-dialog::backdrop { background: rgba(19,20,35,.55); backdrop-filter: blur(7px); }
.report-dialog h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.report-dialog form { display: grid; }
.report-dialog label { margin: 0 0 5px; font-size: 10px; font-weight: 800; }
.report-dialog select, .report-dialog textarea { width: 100%; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.report-dialog textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.report-dialog select:focus, .report-dialog textarea:focus { border-color: var(--violet); outline: 3px solid rgba(123, 97, 255, .12); }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: white; opacity: 0; pointer-events: none; font-size: 11px; font-weight: 700; transition: .25s ease; box-shadow: 0 10px 30px rgba(17,17,35,.22); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.verification-view { min-height: calc(100vh - 210px); display: grid; place-items: center; padding: 45px 0 70px; }
.verification-card { width: min(590px, 100%); border: 1px solid rgba(230,229,236,.9); border-radius: var(--radius-lg); padding: 70px 50px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.verification-state { display: grid; justify-items: center; }
.verification-state .spinner { margin-bottom: 28px; }
.verification-state h1 { max-width: 480px; margin: 0; font-size: clamp(28px, 5vw, 43px); line-height: 1.2; letter-spacing: -.045em; }
.verification-state > p:not(.eyebrow) { max-width: 430px; margin: 13px 0 25px; color: var(--muted); font-size: 13px; }
.verification-icon { display: grid; place-items: center; width: 61px; height: 61px; margin-bottom: 24px; border-radius: 20px; font-size: 27px; font-weight: 900; }
.verification-icon.success { color: var(--success); background: #eaf8f1; }
.verification-icon.failure { color: var(--danger); background: #fff0f3; }
.verification-page .desktop-nav, .verification-page .account-button, .verification-page .mobile-nav { display: none; }

@media (max-width: 850px) {
  .site-header { width: min(100% - 32px, 700px); height: 74px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .shell { width: min(100% - 32px, 700px); }
  .hero { min-height: auto; padding: 38px 2px 30px; }
  .hero-stat { display: none; }
  .quiz-layout { grid-template-columns: 1fr; }
  .study-panel { position: static; padding: 13px; }
  .panel-heading, .guest-note { display: none; }
  .mode-list { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mode-list::-webkit-scrollbar { display: none; }
  .mode-button { flex: 0 0 auto; width: auto; min-width: 123px; grid-template-columns: 26px auto; padding: 8px 10px; }
  .mode-icon { width: 24px; height: 24px; }
  .mode-button small { display: none; }
  .select-label { display: none; }
  select { margin-top: 8px; }
  .question-card { padding: 30px 28px 24px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .recent-list { grid-template-columns: 1fr; }
  .site-footer { width: min(100% - 32px, 700px); margin-bottom: 70px; }
  .mobile-nav { position: fixed; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); height: 58px; padding: 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(23,24,44,.96); box-shadow: 0 15px 45px rgba(20,20,40,.25); backdrop-filter: blur(14px); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 1px; border: 0; border-radius: 12px; background: none; color: #aeb0bd; font-size: 8px; font-weight: 700; }
  .mobile-nav button span { font-size: 15px; line-height: 1.1; }
  .mobile-nav button.active { background: #303147; color: var(--lime); }
}

@media (max-width: 560px) {
  .site-header { width: calc(100% - 28px); }
  .account-button { max-width: 154px; padding: 8px 11px; }
  .account-button #account-label { max-width: 112px; }
  .shell { width: calc(100% - 24px); }
  .hero { padding: 19px 4px 17px; }
  .hero h1 { font-size: 36px; }
  .hero-copy { margin-top: 10px; font-size: 11px; line-height: 1.55; }
  .quiz-layout { gap: 8px; }
  .study-panel { border-radius: 15px; padding: 10px; }
  .mode-button { min-width: 116px; padding: 7px 9px; }
  select { margin-top: 6px; padding-block: 8px; }
  .question-card { min-height: 0; overflow: visible; border-radius: 20px; padding: 18px 15px 14px; }
  .question-meta { margin-bottom: 13px; }
  .category-pill { padding: 4px 8px; }
  .question-card h2 { margin-bottom: 15px; font-size: 18px; line-height: 1.42; }
  .choices { grid-template-columns: 1fr; gap: 6px; }
  .choice-button { min-height: 50px; padding: 8px 11px; font-size: 12px; }
  .choice-key { width: 29px; height: 29px; }
  .answer-result { margin-top: 12px; padding: 11px 12px; }
  .answer-result p { margin: 5px 0 6px; line-height: 1.55; }
  .source-row { margin: 7px 0 0; }
  .report-action-row { margin: 9px 0 0; }
  .answer-result p, .answer-result a { margin-left: 0; }
  .keyboard-hint { display: none; }
  .question-footer { min-height: 0; margin-top: 9px; padding-top: 9px; justify-content: flex-end; }
  #next-button:not([hidden]) { position: fixed; z-index: 8; left: 18px; right: 18px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 68px); min-height: 46px; box-shadow: 0 12px 35px rgba(23,24,44,.28); }
  .question-card.has-floating-next #question-content { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
  .dashboard-heading { padding: 36px 4px 24px; }
  .dashboard-heading > .primary-button { display: none; }
  .summary-grid { gap: 9px; }
  .summary-card { min-height: 135px; padding: 16px; }
  .summary-card strong { font-size: 32px; }
  .dashboard-card { padding: 18px; }
  .category-row { grid-template-columns: 83px minmax(50px, 1fr) 33px; }
  .recent-date { display: none; }
  .site-footer { width: calc(100% - 28px); display: block; }
  .site-footer div { margin-top: 10px; }
  .auth-dialog { padding: 29px 22px 24px; }
  .report-dialog { padding: 29px 22px 24px; }
  .toast { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 126px); }
  .verification-view { min-height: calc(100vh - 180px); padding: 24px 0 50px; }
  .verification-card { padding: 48px 22px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
