:root{color-scheme:light;--paper:#e9e6da;--card:#faf9f3;--ink:#252923;--blue:#365edc;--muted:#5d6259;--line:#c5c9c1;--lilac:#e9e6ee;--mint:#e5eee5;--yellow:#f5db91}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--paper);color:var(--ink);font-family:Arial,"PingFang SC","PingFang TC","Hiragino Kaku Gothic ProN","Apple SD Gothic Neo",sans-serif;font-synthesis:none}button,input,select,textarea{font:inherit;color:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer;min-height:44px;border:2px solid var(--ink);border-radius:11px;background:#fffdf3;padding:8px 14px;font-size:14px;font-weight:700;line-height:1.35}button:hover{background:var(--yellow)}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.5}a{color:inherit}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.preview-nav,body>.wb-platform-nav{height:60px;min-height:60px;padding:9px 16px;flex:none;width:100%;max-width:1100px;margin:auto}.preview-nav a,body>.wb-platform-nav .wb-button{display:inline-flex;align-items:center;min-height:42px;padding:8px 12px;border:2px solid var(--ink);border-radius:12px;background:#fffdf3;box-shadow:3px 3px 0 var(--ink);text-decoration:none;font-size:12px;font-weight:900}.language{position:fixed;top:9px;right:16px;z-index:101}.language select{height:44px;max-width:128px;border:2px solid var(--ink);border-radius:9px;background:var(--card);padding:8px;font-size:13px;font-weight:700}.suite{width:100%;max-width:820px;padding:4px 16px 8px;margin:0 auto;flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) 44px;gap:9px}.test-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:58px}.eyebrow{font-size:9px;letter-spacing:.12em;font-weight:800}.test-heading h1{font-size:clamp(24px,3.8vw,34px);line-height:1.16;letter-spacing:-.035em;margin:5px 0 6px;text-wrap:balance}.choose{flex:none;max-width:95px;min-width:62px;padding:6px 9px;background:transparent;border:1px solid #25292355;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;gap:2px}.choose>span:first-child{font-size:22px;line-height:1}.game{min-height:0;border:2px solid var(--ink);border-radius:20px;background:var(--card);box-shadow:4px 4px 0 var(--ink);padding:17px;display:flex;flex-direction:column;gap:11px}#status{margin:0;min-height:20px;line-height:1.45;font-size:14px;text-align:center;flex:none}.scene{position:relative;isolation:isolate;flex:1;min-height:125px;border:1px solid #c5c5c6;border-radius:14px;background:var(--lilac);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:12px;gap:9px}.scene svg{width:100%;height:100%;max-height:260px;display:block;overflow:visible}.scene.time{background:var(--lilac)}.scene.length{background:#e7ece5}.scene.angle{background:#f2e6da}.scene.quantity{background:#e5e9ed}.clock{width:clamp(125px,25vh,230px);aspect-ratio:1;max-height:100%;border:2px solid var(--ink);border-radius:50%;background:#fffdf3;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:4px 5px 0 #25292310}.clock-number{font-size:clamp(50px,10vh,88px);line-height:1.1;letter-spacing:-.06em;font-weight:900}.clock-number span{font-size:18px;letter-spacing:0;margin-left:5px}.clock-hint{font-size:12px;line-height:1.35;text-align:center;max-width:80%;margin:6px 0 0}.dots-symbol{font-size:62px;line-height:1;color:var(--blue)}.scene-prompt{max-width:300px;margin:0;font-size:17px;font-weight:700;text-align:center;line-height:1.5}.diagram-label{font-size:15px;font-family:inherit;fill:var(--ink)}#answer-controls{flex:none}.answer-label{display:flex;align-items:center;justify-content:space-between;gap:12px;line-height:1.3;font-size:13px}.answer-label output{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}.input-row{display:flex;align-items:center;gap:12px;min-height:44px}.input-row button{width:44px;padding:4px;font-size:23px;flex:none}.input-row input[type=range]{width:100%;height:44px;margin:0;accent-color:var(--blue);cursor:pointer;min-width:0}.primary{background:var(--blue);color:white;box-shadow:3px 3px 0 var(--ink)}.primary:hover{background:#244bc4}#action{flex:none;width:100%;min-height:50px;font-size:17px}.result-actions{display:flex;gap:9px;flex:none}.result-actions button{flex:1;min-width:0;font-size:14px}.utilities{display:flex;justify-content:space-between;align-items:stretch;gap:8px;min-height:44px}.utilities button{background:transparent;border:0;padding:4px 1px;box-shadow:none;min-width:0;flex:1;max-width:45%;font-size:13px;min-height:44px;text-decoration:underline;text-underline-offset:4px}.utilities button:hover{color:var(--blue)}.active .utilities>button:not(#cancel-active){display:none}.active .utilities{justify-content:center}.result-score{text-align:center;line-height:1.2}.result-score p{font-size:13px;margin:0 0 4px}.result-score strong{font-size:clamp(42px,8vh,70px);font-weight:900;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.result-score small{font-size:16px;margin-left:5px;letter-spacing:0}.result-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%;max-width:510px;padding:10px 0 0;border-top:1px solid #25292330;text-align:center}.result-values div{min-width:0}.result-values dt{font-size:12px;line-height:1.35;margin:0 0 6px;color:var(--muted)}.result-values dd{margin:0;font-size:18px;font-weight:800;line-height:1.4;font-variant-numeric:tabular-nums}.result-values dd small{display:block;font-weight:400;font-size:12px}.local-placement{font-size:12px;text-align:center;line-height:1.4;margin:0;color:var(--muted)}.result .scene{background:#e9e6ee}.game.result{gap:9px}dialog{border:2px solid var(--ink);border-radius:18px;background:var(--card);padding:22px;width:min(570px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;box-shadow:5px 5px 0 var(--ink);color:var(--ink)}dialog::backdrop{background:#25292380}.dialog-top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.dialog-top h2{font-size:21px;line-height:1.35;margin:0;min-width:0}.dialog-top>button{font-size:13px;flex:none;padding:7px 10px;min-height:44px}dialog p,dialog label{font-size:14px;line-height:1.6}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:17px 0 22px}.choices button{min-height:88px;display:flex;align-items:center;justify-content:center;gap:14px;background:var(--lilac);text-align:left}.choices button:nth-child(2){background:var(--mint)}.choices button:nth-child(3){background:#f2e6da}.choices button:nth-child(4){background:#e5e9ed}.choice-icon{font-size:32px;font-weight:900;letter-spacing:-.04em}.code-row{display:flex;gap:8px;margin-top:7px}.code-row input{min-width:0;flex:1;height:44px;border:1px solid var(--ink);border-radius:7px;padding:8px;font:13px ui-monospace,monospace}.code-row button{font-size:13px}.board-notice{padding:12px;background:#e7ebff;border-radius:9px;border:1px solid #365edc50;color:#243b84}.board-select{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.board-select select{max-width:100%;min-height:44px;border:1px solid var(--ink);background:var(--card);border-radius:7px;padding:7px;font-size:14px}.board-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:15px}.board-table th{text-align:left;font-size:12px;font-weight:500;border-bottom:1px solid var(--line);padding:7px 3px}.board-table td{padding:9px 3px;border-bottom:1px solid var(--line);line-height:1.4}.board-table td small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.board-table td strong{font-size:18px}.board-table td:last-child{text-align:right}.board-table button{min-width:44px;min-height:44px;padding:6px 10px;font-size:18px}.current-row{background:#e7ebff}.check{display:flex;gap:10px;align-items:center;min-height:44px}.check input{width:20px;height:20px;accent-color:var(--blue)}#settings-dialog>button{display:block;width:100%;margin:12px 0}.legacy-link{display:inline-block;min-height:44px;padding:9px 0;font-size:14px}.muted{color:var(--muted);font-size:12px}.help-body h3{font-size:17px;margin:22px 0 7px}.help-body p{margin:5px 0 14px}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap}.dialog-actions button{flex:1}.share-preview{text-align:center;background:var(--paper);border-radius:9px;min-height:40px}.share-preview img{display:block;width:auto;max-width:100%;max-height:37dvh;object-fit:contain;margin:0 auto}.share-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.share-buttons button{min-width:0;padding:8px 7px}.share-buttons button:last-child{grid-column:1/-1}.preview-note{font-size:12px;line-height:1.5;padding:10px;background:#f5edcf;border-radius:8px}.share-text{margin-top:14px}.share-text summary{min-height:44px;cursor:pointer;font-size:13px;padding:10px 0}.share-text textarea{display:block;width:100%;min-height:160px;font-size:14px;padding:10px;background:#fffdf3;border:1px solid var(--line);line-height:1.6}.share-preview img[hidden]{display:none}.scene .angle-arc{fill:none;stroke:#365edc;stroke-width:4}.scene .line{stroke:#252923;stroke-width:5;stroke-linecap:round}.scene .point{fill:#365edc;stroke:#252923;stroke-width:1.5}
@media(min-width:850px){.language{right:max(16px,calc((100vw - 1068px)/2))}.game{padding:22px 30px}.result-values dd{font-size:24px}.scene{min-height:180px}.choices button{min-height:105px}}
@media(max-width:550px){.suite{gap:8px}.game{padding:12px;gap:8px;border-radius:17px}.test-heading{gap:8px;min-height:53px}.choose{max-width:83px;font-size:12px}.test-heading h1{font-size:24px}.scene{min-height:115px;padding:9px}.clock{width:clamp(115px,24vh,170px)}.clock-hint{font-size:11px}.result-values dd{font-size:15px}.result-values dt{font-size:11px}.result-values dd small{font-size:10px}.result-score strong{font-size:45px}.result-values{padding-top:8px;gap:4px}.local-placement{font-size:12px}.utilities{gap:8px}.utilities button{font-size:12px}.choices button{padding:10px;gap:9px}.choice-icon{font-size:27px}.code-row{flex-direction:column}dialog{padding:17px}.board-table td strong{font-size:16px}.board-table td small{font-size:10px}}
@media(max-width:550px) and (max-height:600px){.preview-nav,body>.wb-platform-nav{height:55px;min-height:55px;padding-top:5px;padding-bottom:5px}.language{top:5px}.suite{padding-top:0;gap:6px}.eyebrow{display:none}.test-heading{min-height:51px}.test-heading h1{margin:2px 0}.game{gap:6px;padding:10px}.scene{min-height:100px}.clock{width:110px}.clock-number{font-size:50px}.clock-hint{display:none}.scene-prompt{font-size:16px}.result-score strong{font-size:40px}.result-values{padding-top:7px}.scene svg{max-height:180px}.result-actions button{padding:7px 6px}#status{font-size:14px}}
@media(max-width:550px) and (max-height:500px){.test-heading h1{font-size:22px}.test-heading{min-height:45px}.choose{flex-direction:row;max-width:86px;font-size:11px}.choose>span:first-child{font-size:18px}.scene{min-height:85px;padding:5px}.clock{width:82px}.clock-number{font-size:43px}.result-score strong{font-size:32px}.result-score p{font-size:12px}.result-values dt{margin-bottom:2px;font-size:10px}.result-values dd{font-size:14px}.local-placement{font-size:11px}.game{gap:5px;padding:9px}.result-values{padding-top:4px}.scene{gap:5px}.scene svg{max-height:140px}}
@media(max-height:430px) and (min-width:551px){.preview-nav,body>.wb-platform-nav{height:54px;min-height:54px;padding-top:5px}.language{top:5px}.suite{grid-template-rows:minmax(0,1fr) 44px;gap:5px;padding-top:0}.test-heading{display:none}.game{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr 50px;gap:7px;padding:10px}.scene{grid-column:1;grid-row:1/4;min-height:0}#status{grid-column:2;align-self:start;font-size:13px}#answer-controls{grid-column:2;align-self:center}#action{grid-column:2;grid-row:3;min-height:48px}.result-actions{grid-column:2;grid-row:3}.result #action{grid-row:2;align-self:end}.clock{width:135px}.clock-number{font-size:58px}.result-score strong{font-size:36px}.result-values dd{font-size:14px}.result-values dt{font-size:10px}.local-placement{font-size:11px}.scene{gap:4px}.result-values{padding-top:5px;margin:0}.scene svg{max-height:200px}.utilities button{font-size:12px}.result-score p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:active{transform:none}}
/* Result content must fit inside the scene, not just inside the outer card. */
.result-values{margin:0}.result-score,.result-values,.local-placement{flex:none}
@media(max-height:430px) and (min-width:551px){.test-heading{display:flex;position:absolute;top:5px;left:205px;height:44px;min-height:44px;z-index:102}.test-heading>div{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.choose{min-height:44px;height:44px;max-width:150px;flex-direction:row;padding:5px 8px}.choose>span:first-child{font-size:19px}}
@media(max-width:550px) and (max-height:500px){.result #status{display:none}.result-score strong{font-size:40px}.result-score p{font-size:13px}.result-values dt{font-size:11px}.result-values dd{font-size:15px}.local-placement{font-size:12px}.choose{font-size:12px}}
