*{box-sizing:border-box}:root{--ground:#e7deed;--paper:#f8f3f5;--ink:#3d3147;--muted:#78677f;--thread:#ba433d;--line:#cbbbd2;color-scheme:light}body{margin:0;background:var(--ground);color:var(--ink);font:14px/1.55 'Segoe UI',Arial,sans-serif}main{max-width:790px;margin:auto;padding:24px 25px 10px}header{display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px}.flower{width:64px;height:64px;color:var(--thread)}.kicker{font:10px/1.5 'Courier New',monospace;letter-spacing:1.3px;margin:0 0 4px;color:var(--muted)}h1{font:normal clamp(48px,8vw,68px)/.98 Georgia,serif;letter-spacing:-3px;margin:0}h1 span{color:var(--thread)}h2{font:normal 26px/1.2 Georgia,serif;margin:0}button,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:22px;min-height:42px;padding:7px 15px;background:transparent;color:var(--ink);cursor:pointer}button:hover{background:#dacee0}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--thread);outline-offset:3px}button:disabled{opacity:.4;cursor:default}.help{width:40px;min-height:40px;padding:0}.tagline{font:italic 16px Georgia,serif;color:var(--muted);margin:13px 0 20px}nav{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:15px;border-bottom:1px dashed #aa96b5}nav button{font-size:12px;min-height:36px;padding:5px 12px}nav button[aria-current=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.pattern-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 14px}#timer{font:18px monospace;color:var(--muted)}.rules{font-size:14px;max-width:650px;margin:14px 0 18px}.studio{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:24px;align-items:start;min-width:0}.hoop{min-width:0;padding:19px 19px 9px;border:1px solid #c5b0b5;border-radius:22px;background:var(--paper);box-shadow:inset 0 0 0 5px #dfc6bd,0 4px 0 #baa8bc;position:relative}.hoop:before{content:'';display:block;position:absolute;top:-7px;left:calc(50% - 18px);width:36px;height:11px;background:#a88b73;border:1px solid #8a705c;border-radius:3px}.board{width:100%;aspect-ratio:1;position:relative;background-image:repeating-linear-gradient(0deg,transparent,transparent 3px,#e2d9de44 3px,#e2d9de44 4px),repeating-linear-gradient(90deg,transparent,transparent 3px,#e2d9de44 3px,#e2d9de44 4px);border-radius:6px;touch-action:manipulation}.fabric-label{text-align:center;color:#9c8b92;font:8px monospace;letter-spacing:2px;margin-top:8px}.dot{position:absolute;width:6px;height:6px;border-radius:50%;background:#b5a5b0;transform:translate(-50%,-50%);pointer-events:none}.clue{position:absolute;transform:translate(-50%,-50%);font:normal clamp(18px,4vw,29px)/1 Georgia,serif;pointer-events:none;color:var(--ink)}.edge{position:absolute;transform:translate(-50%,-50%);padding:0;border:0;border-radius:5px;min-height:0;background:transparent;display:flex;align-items:center;justify-content:center;z-index:1;touch-action:manipulation}.edge:before{content:'';display:block;background:#c1b1c52b;border-radius:5px;width:100%;height:3px}.edge.v:before{width:3px;height:100%}.edge:hover{background:#c5abc32b}.edge.on:before{background:var(--thread);height:5px;box-shadow:0 1px 1px #7c302a55}.edge.on.v:before{width:5px;height:100%}.edge.cross:before{display:none}.edge.cross:after{content:'×';font:22px/1 Arial,sans-serif;color:#938297}.edge.hint{outline:3px dashed var(--thread);outline-offset:1px}.edge:disabled{opacity:1}.edge:focus-visible{outline-offset:0;z-index:2}.edge.on{z-index:2}aside{padding-top:10px;min-width:0}.needle-tools{display:flex;flex-direction:column;gap:7px}.needle-tools button{text-align:left;font-size:13px;padding:7px 12px}.needle-tools span{margin-right:7px;color:var(--thread)}.needle-tools button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.needle-tools button[aria-pressed=true] span{color:#ffafa0}.tool-note{font-size:12px;line-height:1.5;color:var(--muted);margin:13px 0 18px}.tools{display:flex;flex-direction:column;gap:7px}.tools button{font-size:12px;min-height:38px}#status{font-size:13px;line-height:1.5;min-height:21px;margin:17px 0 0;color:var(--thread)}.site-credit{margin-top:22px;padding:12px 0;border-top:1px dashed #bca9c7;text-align:center;font:11px monospace;color:var(--muted)}a{color:var(--ink)}.result{display:flex;gap:18px;align-items:flex-start;background:#f7eef2;padding:20px;margin-top:14px;border:1px dashed #bca9c7;border-radius:18px}.seal{font-size:44px;color:var(--thread);line-height:1.2}.result p:not(.kicker){font-size:13px}.result-tools{display:flex;flex-wrap:wrap;gap:7px}.result-tools button{font-size:12px;min-height:38px}.primary{background:var(--ink);color:white;border-color:var(--ink)}.primary:hover{background:#58435f}#sample-picker{margin:0 0 14px}#sample-picker label{display:block;font:10px monospace;color:var(--muted);margin-bottom:5px}select{width:100%;border:1px solid #bca9c7;border-radius:9px;min-height:40px;padding:5px 10px;color:var(--ink);background:transparent;font-size:13px}.notice{background:#fff0d4;padding:10px;border-radius:8px;font-size:12px}dialog{border:1px solid #bca9c7;border-radius:18px;background:var(--paper);color:var(--ink);max-width:min(480px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:24px}dialog::backdrop{background:#302637aa}dialog p{font-size:14px}textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;margin-bottom:10px}.embedded main{padding-top:14px}.embedded .tagline{display:none}.embedded nav{margin-top:16px}.embedded #sample-picker label{display:none}[hidden]{display:none!important}@media(max-width:619px){main{padding:18px 18px 8px}.studio{grid-template-columns:minmax(0,1fr);gap:15px}.hoop{max-width:430px;width:100%;margin:auto;padding:17px 17px 8px}aside{padding-top:0}.needle-tools{flex-direction:row}.needle-tools button{flex:1;text-align:center}.tool-note{font-size:11px;margin:8px 0 10px}.tools{flex-direction:row;flex-wrap:wrap}.tools button{flex:1;white-space:nowrap;padding:7px 10px}.studio aside>.kicker{display:none}.clue{font-size:25px}.flower{width:52px;height:52px}.brand{gap:8px}.kicker{font-size:9px}h2{font-size:24px}.rules{font-size:13px}.result{gap:10px}.seal{font-size:34px}}@media(max-width:359px){main{padding:12px 12px 6px}.flower{width:40px;height:40px}h1{font-size:48px}.kicker{font-size:8px;letter-spacing:.6px}nav{gap:4px}nav button{padding:5px 9px;font-size:11px}.rules{font-size:12px}.clue{font-size:21px}.hoop{padding:13px 13px 6px}.tool-note{font-size:10px}.tools button{font-size:11px;padding:7px 9px}.needle-tools button{font-size:12px}.pattern-heading{margin-top:14px}h2{font-size:22px}.seal{display:none}}

.edge.h:before{width:121.952%;flex-shrink:0}.edge.v:before{height:121.952%;flex-shrink:0}.dot{z-index:3}
.teaching-note{border-left:3px solid var(--thread);background:var(--paper);padding:10px 12px;margin:0 0 20px;font-size:13px;border-radius:0 8px 8px 0}
.teaching-note h3{font:normal 22px/1.2 Georgia,serif;margin:6px 0 8px}.teaching-note p{margin:8px 0 12px}#guide-progress{font-size:10px;margin-top:0}#guide-feedback{font-weight:600;color:var(--thread)}#guide-feedback:empty{display:none}.edge.lesson-target{outline:2px dashed var(--thread);outline-offset:1px;background:#ba433d14}.lesson-clue{border:2px solid var(--thread);background:var(--paper);border-radius:50%;min-width:40px;min-height:40px;display:grid;place-items:center}.dot.lesson-dot{width:10px;height:10px;background:var(--thread);outline:3px solid var(--thread);outline-offset:5px;z-index:4}.guided .studio{grid-template-columns:minmax(0,1fr)}.guided .studio aside{display:none}.guided .hoop{width:100%;max-width:430px;margin:auto}.guided #status{min-height:0}.guided #status:empty{display:none}
.edge.lesson-target{outline:none;background:transparent}.edge.lesson-target:after{content:'';position:absolute;border:2px dashed var(--thread);border-radius:6px;width:121.952%;height:11px;pointer-events:none}.edge.lesson-target.v:after{width:11px;height:121.952%}.edge.lesson-target:focus-visible{outline:2px solid var(--thread);outline-offset:1px}.guided .tagline{display:none}.guided nav{margin-top:16px}

/* Explicit daily readiness, shared by standalone, embed and offline views. */
.daily-start{box-sizing:border-box;min-height:250px;padding:32px 18px;border:1px solid var(--line,#ccc);border-radius:14px;text-align:center;display:grid;align-content:center;justify-items:center;gap:14px;margin:14px 0;color:inherit}
.daily-start[hidden],.daily-concealed{display:none!important}
.daily-start h3,.daily-start p{margin:0;max-width:34em;line-height:1.5}
.daily-start button{font:inherit;max-width:100%;padding:12px 18px;cursor:pointer}
/* Optional first-result rankings; colours inherit the game's own theme. */
.leaderboard{margin:22px 0 0;padding:16px;border:1px solid var(--line,#ccc);border-radius:3px}
.leaderboard h3{margin:0 0 12px}.leaderboard label{display:block;font-size:12px;margin-bottom:4px}
.leaderboard input{font:inherit;box-sizing:border-box;min-width:0;width:100%;max-width:260px;padding:9px;border:1px solid var(--line,#ccc);background:transparent;color:inherit}
.leaderboard p{font-size:13px;line-height:1.5}.leaderboard summary{cursor:pointer;padding:10px 0;font-weight:600}
.leaderboard table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px;margin:10px 0}
.leaderboard th,.leaderboard td{text-align:left;padding:6px 3px;overflow-wrap:anywhere;border-bottom:1px solid var(--line,#ccc)}
.leaderboard th:nth-child(2){width:36%}.leaderboard .your-result{font-weight:700}
.leaderboard button{max-width:100%;white-space:normal;font-size:12px}
.leaderboard input:focus-visible,.leaderboard summary:focus-visible{outline:3px solid currentColor;outline-offset:3px}
