:root {
  color-scheme: light;
  --ink: #1b211e;
  --muted: #717b75;
  --paper: #f3f0e9;
  --card: #fffdf8;
  --green: #203f34;
  --green-2: #426b57;
  --lime: #d8c88e;
  --wine: #7b3043;
  --gold: #b58d4b;
  --line: rgba(27, 33, 30, .12);
  --shadow: 0 18px 46px rgba(29, 43, 36, .11);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; background: var(--paper); scroll-behavior: smooth; }
body { width: 100%; max-width: 100%; margin: 0; min-width: 0; min-height: 100dvh; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: 'Noto Sans KR', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
button { color: inherit; font: inherit; }
button, summary { -webkit-user-select: none; user-select: none; }
button:focus-visible, summary:focus-visible { outline: 3px solid rgba(35, 107, 85, .3); outline-offset: 3px; }
.app-shell { width: 100%; max-width: 640px; min-height: 100dvh; margin: 0 auto; position: relative; overflow-x: clip; background: var(--paper); }
.topbar { height: 76px; padding: max(14px, env(safe-area-inset-top)) 20px 10px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); }
.brand { min-width: 0; max-width: calc(100% - 82px); display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; text-align: left; overflow: hidden; }
.brand-logo { display: block; flex: 0 0 116px; width: 116px !important; min-width: 0; max-width: 116px !important; height: 34px !important; object-fit: contain; object-position: left center; }
.brand-logo-text { display: inline-flex; align-items: center; color: var(--ink); font: 800 17px/1 Georgia, "Times New Roman", serif; letter-spacing: .08em; filter: none !important; }
.brand-product { padding-left: 9px; border-left: 1px solid var(--line); color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .14em; line-height: 1.35; }
.level-pill { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,253,248,.84); font-size: 12px; box-shadow: 0 5px 16px rgba(29,56,48,.06); }
.level-pill span { color: var(--gold); }
main { padding: 0 18px calc(92px + var(--safe-bottom)); }
main:focus { outline: none; }
.screen { display: none; animation: screen-in .3s ease both; }
.screen.active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } }
.eyebrow { margin: 0 0 6px; color: var(--green-2); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-card { min-height: 228px; margin-top: 4px; padding: 25px 22px 27px; display: flex; position: relative; overflow: hidden; border-radius: 26px 26px 48px 26px; color: white; background: linear-gradient(145deg, #17251f 0%, #284b3d 64%, #345c49 100%); box-shadow: var(--shadow); }
.hero-card::after { content: ''; position: absolute; inset: auto -45px -90px auto; width: 220px; height: 220px; border: 1px solid rgba(216,200,142,.18); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 56px rgba(255,255,255,.018); }
.hero-copy { position: relative; z-index: 3; max-width: 76%; }
.hero-kicker { margin: 0 0 15px; color: rgba(255,255,255,.55); font: 600 8px/1.2 Georgia, serif; letter-spacing: .17em; }
.hero-copy .eyebrow { color: var(--lime); }
.hero-copy h1 { margin: 0 0 13px; font-size: clamp(28px, 7.6vw, 39px); line-height: 1.17; letter-spacing: -.06em; }
.hero-copy h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p:last-child { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.65; }
.hero-monogram { width: 186px; height: 208px; position: absolute; right: -44px; bottom: -18px; z-index: 1; object-fit: contain; filter: invert(1); opacity: .085; transform: rotate(3deg); }
.hero-monogram-text { display: grid; place-items: center; color: #fff; font: 700 210px/1 Georgia, "Times New Roman", serif; filter: none; }
.hero-seal { width: 52px; height: 52px; display: grid; place-items: center; align-content: center; position: absolute; right: 18px; bottom: 18px; z-index: 4; border: 1px solid rgba(216,200,142,.58); border-radius: 50%; color: var(--lime); font: 700 12px/1 Georgia, serif; letter-spacing: .08em; text-align: center; backdrop-filter: blur(4px); }
.hero-seal small { margin-top: 4px; color: rgba(255,255,255,.72); font: 700 8px/1 system-ui, sans-serif; letter-spacing: .12em; }
.today-card, .mastery-card, .report-card { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 8px 24px rgba(29,56,48,.045); }
.section-heading { margin: 30px 2px 14px; display: flex; align-items: end; justify-content: space-between; }
.section-heading.compact { margin: 0 0 12px; align-items: center; }
.section-heading h2, .report-card h2 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.section-heading > strong { font-size: 13px; color: var(--green-2); }
.goal-track, .quiz-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e7e7dc; }
.goal-track span, .quiz-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), #7aa04d); transition: width .45s ease; }
.quick-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.quick-button { min-width: 0; min-height: 65px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: #faf8f1; text-align: left; }
.quick-button > span:last-child { min-width: 0; }
.quick-button:first-child { grid-column: 1 / -1; }
.quick-button.primary { color: white; border-color: var(--green); background: var(--green); }
.quick-icon { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: rgba(35,107,85,.11); font-size: 11px; font-weight: 800; }
.primary .quick-icon { color: var(--green); background: var(--lime); }
.quick-button strong, .quick-button small { display: block; }
.quick-button strong { font-size: 14px; }
.quick-button small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.primary small { color: rgba(255,255,255,.7); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.mode-card { min-height: 134px; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 0; border-radius: 22px; text-align: left; overflow: hidden; }
.mode-card.review { background: #e5ead9; }.mode-card.mock { background: #eadde0; }.mode-card.region { background: #dce8e2; }.mode-card.stats { background: #ebe4d6; }
.mode-art { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--green); font-size: 21px; font-weight: 700; transform: rotate(-3deg); }
.mock .mode-art { background: var(--wine); }.stats .mode-art { background: #ad7c36; }
.mode-card strong, .mode-card small { display: block; }
.mode-card strong { font-size: 15px; }
.mode-card small { margin-top: 4px; color: #60716a; font-size: 10px; }
.mode-card small b { color: inherit; }
.mastery-card { display: flex; align-items: center; gap: 17px; margin-bottom: 12px; }
.mastery-ring { --ratio: 0deg; width: 84px; height: 84px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green-2) var(--ratio), #e6e5da 0); position: relative; }
.mastery-ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.mastery-ring span { z-index: 1; text-align: center; }.mastery-ring strong,.mastery-ring small{display:block}.mastery-ring strong{font:700 25px Georgia, serif}.mastery-ring small{font-size:9px;color:var(--muted)}
.mastery-card h2 { margin: 0 0 5px; font-size: 17px; }.mastery-card > div:last-child > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.study-disclaimer { margin: 14px 2px 4px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: color-mix(in srgb, var(--card) 86%, transparent); font-size: 10px; line-height: 1.65; }
.study-disclaimer strong { display: block; margin-bottom: 3px; color: var(--green-2); font-size: 10px; }
.study-disclaimer p { margin: 0; }
.bottom-nav { height: calc(72px + var(--safe-bottom)); padding: 8px 18px var(--safe-bottom); display: flex; position: fixed; bottom: 0; left: 50%; z-index: 30; width: min(100%, 640px); transform: translateX(-50%); background: rgba(255,253,247,.92); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.bottom-nav button { flex: 1; display: grid; place-items: center; gap: 1px; border: 0; background: transparent; color: #81908b; }
.bottom-nav span { font-size: 20px; line-height: 1; }.bottom-nav small { font-size: 9px; font-weight: 700; }
.bottom-nav button.active { color: var(--green); }.bottom-nav button.active span { width: 34px; height: 27px; display: grid; place-items: center; border-radius: 12px; background: #e4eedb; }

/* Quiz */
body.quiz-mode { overflow: hidden; background: var(--card); }
body.quiz-mode .topbar, body.quiz-mode .bottom-nav { display: none; }
body.quiz-mode main { height: 100dvh; padding: 0; }
.screen[data-screen="quiz"].active { min-height: 100dvh; background: var(--card); }
.quiz-header { min-height: 70px; padding: max(15px, env(safe-area-inset-top)) 17px 12px; display: flex; gap: 12px; align-items: center; }
.icon-button { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 25px; line-height: 1; }
.quiz-progress-wrap { flex: 1; }.quiz-progress-wrap > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; }.quiz-progress { height: 6px; }
.xp-chip { min-width: 57px; padding: 7px 9px; border-radius: 99px; color: var(--green); background: #eaf2d8; font-size: 10px; font-weight: 800; text-align: center; }
.question-card { padding: 14px 22px 130px; }
.question-meta { display: flex; justify-content: space-between; margin: 9px 0 16px; color: var(--green-2); font-size: 11px; font-weight: 800; }
.question-meta span:first-child { padding: 6px 10px; border-radius: 99px; background: #e7efe9; }
.question-meta span:last-child { padding: 6px 0; color: var(--muted); }
.question-card h1 { margin: 0 0 25px; font-size: clamp(21px, 6vw, 28px); line-height: 1.52; letter-spacing: -.045em; }
.choices { display: grid; gap: 11px; }
.choice { width: 100%; min-height: 63px; padding: 13px 15px; display: flex; gap: 12px; align-items: center; border: 1.5px solid #d8ddd8; border-radius: 18px; background: white; text-align: left; transition: transform .15s, border-color .15s, background .15s; }
.choice:active { transform: scale(.985); }.choice-marker { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #f0f1eb; font-size: 12px; font-weight: 800; }.choice-text { font-size: 14px; line-height: 1.55; }
.choice.correct { border-color: #5b9a70; background: #edf7e9; }.choice.correct .choice-marker { color: white; background: #43815c; }
.choice.wrong { border-color: #c26877; background: #faedef; }.choice.wrong .choice-marker { color: white; background: var(--wine); }.choice.dimmed { opacity: .48; }
.quiz-footer { padding: 15px 22px calc(15px + var(--safe-bottom)); position: fixed; bottom: 0; left: 50%; width: min(100%, 640px); transform: translateX(-50%); background: linear-gradient(0deg, var(--card) 74%, transparent); text-align: center; }.quiz-footer p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.feedback-panel { max-height: 62dvh; padding: 20px 22px calc(20px + var(--safe-bottom)); position: fixed; bottom: 0; left: 50%; z-index: 10; width: min(100%, 640px); overflow-y: auto; transform: translateX(-50%); border-radius: 30px 30px 0 0; background: #edf5e7; box-shadow: 0 -16px 45px rgba(24,48,42,.14); animation: panel-up .3s ease both; }
@keyframes panel-up { from { transform: translate(-50%, 100%); } }
.feedback-panel.wrong { background: #f8e8ea; }.feedback-result { display: flex; align-items: center; gap: 12px; }.feedback-result > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--green-2); font-size: 23px; font-weight: 800; }.feedback-panel.wrong .feedback-result > span { background: var(--wine); }.feedback-result strong,.feedback-result small{display:block}.feedback-result strong{font-size:17px}.feedback-result small{color:var(--green-2);font-size:10px;font-weight:800}.feedback-panel.wrong .feedback-result small{color:var(--wine)}
.memory-tip { margin: 15px 0 11px; padding: 13px 14px; border-left: 3px solid var(--green-2); border-radius: 4px 13px 13px 4px; background: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; line-height: 1.65; }.feedback-panel.wrong .memory-tip{border-color:var(--wine)}
.feedback-panel details { font-size: 11px; color: var(--muted); }.feedback-panel summary { padding: 7px 0; cursor: pointer; font-weight: 700; }.feedback-panel details p { margin: 7px 0 14px; line-height: 1.75; }
.himsomm-note { margin: 12px 0 15px; padding: 13px 14px; border: 1px solid rgba(45,105,84,.18); border-radius: 14px; background: rgba(255,255,255,.48); color: var(--ink); }.himsomm-note strong { display: block; margin-bottom: 5px; color: var(--green-2); font-size: 11px; }.himsomm-note p { margin: 0 !important; font-size: 11px; line-height: 1.75; }
.cta-button { width: 100%; min-height: 53px; border: 0; border-radius: 17px; color: white; background: var(--green); font-size: 14px; font-weight: 800; box-shadow: 0 9px 20px rgba(23,75,62,.17); }

/* Sub screens */
.sub-screen { padding-top: 14px; }.page-title { padding: 12px 4px 10px; }.page-title h1 { margin: 0 0 8px; font: 700 35px/1.15 Georgia, 'Noto Sans KR', serif; letter-spacing: -.04em; }.page-title > p:last-child { margin: 0; max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.study-overview { margin: 14px 0 17px; padding: 17px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; border-radius: 20px; color: white; background: var(--green); }
.study-overview > span { width: 58px; height: 58px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.08); }
.study-overview strong,.study-overview small { display: block; }.study-overview strong { font: 25px Georgia, serif; }.study-overview small { margin-top: 2px; color: rgba(255,255,255,.65); font-size: 8px; }
.study-overview p { margin: 0 0 9px; color: rgba(255,255,255,.78); font-size: 10px; line-height: 1.5; }.study-overview .goal-track { height: 5px; background: rgba(255,255,255,.16); }.study-overview .goal-track span { background: var(--lime); }
.region-list { display: grid; gap: 10px; margin-top: 17px; }.region-item { padding: 17px; display: grid; grid-template-columns: 47px 1fr auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 19px; background: var(--card); text-align: left; }.region-symbol { width: 47px; height: 47px; display:grid;place-items:center;border-radius:16px;color:white;background:var(--green);font:19px 'DM Serif Display'}.region-item:nth-child(3n+2) .region-symbol{background:#777c45}.region-item:nth-child(3n) .region-symbol{background:var(--wine)}.region-item strong,.region-item small{display:block}.region-item strong{font-size:14px}.region-item small{margin-top:3px;color:var(--muted);font-size:10px}.region-progress{width:48px;text-align:right}.region-progress b{display:block;font-size:12px}.region-progress span{display:block;height:4px;margin-top:6px;border-radius:9px;background:#e0e3dc;overflow:hidden}.region-progress i{display:block;height:100%;background:var(--green-2)}
.region-item { min-height: 82px; transition: transform .15s, border-color .15s; }.region-item:active { transform: scale(.985); }.region-item.completed { border-color: rgba(66,107,87,.35); }.region-item.completed .region-symbol { color: var(--green); background: var(--lime); }.region-item.completed .region-progress b { color: var(--green-2); }

/* Click-to-study reader */
body.study-mode main { padding: 0 0 calc(104px + var(--safe-bottom)); }
.study-screen { min-height: 100dvh; }.study-screen.active { animation: none; }.study-screen > article { padding: 0 18px; }
.study-nav { min-height: calc(66px + env(safe-area-inset-top)); padding: max(12px, env(safe-area-inset-top)) 17px 10px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; position: sticky; top: 0; z-index: 25; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(18px); }
.study-back { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 29px; line-height: 1; }
.study-nav div small,.study-nav div strong { display: block; }.study-nav div small { margin-bottom: 2px; color: var(--green-2); font-size: 8px; font-weight: 800; letter-spacing: .12em; }.study-nav div strong { max-width: 210px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.study-nav > span { padding: 7px 9px; border-radius: 99px; color: var(--green-2); background: #e4ece7; font-size: 9px; font-weight: 800; }
.study-hero { margin: 16px 0 12px; padding: 24px 21px 22px; position: relative; overflow: hidden; border-radius: 25px 25px 42px 25px; color: white; background: linear-gradient(145deg,#17251f,#315845); box-shadow: var(--shadow); }
.study-hero::after { content: ''; width: 150px; height: 150px; position: absolute; right: -70px; bottom: -75px; border: 1px solid rgba(216,200,142,.25); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.025); }.study-hero .eyebrow { color: var(--lime); }
.study-hero h1 { margin: 8px 0 10px; position: relative; z-index: 1; font-size: clamp(28px,8vw,38px); line-height: 1.17; letter-spacing: -.055em; }.study-hero > p:not(.eyebrow) { max-width: 92%; margin: 0; position: relative; z-index: 1; color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.7; }
.study-tags { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }.study-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #f3e9c3; background: rgba(255,255,255,.07); font-size: 9px; font-weight: 700; }
.study-tip { margin: 12px 0 16px; padding: 13px 14px; display: flex; gap: 11px; align-items: center; border-radius: 16px; background: #e7ecd9; }.study-tip > span { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--lime); }.study-tip p { margin: 0; color: #536059; font-size: 10px; line-height: 1.55; }.study-tip strong { display: block; color: var(--ink); font-size: 11px; }
.study-sections { display: grid; gap: 10px; }.study-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 6px 18px rgba(29,56,48,.035); }
.study-card summary { min-height: 74px; padding: 14px; display: grid; grid-template-columns: 38px 1fr auto 22px; gap: 10px; align-items: center; cursor: pointer; list-style: none; }.study-card summary::-webkit-details-marker { display: none; }.study-card summary > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: var(--green); background: #e4ece7; font: 700 11px Georgia, serif; }.study-card summary strong { font-size: 13px; }.study-card summary small { color: var(--muted); font-size: 9px; white-space: nowrap; }.study-card summary i { font-size: 19px; font-style: normal; transition: transform .2s; }.study-card[open] summary i { transform: rotate(45deg); }
.study-card ul { margin: 0; padding: 3px 18px 17px 45px; border-top: 1px solid var(--line); list-style: none; }.study-card li { padding: 12px 3px 12px 0; position: relative; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 550; line-height: 1.65; word-break: keep-all; }.study-card li:last-child { border-bottom: 0; }.study-card li::before { content: ''; width: 6px; height: 6px; position: absolute; left: -17px; top: 20px; border-radius: 50%; background: var(--green-2); }
.study-actions { padding: 11px 16px calc(11px + var(--safe-bottom)); display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 8px; position: fixed; bottom: 0; left: 50%; z-index: 30; width: min(100%,640px); transform: translateX(-50%); border-top: 1px solid var(--line); background: color-mix(in srgb,var(--paper) 94%,transparent); backdrop-filter: blur(18px); }.study-actions button { min-height: 51px; }.study-complete { border: 1px solid var(--line); border-radius: 16px; background: var(--card); font-size: 11px; font-weight: 800; }.study-complete.done { color: var(--green); border-color: rgba(66,107,87,.35); background: #e7efe9; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }.stat-card { min-height: 105px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 20px; background: var(--green); color: white; }.stat-card:nth-child(2){background:#e7f1c8;color:var(--ink)}.stat-card:nth-child(3){background:#eddde1;color:var(--ink)}.stat-card:nth-child(4){background:#eee6d5;color:var(--ink)}.stat-card small{font-size:10px}.stat-card strong{font:31px 'DM Serif Display','Noto Sans KR'}.report-card .section-heading small{color:var(--muted);font-size:10px}.week-chart{height:130px;display:flex;gap:9px;align-items:end}.day-bar{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:6px}.day-bar i{width:100%;max-width:25px;min-height:5px;border-radius:8px 8px 3px 3px;background:#d9dfd8}.day-bar.active i{background:linear-gradient(var(--lime),var(--green-2))}.day-bar small{font-size:9px;color:var(--muted)}.weak-list{display:grid;gap:13px}.weak-row{display:grid;grid-template-columns:1fr auto;gap:7px}.weak-row strong,.weak-row small{font-size:11px}.weak-row small{color:var(--muted)}.weak-row span{grid-column:1/-1;height:5px;border-radius:8px;background:#e4e5df;overflow:hidden}.weak-row i{display:block;height:100%;background:var(--wine)}.settings-card{display:grid;gap:8px}.settings-card h2{margin-bottom:7px}.settings-card button{padding:13px;border:1px solid var(--line);border-radius:13px;background:white;font-size:11px;font-weight:700}.settings-card button.danger{color:var(--wine)}

/* Result & utilities */
.result-screen { padding: 40px 8px; text-align: center; }.result-medal { width: 95px; height: 95px; margin: 5vh auto 22px; display: grid; place-items: center; border-radius: 33px 33px 45px 33px; color: var(--green); background: var(--lime); box-shadow: 0 16px 35px rgba(95,125,50,.22); font-size: 42px; transform: rotate(-5deg); }.result-screen h1 { margin: 0 0 8px; font-size: 28px; }.result-screen > p:not(.eyebrow) { margin: 0 auto; color: var(--muted); font-size: 12px; }.result-score { width: 170px; height: 170px; margin: 28px auto; display:grid;place-items:center;align-content:center;border-radius:50%;border:12px solid #dce8d6;background:var(--card);box-shadow:var(--shadow)}.result-score strong,.result-score span{display:block}.result-score strong{font:43px 'DM Serif Display'}.result-score span{font-size:11px;color:var(--muted)}.result-rewards{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}.result-rewards span{padding:16px;border-radius:17px;background:#e9efdf}.result-rewards small,.result-rewards strong{display:block}.result-rewards small{font-size:9px;color:var(--muted)}.result-rewards strong{margin-top:4px}.result-screen .cta-button{max-width:350px}.text-button{margin-top:11px;padding:12px;border:0;background:transparent;color:var(--green-2);font-size:11px;font-weight:800}
.toast { padding: 11px 16px; position: fixed; left: 50%; bottom: calc(85px + var(--safe-bottom)); z-index: 100; max-width: calc(100% - 40px); transform: translate(-50%, 20px); border-radius: 99px; color: white; background: rgba(24,48,42,.94); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; }.toast.show{opacity:1;transform:translate(-50%,0)}
dialog{width:min(90%,380px);padding:0;border:0;border-radius:24px;background:var(--card);box-shadow:0 24px 60px rgba(0,0,0,.2)}dialog::backdrop{background:rgba(12,30,25,.48);backdrop-filter:blur(3px)}dialog form{padding:24px}dialog h2{margin:0 0 8px;font-size:19px}dialog p{margin:0 0 20px;color:var(--muted);font-size:12px;line-height:1.6}dialog form>div{display:flex;gap:8px}dialog button{flex:1;padding:12px;border:0;border-radius:13px;background:#e7e9e4;font-size:11px;font-weight:800}dialog button.danger{color:white;background:var(--wine)}
[hidden] { display: none !important; }
@media (min-width: 641px){body{padding:18px 0}.app-shell{min-height:calc(100dvh - 36px);border-radius:28px;box-shadow:0 0 0 1px var(--line),0 30px 70px rgba(24,48,42,.12);overflow:hidden}.bottom-nav{bottom:18px;border-radius:0 0 28px 28px}.feedback-panel,.quiz-footer{bottom:18px}.screen[data-screen="quiz"].active{min-height:calc(100dvh - 36px)}body.quiz-mode main{height:calc(100dvh - 36px)}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media (prefers-color-scheme: dark){:root{color-scheme:dark;--ink:#e9efe9;--muted:#9eaaa5;--paper:#111a17;--card:#19241f;--green:#2e745f;--green-2:#6aae90;--line:rgba(230,244,236,.12);--shadow:0 16px 40px rgba(0,0,0,.22)}.brand-logo{filter:invert(1)}.today-card,.mastery-card,.report-card,.region-item,.study-card,.study-back,.study-complete{background:var(--card)}.quick-button,.choice,.settings-card button{background:#202c27}.goal-track,.quiz-progress,.mastery-ring span::before{background:#303a35}.mode-card{filter:brightness(.72)}.mode-card strong,.mode-card small{color:#14201b}.bottom-nav{background:rgba(25,36,31,.94)}.screen[data-screen="quiz"].active{background:var(--card)}.quiz-footer{background:linear-gradient(0deg,var(--card) 74%,transparent)}.feedback-panel{background:#21382c}.feedback-panel.wrong{background:#3b252a}.feedback-panel details,.memory-tip{color:var(--ink)}.stat-card:nth-child(n+2){filter:brightness(.75);color:#111}.result-score{background:var(--card)}.study-tip{background:#293329}.study-tip p{color:var(--muted)}.study-nav>span,.study-card summary>span{background:#293832}.study-actions,.study-nav{background:rgba(17,26,23,.94)}dialog{background:var(--card)}}
