@charset "UTF-8";
:root{color-scheme:light;--paper:#f7f5ee;--ink:#302f2a;--shadow:0 9px 7px #37301e38,0 2px 1px #37301e15;--glyph-shadow:drop-shadow(0 9px 5px #37301e38);font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",Georgia,serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:280px;text-shadow:var(--shadow);-webkit-tap-highlight-color:transparent;touch-action:manipulation}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:10;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238b8579' opacity='.35' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
button,input,a{touch-action:manipulation}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-shadow:inherit}a{color:inherit}button:focus-visible,[role=button]:focus-visible,a:focus-visible,input:focus-visible{outline:1px solid var(--ink);outline-offset:5px}button:disabled{cursor:default}.sheet{max-width:760px;margin:auto;padding:20px 38px 14px;min-height:100svh;display:flex;flex-direction:column}.top{display:flex;justify-content:flex-end;gap:24px;font-size:13px;min-height:34px;align-items:center}.text-button{min-height:38px}.wordmark{font-family:Didot,"Bodoni 72","Times New Roman",serif;font-weight:400;font-size:clamp(64px,12vw,112px);line-height:1;letter-spacing:.12em;display:flex;align-items:center;justify-content:center;margin:18px 0 28px}.wordmark>span:last-child{margin-left:.12em}.title-zero{width:.7em;height:.86em;flex:none;transition:width 1s,opacity .9s,margin 1s}.title-zero svg{stroke-width:4;fill:none}.instruction{text-align:center;margin:0;font-size:clamp(14px,2.5vw,20px);line-height:2.1;letter-spacing:.035em}.mobile-break{display:none}.remaining{display:flex;align-items:center;justify-content:center;gap:14px;font-size:18px;margin:12px 0 0;min-height:48px;letter-spacing:.08em}.counter{width:36px;height:46px;font-size:39px}.field{position:relative;width:100%;max-width:620px;margin:0 auto;flex:1;min-height:330px;height:clamp(330px,47svh,460px)}.field .piece{position:absolute;width:70px;height:82px;transform:translate(-50%,-50%);font-size:72px}.piece,.inline-piece{position:relative;isolation:isolate;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;border-radius:0;transition:opacity .9s,filter .9s}.piece:after,.inline-piece:after{content:"";position:absolute;inset:-4px;border:1px solid transparent;pointer-events:none;transition:border-color .18s}.piece.selected:after,.inline-piece.selected:after{border-color:#817a66}.inline-piece{width:1em;height:1.1em;vertical-align:-.1em;cursor:pointer}.piece svg,.inline-piece svg{width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:var(--glyph-shadow);transition:filter 1s}.piece.gone,.inline-piece.gone{opacity:0;pointer-events:none}.piece.gone:after,.inline-piece.gone:after{display:none}.title-zero.gone{width:0;margin-left:-.12em}.piece.mismatch:after,.inline-piece.mismatch:after{animation:wrong .35s}@keyframes wrong{50%{border-color:#9b5e4b;transform:translateX(3px)}}.bottom{text-align:center;margin-top:10px}.outline{border:1px solid var(--ink);padding:10px 24px;min-height:44px;letter-spacing:.08em;box-shadow:0 5px 7px #37301e13;transition:box-shadow 1s}.outline:hover,.small-outline:hover{background:#302f2a06}.contact{font-size:12px;margin:12px 0 0;letter-spacing:.08em}.contact .inline-piece{width:1.1em}.small-outline{border:1px solid #8c8679;padding:7px 14px;min-height:36px;font-size:13px}.small-digit{width:24px;height:31px;margin-right:7px}.infinity{width:45px;height:30px}dialog{background:var(--paper);color:var(--ink);text-shadow:var(--shadow);border:1px solid #a7a190;padding:26px 32px;max-width:calc(100vw - 36px);width:390px;box-shadow:0 20px 70px #29251b25;max-height:88svh;overflow:auto}dialog::backdrop{background:#e3dfd266;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:20px}h2{font-weight:400;font-size:20px;letter-spacing:.08em;margin:0}.close{font:28px Georgia,serif;min-width:38px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:66px;font-size:14px;border-bottom:1px solid #bab4a235}.setting-row:last-child{border:0}input[type=range]{width:100px;accent-color:#686252}.result-score{font:72px/1.3 Didot,"Times New Roman",serif;text-align:center;margin:24px 0 8px}.result-score small{font-size:30px}.result-caption{text-align:center;font-size:13px}.result-digits{display:flex;justify-content:center;gap:9px;margin:22px 0 30px;font-size:20px}.result-digits span{opacity:.22}.result-digits .found{opacity:1}.result-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin:26px 0 0}body.flat{--shadow:0 0 0 transparent;--glyph-shadow:drop-shadow(0 0 0 transparent)}body,dialog{transition:text-shadow 1.2s}body.flat .outline{box-shadow:none}body.flat .wordmark{transform:translateY(4px)}.wordmark{transition:transform 1s}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}
@media(min-width:1000px){.sheet{padding-top:28px;max-width:800px}.wordmark{margin-top:8px}.field{min-height:360px;max-height:460px}.top{margin-right:-70px}}
@media(min-width:481px) and (max-height:850px){.sheet{padding-top:14px;padding-bottom:12px}.wordmark{font-size:84px;margin:8px 0 20px}.field{min-height:270px;height:40svh;max-height:360px}.bottom{margin-top:12px}.top{min-height:30px}}
@media(max-width:480px){.sheet{padding:10px 20px 12px}.top{font-size:12px;gap:20px;min-height:30px}.wordmark{margin:16px 0 22px;font-size:clamp(64px,17vw,80px)}.mobile-break{display:block}.instruction{font-size:14px;line-height:1.9}.remaining{font-size:15px;margin-top:10px}.counter{width:31px;height:40px}.field{min-height:285px;height:40svh;max-height:430px}.field .piece{width:55px;height:64px;font-size:56px}.outline{font-size:14px;padding:9px 22px}.contact{margin-top:8px;font-size:11px}dialog{padding:20px 24px}.setting-row{font-size:13px;gap:10px}.result-digits{gap:8px}}
@media(max-height:700px){.sheet{padding-top:5px}.wordmark{margin:6px 0 13px;font-size:68px}.instruction{font-size:13px;line-height:1.7}.remaining{margin:5px 0 0;min-height:39px}.field{min-height:260px;height:39svh}.bottom{margin-top:0}.contact{margin-top:3px}.field .piece{width:50px;height:58px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@font-face{font-family:FloatHand;src:url('./assets/float-hand-long-i.woff2') format('woff2');font-display:block;font-weight:400;font-style:normal}
:root{font-family:FloatHand,cursive}
body,dialog{font-family:FloatHand,cursive;font-weight:400}
body,body *{cursor:text}
body button,body input,body a{cursor:pointer}
body [data-piece],body [data-piece] *{cursor:text;user-select:text;-webkit-user-select:text}
.inline-piece{display:inline;vertical-align:baseline;width:auto;height:auto;transition:opacity .9s;text-shadow:inherit}
.inline-piece:before{content:none}.inline-piece:after{inset:-3px}
.piece{user-select:text;-webkit-user-select:text;line-height:1;display:inline-block;text-align:center}
.wordmark{font-family:FloatHand,cursive;font-size:clamp(66px,12vw,112px);letter-spacing:0;gap:.025em;line-height:1.15;align-items:baseline}
.wordmark>span:last-child{margin-left:0}.title-zero{height:auto;width:.65em;line-height:inherit}
.title-zero.gone{width:0;margin-left:0;margin-right:-.025em}
.ink-letter:nth-child(1){transform:rotate(-1deg)}
.ink-letter:nth-child(2){transform:rotate(1deg)}
.title-zero{transform:rotate(-1deg)}
.ink-letter:nth-child(4){transform:rotate(1deg)}
.ink-letter:nth-child(5){transform:rotate(-1deg)}
.instruction{font-size:clamp(17px,2.5vw,23px);transform:rotate(-.6deg);line-height:1.9}
.remaining{font-size:21px;transform:rotate(.5deg)}
.counter{width:40px;height:43px;font-size:43px;vertical-align:middle;line-height:1}
.field .piece{font-size:74px;line-height:1;transform:translate(-50%,-50%) rotate(var(--tilt))}
.top{font-size:16px}.text-button{font-family:FloatHand,cursive}
.bottom{position:relative}.contact{font-size:15px;margin-top:12px}.contact a{text-decoration:none;letter-spacing:.03em}
.margin-doodle{position:absolute;left:5px;top:10px;font-size:33px;width:50px;transform:rotate(-7deg);line-height:1}
.outline{font-size:19px;min-width:130px;transform:rotate(-.6deg)}
.setting-row{font-size:17px}.small-outline{font-size:16px}.themes{display:flex;gap:8px}.themes [aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 -2px #8c867933}
.result-score{font-family:FloatHand,cursive;font-size:28px;line-height:1.7;margin:35px 0 24px;white-space:nowrap}
h2{font-size:24px}.close{font-family:FloatHand,cursive}.white-paper{--paper:#fff;background:#fff}.white-paper dialog{background:#fff}
@media(max-width:480px){.wordmark{font-size:72px;margin:12px 0 15px}.instruction{font-size:17px;line-height:1.85}.remaining{font-size:18px}.field .piece{font-size:61px}.field{min-height:310px;max-height:430px}.contact{font-size:14px}.outline{font-size:18px}.setting-row{font-size:16px}.top{font-size:14px}.result-score{font-size:26px}.counter{font-size:39px}}
@media(min-width:481px) and (max-height:850px){.wordmark{font-size:85px;margin:6px 0 15px}.instruction{font-size:21px}.field{min-height:285px}.remaining{font-size:20px}}
@media(max-height:700px){.wordmark{font-size:64px;margin:3px 0 7px}.instruction{font-size:16px;line-height:1.65}.field{min-height:265px}.field .piece{font-size:55px}.remaining{font-size:17px}.contact{margin-top:8px}}
:root{--paper:#fff;--ink:#302f2a;--glow:#84754b;--shadow:0 9px 7px #37301e38,0 2px 1px #37301e15}
body.black-paper{--paper:#191919;--ink:#f5f4ed;--glow:#fff;--shadow:0 9px 7px #ffffff26,0 2px 1px #ffffff16;color:var(--ink);background:var(--paper);color-scheme:dark}
body.black-paper dialog{background:var(--paper)}
body.black-paper dialog::backdrop{background:#0007}
body.flat,body.flat.black-paper{--shadow:0 0 0 transparent}
[data-piece]{transition:opacity .9s,text-shadow .18s;user-select:text;-webkit-user-select:text}
[data-piece]:after{display:none!important}
[data-piece].selected,[data-piece].touch-glow,[data-piece]:focus-visible{outline:0!important;text-shadow:0 0 4px var(--glow),0 0 11px var(--glow),var(--shadow)}
.text-character{display:inline;cursor:text}
button .text-character{cursor:pointer}
.marked-kana{display:inline-block;position:relative;width:1em;vertical-align:baseline;line-height:inherit}
.kana-mark{position:absolute;left:.67em;top:-.13em;font-size:.85em;line-height:inherit;white-space:nowrap;height:.75em;overflow:hidden}
.split-ru{display:inline-flex;width:1em;vertical-align:baseline;line-height:inherit}
.ru-left,.ru-right{display:inline-block;width:.5em;flex:0 0 .5em;line-height:inherit}
.field .ink-flourish{left:48%;top:11%;font-size:58px;transform:translate(-50%,-50%) rotate(-7deg);width:90px}
.bottom{margin-top:16px;padding-bottom:14px}
.black-paper .outline,.black-paper .themes [aria-pressed=true]{border-color:var(--ink)}
.black-paper .small-outline{border-color:#b9b6ab}
@media(max-width:480px){.field .ink-flourish{font-size:49px;width:72px}.bottom{padding-bottom:8px}}
.split-ri{display:inline-flex;width:.88em;vertical-align:baseline;line-height:inherit}
.ri-first,.ri-second{display:inline-block;width:.5em;flex:0 0 .5em;line-height:inherit}
.ri-first{width:.38em;flex-basis:.38em}
.remaining,.counter{transform:none}
.wordmark .title-zero{width:.5em;margin-right:.055em}
.wordmark .title-zero.gone{width:0;margin-right:-.025em}
.field .ink-flourish{left:48%;top:7%}
.sound-control{display:flex;align-items:center;gap:14px}
#sound-status{white-space:nowrap}
.sound-switch{position:relative;width:38px;height:22px;border:1px solid var(--ink);border-radius:12px;flex:none;box-shadow:none}
.sound-switch::before{content:"";display:block;position:absolute;left:4px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--ink);transition:transform .18s}
.sound-switch[aria-checked=true]::before{transform:translateX(16px)}
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:manipulation}
.sheet{height:100dvh;min-height:0;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));overflow:hidden}
.sheet>*{flex-shrink:0}.sheet .field{flex:1;min-height:0;height:auto;max-height:none;margin-top:18px;margin-bottom:12px}
.top{margin-right:0}.bottom{padding-bottom:0;margin-top:0}.field .piece{font-size:clamp(44px,9dvh,74px);height:1.1em;width:.95em}
.wordmark{font-size:clamp(56px,12dvh,102px);margin:5px 0 12px}
.instruction{font-size:clamp(15px,2.9dvh,23px)}.remaining{margin-top:4px;min-height:40px}
.setting-links{display:grid;gap:12px;padding-top:22px;font-size:16px}.setting-links p,.record-notice{font-size:12px;line-height:1.8;margin:0}
.share{display:inline-block;text-decoration:none;background:#111;color:#fff;border-color:#111;text-shadow:none;box-shadow:none}
#records-content{white-space:pre-line;line-height:2}#network-error{position:fixed;left:12px;right:12px;bottom:12px;z-index:30;background:var(--paper);border:1px solid var(--ink);padding:12px;text-align:center;font-size:14px;text-shadow:none}
@media(max-height:580px){.wordmark{font-size:48px;margin:0 0 4px}.top{min-height:30px}.instruction{font-size:14px;line-height:1.5}.remaining{font-size:16px;min-height:30px}.counter{font-size:30px;height:32px}.sheet .field{margin:10px auto}.field .piece{font-size:clamp(24px,8dvh,44px)}.outline{min-height:36px;padding:5px 20px;font-size:16px}.sheet{padding-left:16px;padding-right:16px}}
