@font-face{font-family:SPCourseThai;src:url("/assets/sp-course-thai.3129eaf9ff066d5c.woff2") format("woff2");font-weight:100 900;font-display:swap}body[data-game-kind="dot-tracing"]{font-family:SPCourseThai,system-ui,Tahoma,sans-serif}
.dot-sheet-tools[hidden]{display:none}.dot-sheet-tools{margin:16px 0;padding:14px;border:1px solid #c6dce9;border-radius:14px;background:#f2f8fc}.dot-sheet-tools strong{display:block}.dot-sheet-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}.dot-sheet-toolbar a,.dot-downloads a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid #a8c4d5;border-radius:10px;color:#143d61;background:#fff;font-weight:700;text-decoration:none}.dot-sheet-toolbar button[aria-pressed=true]{background:#ffd85a}.dot-sheet-toolbar label{display:flex;align-items:center;gap:6px;min-height:44px}.dot-sheet-toolbar input{width:20px;height:20px}.dot-sheet-note{font-size:.85rem;line-height:1.7;color:#455b70;margin-bottom:0}.dot-boards.has-worksheet{display:block;max-width:100%;max-height:min(78vh,1150px);overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;border:1px solid #c6dce9;border-radius:12px;background:#e9eff4;scrollbar-width:auto}.dot-worksheet-paper{position:relative;min-width:720px;margin:0 auto;background:white}.dot-worksheet-paper>img{display:block;width:100%;height:auto;max-width:none;user-select:none}.dot-worksheet-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.dot-sheet-point{cursor:pointer;touch-action:manipulation;outline:none}.dot-sheet-point circle{fill:rgba(255,255,255,.06);stroke:transparent;stroke-width:1.5}.dot-sheet-point[data-hand=R].first circle{stroke:#84549b}.dot-sheet-point.first circle{stroke:#1d6a9e;stroke-width:5;fill:rgba(217,248,232,.6)}.dot-sheet-point text{fill:#123a5c;font:700 20px system-ui,sans-serif;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round;pointer-events:none}.dot-sheet-point:hover circle,.dot-sheet-point:focus-visible circle{stroke:#1d6a9e;stroke-width:5;fill:rgba(217,239,255,.6)}.dot-sheet-point.tapped circle{fill:rgba(255,216,90,.65);stroke:#1d6a9e;stroke-width:4}.dot-sheet-point[aria-disabled=true]{cursor:default}.hide-dot-numbers .dot-point-number{display:none}.dot-route-bridge{stroke:#207ca8;stroke-width:3;stroke-dasharray:8 6;pointer-events:none}.dot-downloads{margin:18px 0;padding:16px;border:1px solid #c6dce9;border-radius:15px;background:#fff}.dot-downloads h2{font-size:1.1rem}.dot-downloads p{font-size:.87rem;line-height:1.7;color:#455b70}.dot-download-links{display:flex;flex-wrap:wrap;gap:8px}.dot-downloads a:hover,.dot-sheet-toolbar a:hover{background:#e8f6ff}.dot-sheet-tools :focus-visible,.dot-downloads a:focus-visible{outline:3px solid #287eac;outline-offset:3px}@media(max-width:520px){.dot-sheet-toolbar>a{width:100%;justify-content:center}.dot-sheet-toolbar .btn{padding:9px 10px;font-size:.85rem}.dot-download-links{display:grid;grid-template-columns:1fr 1fr}.dot-download-links a{justify-content:center;text-align:center;font-size:.85rem}.dot-download-links a:last-child{grid-column:1/-1}.dot-boards.has-worksheet{max-height:65vh}.dot-sheet-note{font-size:.8rem}}

/* Downloads are hidden before the server confirms a signed-in member's rights. */
#dotDownloads[hidden],[data-dot-download][hidden]{display:none!important}
.dot-online-play{padding:16px;margin:16px 0;border:1px solid #b5d9cd;border-radius:14px;background:#edf8f3}
.dot-online-play h2{margin:0;font-size:1.12rem}.dot-online-play p{margin:7px 0;color:#365f54;font-size:.88rem;line-height:1.7}
.dot-online-play .game-picker{margin:12px 0}.dot-online-play .actions{margin-top:10px}.dot-online-play .actions button{min-height:44px}
.dot-online-count{display:block;padding:7px 11px;border-radius:8px;background:white;font-size:.87rem}
#dotRecordedValue{font-variant-numeric:tabular-nums;color:#146e54}
@media(max-width:520px){.dot-online-play{padding:13px}.dot-online-play .actions{display:grid;grid-template-columns:1fr 1fr}.dot-online-play #startBtn{grid-column:1/-1}.dot-online-play .actions button{width:100%;margin:0;font-size:.85rem}}

/* Fit the interactive board, beat cue and arithmetic task into one viewport. */
body[data-game-kind="dot-tracing"] #testAudio{background:#b94207!important;color:#fff!important;border:2px solid #903205!important;box-shadow:0 3px 0 #773008;font-weight:800;min-height:46px}
body[data-game-kind="dot-tracing"] #testAudio:hover{background:#9b3505!important}
body[data-game-kind="dot-tracing"] #testAudio:disabled{background:#b94207!important;opacity:.68;box-shadow:none}
body[data-game-kind="dot-tracing"] #testAudio:focus-visible{outline:3px solid #173d69;outline-offset:4px}
#practiceBoard{height:calc(100svh - 24px);max-height:720px;min-height:250px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:5px;scroll-margin-top:10px;outline:none}
#practiceBoard .beat-guide{margin:0;min-height:32px;gap:8px;line-height:1.25;font-size:14px;padding:3px 0}
#practiceCue{flex:1}#dotPlayTime{white-space:nowrap;color:#173d69;font-weight:800;font-variant-numeric:tabular-nums}
#dotBoards,#dotBoards.has-worksheet{display:grid;max-width:980px;width:100%;height:100%;min-height:0;max-height:none;margin:0 auto;padding:0;overflow:visible;border:0;background:transparent;touch-action:auto}
#dotBoards.has-worksheet{display:block}.dot-fit-paper{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;height:100%;min-width:0;margin:0}
.dot-fit-column{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;padding:5px!important;background:#f5faff;border:1px solid #bdd2df;border-radius:12px}
.dot-fit-column h3{margin:0!important;padding:4px 0;text-align:center;font-size:14px!important;line-height:20px}
.dot-fit-hand{display:block;flex:1;width:100%;height:0;min-height:0;overflow:visible}.dot-fit-line{fill:none;stroke:#9bb7c9;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.dot-fit-hand .dot-sheet-point circle.dot-fit-hit{fill:transparent;stroke:none;pointer-events:all}
.dot-fit-hand .dot-fit-mark{fill:#fff;stroke:#176f78;stroke-width:1.8;pointer-events:none}
.dot-fit-hand [data-hand=R] .dot-fit-mark{stroke:#7657a2}.dot-fit-hand .first .dot-fit-mark{fill:#d9f2e6;stroke-width:2.5}
.dot-fit-hand .tapped .dot-fit-mark{fill:#ffd85a;stroke-width:2.5}.dot-fit-hand .dot-sheet-point:focus-visible .dot-fit-mark{stroke:#f18c00;stroke-width:3}
.dot-fit-hand .dot-sheet-point text{fill:#123a5c;stroke:none;font-family:Arial,sans-serif;font-weight:700;pointer-events:none}
.dot-fit-hand .dot-sheet-point:hover .dot-fit-mark{fill:#fff0b7}.dot-fit-hand .dot-sheet-point[aria-disabled=true]{cursor:default}
#dotBoards>section{display:flex;flex-direction:column;min-height:0;padding:5px}#dotBoards .dot-route{flex:1;height:0;min-height:0}
#dotBoards .dot-point{width:clamp(20px,6vh,42px);height:clamp(20px,6vh,42px);font-size:clamp(11px,3vh,16px)}
#practiceBoard .math-task{box-sizing:border-box;max-width:980px;width:100%;min-height:84px;margin:0 auto;padding:8px;border-radius:10px}
#practiceBoard .math-task strong{font-size:17px;line-height:1.4}
#practiceBoard .practice-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:5px}
#practiceBoard .practice-options .btn{padding:6px 2px;min-width:0;min-height:34px;margin:0;font-size:14px}
.dot-sheet-fit-label{font-size:.85rem;color:#315c72;font-weight:700}.dot-sheet-note{overflow-wrap:anywhere}
@media(max-width:520px){.dot-fit-paper{gap:6px}#dotBoards{gap:6px}.dot-fit-column{padding:3px!important}.dot-fit-column h3{font-size:12px!important}#practiceBoard .beat-guide{font-size:12px}#practiceBoard .math-task strong{font-size:15px}#practiceBoard .practice-options .btn{font-size:12px}}
@media(max-height:380px){#practiceBoard{height:calc(100svh - 12px);min-height:220px;gap:3px}#practiceBoard .beat-guide{min-height:27px;font-size:12px}#practiceBoard .math-task{min-height:69px;padding:4px}#practiceBoard .math-task strong{font-size:14px}#practiceBoard .practice-options .btn{min-height:29px;padding:3px} .dot-fit-column h3{padding:1px 0;font-size:12px!important;line-height:17px}}
