:root{--ink:#153d43;--muted:#597478;--paper:#f5f2e9;--mint:#d5efe1;--orange:#d96739;--line:#cbdcd7;--blue:#4d8dba}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.65 system-ui,-apple-system,"Noto Sans CJK TC","Microsoft JhengHei",sans-serif}button,input{font:inherit}button{min-height:46px;border:1px solid #b9ceca;background:#fffdf7;color:var(--ink);border-radius:12px;padding:10px 17px;cursor:pointer;font-weight:650;transition:background .15s,box-shadow .15s}button:hover{background:#e7f3eb}button:disabled{cursor:default;opacity:.48}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e4823f;outline-offset:3px}.primary{background:var(--ink);color:white;border-color:var(--ink)}.primary:hover{background:#23616b}button[hidden],[hidden]{display:none!important}header{max-width:840px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;gap:10px;flex-wrap:wrap}.wordmark{display:flex;align-items:center;gap:12px;font-size:14px;letter-spacing:.04em}.wordmark b{display:block;font-size:17px;letter-spacing:0}.logo{display:grid;place-items:center;font-size:31px;background:var(--ink);color:#c3e8d3;width:48px;height:48px;border-radius:15px}.headeractions{display:flex;gap:8px}main{max-width:800px;width:100%;margin:0 auto;padding:0 18px 24px}.card{background:#fffdf7;border:1px solid var(--line);border-radius:22px;padding:24px;margin-bottom:18px;box-shadow:0 5px 20px #244c3a05}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.25;letter-spacing:-.02em;margin-bottom:12px}h2{font-size:21px;line-height:1.5;margin-bottom:10px}h3{font-size:18px;margin-bottom:6px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.16em;color:#68817b;margin-bottom:12px}.welcome{padding:32px}.welcome h1{font-size:42px}.lead{font-size:19px;color:var(--muted);margin-bottom:0}.hero{background:#e7f0e7;border-radius:18px;margin:24px 0;overflow:hidden}.hero svg{display:block;width:100%;height:auto}.intro{border-bottom:1px solid var(--line);margin-bottom:20px}.intro ol{padding-left:25px}.tag{display:inline-block;font-size:13px;font-weight:800;color:#955029;background:#fbe5d2;border-radius:8px;padding:4px 10px;margin-bottom:10px}label{display:block;margin-bottom:6px}input{width:100%;border:1px solid #aac5bd;border-radius:10px;min-height:48px;padding:10px 13px;background:white;color:var(--ink)}#start{width:100%}#startnote{font-size:14px;color:var(--muted);margin:12px 0}#startstatus{margin:10px 0 0}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 20px}.heading h1{font-size:27px;margin:0}.heading .eyebrow{margin-bottom:5px}.metrics{display:flex;gap:20px;flex-shrink:0}.metrics span{text-align:right}.metrics small{display:block;color:var(--muted);font-size:12px}.metrics b{display:block;font-size:23px;font-variant-numeric:tabular-nums}.towncard{padding:14px 18px}.townhead{display:flex;justify-content:space-between;font-size:13px}.town{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-top:12px}.townslot{background:#eef3ec;border:1px solid #d6e1d6;border-radius:10px;overflow:hidden;text-align:center;min-width:0}.townslot svg{width:100%;height:auto;display:block}.townslot small{display:block;font-size:11px;white-space:nowrap;padding:2px;color:#386066}.townslot.empty{opacity:.55}.townslot.empty b{display:block;line-height:56px;color:#738d83;font-size:17px}.task p{color:var(--muted);margin:0}.stage{padding:16px;overflow:hidden}.stagehead{display:flex;justify-content:space-between;gap:10px;padding:0 6px;font-size:14px}.stagehead span{color:var(--muted);font-size:12px}.scene{background:radial-gradient(ellipse at 50% 40%,#eef6eb,#e1ece3);border-radius:16px;overflow:hidden;margin-top:12px}.scene svg{display:block;width:100%;height:auto}.legend{display:flex;justify-content:space-between;gap:14px;font-size:12px;margin:10px 3px;color:var(--muted);flex-wrap:wrap}.dots{display:flex;justify-content:center;gap:7px}.dots span{height:7px;width:30px;background:#dae4dc;border-radius:4px}.dots span.on{background:#368078}.caption{font-size:16px;min-height:53px;margin:12px 0 0;padding:0 6px}.hint{font-size:13px;color:var(--muted)}details{background:#f1f4ec;padding:10px 13px;border-radius:10px;margin-top:10px;font-size:14px}summary{cursor:pointer;min-height:30px}table{width:100%;border-collapse:collapse;text-align:center;font-size:14px;margin:10px 0}td,th{padding:8px 4px;border-bottom:1px solid #dce5dc}#heightTable table{max-width:320px;margin:12px auto}#heightTable td{border:1px solid #b7cabe}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.choice{display:flex;align-items:center;gap:10px;justify-content:center;position:relative;min-height:145px;padding:12px;background:#f3f5ec}.choice svg{width:150px;max-width:75%;height:130px}.choice .letter{position:absolute;left:12px;top:10px;font-size:13px;background:#e1e9df;border-radius:6px;width:25px;line-height:25px}.choice.selected{border:2px solid var(--ink);background:#e0efe4;box-shadow:0 0 0 2px #3e746312}.choice.correct{border:3px solid #34796d;background:#ddf2e3}.choice.incorrect{border:2px dashed #b85d3d;background:#fbe8dd}#predictbutton{width:100%}.actionrow{display:flex;gap:9px;flex-wrap:wrap}.actionrow .primary{flex:1;min-width:180px}#feedback{font-weight:650}.explanation{margin-top:20px;border-left:4px solid #5a9480;padding:14px 18px;background:#eaf3e7;border-radius:0 12px 12px 0}.explanation p{margin-bottom:8px}.error{background:#fff0e7;border:1px solid #d49576;color:#8c3921;padding:12px;border-radius:10px;margin-top:14px;overflow-wrap:anywhere}.known{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.known>div{border:1px solid #d5e1d6;border-radius:10px;padding:6px 12px;text-align:center;background:#f0f4e9}.known b{display:block;font-size:12px}.known svg{height:85px;width:110px}.result{text-align:center}.result h1{font-size:30px}.resultnumbers{font-size:25px;font-weight:800;margin:24px 0}.savebox{text-align:left;background:#eff3e9;border-radius:14px;padding:16px;margin:14px 0}.savebox p{font-size:14px;margin:8px 0}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:14px}.leaderboard{overflow-x:auto}.leaderboard td:first-child{text-align:left}footer{text-align:center;font-size:13px;color:var(--muted);padding:20px 0}a{color:#2f716c}.busy #predictbutton,.busy #operation,.busy #replay,.busy #inspect{pointer-events:none;opacity:.5}svg text{font-family:system-ui,"Noto Sans CJK TC","Microsoft JhengHei",sans-serif}#resultTown{grid-template-columns:repeat(4,1fr)}@media(max-width:560px){header{padding:12px 14px}.headeractions button{font-size:13px;padding:8px 11px}.wordmark b{font-size:15px}.logo{height:38px;width:38px}main{padding:0 12px 16px}.card{padding:18px;border-radius:17px}.welcome{padding:22px}.welcome h1{font-size:32px}.lead{font-size:17px}.heading{align-items:flex-start}.heading h1{font-size:23px}.metrics{gap:12px}.metrics b{font-size:19px}.choices{grid-template-columns:1fr}.choice{min-height:145px}.choice svg{width:165px;height:140px}.stage{padding:10px}.caption{font-size:14px}.town{gap:4px}.townslot small{font-size:9px}.townslot.empty b{line-height:36px;font-size:13px}.towncard{padding:12px}.stagehead{font-size:13px}.known svg{width:100px}#resultTown{grid-template-columns:repeat(3,1fr)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.controls{display:flex;flex-direction:column}#operate{order:0}#explanation{order:1}#predict{order:2}#error{order:3}#operate:not([hidden])~#predict{margin-top:22px}

.spatialhint{padding:12px 14px;background:#eef4e9;border:1px solid #cadcc7;border-radius:12px;margin:12px 0 0;font-size:14px}.heightgrid th{background:#e2ede0;color:#245450;font-weight:750}.heightgrid td.active{background:#ffe4ad;outline:2px solid #b57626;outline-offset:-2px;font-weight:800}.heightgrid td{font-size:18px;font-weight:650}.heightgrid th:first-child{width:35px}#heightDetails .hint{margin-bottom:0}
