:root {
  color-scheme: dark;
  --bg: #0b1b20;
  --panel: #11272d;
  --panel-soft: #10242a;
  --panel-high: #183238;
  --line: #294047;
  --line-soft: #20373e;
  --text: #eff0e8;
  --muted: #a1b5b6;
  --dim: #789194;
  --jade: #a5d5bd;
  --jade-dark: #21483f;
  --gold: #d9be82;
  --red: #f2aaa0;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
a { color: var(--jade); text-underline-offset: 4px; }
a:hover { color: #c5eed9; }
button, a { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: #326555; color: #fff; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 4vw, 54px); }
h2 { font-size: 34px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
img { display: block; max-width: 100%; }
.container { max-width: 1264px; width: calc(100% - 96px); margin-left: auto; margin-right: auto; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 20px; background: var(--jade); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line-soft); background: rgba(11,27,32,.95); }
.header-inner { max-width: 1360px; width: calc(100% - 96px); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.brand span { display: flex; flex-direction: column; line-height: 1.3; }
.brand strong { font-size: 13px; letter-spacing: .17em; font-weight: 600; }
.brand small { font-size: 10px; letter-spacing: .35em; margin-top: 4px; color: var(--gold); }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 13px; padding: 31px 0; border-bottom: 2px solid transparent; }
.site-header nav a[aria-current] { color: var(--text); border-bottom-color: var(--jade); }
.site-header nav a span { color: var(--gold); font-size: 15px; margin-left: 5px; }
.site-header nav a:hover { color: var(--jade); }
.eyebrow { color: var(--gold); font-size: 10px; letter-spacing: .19em; font-weight: 600; line-height: 1.6; }
.btn { min-height: 46px; border-radius: 6px; border: 1px solid transparent; padding: 11px 19px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; text-align: center; text-decoration: none; font-size: 13px; line-height: 1.5; font-weight: 600; }
.btn-primary { background: var(--jade); color: #102d29; border-color: var(--jade); }
.btn-primary:hover:not(:disabled) { background: #c2e8d5; border-color: #c2e8d5; color: #102d29; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #c8d7d5; border-color: #3a5358; }
.btn-secondary:hover:not(:disabled) { background: #1c383d; border-color: #789994; color: #fff; }
.btn-text { border: 0; color: var(--jade); background: transparent; min-height: 42px; padding-left: 0; padding-right: 0; }
.btn-text:hover:not(:disabled) { color: #d4f0df; }
.btn-danger { min-height: 38px; color: var(--red); background: none; padding: 8px 12px; font-weight: 400; }
.btn-danger:hover:not(:disabled) { background: #472b2c; }
.btn-wide { width: 100%; }
.hero { position: relative; overflow: hidden; background: #10252a; min-height: 558px; margin-top: 32px; border: 1px solid #294348; border-radius: 14px; isolation: isolate; }
.hero-scene { position: absolute; z-index: -1; height: 100%; width: 69%; object-fit: cover; object-position: center; right: 0; top: 0; }
.hero-copy { position: relative; padding: 65px 54px 150px; width: 65%; }
.hero-copy h1 { margin-top: 19px; font-size: clamp(42px, 4.8vw, 66px); line-height: 1.13; letter-spacing: -.04em; }
.hero-copy h1 em { font-weight: 400; color: var(--jade); }
.hero-description { margin: 23px 0 28px; font-size: 15px; color: #b0c3c2; max-width: 425px; line-height: 1.8; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8ba8a6; margin-top: 17px; }
.hero-note .icon { width: 15px; height: 15px; flex-basis: 15px; }
.hero-stamp { position: absolute; right: 36px; bottom: 152px; color: #c8c8a5; font-family: Georgia,serif; font-size: 51px; opacity: .65; display: flex; flex-direction: column; align-items: center; }
.hero-stamp span { font: 8px/1.5 ui-sans-serif,sans-serif; letter-spacing: .18em; margin-top: 7px; writing-mode: vertical-rl; }
.hero-bottom { display: flex; align-items: center; position: absolute; left: 54px; right: 54px; bottom: 0; padding: 24px 0; border-top: 1px solid #3c57574d; gap: 52px; }
.hero-bottom > div { display: flex; align-items: center; gap: 12px; }
.hero-bottom strong { font-family: Georgia,serif; font-weight: 400; color: #e7e2cc; font-size: 27px; line-height: 1; }
.hero-bottom span { font-size: 11px; color: #9eb9b5; }
.hero-bottom .hero-bottom-last { margin-left: auto; }
.library-section { margin-top: 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.section-heading h2 { margin-top: 9px; }
.catalog-check { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; flex-shrink: 0; }
.catalog-check > span:last-child { font-size: 10px; color: var(--dim); }
.source-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #325348; color: #b3d5be; border-radius: 4px; padding: 4px 8px; background: #19382d77; font-size: 10px; line-height: 1.6; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #a4d5aa; }
.boss-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.boss-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.boss-card-art { height: 150px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 70% 90%, #31635c77, transparent 60%), linear-gradient(125deg,#163432,#143033 45%,#1a383c); isolation: isolate; }
.boss-card-art::before { content: ''; position: absolute; width: 310px; height: 310px; border: 1px solid #7baca027; border-radius: 50%; right: -24px; top: -145px; z-index: -1; box-shadow: 0 0 0 30px #7baca009,0 0 0 60px #7baca008; }
.boss-card-art::after { content: ''; position: absolute; height: 160px; width: 150%; background: #0a202b99; transform: rotate(-16deg); left: 10%; top: 116px; z-index: -1; }
.boss-card-1 .boss-card-art { background: radial-gradient(ellipse at 70% 90%, #64563c55, transparent 60%), linear-gradient(125deg,#263733,#263831 45%,#223332); }
.boss-card-2 .boss-card-art { background: radial-gradient(ellipse at 70% 90%, #486a8155, transparent 60%), linear-gradient(125deg,#203444,#1f3241 45%,#26363e); }
.boss-sigil { position: absolute; right: 56px; top: 25px; width: 108px; height: 108px; border: 1px solid #89bba14d; display: grid; place-items: center; transform: rotate(45deg); }
.boss-sigil::before { content: ''; width: 88px; height: 88px; border: 1px solid #89bba129; position: absolute; }
.boss-sigil .icon { width: 44px; height: 44px; color: #95bbaa; stroke-width: .75; transform: rotate(-45deg); }
.boss-card-1 .boss-sigil { border-color: #d5bc7444; }
.boss-card-1 .boss-sigil .icon { color: #c8b786; }
.encounter-index { position: absolute; left: 26px; bottom: 23px; font-size: 9px; letter-spacing: .19em; color: #a5c0b9; }
.tag { position: absolute; left: 25px; top: 22px; font-size: 9px; letter-spacing: .07em; color: #e5cd91; border: 1px solid #a78d4f66; padding: 3px 9px; background: #1c302c99; border-radius: 3px; }
.boss-card-copy { padding: 24px 26px 19px; display: flex; flex-direction: column; flex: 1; }
.boss-meta { color: var(--gold); font-size: 10px; letter-spacing: .09em; }
.boss-card h3 { font-family: Georgia,serif; font-size: 29px; font-weight: 400; margin: 6px 0 11px; }
.boss-summary { color: var(--muted); font-size: 13px; line-height: 1.75; padding-bottom: 23px; }
.boss-card-bottom { border-top: 1px solid var(--line); padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }
.boss-card-bottom > span { font-size: 10px; color: #91adae; }
.dot-divider { margin: 0 8px; }
.boss-card-bottom .btn { font-size: 11px; gap: 8px; }
.boss-card-bottom .icon { width: 17px; height: 17px; flex-basis: 17px; }
.availability-note { font-size: 11px; margin-top: 10px; color: var(--gold); }
.process-strip { margin-top: 45px; padding: 29px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
.process-item { display: flex; align-items: flex-start; padding: 0 28px; gap: 13px; border-right: 1px solid var(--line); }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: 0; padding-right: 0; }
.process-number { font: 16px Georgia,serif; color: var(--gold); padding-top: 4px; }
.process-item h3 { font-size: 13px; margin-bottom: 5px; }
.process-item p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.process-item > .icon { margin-left: auto; margin-top: 5px; color: #5e9182; width: 22px; height: 22px; flex-basis: 22px; }
.source-note { display: flex; gap: 12px; margin-top: 25px; color: var(--dim); font-size: 11px; line-height: 1.8; }
.source-note .icon { color: #86a89f; width: 17px; height: 17px; margin-top: 3px; flex-basis: 17px; }
.source-note strong { font-weight: 500; color: #b4c4bf; }
.site-footer { max-width: 1264px; width: calc(100% - 96px); margin: 58px auto 0; padding: 28px 0 32px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 32px; color: var(--dim); font-size: 10px; }
.site-footer span { color: #adc3bc; font-size: 9px; letter-spacing: .18em; }
.site-footer p { margin-top: 7px; max-width: 600px; }
#footer-scope { color: #a0ae9c; flex-shrink: 0; padding-top: 5px; }
.back-link { margin-top: 23px; margin-bottom: 28px; font-size: 12px; color: var(--muted); }
.back-link .icon { width: 17px; height: 17px; flex-basis: 17px; }
.lesson-heading { display: flex; justify-content: space-between; gap: 36px; padding-bottom: 35px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.lesson-heading h1 { margin-top: 11px; margin-bottom: 17px; }
.lead { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 700px; }
.lesson-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; padding-top: 12px; flex-shrink: 0; font-size: 11px; color: var(--muted); }
.lesson-layout { display: grid; grid-template-columns: minmax(0,1fr) 336px; align-items: start; gap: 40px; }
.mechanics-list .section-heading h2, .video-section .section-heading h2 { font-size: 29px; }
.mechanics-list .section-heading { margin-bottom: 25px; }
.mechanic-card { display: flex; gap: 20px; padding: 25px 0 27px; border-top: 1px solid var(--line); }
.mechanic-number { font: 20px Georgia,serif; color: #819d94; min-width: 26px; padding-top: 3px; }
.mechanic-content { min-width: 0; flex: 1; }
.mechanic-content h3 { font-size: 18px; font-weight: 500; margin-bottom: 17px; }
.cue-box { background: #20303a; padding: 13px 17px; border-left: 2px solid #c4b27c; margin-bottom: 12px; border-radius: 0 5px 5px 0; }
.tiny-label { color: var(--gold); letter-spacing: .12em; font-size: 9px; font-weight: 600; }
.cue-box p { font-size: 13px; color: #d1d9d5; margin-top: 3px; }
.action-box { background: #17352f; padding: 13px 17px; border-left: 2px solid #89bea4; border-radius: 0 5px 5px 0; }
.action-box .tiny-label { color: var(--jade); }
.action-box p { font-size: 14px; color: #d1e5d7; margin-top: 3px; }
.mechanic-why { margin: 14px 0 11px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.mechanic-why strong { color: #c5d4cb; font-weight: 500; }
.mechanic-sources { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.citation-link { display: inline-flex; align-items: center; gap: 5px; color: #96b9ac; font-size: 10px; line-height: 1.7; text-decoration: none; }
.citation-link:hover { text-decoration: underline; }
.citation-link .icon { width: 12px; height: 12px; flex-basis: 12px; }
.lesson-aside { position: sticky; top: 26px; }
.readiness-card { background: linear-gradient(145deg,#1a3436,#12292f); border: 1px solid #35514c; border-radius: 12px; padding: 26px; }
.readiness-symbol { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; background: #29493f; border: 1px solid #4a6d58; border-radius: 50%; margin-bottom: 22px; color: var(--jade); }
.readiness-symbol .icon { width: 23px; height: 23px; flex-basis: 23px; }
.readiness-card h2 { font-size: 29px; margin: 11px 0 15px; line-height: 1.22; }
.readiness-card > p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.assessment-facts { display: flex; flex-direction: column; margin-top: 17px; gap: 7px; font-size: 11px; color: #c2d5cb; }
.assessment-facts span { display: flex; align-items: center; gap: 8px; }
.assessment-facts .icon { color: #9bcaad; width: 14px; height: 14px; flex-basis: 14px; }
.profile-divider { height: 1px; background: #34514c; margin: 25px 0; }
.readiness-card h3 { font-size: 14px; margin-bottom: 7px; }
.readiness-card .profile-note { font-size: 10px; line-height: 1.8; }
.player-form { margin-top: 19px; }
.field { display: block; margin-bottom: 14px; }
.field > span { font-size: 11px; color: #d1dcd5; display: block; margin-bottom: 6px; }
.field .optional { font-size: 10px; color: var(--dim); display: inline; margin-left: 4px; }
input, select { width: 100%; color: var(--text); background: #0d2329; border: 1px solid #385056; border-radius: 5px; padding: 11px 12px; min-height: 43px; font-size: 12px; }
input::placeholder { color: #778e91; opacity: 1; }
input:focus, select:focus { border-color: var(--jade); }
.player-form .btn { margin-top: 7px; font-size: 12px; }
.player-form .field, .recording-notice { grid-column: 1 / -1; }
.recording-notice { color: #bacdc0; font-size: 11px; line-height: 1.75; margin: 2px 0 12px; }
.readiness-card .local-note { margin-top: 14px; font-size: 10px; line-height: 1.7; color: #91aaa5; }
.video-section { margin-top: 33px; }
.video-section .section-heading { margin-bottom: 13px; }
.muted { color: var(--muted); font-size: 12px; }
.video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.video-card { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel); }
.video-screen { aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 50% 110%,#274d48,#0d2027 80%); }
.video-screen iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-load { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100%; border: 0; background: none; color: #c9d9cc; text-decoration: none; font-size: 11px; gap: 7px; cursor: pointer; padding: 12px; }
.video-load:hover { background: #2d4d3944; }
.video-load small { font-size: 9px; color: #91a6a1; }
.play-circle { height: 39px; width: 39px; border: 1px solid #b9c6a966; border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin-bottom: 3px; }
.play-circle .icon { width: 18px; height: 18px; margin-left: 3px; }
.video-info { padding: 17px; }
.video-info h3 { font-size: 12px; font-weight: 500; line-height: 1.65; }
.video-info p { color: var(--dim); font-size: 10px; margin-top: 7px; }
.video-info p.evidence-note { color: #a2b7b0; line-height: 1.8; }
.video-info a { margin-top: 11px; }
.schematic { display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin: 14px 0; border: 1px solid var(--line); color: #9cc2b3; border-radius: 5px; }
.schematic > span { font-size: 21px; }
.schematic .schematic-label { font-size: 11px; margin-left: 8px; color: var(--muted); }
.guide-disclosure { background: #1c2e31; border: 1px solid #3b4c45; padding: 15px 18px; border-radius: 7px; color: #b9c6b8; font-size: 11px; line-height: 1.8; margin-bottom: 25px; }
.control-note { margin: 0 0 25px; border: 1px solid #40514b; border-radius: 5px; padding: 12px 15px; color: #c7d1c2; font-size: 12px; }
.resume-attempt { padding-bottom: 24px; margin-bottom: 22px; border-bottom: 1px solid #34514c; }
.resume-attempt p { color: #c1d7c9; font-size: 12px; margin-bottom: 10px; }
.resume-attempt small { color: var(--muted); display: block; margin-top: 10px; font-size: 10px; line-height: 1.8; }
.expiry-note { font-size: 9px; margin-top: 8px; color: #90aba0; }
.initial-loading { display: flex; justify-content: center; align-items: center; gap: 11px; padding: 100px 24px; color: var(--muted); font-size: 13px; }
.spinner { display: inline-block; width: 17px; height: 17px; border: 2px solid #35504f; border-top-color: var(--jade); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-panel { text-align: center; padding: 80px 24px; color: var(--muted); }
.empty-panel > .icon { width: 38px; height: 38px; color: var(--jade); margin-bottom: 15px; }
.empty-panel h1, .empty-panel h3 { color: var(--text); margin-bottom: 13px; }
.empty-panel p { max-width: 540px; margin: auto; }
.empty-panel .btn { margin-top: 22px; }
.alert { padding: 12px 15px; border: 1px solid #a7635277; border-radius: 5px; color: #f0c4b8; background: #412b2a; font-size: 12px; line-height: 1.7; }
.form-error:not(:empty) { margin: 14px 0; }
.form-error .btn { margin-top: 10px; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; max-width: calc(100% - 32px); background: #d1e5d5; border: 1px solid #e5efdf; color: #15322a; padding: 12px 20px; border-radius: 7px; font-size: 12px; box-shadow: 0 12px 35px #0005; opacity: 0; transform: translate(-50%,12px); pointer-events: none; transition: opacity .2s,transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.quiz-page { max-width: 1136px; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; gap: 20px; }
.quiz-topline .btn { color: var(--muted); font-size: 12px; }
.quiz-topline > span { font-size: 10px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.quiz-topline > span .icon { width: 13px; height: 13px; flex-basis: 13px; }
.quiz-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; border: 1px solid #33504d; border-radius: 12px; background: var(--panel); overflow: hidden; min-height: 630px; }
.quiz-card { padding: 36px 40px 33px; }
.quiz-progress { margin-top: 23px; margin-bottom: 29px; }
.quiz-progress > div { display: flex; justify-content: space-between; font-size: 9px; color: #a8beb4; letter-spacing: .12em; }
.quiz-progress > div span:last-child { color: var(--muted); letter-spacing: 0; }
.visual-quiz-intro { display: flex; align-items: center; gap: 9px; color: #c2d7c8; font-size: 12px; line-height: 1.7; margin-bottom: 15px; }
.visual-quiz-intro .icon { color: var(--gold); width: 17px; height: 17px; flex-basis: 17px; }
.question-media { margin: 0 0 23px; border: 1px solid #486052; border-radius: 9px; overflow: hidden; background: #0c2127; }
.question-media-screen { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at 50% 110%, #2b4743, #10252c 80%); }
.question-media-screen.has-fallback { aspect-ratio: auto; min-height: 160px; }
.question-media-screen iframe, .question-media-screen img, .question-media-screen video { width: 100%; height: 100%; display: block; border: 0; }
.question-media-screen img, .question-media-screen video { object-fit: contain; }
.question-media-play { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; gap: 6px; padding: 18px; color: #d7e4d9; background: transparent; border: 0; cursor: pointer; }
.question-media-play:hover { background: #47614a22; }
.question-media-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
.question-media-play .play-circle { width: 59px; height: 59px; margin-bottom: 6px; background: #193630; border-color: #809d76; }
.question-media-play .play-circle .icon { width: 25px; height: 25px; }
.question-media-play strong { font-size: 18px; font-weight: 500; }
.question-media-play > span:not(.play-circle) { color: #acc3b8; font-size: 12px; }
.question-media-play small { color: #8fa99f; font-size: 10px; }
.question-media-caption { padding: 16px 18px; border-top: 1px solid #364d48; }
.media-kind { color: var(--gold); font-size: 10px; letter-spacing: .04em; }
.media-caption-text { color: #cad8ce; font-size: 12px; line-height: 1.75; margin-top: 7px; }
.media-description { color: #b2c7bd; font-size: 12px; line-height: 1.8; margin-top: 8px; }
.media-description strong { font-weight: 500; color: #cbd7ca; }
.media-credit { color: #8ea99b; font-size: 10px; line-height: 1.75; margin-top: 8px; }
.question-media-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 19px; }
.question-media-controls:not(:empty) { margin-top: 12px; }
.question-media-controls .citation-link { font-size: 11px; min-height: 38px; }
.media-replay { font-size: 11px; min-height: 39px; padding: 8px 12px; }
.media-replay .icon { width: 14px; height: 14px; flex-basis: 14px; }
.media-help { color: #8fa799; font-size: 10px; line-height: 1.75; margin-top: 9px; }
.question-media-unavailable { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; gap: 10px; padding: 20px; text-align: center; color: #c1d3c6; }
.question-media-unavailable > .icon { color: var(--gold); }
.question-media-unavailable strong { font-size: 15px; font-weight: 500; }
.question-media-unavailable p { font-size: 12px; max-width: 480px; line-height: 1.7; }
.question-media-unavailable small { color: #90aa9c; font-size: 10px; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 3px; border: 0; border-radius: 3px; background: #2c4446; display: block; margin-top: 11px; overflow: hidden; }
progress::-webkit-progress-bar { background: #2c4446; }
progress::-webkit-progress-value { background: var(--jade); }
progress::-moz-progress-bar { background: var(--jade); }
.scenario-cue { border-left: 2px solid var(--gold); padding: 12px 16px; background: #253336; margin-bottom: 22px; border-radius: 0 5px 5px 0; }
.scenario-cue p { color: #d7d9cb; font-size: 14px; margin-top: 3px; }
.question-title { font-size: 29px; line-height: 1.35; }
.question-instruction { font-size: 12px; color: var(--muted); margin-top: 10px; }
.answer-options { display: grid; gap: 11px; padding: 0; margin: 23px 0 30px; border: 0; min-width: 0; }
.answer-option { position: relative; display: flex; gap: 12px; align-items: center; cursor: pointer; padding: 16px; border: 1px solid #344c50; border-radius: 7px; background: #0f252c; min-height: 64px; transition: background .2s,border-color .2s; }
.answer-option:hover { background: #1c383a; border-color: #637f77; }
.answer-option:has(input:checked) { border-color: #95c6ac; background: #213f36; }
.answer-option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; min-height: 0; padding: 0; }
.option-letter { flex: 0 0 27px; height: 27px; display: grid; place-items: center; border: 1px solid #3e565a; border-radius: 4px; color: #a7bbb7; font-size: 11px; }
.answer-option:has(input:checked) .option-letter { border-color: #719f86; color: #c6e0cc; background: #385849; }
.option-text { color: #c8d6d1; font-size: 13px; line-height: 1.7; }
.option-selected { width: 18px; height: 18px; margin-left: auto; visibility: hidden; color: var(--jade); }
.option-selected .icon { width: 18px; height: 18px; }
.answer-option:has(input:checked) .option-selected { visibility: visible; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 25px; }
.quiz-actions .btn { font-size: 11px; }
.quiz-sidebar { background: #173132; border-left: 1px solid #35504b; padding: 39px 27px 25px; display: flex; flex-direction: column; }
.small-emblem { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #47685a; color: var(--gold); transform: rotate(45deg); margin: 8px 0 32px 5px; }
.small-emblem .icon { transform: rotate(-45deg); }
.quiz-sidebar h2 { font-size: 25px; color: #e3e2cf; line-height: 1.28; }
.quiz-sidebar > p { color: #a2bbb1; font-size: 12px; margin-top: 16px; line-height: 1.9; }
.question-dots { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-top: 26px; }
.question-dots button { height: 29px; padding: 0; border: 1px solid #406059; background: transparent; color: #b0c4b7; border-radius: 4px; font-size: 10px; }
.question-dots button.answered { background: #3a5944; border-color: #7b9d74; color: #e4ead7; }
.question-dots button.current { outline: 1px solid #d6bc7d; outline-offset: 2px; }
.quiz-sidebar-footer { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; font-size: 11px; color: #a7bdb2; }
.quiz-sidebar-footer strong { color: #d6e0d4; margin-top: 6px; font-size: 13px; font-weight: 500; }
.quiz-sidebar-footer .pass-label { border-top: 1px solid #3b5549; padding-top: 15px; margin-top: 20px; font-size: 10px; color: var(--gold); }
.result-page { max-width: 1000px; }
.result-hero { margin: 38px 0 45px; padding: 44px 50px; border: 1px solid #38584a; border-radius: 12px; background: radial-gradient(ellipse at 50% 0,#2a4e3c88,transparent 65%),#142b2d; text-align: center; }
.result-icon { width: 64px; height: 64px; border: 1px solid #698964; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; color: #bfdaad; background: #33503c; }
.result-icon .icon { width: 34px; height: 34px; flex-basis: 34px; stroke-width: 1.2; }
.result-hero h1 { margin: 12px 0 17px; font-size: 41px; }
.result-hero .lead { margin: auto; max-width: 620px; font-size: 13px; }
.score-summary { display: flex; align-items: center; justify-content: center; text-align: left; gap: 18px; margin: 26px 0; }
.score-summary > strong { font: 44px Georgia,serif; color: #d2e4bf; }
.score-summary span { color: #cfdbc8; font-size: 12px; padding-left: 18px; border-left: 1px solid #57705b; }
.score-summary small { display: block; color: #96b09f; font-size: 10px; margin-top: 3px; }
.completion-receipt { border: 1px dashed #54735d; border-radius: 7px; padding: 16px 20px; background: #10262177; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; text-align: left; margin: 0 auto 24px; max-width: 550px; }
.completion-receipt > div { display: flex; flex-direction: column; }
.completion-receipt .btn { margin-left: auto; font-size: 10px; min-height: 34px; padding: 6px 12px; }
.completion-receipt .tiny-label { color: #b2c5a3; }
.completion-code { font-family: ui-monospace,monospace; font-size: 16px; letter-spacing: .1em; color: #e0e8cf; }
.completion-receipt p { width: 100%; border-top: 1px solid #405344; padding-top: 9px; font-size: 11px; color: #cad9c3; overflow-wrap: anywhere; }
.completion-receipt small { font-size: 10px; color: #93ab95; width: 100%; margin-top: -10px; }
.result-actions { display: flex; gap: 12px; justify-content: center; }
.completion-disclaimer { max-width: 590px; color: #8ca798; font-size: 10px; margin: 22px auto 0; }
.review-card { display: flex; gap: 17px; padding: 25px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; background: var(--panel); }
.review-status { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 1px solid #3c6750; background: #234334; color: #add5b3; border-radius: 50%; }
.review-status .icon { width: 16px; height: 16px; flex-basis: 16px; }
.review-content { min-width: 0; width: 100%; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.review-outcome { color: #a9caa9; font-size: 10px; }
.review-card.incorrect .review-status { border-color: #95634f; background: #4a342d; color: #edb795; }
.review-card.incorrect .review-outcome { color: #e0b68b; }
.review-cue { font-size: 11px; color: #9fb4aa; margin-top: 10px; }
.review-content h3 { font-size: 16px; font-weight: 500; margin: 5px 0 15px; }
.selected-answer, .correct-answer { font-size: 12px; line-height: 1.9; color: #bfd0c2; }
.selected-answer strong, .correct-answer strong { font-weight: 500; color: #e0e3d3; }
.incorrect .selected-answer { color: #d5b8a3; }
.correct-answer { color: #b5d5b7; margin-top: 6px; }
.review-explanation { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 15px; color: #a7bcb0; font-size: 12px; line-height: 1.9; }
.review-content .mechanic-sources { margin-top: 10px; }
.review-media { margin-top: 16px; }
.review-media > summary { color: #bcd2bf; font-size: 12px; line-height: 1.8; padding: 6px 0; cursor: pointer; }
.review-media > summary:hover { color: #ddedda; }
.review-media .question-media { margin-top: 10px; margin-bottom: 16px; max-width: 710px; }
.review-attack-name { color: #8fa99b; font-size: 10px; margin-top: 8px; }
.retry { border-color: #6f6446; background: radial-gradient(ellipse at 50% 0,#625a3380,transparent 65%),#1b2c2c; }
.retry .result-icon { border-color: #9c8a52; background: #514a31; color: #e2ca8f; }
.login-page { min-height: 610px; }
.login-card { max-width: 445px; margin: 10px auto 50px; background: var(--panel); border: 1px solid #35534b; border-radius: 12px; padding: 38px; }
.login-card h1 { margin: 10px 0 15px; font-size: 42px; }
.login-card .lead { font-size: 13px; }
.login-card form { margin-top: 27px; }
.login-card .field { margin-bottom: 21px; }
.login-card .local-note { color: var(--dim); font-size: 10px; margin-top: 20px; line-height: 1.8; }
.admin-page { margin-top: 45px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.admin-heading h1 { margin: 10px 0 12px; font-size: 44px; }
.admin-heading .lead { font-size: 13px; }
.admin-heading .btn { flex-shrink: 0; font-size: 11px; }
.admin-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 32px 0; min-height: 147px; }
.stat-card { display: flex; flex-direction: column; border: 1px solid #2e4947; background: var(--panel); border-radius: 9px; padding: 20px 25px; }
.stat-card > span { font-size: 11px; color: #b5c8bc; }
.stat-card strong { font: 37px Georgia,serif; margin: 6px 0; color: #d4e4c7; }
.stat-card small { font-size: 10px; color: var(--dim); }
.admin-panel { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.admin-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 26px; border-bottom: 1px solid var(--line); }
.admin-panel-title h2 { font-family: inherit; letter-spacing: 0; font-size: 17px; font-weight: 500; }
.admin-panel-title p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.admin-panel-title .btn { font-size: 11px; min-height: 40px; flex-shrink: 0; }
.admin-filters { display: flex; align-items: center; gap: 12px; padding: 20px 26px; }
.search-field { position: relative; flex: 1; }
.search-field > .icon { position: absolute; top: 13px; left: 13px; color: var(--dim); width: 17px; height: 17px; }
.search-field input { padding-left: 39px; height: 43px; }
.admin-filters select { width: 220px; }
.admin-filters .btn { min-height: 43px; font-size: 11px; }
.admin-rows { min-height: 200px; }
.table-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 70px 25px; font-size: 12px; color: var(--muted); }
.admin-rows > .alert { margin: 10px 26px 15px; }
.admin-rows > .btn { margin: 0 26px 25px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 900px; }
th { font-size: 9px; font-weight: 500; color: #a3b8af; letter-spacing: .09em; padding: 12px 19px; background: #173035; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
th:first-child,td:first-child { padding-left: 26px; }
td { padding: 20px 19px; font-size: 11px; border-bottom: 1px solid #294148; color: #b5c6bd; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong { font-weight: 500; color: #e0e5d8; font-size: 12px; }
.player-name { display: block; overflow-wrap: anywhere; }
.cell-secondary { display: block; font-size: 10px; line-height: 1.7; color: var(--dim); margin-top: 3px; overflow-wrap: anywhere; }
.pass-chip { display: inline-flex; align-items: center; gap: 4px; color: #bce0b9; font-size: 10px; background: #274b36; border: 1px solid #456b44; padding: 2px 7px; border-radius: 4px; }
.pass-chip .icon { width: 12px; height: 12px; flex-basis: 12px; }
td code { font-size: 10px; color: #bdccb1; }
.ip-address { display: block; max-width: 200px; overflow-wrap: anywhere; }
.shared-ip-chip { display: inline-block; border: 1px solid #756b45; border-radius: 4px; color: #e0ca92; background: #3d3a24; font-size: 9px; line-height: 1.6; margin-top: 6px; padding: 2px 6px; white-space: nowrap; }
td .btn { font-size: 10px; }
.table-empty { padding-top: 50px; padding-bottom: 50px; }
.table-empty h3 { font-family: Georgia,serif; font-size: 25px; font-weight: 400; }
.table-empty p { font-size: 12px; }
.admin-note { display: flex; gap: 8px; align-items: flex-start; color: var(--dim); font-size: 10px; margin-top: 22px; }
.admin-note .icon { width: 13px; height: 13px; flex-basis: 13px; margin-top: 2px; }

@media (min-width: 1450px) { .hero-copy h1 { font-size: 66px; } }
@media (max-width: 1150px) {
  .container, .site-footer { width: calc(100% - 64px); }
  .header-inner { width: calc(100% - 64px); }
  .hero-copy { width: 72%; padding-left: 39px; }
  .hero-bottom { left: 39px; right: 39px; gap: 28px; }
  .hero-bottom > div { gap: 8px; }
  .hero-bottom span { max-width: 95px; line-height: 1.6; }
  .lesson-layout { gap: 26px; grid-template-columns: minmax(0,1fr) 306px; }
  .readiness-card { padding: 22px; }
  .boss-card-bottom { flex-wrap: wrap; gap: 2px; }
  .boss-card-bottom > span { width: 100%; }
  .boss-card-bottom .btn { justify-content: space-between; width: 100%; }
  .process-item { padding: 0 20px; }
  .process-item > .icon { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .quiz-layout { grid-template-columns: minmax(0,1fr) 225px; }
  .quiz-card { padding: 32px; }
  .quiz-sidebar { padding-left: 23px; padding-right: 23px; }
}

@media (max-width: 850px) {
  .hero { min-height: 520px; }
  .hero-copy { width: 80%; padding: 48px 34px 144px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-scene { width: 85%; opacity: .7; object-position: 60%; }
  .hero-bottom { left: 34px; right: 34px; }
  .hero-bottom strong { font-size: 25px; }
  .hero-bottom span { font-size: 10px; }
  .hero-stamp { display: none; }
  .hero-note { max-width: 330px; line-height: 1.8; align-items: flex-start; }
  .hero-note .icon { margin-top: 2px; }
  .library-section { margin-top: 45px; }
  .section-heading h2 { font-size: 29px; }
  .catalog-check { display: none; }
  .boss-card-art { height: 125px; }
  .boss-card-copy { padding: 21px; }
  .boss-card h3 { font-size: 25px; }
  .boss-sigil { right: 29px; width: 90px; height: 90px; }
  .boss-sigil::before { width: 72px; height: 72px; }
  .encounter-index { left: 21px; bottom: 17px; }
  .tag { left: 20px; top: 16px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { position: static; }
  .readiness-card { padding: 30px; }
  .readiness-card h2 br { display: none; }
  .player-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 18px; }
  .player-form .form-error, .player-form > .btn { grid-column: 1 / -1; }
  .lesson-heading { gap: 20px; }
  .lesson-meta { font-size: 10px; }
  .lesson-meta .source-badge { font-size: 9px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-sidebar { border-left: 0; border-top: 1px solid #35504b; padding: 19px 30px; display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; }
  .quiz-sidebar .small-emblem, .quiz-sidebar > h2, .quiz-sidebar > p { display: none; }
  .question-dots { margin-top: 0; grid-template-columns: repeat(8,27px); gap: 7px; align-self: center; }
  .quiz-sidebar-footer { padding: 0; margin: 0; align-self: center; text-align: right; }
  .quiz-sidebar-footer > p:first-child { display: none; }
  .quiz-sidebar-footer strong { margin-top: 0; font-size: 11px; }
  .quiz-sidebar-footer > span { font-size: 10px; }
  .quiz-sidebar-footer .pass-label { border-top: 0; margin-top: 4px; padding-top: 0; font-size: 9px; }
  .admin-heading h1 { font-size: 36px; }
  .stat-card { padding: 17px 19px; }
  .admin-stats { gap: 14px; }
  .admin-filters { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .admin-filters select { flex: 1; }
  .site-footer { flex-direction: column; gap: 8px; margin-top: 40px; }
  #footer-scope { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .container, .site-footer { width: calc(100% - 36px); }
  .header-inner { min-height: 78px; width: calc(100% - 36px); gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 10px; letter-spacing: .13em; }
  .brand small { font-size: 8px; letter-spacing: .28em; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: 10px; padding: 27px 0; }
  .site-header nav a span { display: none; }
  .hero { margin-top: 19px; min-height: 556px; border-radius: 10px; }
  .hero-copy { padding: 35px 24px 151px; width: 100%; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: .13em; }
  .hero-copy h1 { margin-top: 18px; font-size: clamp(34px,8.7vw,48px); letter-spacing: -.045em; }
  .hero-scene { width: 100%; opacity: .4; object-position: 63%; }
  .hero-description { margin-top: 20px; max-width: 355px; font-size: 13px; line-height: 1.9; }
  .hero-copy .btn { font-size: 12px; }
  .hero-note { font-size: 10px; line-height: 1.8; max-width: 280px; }
  .hero-bottom { left: 24px; right: 24px; padding: 22px 0; gap: 18px; }
  .hero-bottom > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 33.333%; }
  .hero-bottom strong { font-size: 25px; }
  .hero-bottom span { font-size: 9px; max-width: 90px; }
  .hero-bottom .hero-bottom-last { margin-left: 0; }
  .library-section { margin-top: 37px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 28px; max-width: 290px; }
  .eyebrow { font-size: 9px; }
  .boss-grid { grid-template-columns: 1fr; gap: 19px; }
  .boss-card-art { height: 140px; }
  .boss-card-copy { padding: 22px; }
  .boss-card h3 { font-size: 29px; }
  .boss-summary { font-size: 12px; padding-bottom: 20px; }
  .boss-card-bottom { flex-wrap: nowrap; gap: 12px; }
  .boss-card-bottom > span { width: auto; font-size: 9px; flex-shrink: 0; }
  .boss-card-bottom .btn { width: auto; gap: 6px; font-size: 10px; }
  .dot-divider { margin: 0 5px; }
  .boss-sigil { right: 44px; top: 25px; }
  .boss-meta { font-size: 9px; }
  .process-strip { margin-top: 28px; grid-template-columns: 1fr; gap: 19px; padding: 24px 0; }
  .process-item { padding: 0; border: 0; gap: 17px; }
  .process-item > .icon { display: block; }
  .process-item h3 { margin-bottom: 3px; }
  .process-item p { font-size: 10px; }
  .source-note { font-size: 10px; gap: 9px; }
  .site-footer { font-size: 9px; padding-top: 22px; }
  .site-footer span { font-size: 8px; }
  .back-link { font-size: 11px; margin-top: 15px; margin-bottom: 21px; }
  .lesson-heading { display: block; padding-bottom: 26px; margin-bottom: 29px; }
  .lesson-heading h1 { font-size: 38px; margin-bottom: 14px; }
  .lesson-heading .lead { font-size: 13px; }
  .lesson-meta { flex-direction: row; align-items: center; gap: 13px; padding-top: 19px; font-size: 10px; }
  .mechanics-list .section-heading h2, .video-section .section-heading h2 { font-size: 27px; }
  .mechanic-card { gap: 12px; padding-top: 22px; }
  .mechanic-number { min-width: 20px; font-size: 16px; }
  .mechanic-content h3 { font-size: 16px; line-height: 1.5; }
  .cue-box, .action-box { padding: 12px 13px; }
  .cue-box p { font-size: 12px; }
  .action-box p { font-size: 13px; }
  .mechanic-why { font-size: 11px; }
  .guide-disclosure { font-size: 10px; padding: 13px 15px; }
  .control-note { font-size: 11px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-info h3 { font-size: 13px; }
  .video-load { font-size: 12px; }
  .video-load small { font-size: 10px; }
  .readiness-card { padding: 25px; }
  .readiness-card h2 { font-size: 29px; }
  .player-form { display: block; }
  .field > span { font-size: 12px; }
  input, select { font-size: 16px; min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
  .field { margin-bottom: 16px; }
  .quiz-topline { margin: 16px 0; gap: 10px; }
  .quiz-topline .btn { font-size: 10px; gap: 7px; }
  .quiz-topline > span { font-size: 9px; max-width: 140px; line-height: 1.6; }
  .quiz-card { padding: 25px 20px 24px; }
  .quiz-card > .eyebrow { font-size: 8px; line-height: 1.8; }
  .quiz-progress { margin-top: 20px; margin-bottom: 23px; }
  .scenario-cue { padding: 12px 13px; }
  .scenario-cue p { font-size: 12px; }
  .question-title { font-size: 25px; }
  .visual-quiz-intro { font-size: 11px; align-items: flex-start; }
  .visual-quiz-intro .icon { margin-top: 1px; }
  .question-media-play { gap: 4px; padding: 10px; }
  .question-media-play .play-circle { width: 42px; height: 42px; margin-bottom: 3px; }
  .question-media-play .play-circle .icon { width: 19px; height: 19px; }
  .question-media-play strong { font-size: 15px; }
  .question-media-play > span:not(.play-circle) { font-size: 10px; }
  .question-media-play small { font-size: 9px; }
  .question-media-caption { padding: 13px 14px; }
  .media-caption-text, .media-description { font-size: 11px; }
  .question-media-controls { gap: 7px 15px; }
  .question-instruction { font-size: 11px; }
  .answer-options { gap: 10px; margin-top: 20px; margin-bottom: 22px; }
  .answer-option { padding: 13px 11px; gap: 10px; }
  .option-letter { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; }
  .option-text { font-size: 12px; }
  .option-selected { width: 14px; }
  .option-selected .icon { width: 14px; height: 14px; }
  .quiz-actions { gap: 10px; padding-top: 22px; }
  .quiz-actions .btn { padding: 10px 12px; min-height: 44px; font-size: 10px; gap: 6px; }
  .quiz-actions .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .quiz-sidebar { padding: 22px 20px; grid-template-columns: 1fr; gap: 17px; }
  .question-dots { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 6px; }
  .quiz-sidebar-footer { text-align: left; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .quiz-sidebar-footer .pass-label { margin-left: auto; margin-top: 0; }
  .result-hero { margin-top: 23px; padding: 30px 22px; margin-bottom: 32px; }
  .result-icon { width: 55px; height: 55px; margin-bottom: 20px; }
  .result-hero h1 { font-size: 34px; }
  .result-hero .lead { font-size: 12px; }
  .score-summary { margin: 23px 0; }
  .score-summary > strong { font-size: 40px; }
  .completion-receipt { padding: 15px; gap: 10px; }
  .completion-code { font-size: 14px; letter-spacing: .04em; }
  .completion-receipt .btn { font-size: 9px; padding: 6px 9px; }
  .result-actions { flex-direction: column; gap: 10px; }
  .result-actions .btn { font-size: 11px; }
  .completion-disclaimer { font-size: 9px; }
  .review-card { padding: 20px 15px; gap: 12px; }
  .review-status { width: 25px; height: 25px; flex-basis: 25px; }
  .review-top { gap: 8px; }
  .review-top .tiny-label { font-size: 8px; }
  .review-outcome { font-size: 9px; }
  .review-content h3 { font-size: 14px; }
  .selected-answer, .correct-answer, .review-explanation { font-size: 11px; }
  .login-page { min-height: 0; }
  .login-card { padding: 29px 23px; margin-top: 0; }
  .login-card h1 { font-size: 37px; }
  .login-card .btn { font-size: 12px; }
  .admin-page { margin-top: 28px; }
  .admin-heading { align-items: flex-start; gap: 13px; }
  .admin-heading h1 { font-size: 31px; }
  .admin-heading .lead { font-size: 12px; }
  .admin-heading .btn { min-height: 37px; padding: 8px 11px; font-size: 10px; }
  .admin-stats { gap: 10px; margin: 24px 0; min-height: 0; }
  .stat-card { padding: 15px 11px; }
  .stat-card > span { font-size: 9px; line-height: 1.7; min-height: 30px; }
  .stat-card strong { font-size: 30px; margin: 8px 0 0; }
  .stat-card small { display: none; }
  .admin-panel-title { padding: 22px 18px; display: block; }
  .admin-panel-title h2 { font-size: 16px; line-height: 1.6; }
  .admin-panel-title p { font-size: 10px; }
  .admin-panel-title .btn { margin-top: 16px; min-height: 38px; font-size: 10px; }
  .admin-filters { padding: 17px 18px; gap: 10px; }
  .search-field > .icon { top: 15px; }
  .search-field input { font-size: 16px; }
  .search-field input::placeholder { font-size: 12px; }
  .admin-filters select { font-size: 16px; min-width: 0; width: 0; }
  .admin-filters .btn { font-size: 10px; min-height: 46px; }
  .admin-note { font-size: 9px; }
  .table-empty { padding: 40px 18px; }
  .table-empty h3 { font-size: 23px; }
  .table-empty p { font-size: 11px; }
}

@media (max-width: 360px) {
  .hero-copy { padding-left: 20px; padding-right: 20px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-bottom { left: 20px; right: 20px; gap: 10px; }
  .boss-card-bottom { flex-wrap: wrap; }
  .brand strong { font-size: 9px; }
  .brand img { width: 28px; height: 28px; }
  .site-header nav { gap: 12px; }
  .quiz-actions .btn { font-size: 9px; padding-left: 10px; padding-right: 10px; }
}

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

@media print {
  :root { color-scheme: light; --text: #172d25; --muted: #42594d; --line: #aab7aa; --gold: #665221; }
  body { background: #fff; color: #172d25; font-size: 12px; }
  .site-header, .site-footer, .result-actions, .toast, .skip-link, .mechanic-sources { display: none !important; }
  .container { width: 100%; max-width: none; }
  .result-hero { background: #f4f7f0; border-color: #8aa087; color: #172d25; margin: 0 0 24px; padding: 28px; break-inside: avoid; }
  .result-hero .lead, .completion-disclaimer, .score-summary span, .completion-receipt p, .completion-receipt small { color: #42594d; }
  .score-summary > strong, .completion-code { color: #254532; }
  .completion-receipt { background: #fff; border-color: #8aa087; }
  .completion-receipt .btn { display: none; }
  .review-card { background: #fff; border-color: #aab7aa; break-inside: avoid; }
  .review-cue, .selected-answer, .correct-answer, .review-explanation, .selected-answer strong, .correct-answer strong { color: #344d3e; }
  .review-outcome { color: #365e3f; }
  .result-hero h1 { font-size: 32px; }
  .results-review h2 { font-size: 26px; }
}
