:root {
  color-scheme: dark;
  --bg: #06111f;
  --panel: #0b1d32;
  --text: #f7f9fc;
  --muted: #b9c6d7;
  --gold: #f2cf75;
  --line: rgba(255,255,255,.13);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: radial-gradient(ellipse at 10% 0%,rgba(63,140,255,.16),transparent 45%), radial-gradient(ellipse at 100% 10%,rgba(217,170,71,.1),transparent 35%), linear-gradient(145deg,#06111f,#0b1f36 70%,#071727); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
a { color: #c9e2ff; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, legend:focus-visible, h1:focus-visible, h2:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.shell { width: min(1060px,calc(100% - 40px)); margin: 0 auto; padding: 26px 0 36px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 35px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1.25rem; font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.brand img { display: block; width: 48px; height: 50px; object-fit: contain; }
.home-link { font-size: .9375rem; font-weight: 750; text-decoration: none; padding: 10px 0; }
.home-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.test-heading { max-width: 840px; margin: 0 auto 24px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .875rem; font-weight: 800; letter-spacing: .06em; }
h1 { margin: 0 0 12px; font-size: clamp(1.8rem,3.4vw,2.9rem); line-height: 1.14; letter-spacing: -.04em; }
.test-heading > p:last-child { margin: 0; color: var(--muted); }
.test-card { max-width: 840px; margin: 0 auto; padding: 32px; background: linear-gradient(150deg,rgba(16,40,68,.97),rgba(8,23,40,.97)); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 26px 65px rgba(0,0,0,.23); }
.progress-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; font-size: .9375rem; font-weight: 750; }
#question-block { color: var(--gold); }
progress { appearance: none; display: block; width: 100%; height: 6px; margin-bottom: 30px; overflow: hidden; border: 0; border-radius: 20px; background: rgba(255,255,255,.1); accent-color: var(--gold); }
progress::-webkit-progress-bar { background: rgba(255,255,255,.1); border-radius: 20px; }
progress::-webkit-progress-value { background: linear-gradient(90deg,#d9aa47,var(--gold)); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--gold); border-radius: 20px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { width: 100%; padding: 0; margin-bottom: 26px; font-size: clamp(1.125rem,2vw,1.375rem); font-weight: 750; line-height: 1.5; }
.options { display: grid; gap: 12px; }
.option { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 14px; min-height: 74px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(255,255,255,.035); cursor: pointer; transition: background .15s, border-color .15s; }
.option:hover { border-color: #7f93aa; background: rgba(255,255,255,.065); }
.option:has(input:checked) { border-color: var(--gold); background: rgba(217,170,71,.11); }
.option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-letter { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); color: #dce5ef; font-size: .875rem; font-weight: 850; }
.option:has(input:checked) .option-letter { color: #06111f; border-color: var(--gold); background: var(--gold); }
.option-text { font-size: 1rem; line-height: 1.55; }
.test-navigation { display: flex; justify-content: space-between; align-items: stretch; gap: 16px; margin-top: 26px; }
.button { display: inline-flex; min-width: 0; min-height: 54px; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid transparent; border-radius: 11px; font-size: .9375rem; line-height: 1.4; font-weight: 850; text-align: center; text-decoration: none; transition: background .15s; }
.button-gold { color: #071426; background: linear-gradient(115deg,#f5d889,#dfb252); border-color: #f6d68a; }
.button-gold:hover:not(:disabled) { background: #f5d889; }
.button-secondary { color: #dce5ef; border-color: #5b7088; background: transparent; }
.button-secondary:hover:not(:disabled) { background: rgba(255,255,255,.07); }
.button:disabled { opacity: .45; cursor: default; }
.test-note { margin: 20px 0 0; color: var(--muted); font-size: .875rem; }
.error-message { margin-bottom: 0; padding: 12px; border: 1px solid #e5a783; border-radius: 8px; color: #ffe2cb; }
.result-intro { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 36px; align-items: center; margin: 22px 0 44px; }
.score-card { padding: 26px 24px; border: 1px solid rgba(242,207,117,.3); border-radius: 20px; background: linear-gradient(150deg,rgba(217,170,71,.12),rgba(217,170,71,.035)); }
.score-caption, .level-caption { color: var(--muted); font-size: .875rem; font-weight: 700; }
.score-value { margin: 10px 0 3px; white-space: nowrap; line-height: 1; }
.score-value strong { color: var(--gold); font-size: 4.5rem; letter-spacing: -.06em; }
.score-value span { color: #d2dce8; font-size: 1.5rem; }
.score-percent { display: block; margin-top: 15px; color: var(--gold); font-weight: 800; }
.level-card h1 { margin: 8px 0 16px; }
.level-card p { margin: 0; color: #cbd5e1; }
.section-heading { margin-bottom: 20px; }
h2 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin: 0 0 9px; line-height: 1.3; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .9375rem; }
.block-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.block-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.block-card h3 { margin: 0 0 14px; font-size: 1rem; font-weight: 750; }
.block-percent { display: block; color: var(--gold); font-size: 2.15rem; line-height: 1.2; font-weight: 800; }
.block-count { margin: 8px 0 18px; color: var(--muted); font-size: .9375rem; }
.block-meter { height: 5px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 10px; }
.block-meter span { display: block; height: 100%; background: var(--gold); border-radius: 10px; }
.pattern-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.pattern-card { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(63,140,255,.045); }
.pattern-card-gold { border-color: rgba(242,207,117,.22); background: rgba(217,170,71,.045); }
.pattern-card span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .875rem; }
.pattern-card strong { display: block; font-size: 1.125rem; line-height: 1.45; }
.orientation { margin: 18px 0 0; color: var(--muted); font-size: .875rem; }
.final-step { margin-top: 42px; padding: 30px; border: 1px solid rgba(242,207,117,.27); border-radius: 20px; background: linear-gradient(115deg,rgba(217,170,71,.1),rgba(217,170,71,.025)); }
.final-step h2 { max-width: 780px; font-size: clamp(1.25rem,2.5vw,1.8rem); line-height: 1.45; }
.final-step p { color: #ced7e4; margin: 10px 0 22px; }
.button-wide { min-height: 60px; width: 100%; max-width: 560px; }
.radiography { scroll-margin-top: 28px; margin-top: 34px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.radiography > p:not(.eyebrow) { color: #cbd5e1; }
.priority-blocks { display: grid; gap: 24px; margin-top: 24px; }
.priority-block h3 { margin: 0 0 8px; color: var(--gold); font-size: 1rem; }
.priority-block p { color: var(--muted); margin: 0; font-size: .9375rem; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.topic-list li { padding: 6px 11px; color: #dce5ef; border: 1px solid var(--line); border-radius: 7px; font-size: .875rem; }
footer { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .875rem; }
footer a { text-decoration: none; }
.notice { padding: 20px; text-align: center; }
.analytics-preferences { position: static; display: block; min-height: 44px; width: fit-content; margin: 0 auto 20px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); padding-top: 18px; }
  .topbar { margin-bottom: 26px; }
  .brand { font-size: 1.15rem; gap: 9px; }
  .brand img { width: 38px; height: 40px; }
  .home-link { font-size: .875rem; }
  .test-heading { margin-bottom: 20px; }
  .test-card { padding: 24px 20px; border-radius: 18px; }
  progress { margin-bottom: 24px; }
  legend { margin-bottom: 20px; }
  .option { grid-template-columns: 30px minmax(0,1fr); gap: 11px; padding: 15px 14px; }
  .option-letter { width: 30px; height: 30px; }
  .test-navigation { gap: 10px; }
  .test-navigation #next { flex: 1; }
  .test-navigation .button { padding: 12px 15px; }
  .result-intro { grid-template-columns: minmax(0,1fr); gap: 24px; margin-bottom: 30px; }
  .score-card { text-align: center; padding: 23px; }
  .score-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; white-space: normal; }
  .score-value strong { font-size: 4rem; }
  .block-grid { grid-template-columns: 1fr; gap: 12px; }
  .block-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 20px; }
  .block-card h3 { flex: 1 1 9rem; order: 1; margin: 0; }
  .block-count { flex: 1 1 100%; order: 3; margin: 0; }
  .block-percent { flex: 0 1 auto; order: 2; font-size: 1.9rem; }
  .block-meter { flex: 1 1 100%; order: 4; margin-top: 14px; }
  .pattern-grid { grid-template-columns: 1fr; gap: 12px; }
  .pattern-card { padding: 18px 20px; }
  .final-step, .radiography { padding: 24px 20px; }
  .final-step { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .option { transition: none; }
}

/* GC: reflow at 320px and with text enlarged to 200%. */
.topbar > *, .brand, .test-navigation > *, .score-card, .pattern-card {min-width:0;max-width:100%;}
.button {max-width:100%;white-space:normal;overflow-wrap:anywhere;}
.test-navigation {flex-wrap:wrap;}
.test-navigation .button {flex:1 1 8rem;}
.brand img {flex-shrink:0;}
.score-value {display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.25rem;white-space:normal;}
.block-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));}
