/* Loading only. No board redraws, artificial wait, or animation after readiness. */
#boardLoading{position:fixed;inset:0;z-index:1000;display:grid;place-content:center;justify-items:center;gap:12px;padding:24px;text-align:center;background:var(--board-surface);color:var(--ink-strong);transition:opacity 120ms ease-out}
#boardLoading[hidden]{display:none}
#boardLoading[data-state=ready]{opacity:0;pointer-events:none}
.board-loading-mark{width:160px;height:96px;color:var(--accent);overflow:visible}
.board-loading-guide{stroke:var(--edge-strong);stroke-width:1;fill:none}
.board-loading-stroke{fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.board-loading-pen{fill:var(--board-surface);stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;transform:translate(142px,48px)}
.board-loading-title{margin:0;font:700 21px/1.35 Manrope,sans-serif;letter-spacing:-.02em}
.board-loading-message{margin:0;max-width:30ch;font:400 13px/1.6 Manrope,sans-serif;color:var(--ink)}
#retryBoardLoad{margin-top:8px;padding:10px 18px;border:1px solid var(--edge-strong);border-radius:10px;background:var(--panel);color:var(--ink-strong);font:600 14px/1.4 Manrope,sans-serif;cursor:pointer}
#retryBoardLoad:hover{background:var(--panel-soft)}
#retryBoardLoad:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#retryBoardLoad[hidden]{display:none}
#boardLoading[data-state=loading] .board-loading-stroke{stroke-dasharray:1;animation:board-loading-draw 2.2s linear infinite}
#boardLoading[data-state=loading] .board-loading-pen{animation:board-loading-write 2.2s linear infinite}
@keyframes board-loading-draw{0%{stroke-dashoffset:1;opacity:1}75%,86%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes board-loading-write{0%{transform:translate(20px,61px);opacity:1}18%{transform:translate(50px,37px)}38%{transform:translate(82px,60px)}60%{transform:translate(112px,28px)}75%,86%{transform:translate(142px,48px);opacity:1}96%,100%{transform:translate(142px,48px);opacity:0}}
.board-image-loading-surface{fill:var(--panel);stroke:var(--edge-strong);stroke-width:1;vector-effect:non-scaling-stroke}
.board-image-loading-frame{stroke:var(--edge-strong)}
.board-image-loading-sun{stroke:var(--accent);fill:var(--accent-soft)}
.board-image-loading-line{stroke:var(--accent)}
.board-image-loading.is-animated .board-image-loading-line{stroke-dasharray:1;animation:board-image-develop 1.8s ease-in-out 2}
.board-image-loading.is-animated .board-image-loading-sun{animation:board-image-light 1.8s ease-in-out 2}
@keyframes board-image-develop{0%{stroke-dashoffset:1;opacity:.45}65%,100%{stroke-dashoffset:0;opacity:1}}
@keyframes board-image-light{0%,100%{opacity:.5}55%{opacity:1}}
@media(prefers-reduced-motion:reduce){
 #boardLoading{transition:none}
 #boardLoading[data-state] .board-loading-stroke,#boardLoading[data-state] .board-loading-pen,.board-image-loading.is-animated .board-image-loading-line,.board-image-loading.is-animated .board-image-loading-sun{animation:none;stroke-dashoffset:0}
}
@media print{#boardLoading,.board-image-loading{display:none!important}}
