:root{--ink:#102e37;--muted:#50656a;--green:#caef88;--paper:#f5f5ee;--line:#d7ded7;--white:#fff;--coral:#f7ab91;--blue:#dce9fa;--yellow:#fff0c9;--error:#9b2c16;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--paper);font-size:18px}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #125cb3;outline-offset:4px}input,select,textarea{width:100%;padding:14px 16px;border:1px solid #839697;border-radius:10px;background:white;color:var(--ink)}label{font-weight:650;display:block;margin-bottom:8px}textarea{min-height:100px;resize:vertical;line-height:1.6}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.2rem,5vw,4rem);letter-spacing:-.05em;line-height:1.22;font-weight:800}h2{font-size:1.8rem;letter-spacing:-.035em;line-height:1.4}h3{font-size:1.25rem;line-height:1.5}p{line-height:1.8}header{max-width:1320px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:25px 42px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:850;font-size:1.15rem;letter-spacing:-.02em}.brand svg{width:44px;height:44px}.brand-sub{display:block;font-size:.68rem;font-weight:600;letter-spacing:.12em;margin-top:3px}nav{display:flex;align-items:center;gap:28px;font-size:.85rem}nav a{text-decoration:none}.nav-admin{color:var(--muted)}main{max-width:1236px;padding:0 24px;margin:0 auto;min-height:72vh}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:60px;padding:75px 0 60px;align-items:center}.eyebrow{font-size:.75rem;letter-spacing:.15em;font-weight:750;display:flex;align-items:center;gap:10px;margin-bottom:23px}.eyebrow:before{content:'';width:8px;height:8px;background:#4c7b2d;border-radius:50%}.hero h1 em{font-style:normal;position:relative;white-space:nowrap}.hero h1 em:after{content:'';position:absolute;height:10px;left:0;right:0;bottom:6px;background:var(--green);z-index:-1}.hero p{max-width:510px;color:var(--muted);font-size:1.03rem}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--ink);color:white;border:1px solid var(--ink);border-radius:10px;padding:15px 23px;text-decoration:none;font-weight:700;font-size:.94rem;min-height:52px}.btn:hover{background:#244e58}.btn.light{background:transparent;color:var(--ink)}.btn.light:hover{background:#e7e9df}.btn.green{background:var(--green);color:var(--ink);border-color:var(--green)}.btn.small{padding:10px 16px;min-height:44px;font-size:.82rem}.micro{font-size:.78rem!important;color:var(--muted);line-height:1.7}.hero-art{position:relative;background:#e4e9de;border-radius:26px;padding:30px;min-height:372px;transform:rotate(2deg);border:1px solid #d8e0d1}.art-top{display:flex;justify-content:space-between;align-items:center;font-size:.73rem;margin-bottom:30px}.dots{display:flex;gap:6px}.dots i{width:7px;height:7px;border-radius:50%;background:#8eaa94}.art-card{background:white;border:1px solid #d5ddcf;padding:25px;border-radius:14px;transform:rotate(-4deg);box-shadow:0 12px 0 #ccdac5}.art-card p{font-size:1.23rem;font-weight:700;line-height:1.7}.art-choice{padding:13px 15px;border:1px solid #c8d7bc;border-radius:8px;font-size:.83rem;background:#ecf5e2;margin-top:10px}.art-choice.dim{background:#f6f6f2;color:var(--muted)}.art-note{margin-left:auto;position:relative;background:var(--ink);color:white;border-radius:10px;padding:16px;width:max-content;max-width:95%;font-size:.8rem;transform:rotate(-2deg);margin-top:20px}.intro-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:23px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:.83rem}.intro-strip strong{font-size:1.4rem;margin-right:5px}.intro-strip .muted{color:var(--muted)}.section{padding:60px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.section-head h2{margin-bottom:10px}.section-head p{color:var(--muted);margin-bottom:0;font-size:.9rem}.tag{display:inline-block;font-size:.68rem;line-height:1.5;padding:5px 9px;border-radius:5px;background:var(--yellow);font-weight:700}.tag.reviewed{background:#ddedcf}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.topic{border:1px solid var(--line);background:white;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.topic-top{padding:24px;display:flex;align-items:center;justify-content:space-between;height:125px;background:var(--green)}.topic:nth-child(2) .topic-top{background:var(--coral)}.topic:nth-child(3) .topic-top{background:var(--blue)}.topic-icon{font-size:2.5rem;line-height:1;font-weight:500}.topic-number{font-family:monospace;font-size:.8rem}.topic-body{padding:24px;display:flex;flex:1;flex-direction:column}.topic-body h3{margin-bottom:14px}.topic-body p{font-size:.84rem;color:var(--muted);flex:1}.topic-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;font-size:.78rem}.topic-bottom button{border:0;background:none;font-weight:800;color:var(--ink);padding:10px 0;min-height:44px}.steps{background:var(--ink);color:white;display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:25px;padding:35px;border-radius:18px;margin-bottom:60px}.steps h2{font-size:1.35rem;margin:0}.steps b{display:block;color:var(--green);font-family:monospace;font-size:.8rem;margin-bottom:12px}.steps p{font-size:.8rem;color:#d5e0df;margin:0}.page{padding:55px 0 65px}.narrow{max-width:600px;margin:auto}.page h1{font-size:2.5rem}.panel{border:1px solid var(--line);border-radius:18px;background:white;padding:30px}.field{margin-bottom:22px}.field small{display:block;color:var(--muted);margin-top:7px;line-height:1.6;font-size:.74rem}.form-actions{display:flex;gap:12px;flex-wrap:wrap}.notice-box{padding:16px 20px;background:var(--yellow);border-left:4px solid #b67f15;border-radius:7px;font-size:.85rem;line-height:1.8;margin:20px 0}.back{display:inline-block;margin-bottom:25px;font-size:.8rem}.room-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.room-head h1{font-size:1.5rem;margin-bottom:7px;letter-spacing:-.03em}.room-meta{font-size:.78rem;color:var(--muted)}.connection{display:inline-flex;align-items:center;gap:8px;font-size:.73rem;white-space:nowrap}.connection:before{content:'';width:8px;height:8px;border-radius:50%;background:#417d22}.connection.offline:before{background:#b64225}.lobby-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}.code{font:700 clamp(2.2rem,6vw,3.4rem) ui-monospace,monospace;letter-spacing:.1em;margin:16px 0}.qr{background:white;border:1px solid var(--line);border-radius:10px;width:210px;max-width:100%;height:auto}.names{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px;min-height:80px}.name{background:var(--paper);border:1px solid var(--line);padding:8px 13px;border-radius:8px;font-size:.86rem}.center{text-align:center}.wait-icon{font-size:3rem;line-height:1.2;margin:15px}.question-shell{max-width:950px;margin:auto}.progress{height:5px;border-radius:3px;background:#dce2d9;margin-bottom:30px;overflow:hidden}.progress span{display:block;background:#567e33;height:100%}.q-meta{display:flex;gap:15px;align-items:center;margin-bottom:18px;color:var(--muted);font-size:.8rem}.question-title{font-size:clamp(1.35rem,3.3vw,2.1rem);line-height:1.65;letter-spacing:-.03em;margin-bottom:26px}.options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.option{display:flex;align-items:center;gap:14px;text-align:left;border:2px solid #b8c6c4;border-radius:12px;padding:21px;background:white;color:var(--ink);min-height:100px;line-height:1.65;font-size:1rem}.option span.letter{flex:none;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#edf0e8;font-weight:800}.option.selected{border-color:var(--ink);background:#e9eee3}.option.correct{border-color:#487525;background:#edf7df;opacity:1}.option.wrong{border-color:#ae4128;background:#fff1eb;opacity:1}.option:disabled{opacity:1}.answer-status{font-size:.85rem;color:var(--muted);margin:22px 0}.explanation{margin-top:25px;padding:26px;background:#edf6df;border:1px solid #bdd294;border-radius:12px}.explanation p{font-size:.94rem}.explanation h3{margin-bottom:12px}.clue{background:#fff;padding:15px;border-radius:8px;margin-bottom:18px;font-size:.89rem;line-height:1.75}.sources{font-size:.78rem;line-height:1.9;padding-left:20px;overflow-wrap:anywhere}.source-date{font-size:.71rem;color:var(--muted)}.guide{background:var(--blue);padding:18px;border-radius:10px;margin-top:18px;font-size:.85rem;line-height:1.8}.distribution{margin-top:20px}.bar-row{display:grid;grid-template-columns:24px 1fr 60px;gap:12px;align-items:center;font-size:.8rem;margin:10px 0}.bar{height:14px;background:#dae2d3;border-radius:4px;overflow:hidden}.bar span{display:block;background:#5a7c39;height:100%}.controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px;border-top:1px solid var(--line);padding-top:25px}.end-summary details{background:white;padding:20px;border:1px solid var(--line);border-radius:10px;margin-bottom:12px}.end-summary summary{cursor:pointer;font-weight:700;line-height:1.7}.end-summary details .explanation{margin-bottom:0}.question-image{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:20px auto;border-radius:8px}.admin-layout{display:grid;grid-template-columns:240px 1fr;gap:24px}.admin-list button{display:block;text-align:left;width:100%;padding:15px;background:white;border:1px solid var(--line);border-radius:8px;margin-bottom:10px;line-height:1.7}.admin-list button.active{background:var(--ink);color:white}.editor-question{border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:20px}.editor-question legend{font-weight:800;padding:0 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check-label{display:flex;align-items:start;gap:12px;font-size:.86rem;line-height:1.7;margin:22px 0}.check-label input{width:22px;height:22px;flex:none;margin-top:3px}.admin-controls{position:sticky;bottom:0;background:var(--paper);border-top:1px solid var(--line);padding:18px 0;display:flex;gap:12px;flex-wrap:wrap}.loading{padding:90px 0;text-align:center;color:var(--muted)}.error{padding:18px;color:var(--error);background:#ffede6;border:1px solid #d88872;border-radius:8px;line-height:1.7;margin:20px 0}.hidden{display:none!important}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:min(90vw,620px);background:var(--ink);color:white;border-radius:10px;padding:0;z-index:20;box-shadow:0 4px 24px #102e3722;font-size:.85rem;line-height:1.7}#notice.visible{padding:15px 22px}footer{max-width:1236px;margin:auto;border-top:1px solid var(--line);padding:30px 24px;display:flex;gap:25px;align-items:center;font-size:.71rem;color:var(--muted)}footer span{margin-right:auto}.skip{position:fixed;left:16px;top:-100px;background:white;padding:15px;z-index:50}.skip:focus{top:10px}code{font-size:.9em;overflow-wrap:anywhere}.privacy-list{line-height:2;padding-left:24px}.danger-link{color:var(--error);border:0;background:transparent;text-decoration:underline;font-size:.8rem;padding:12px}.small-heading{font-size:1.1rem;margin-top:26px}.muted{color:var(--muted)}
@media(max-width:850px){header{padding:20px 24px}nav{gap:18px}.hero{gap:35px;padding-top:50px}.hero-art{padding:22px;min-height:330px}.art-card{padding:20px}.cards{gap:12px}.topic-body{padding:20px}.steps{grid-template-columns:repeat(3,1fr)}.steps h2{grid-column:1/-1}.lobby-grid{grid-template-columns:1fr 1fr}.admin-layout{grid-template-columns:190px 1fr}.admin-controls .btn{flex:1}}
@media(max-width:650px){:root{font-size:17px}header{padding:17px 20px;flex-wrap:wrap;gap:18px}.brand svg{width:38px;height:38px}nav{gap:22px;font-size:.78rem;width:100%;padding-top:5px;justify-content:space-between}.brand-sub{font-size:.65rem}main{padding:0 20px}.hero{grid-template-columns:1fr;padding:35px 0;gap:28px}.hero h1{font-size:2.55rem;line-height:1.3;margin-bottom:20px}.hero-art{min-height:0;padding:20px;max-width:500px;transform:rotate(1deg);margin:0 5px}.art-top{margin-bottom:18px}.art-card p{font-size:1rem;margin-bottom:12px}.art-choice{padding:10px;font-size:.78rem}.art-note{padding:12px;margin-top:14px}.hero .actions{margin:20px 0}.intro-strip{flex-wrap:wrap;gap:16px;justify-content:space-between;font-size:.72rem}.intro-strip strong{font-size:1.15rem}.intro-strip .muted{width:100%}.section{padding:38px 0}.section-head{display:block}.section-head .tag{margin-top:15px}.cards{grid-template-columns:1fr;gap:18px}.topic-top{height:90px;padding:20px}.topic-icon{font-size:2rem}.topic-body p{margin-bottom:0}.topic-bottom{margin-top:12px}.steps{grid-template-columns:1fr;padding:26px;gap:22px;margin-bottom:38px}.steps h2{grid-column:auto}.steps b{margin-bottom:6px}.page{padding:32px 0 45px}.page h1{font-size:2rem}.panel{padding:22px}.room-head{align-items:start;flex-wrap:wrap;gap:12px}.room-head h1{font-size:1.22rem}.lobby-grid{grid-template-columns:1fr}.code{font-size:2.4rem}.options{grid-template-columns:1fr;gap:12px}.option{min-height:80px;padding:17px;font-size:1rem}.question-title{font-size:1.4rem}.controls{align-items:stretch;flex-wrap:wrap}.controls>.btn{flex:1}.explanation{padding:20px}.form-grid{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}.admin-list{display:flex;gap:10px;overflow-x:auto;padding-bottom:8px}.admin-list button{min-width:180px}.editor-question{padding:15px}.admin-controls{gap:8px}.admin-controls .btn{font-size:.8rem;padding:14px 10px}footer{flex-wrap:wrap;padding:25px 20px;gap:18px}footer span{width:100%;margin:0}.section-head h2{font-size:1.5rem}.q-meta{flex-wrap:wrap}.names{min-height:50px}.question-shell .tag{font-size:.65rem}.btn{padding:14px 19px}.room-meta{line-height:1.7}}
@media(prefers-reduced-motion:no-preference){.btn,.option{transition:background .16s,border-color .16s}.topic{transition:transform .16s}.topic:hover{transform:translateY(-3px)}}
