:root{color-scheme:light;--paper:#f7f5ef;--surface:#fffefa;--ink:#192927;--muted:#4f625d;--line:#dadfd5;--accent:#195b49;--soft:#e2efe7;--red:#8d322a;--rose:#fae8e4;font-family:system-ui,"Noto Sans TC",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #9c5c13;outline-offset:3px}
.wrap{width:min(100% - 36px,660px);margin-inline:auto}header{border-bottom:1px solid var(--line)}header .wrap{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:60px}.brand{font-weight:800;border:0;background:none;padding:8px 0}.sub,.muted{color:var(--muted);font-size:.88rem}main{padding-block:32px 48px}h1{font-size:clamp(1.65rem,6vw,2.55rem);line-height:1.25;margin:0 0 12px}h2{font-size:1.12rem;margin:0}p{line-height:1.65;margin:0 0 14px}.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:clamp(16px,4vw,24px);margin-block:14px}.resume{background:var(--soft)}.bar,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spread{justify-content:space-between}.actions{margin-top:14px}.btn,select,.choice{min-height:48px;border-radius:11px;border:1px solid var(--line);background:var(--surface);padding:10px 14px}.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:700}.btn:disabled{opacity:.55;cursor:default}.choice{display:flex;align-items:start;text-align:left;width:100%;gap:12px;margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere}.choice span:first-child{font-weight:800;min-width:1.5em}.choice:disabled{cursor:default}.right{background:var(--soft);border-color:#4b806e}.wrong,.feedback.bad{background:var(--rose);border-color:#c98a81}.feedback{margin-top:14px;background:var(--soft);border-radius:11px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere}.prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.1rem;font-weight:650}.figure{display:block;border:1px solid var(--line);border-radius:9px;padding:5px;background:#fff;max-width:100%;margin:9px 0}.figure img{display:block;max-width:100%;max-height:350px;object-fit:contain}progress{width:100%;height:8px;accent-color:var(--accent);margin:10px 0 2px}dialog{border:0;border-radius:14px;max-width:calc(100vw - 22px);max-height:92vh;padding:10px;background:white}dialog::backdrop{background:#112422bb}dialog form{display:flex;justify-content:end;margin-bottom:8px}dialog button{min-height:44px}dialog img{display:block;max-width:100%;max-height:77vh;object-fit:contain}.result{font-size:2.6rem;font-weight:800;color:var(--accent)}.choicebox{margin-block:9px}.choicebox .choice{margin:0}
