:root{--ink:#14283a;--muted:#657586;--paper:#fffdf8;--cream:#f4efe4;--line:#dcd3c3;--pink:#e75f87;--pink-soft:#fde6ed;--teal:#0e857d;--teal-soft:#dff3ef;--gold:#d89a2d;--navy:#153c59;--shadow:0 22px 55px #1730441b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 90% 0,#f8dfe8 0,transparent 30%),linear-gradient(180deg,#f7f2e9,#efe8db);color:var(--ink);font-family:Inter,Arial,"Noto Sans TC",sans-serif;min-height:100vh}button,input,select{font:inherit}button,a{touch-action:manipulation}.topbar{height:78px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 clamp(16px,4vw,54px);border-bottom:1px solid #d9d0c2;background:#fffaf3df;backdrop-filter:blur(14px);position:sticky;top:0;z-index:20}.portal-link{justify-self:start;color:var(--ink);text-decoration:none;font-size:13px;font-weight:800}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:11px;line-height:1.05;letter-spacing:.9px}.brand strong{font-size:15px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:var(--navy);color:white;border-radius:12px;font-size:21px;font-weight:900;position:relative}.brand-mark span{font-size:8px;color:#ffd978;position:absolute;right:5px;top:5px}.profile-button{justify-self:end;border:1px solid var(--line);background:white;border-radius:999px;padding:8px 13px;display:flex;gap:7px;align-items:center;color:var(--ink);font-weight:800;font-size:12px;cursor:pointer}main{width:min(1180px,calc(100% - 32px));margin:auto;padding:44px 0 80px}.hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.6fr);gap:35px;align-items:center;min-height:420px}.eyebrow{font-size:11px;letter-spacing:2.4px;font-weight:900;color:var(--teal)}h1,h2,h3,p{margin-top:0}.hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,6vw,72px);line-height:1.02;margin:14px 0 20px;max-width:800px}.hero h1 em{color:var(--pink);font-weight:400}.hero-copy>p{color:var(--muted);font-size:17px;line-height:1.75;max-width:740px}.hero-actions,.heading-actions,.drawer-actions{display:flex;gap:10px;flex-wrap:wrap}.button{border-radius:12px;border:1px solid transparent;padding:13px 18px;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.button.primary{background:var(--navy);color:#fff;box-shadow:0 9px 20px #153c5933}.button.primary:hover,.button.primary:focus-visible{background:#0b2c43}.button.secondary{background:#fff;color:var(--ink);border-color:var(--line)}.button.compact{padding:9px 13px;font-size:12px}.hero-panel{background:var(--navy);color:#fff;border-radius:26px;padding:27px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;box-shadow:var(--shadow);transform:rotate(1deg)}.hero-panel div{text-align:center;padding:18px 5px;border:1px solid #ffffff2b;border-radius:14px;background:#ffffff0d}.hero-panel strong{display:block;font-size:29px}.hero-panel span{font-size:11px;color:#c5dfed}.hero-panel small{grid-column:1/-1;color:#bfd2de;line-height:1.5}.studio-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0;margin:24px 0 44px;position:sticky;top:78px;background:#f4efe4ed;backdrop-filter:blur(12px);z-index:15}.nav-tab{border:0;background:transparent;border-radius:10px;padding:12px;color:#596978;font-weight:900;cursor:pointer}.nav-tab span{color:var(--pink);font-size:10px;margin-right:5px}.nav-tab.is-active{background:#fff;color:var(--ink);box-shadow:0 5px 15px #243b4c12}.view{display:none;min-height:500px}.view.is-visible{display:block}.section-heading{display:flex;justify-content:space-between;gap:22px;align-items:end;margin-bottom:25px}.section-heading h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,48px);margin:7px 0 9px}.section-heading p{color:var(--muted);line-height:1.65;margin:0;max-width:720px}.screen-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px}.progress-card,.screen-card,.story-paper,.review-stage,.empty-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.progress-card{padding:25px;align-self:stretch}.progress-card>span{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:900}.progress-card>strong{font-size:34px;display:block;margin:8px 0 14px}.progress-track{height:7px;border-radius:999px;background:#ded8ce;overflow:hidden}.progress-track i{height:100%;display:block;background:linear-gradient(90deg,var(--teal),#55baa9);width:0;transition:width .3s}.progress-card dl{display:grid;grid-template-columns:1fr;gap:9px;margin:24px 0}.progress-card dl div{display:flex;justify-content:space-between;border-bottom:1px solid #e8e2d8;padding-bottom:8px}.progress-card dt{color:var(--muted)}.progress-card dd{margin:0;font-weight:900}.progress-card p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.screen-card{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px;position:relative;overflow:hidden}.screen-card::before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:var(--pink-soft);right:-90px;top:-100px}.source-tag{font-size:10px;letter-spacing:1.7px;color:var(--teal);font-weight:900}.sound-button{border:1px solid var(--line);background:white;width:43px;height:43px;border-radius:50%;cursor:pointer;margin:18px 0 8px}.screen-card h3{font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,7vw,76px);margin:5px 0 12px;text-align:center}.meaning{font-size:19px;color:var(--teal);font-weight:800;min-height:30px}.meaning.is-hidden{filter:blur(8px);user-select:none}.reveal-button{border:0;background:transparent;color:#77586a;text-decoration:underline;cursor:pointer}.screen-decisions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(680px,100%);margin-top:28px}.screen-decisions button{border:1px solid var(--line);background:white;border-radius:14px;padding:13px 8px;cursor:pointer;color:var(--ink)}.screen-decisions span{font-size:22px;display:block}.screen-decisions b,.screen-decisions small{display:block}.screen-decisions small{color:var(--muted);font-size:10px;margin-top:3px}.screen-decisions .know:hover{border-color:#36a082;background:#effaf5}.screen-decisions .unsure:hover{border-color:#d49b32;background:#fff8e9}.screen-decisions .unknown:hover{border-color:var(--pink);background:var(--pink-soft)}.round-complete{margin-top:16px;background:#173f5a;color:white;border-radius:18px;padding:20px 22px;display:flex;align-items:center;gap:16px}.round-complete>span{font-size:28px;color:#ffd26c}.round-complete h3{margin:0 0 4px}.round-complete p{margin:0;color:#bed4e2}.round-complete .button{margin-left:auto}.story-controls{display:grid;grid-template-columns:1fr 180px auto;gap:12px;background:#fffaf2;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px}.story-controls label{font-size:11px;font-weight:900;color:var(--muted)}select,input{border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px;color:var(--ink)}.story-controls select{display:block;width:100%;margin-top:6px}.story-message{color:#9b354f;font-weight:800;min-height:22px}.story-paper{padding:clamp(24px,5vw,54px);background:#fffdfa}.story-paper header{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #e6ddcf;padding-bottom:20px;margin-bottom:25px}.story-paper h3{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,45px);margin:7px 0}.story-copy{font-size:18px;line-height:2;color:#2b3943}.story-copy p{margin-bottom:22px}.word-chip{display:inline;border:0;border-bottom:2px solid #e75f87;background:var(--pink-soft);color:#9d284a;border-radius:6px;padding:2px 5px;font-weight:900;cursor:pointer}.word-chip:hover,.word-chip:focus-visible{background:var(--pink);color:white;outline:none}.story-targets{border-top:1px dashed #d8cbbb;padding-top:20px;margin-top:25px}.story-targets>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.target-pill{border:1px solid #efb2c4;background:#fff0f4;border-radius:999px;padding:7px 10px;color:#8d2f49;cursor:pointer;font-weight:800}.story-tip{font-size:12px;color:var(--muted);margin:22px 0 0}.empty-card{padding:22px;display:flex;align-items:center;gap:16px}.empty-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--teal-soft);color:var(--teal);font-weight:900}.empty-card h3{margin:0 0 4px}.empty-card p{margin:0;color:var(--muted)}.empty-card .button{margin-left:auto}.bank-toolbar{display:flex;gap:10px;margin-bottom:16px}.search-box{flex:1;display:flex;align-items:center;border:1px solid var(--line);background:white;border-radius:12px;padding-left:13px}.search-box input{border:0;width:100%;outline:0}.bank-list{display:grid;gap:9px}.bank-row{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(170px,1.4fr) 110px 135px;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px}.bank-word{border:0;background:transparent;text-align:left;color:var(--ink);cursor:pointer}.bank-word strong{font-family:Georgia,"Times New Roman",serif;font-size:22px}.bank-word small{display:block;color:var(--muted);margin-top:3px}.bank-meaning{color:#405260}.status-pill{justify-self:start;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900;text-transform:uppercase}.status-pill.unknown{background:#fde3ea;color:#a42f4d}.status-pill.unsure{background:#fff1cf;color:#896117}.status-pill.learning{background:#def2ef;color:#16776f}.status-pill.mastered{background:#e1eaf8;color:#315b8a}.row-actions{display:flex;gap:5px;justify-content:end}.row-actions button{border:1px solid var(--line);background:white;border-radius:8px;padding:7px;cursor:pointer}.file-label{cursor:pointer}.file-label input{display:none}.review-stage{padding:clamp(20px,4vw,38px)}.review-top{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center}.review-card{max-width:720px;margin:35px auto 10px;text-align:center}.review-card .prompt{font-size:13px;color:var(--muted)}.review-card h3{font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,5vw,55px);margin:10px 0 26px}.review-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.review-options button{border:1px solid var(--line);background:white;border-radius:13px;padding:16px;text-align:left;cursor:pointer;color:var(--ink)}.review-options button:hover{border-color:var(--teal);background:#f0faf8}.spell-form{display:flex;gap:9px;max-width:540px;margin:auto}.spell-form input{flex:1;font-size:18px}.review-feedback{min-height:48px;text-align:center;font-weight:900;padding-top:12px}.review-feedback.correct{color:var(--teal)}.review-feedback.wrong{color:#bd3158}.review-summary{background:var(--navy);color:white;border-radius:22px;padding:30px;text-align:center}.review-summary strong{display:block;font-size:45px}.word-drawer{position:fixed;right:0;top:0;height:100vh;width:min(430px,94vw);z-index:50;background:#fffdfa;border:0;border-left:1px solid var(--line);box-shadow:-20px 0 60px #152f4255;padding:42px 30px;transform:translateX(105%);transition:transform .25s;overflow:auto}.word-drawer.is-open{transform:none}.drawer-close{position:absolute;right:18px;top:15px;border:0;background:transparent;font-size:30px;cursor:pointer}.word-drawer h2{font-family:Georgia,"Times New Roman",serif;font-size:45px;margin:8px 0}.drawer-meaning{font-size:20px;color:var(--teal);font-weight:800}.pronunciation-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:20px 0}.pronunciation-row button{border:1px solid var(--line);background:white;border-radius:999px;padding:8px 10px;cursor:pointer;font-weight:800}.pronunciation-row span{font-size:13px;color:var(--muted)}.word-facts{display:grid;gap:15px}.word-facts div{border-top:1px solid #e8dfd3;padding-top:13px}.word-facts dt{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:900}.word-facts dd{margin:6px 0 0;line-height:1.6}.drawer-actions{margin-top:25px}.drawer-backdrop{position:fixed;inset:0;background:#11293b66;z-index:45}dialog{border:0;border-radius:20px;padding:0;box-shadow:0 30px 80px #132b3c55;width:min(440px,calc(100% - 30px))}dialog::backdrop{background:#0e263b88}dialog form{padding:30px}dialog h2{font-family:Georgia,"Times New Roman",serif;font-size:30px;margin:8px 0}dialog p,dialog small{color:var(--muted);line-height:1.5}dialog label{display:block;font-weight:900;font-size:12px;margin:18px 0 7px}dialog input{width:100%}dialog form>div{display:flex;justify-content:end;gap:8px;margin-top:22px}footer{border-top:1px solid var(--line);padding:25px max(18px,4vw);display:flex;justify-content:space-between;color:var(--muted);font-size:12px}footer a{color:var(--ink);font-weight:900;text-decoration:none}
@media(max-width:760px){.topbar{height:68px;grid-template-columns:1fr auto}.brand{justify-self:start}.portal-link{display:none}.profile-button{font-size:0}.profile-button span:first-child{font-size:16px}.hero{grid-template-columns:1fr;min-height:auto;padding-top:10px}.hero-panel{transform:none}.studio-nav{top:68px;overflow-x:auto;grid-template-columns:repeat(4,minmax(120px,1fr));margin-bottom:32px}.nav-tab{font-size:12px;white-space:nowrap}.screen-layout{grid-template-columns:1fr}.progress-card{display:grid;grid-template-columns:auto 1fr;gap:8px 14px}.progress-card .progress-track,.progress-card dl,.progress-card p{grid-column:1/-1}.progress-card dl{grid-template-columns:repeat(3,1fr)}.screen-card{min-height:390px;padding:30px 16px}.screen-decisions{gap:6px}.screen-decisions button{padding:10px 4px}.story-controls{grid-template-columns:1fr 1fr}.story-controls .button{grid-column:1/-1}.section-heading{align-items:start;flex-direction:column}.bank-row{grid-template-columns:1fr auto}.bank-meaning{grid-column:1/-1;grid-row:2}.row-actions{grid-column:2;grid-row:2}.review-options{grid-template-columns:1fr}.round-complete,.empty-card{align-items:flex-start;flex-wrap:wrap}.round-complete .button,.empty-card .button{margin-left:64px}.story-paper header{gap:12px}.bank-toolbar{flex-direction:column}footer{flex-direction:column;gap:8px}}
@media(max-width:430px){main{width:min(100% - 20px,1180px);padding-top:28px}.hero h1{font-size:40px}.hero-panel{padding:16px}.hero-panel strong{font-size:23px}.studio-nav{width:calc(100% + 20px);margin-left:-10px;padding-left:10px}.screen-card h3{font-size:46px}.screen-decisions b{font-size:12px}.story-controls{grid-template-columns:1fr}.story-controls .button{grid-column:auto}.story-copy{font-size:16px}.spell-form{flex-direction:column}.bank-row{gap:8px}.row-actions button{font-size:11px}.heading-actions{width:100%}.heading-actions>*{flex:1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.word-drawer,.progress-track i{transition:none}}

/* IELTS vocabulary detail and review expansion */
.bank-word small.bank-pos{color:var(--teal);font-weight:800;margin-top:5px}
.review-modes{display:flex;gap:8px;flex-wrap:wrap;margin:-8px 0 18px}
.review-modes button{border:1px solid var(--line);background:#fffaf3;color:var(--ink);border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer}
.review-modes button.is-active{background:var(--navy);border-color:var(--navy);color:#fff}
.review-card blockquote{margin:18px 0 24px;padding:22px;background:#f7f2e8;border-left:5px solid var(--teal);border-radius:0 14px 14px 0;text-align:left;font-size:20px;line-height:1.6}
.cloze-options button{text-align:center;font-weight:900}
.review-sound{border:1px solid var(--line);background:#fff;border-radius:999px;padding:13px 20px;color:var(--ink);font-weight:900;cursor:pointer;margin:12px 0 24px}
.word-drawer{width:min(540px,96vw)}
.word-family{border-top:1px solid #e8dfd3;margin-top:20px;padding-top:18px}
.family-heading h3{font-family:Georgia,"Times New Roman",serif;font-size:25px;margin:5px 0}
.family-heading small,.family-loading{color:var(--muted);line-height:1.5}
.family-list{display:grid;gap:10px;margin-top:15px}
.family-card{position:relative;border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}
.family-card>div{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.family-card strong{font-family:Georgia,"Times New Roman",serif;font-size:21px}
.family-card span{font-size:11px;color:var(--teal);font-weight:900;text-align:right}
.family-card p{font-size:14px;line-height:1.55;margin:8px 0 10px;color:#405260}
.family-card button{border:0;background:var(--teal-soft);color:#176f68;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;cursor:pointer}
@media(max-width:760px){.review-modes{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.review-modes button{white-space:nowrap}.review-card blockquote{font-size:17px;padding:17px}}
@media(max-width:430px){.screen-card h3{font-size:clamp(30px,11vw,46px);max-width:100%;overflow-wrap:anywhere}}
