:root{color-scheme:light;--paper:#f4f1e9;--ink:#343d35;--muted:#797c70;--line:#dcd9ce;--red:#ac453a;--serif:'Yu Mincho','Hiragino Mincho ProN','Noto Serif CJK JP',serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Yu Gothic','Hiragino Kaku Gothic ProN',sans-serif;-webkit-tap-highlight-color:transparent}body:before{content:'';position:fixed;inset:0;pointer-events:none;opacity:.15;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' filter='url(%23n)' opacity='.2' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--red);outline-offset:5px}button:disabled{cursor:default;opacity:.55}.game{width:min(100%,480px);margin:auto;padding:26px 30px 22px;min-height:100svh}.topbar{display:flex;justify-content:space-between;align-items:center}.wordmark{color:var(--ink);text-decoration:none;font:16px var(--serif);letter-spacing:.15em}.wordmark span{font:9px sans-serif;letter-spacing:.22em;margin-left:10px}.quiet{border:1px solid var(--line);padding:8px 12px;border-radius:30px;background:transparent;font-size:10px;letter-spacing:.1em;color:var(--muted)}.intro{text-align:center;margin:43px 0 30px}.eyebrow{font:9px sans-serif;letter-spacing:.23em;color:var(--muted)}h1{position:relative;display:inline-block;font:78px/1.2 var(--serif);font-weight:400;letter-spacing:.12em;margin:12px 0 18px;padding-left:.12em}h1 span{margin-left:9px}h1 i{display:block;position:absolute;left:20px;right:0;height:35px;bottom:-5px;border-top:1.2px solid var(--red);border-radius:50%;transform:rotate(-12deg)}h1 i:after{content:'';position:absolute;width:9px;height:15px;border:1px solid var(--red);border-radius:50%;left:91px;top:-7px;transform:rotate(30deg)}.subtitle{font:12px/2 var(--serif);max-width:300px;margin:0 auto;text-wrap:balance;letter-spacing:.035em}.play{border-top:1px solid var(--line)}.scorebar{display:flex;justify-content:space-between;align-items:center;padding-top:22px}.micro{font-size:9px;letter-spacing:.13em;color:var(--muted)}.scorebar p{margin:4px 0 0;display:flex;align-items:baseline;gap:9px}#score{font:48px/1.1 var(--serif);font-variant-numeric:tabular-nums;display:inline-block}.unit{font:10px sans-serif;color:var(--muted)}.best{text-align:right}.best p{justify-content:flex-end;font:24px var(--serif)}.stage{position:relative;margin:0 -30px;overflow:hidden;touch-action:manipulation;user-select:none}#scene{width:100%;display:block}.svg-label{font:9px 'Yu Mincho',serif;letter-spacing:2px;fill:#797c70}.feedback{position:absolute;top:15%;left:0;right:0;text-align:center;font:17px var(--serif);letter-spacing:.15em;color:var(--red);pointer-events:none}.controls{text-align:center;margin-top:-18px}.controls>p:first-child{font:12px var(--serif);letter-spacing:.04em;margin:0 0 20px}.primary,.secondary{width:100%;min-height:54px;padding:15px 22px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--ink);border-radius:2px;background:var(--ink);color:var(--paper);font-size:13px;letter-spacing:.15em;transition:background .2s,transform .15s}.primary:hover{background:#48554a}.primary:active,.secondary:active{transform:scale(.985)}.primary span,.secondary span{font-size:19px}.secondary{background:transparent;color:var(--ink);margin-top:10px}.hint{font-size:9px;color:var(--muted);letter-spacing:.12em;margin:14px 0 0}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:36px;padding-top:17px;font-size:8px;letter-spacing:.08em;color:var(--muted)}footer span:last-child{font-size:7px;letter-spacing:.17em}.result{position:absolute;inset:0;background:rgba(244,241,233,.97);padding:22px 30px 0;text-align:center}.result[hidden]{display:none}.result h2{font:26px var(--serif);font-weight:400;margin:19px 0 0}.result-score{font:12px var(--serif);margin:14px 0 4px}.result-score strong{font:62px var(--serif);margin-right:9px}#result-message{font:11px var(--serif);margin:9px 0 20px;color:var(--muted)}#share-x{display:inline-block;margin-top:14px;color:var(--ink);font-size:10px;text-underline-offset:4px}.share-status{font-size:10px;line-height:1.6;margin-top:10px;color:var(--red)}[hidden]{display:none!important}@media(min-width:650px){.game{margin:25px auto 40px;border-left:1px solid var(--line);border-right:1px solid var(--line);min-height:0;padding-bottom:28px}.intro{margin-top:44px}}@media(max-height:780px){.game{padding-top:18px}.intro{margin-top:25px;margin-bottom:21px}h1{font-size:65px;margin-top:7px;margin-bottom:14px}.scorebar{padding-top:15px}.stage{margin-top:-10px}.controls{margin-top:-33px}footer{margin-top:25px}}@media(max-width:360px){.game{padding-left:22px;padding-right:22px}.stage{margin-left:-22px;margin-right:-22px}.subtitle{font-size:11px}.result{padding:9px 22px 0}.result h2{font-size:23px;margin-top:10px}.result-score strong{font-size:48px}.result .primary,.result .secondary{min-height:45px;padding-top:10px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.intro{margin:24px 0 20px}h1{font-size:64px;margin:8px 0 12px}.subtitle{font-size:11.5px}.scorebar{padding-top:15px}.stage:has(.result:not([hidden])) #scene{display:none}.result{position:relative;inset:auto;padding:26px 30px 20px}.stage:has(.result:not([hidden])){min-height:400px}#share-copy{font-family:inherit}@media(max-height:780px){.intro{margin:18px 0 15px}h1{font-size:55px}.scorebar{padding-top:12px}.stage{margin-top:-12px}.controls{margin-top:-20px}footer{margin-top:23px}}
.controls{margin-top:12px}@media(max-height:700px){.intro{margin-top:12px}h1{font-size:46px}.subtitle{font-size:10.5px}#score{font-size:38px}}
.start-screen{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(244,241,233,.78);padding:24px}.start-button{border:0;border-bottom:2px solid var(--ink);background:transparent;color:var(--ink);padding:20px 4px;font-size:clamp(20px,6vw,28px);font-weight:600;letter-spacing:.04em;white-space:nowrap}.start-button:hover{color:var(--red);border-color:var(--red)}.start-screen p{font-size:11px;color:var(--muted);margin:18px 0 0}.result-score{margin-bottom:24px}.stage:has(.start-screen:not([hidden])){min-height:310px}
.stage{margin-top:0}
.topbar{justify-content:flex-end}#share-x{display:flex;margin-top:10px;font-size:13px;text-decoration:none}
.creator-credit{justify-content:center}.creator-credit a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:16px;font-weight:500;color:var(--ink);text-decoration:none;letter-spacing:.03em;padding:10px 12px}.creator-credit a:hover{text-decoration:underline;text-underline-offset:3px}

/* Readable typography while retaining the paper, ink and red-thread design. */
:root{--ink:#303a32;--muted:#586154;--line:#d1cec2}
body{font-size:16px;line-height:1.6}
.quiet{min-height:44px;min-width:84px;font-size:14px;color:var(--ink);border-color:#bcbfb2;padding:8px 16px}
.intro{margin:14px 0 22px}
h1{font-size:64px;margin:4px 0 18px}
.subtitle{font:500 15px/1.8 var(--serif);max-width:350px;letter-spacing:.015em}
.scorebar{padding-top:16px;gap:16px}
.micro{font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted)}
#score{font-size:56px}
.unit{font-size:14px;color:var(--muted)}
.best p{font-size:34px;line-height:1.3;font-variant-numeric:tabular-nums}
.stage:focus{outline:none}
.feedback{font-size:20px;font-weight:500;letter-spacing:.08em}
.controls{margin-top:10px}
.controls>p:first-child{font:500 16px/1.7 'Yu Gothic','Hiragino Kaku Gothic ProN',sans-serif;letter-spacing:0;margin:0}
.hint{font-size:13px;letter-spacing:0;margin:10px 0 0;color:var(--muted)}
.primary,.secondary,#share-x{min-height:56px;font-size:16px;font-weight:500;letter-spacing:.04em;padding:14px 20px}
.start-screen{background:rgba(244,241,233,.72)}
.start-button{font-size:clamp(22px,6vw,28px);letter-spacing:.025em}
.stage:has(.start-screen:not([hidden])){min-height:290px}
.result h2{font-size:28px;font-weight:500}
.result-score{font-size:17px;margin:16px 0 26px}
.result-score strong{font-size:64px}
.creator-credit{margin-top:26px;padding-top:14px}
.creator-credit a{font-size:16px;letter-spacing:.015em}
@media(max-width:360px){.game{padding-left:20px;padding-right:20px}.stage{margin-left:-20px;margin-right:-20px}h1{font-size:56px}.subtitle{font-size:14px}.micro{font-size:13px}}
@media(max-height:700px){.game{padding-top:12px}.intro{margin-top:8px;margin-bottom:16px}h1{font-size:52px;margin-bottom:14px}#score{font-size:48px}.scorebar{padding-top:12px}.creator-credit{margin-top:20px}}

/* Mirror gameplay only: right hand on the right, needle on the left. */
#scene{transform:scaleX(-1)}

/* Fit the available browser height without shrinking the text to unreadable sizes. */
.game{display:flex;flex-direction:column;height:100svh;height:100dvh;min-height:0;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
.topbar,.intro,.scorebar,.controls,.creator-credit{flex:none}
.play{display:flex;flex-direction:column;flex:1;min-height:0}
.stage,.stage:has(.start-screen:not([hidden])),.stage:has(.result:not([hidden])){flex:1;min-height:0}
#scene{position:absolute;inset:0;width:100%;height:100%}
.stage:has(.result:not([hidden])){overflow-y:auto}
.creator-credit{margin-top:12px;padding-top:8px}
.controls{margin-top:6px}
.hint{margin-top:6px}
@media(min-width:650px){.game{height:calc(100svh - 40px);height:calc(100dvh - 40px);margin:20px auto}}
@media(max-height:760px){.intro{margin:8px 0 12px}h1{font-size:48px;margin:4px 0 12px}.subtitle{font-size:14px;line-height:1.7}.scorebar{padding-top:10px}#score{font-size:48px}.best p{font-size:30px}}
@media(max-height:540px){.game{height:auto;min-height:100svh}.stage,.stage:has(.start-screen:not([hidden])){flex:none;height:220px}.stage:has(.result:not([hidden])){flex:none;min-height:320px}}

/* Give the space to the game after starting; retain the full title on the start screen. */
.game:has(#start-screen[hidden]) .intro{display:none}
.game:has(#start-screen[hidden]) .play{border-top:0}
.game:has(#start-screen[hidden]) .scorebar{padding-top:6px}

