:root{--bg: #ffd93b;--line: #1b2a6b;--btn: #fff;--accent: #ff5a4f;--sel: #ffb300;--paper: #fbf7ee;--sub: #64625c;--bw: .16em;--r: .6em;--sh: .18em .18em 0 var(--line);--sh2: .3em .3em 0 var(--line);--col: min(100vw, max(30rem, 62vh));color-scheme:light}@supports (height: 100dvh){:root{--col: min(100vw, max(30rem, 62dvh))}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}html,body{margin:0;height:100%;background:var(--bg);color:var(--line);overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}body{font-family:"M PLUS Rounded 1c",system-ui,-apple-system,Hiragino Sans,Yu Gothic UI,sans-serif;font-size:clamp(14px,calc(var(--col) / 22.5),20px);font-weight:700;line-height:1.35;-webkit-text-size-adjust:100%}svg{display:block}button,select{font:inherit;color:inherit}h1,h2,h4,p{margin:0}.b{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.4em;min-height:max(2.75em,44px);margin:0;padding:0 .9em;background:var(--btn);color:var(--line);border:var(--bw) solid var(--line);border-radius:var(--r);box-shadow:var(--sh);font-weight:800;white-space:nowrap;cursor:pointer;touch-action:manipulation}.b:focus-visible{outline:.2em solid var(--accent);outline-offset:.15em}.b.pri{background:var(--accent);color:#fff}.b.on{background:var(--sel)}.b.sq{padding:0;width:max(2.75em,44px)}.b.sm{font-size:.82em;min-height:max(3.4em,44px);padding:0 .8em}.b:disabled,.b.off{opacity:.4}.b:disabled{cursor:default;transform:none;box-shadow:var(--sh)}.b.t{flex:1;min-width:0;flex-direction:column;gap:.1em;padding:.3em 0;min-height:max(3.1em,44px)}.b.t small{font-size:.6em}.ic{flex:none;width:1.35em;height:1.35em;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.ic.solid{fill:currentColor;stroke:none;width:.9em;height:.9em}.dot{display:block;width:var(--d);height:var(--d);margin:calc((1.35em - var(--d)) / 2) 0;border-radius:50%;background:currentColor}.logo{font-family:Dela Gothic One,"M PLUS Rounded 1c",system-ui,sans-serif;font-weight:400;letter-spacing:.03em;line-height:1.1}.logo.big{font-size:2.1em}.grow{flex:1}#topView,#app{width:var(--col);margin:0 auto}#topView,#doneView,#msgView{display:none}body[data-view=top] #topView,body[data-view=done] #doneView,body[data-view=msg] #msgView{display:block}body[data-view=top] #app,body[data-view=done] #app,body[data-view=msg] #app{display:none}body[data-mode=play] .draw-only:not(.ghost *),body[data-mode=draw] .play-only:not(.ghost *),.ghost[data-gmode=play] .draw-only,.ghost[data-gmode=draw] .play-only{display:none!important}.top{display:flex;flex-direction:column;align-items:center;gap:1em;min-height:100vh;min-height:100dvh;padding:calc(1.8em + env(safe-area-inset-top)) 1.2em calc(2em + env(safe-area-inset-bottom));text-align:center}.lead{font-size:.95em;line-height:1.8}.lead.rot{position:relative;width:100%;height:1.8em}.rot span{position:absolute;left:0;right:0;top:0;opacity:0;animation:rot 15s infinite}@keyframes rot{0%{opacity:0;transform:translateY(.4em)}5%,30%{opacity:1;transform:none}35%,to{opacity:0;transform:translateY(-.4em)}}@media(prefers-reduced-motion:reduce){.rot span{animation:none}.rot span:first-child{opacity:1}}.paper{position:relative;flex:none;background:var(--paper);border:var(--bw) solid var(--line);box-shadow:var(--sh2);overflow:hidden}.top .tilt{width:56%;aspect-ratio:1;transform:rotate(-3deg);margin:.4em 0}.hero,.hero svg{display:block;width:100%;height:100%}.hero canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.cta{font-size:1.15em;min-height:3em;padding:0 2.2em}#draftBox,#mineBox{align-self:stretch;display:flex;flex-direction:column;gap:.6em}#draftBox h2,#mineBox h2{margin-top:.9em;font-size:.9em;font-weight:800;text-align:left}.card{display:flex;align-items:center;gap:.8em;padding:.7em;background:#fff;border:var(--bw) solid var(--line);border-radius:.8em;box-shadow:var(--sh);text-align:left}.card .paper{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:4.8em;height:4.8em;padding:0;border-width:.1em;box-shadow:none;cursor:pointer}.card .paper canvas{display:block;width:100%;height:100%}.card .body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.5em}.card .body>span{font-size:.8em}.card .body>span:empty{display:none}.cards{display:flex;flex-direction:column;gap:.6em}.card .row>.b:last-child{flex:none;padding:0 .9em}#app{display:flex;flex-direction:column;height:100vh;height:100dvh;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);overflow:hidden}.head{flex:none;display:flex;align-items:center;gap:.6em;min-height:3.95em;padding:.6em .75em}.title{font-weight:800}.timer{min-width:3ch;font-size:1.5em;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}.chip{display:inline-flex;align-items:center;min-height:1.9em;padding:0 .8em;border:.12em solid var(--line);border-radius:999em;background:#fff;font-size:.78em;white-space:nowrap}.chip.dk{background:var(--line);color:#fff}.stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}#cv{display:block;touch-action:none;cursor:crosshair}.zchip{position:absolute;right:.5em;top:.5em;min-width:3.6em;min-height:2em;padding:.2em .8em;border:0;border-radius:999em;background:var(--line);color:#fff;font:inherit;font-size:.82em;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer}.zchip:after{content:"";position:absolute;top:-.7em;right:-.7em;bottom:-.7em;left:-.7em}.tip{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;touch-action:none}.tipcard{display:flex;align-items:flex-start;gap:1.2em;padding:.9em 1.2em .8em;border-radius:1em;background:#1b2a6be0;color:#fff}.gh{display:flex;flex-direction:column;align-items:center;gap:.3em}.gh small{font-size:.72em;font-weight:800}.gi{display:block;width:5.4em;height:auto;overflow:hidden}body[data-input=touch] .only-mouse,body[data-input=mouse] .only-touch{display:none!important}.hint{position:absolute;left:50%;top:.6em;transform:translate(-50%);padding:.25em .9em;border-radius:999em;background:var(--line);color:#fff;font-size:.85em;white-space:nowrap;pointer-events:none}.tools{flex:none;display:flex;flex-direction:column;gap:.5em;padding:.6em .75em 1em}.tools.up{padding:0 .75em .6em}.g6{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) .35em repeat(2,minmax(0,1fr));column-gap:.38em;min-height:max(3.1em,44px)}.g6>*{grid-row:1;min-width:0}.g6>.c1{grid-column:1}.g6>.c2{grid-column:2}.g6>.c3{grid-column:3}.g6>.c4{grid-column:4}.g6>.c6{grid-column:6}.g6>.c7{grid-column:7}.g6>.mid{grid-column:3 / 6;display:flex;align-items:center;justify-content:center}.g6 .chip{padding:0 .55em;font-size:.68em}body[data-mode=draw] .head .b.sq{width:calc((var(--col) - 1.5em - 2.63em) / 6)}.bottom{flex:none;display:flex;gap:.5em;padding:.6em .75em 1em}.bottom .b{flex:1 1 auto;padding:0 .3em;font-size:.85em;min-height:max(3.1em,44px)}.row{display:flex;gap:.5em}.row>.b{flex:1;padding:0 .4em}.sheet,.dialog{display:flex;flex-direction:column;gap:.6em;padding:.9em 1em 1em;background:#fff;border:var(--bw) solid var(--line);border-radius:1em;box-shadow:var(--sh2)}.sheet{flex:none;margin:0 .6em .8em}h4{font-size:1.1em;font-weight:800}.sheet p,.dialog p{font-size:.85em;line-height:1.6}.result{display:flex;align-items:baseline;justify-content:space-between}.result .logo{font-size:1.6em}.time{font-size:2em;font-weight:800;font-variant-numeric:tabular-nums}.time small{font-size:.5em;margin-left:.2em}.dim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;background:#1b2a6b80}.dialog{position:fixed;left:50%;top:50%;z-index:11;width:calc(var(--col) - 2.7em);max-height:calc(100% - 2em);overflow-y:auto;transform:translate(-50%,-50%);padding:1.2em 1.1em;gap:.8em;text-align:center;align-items:stretch}.seg{display:flex;min-height:max(3.1em,44px);overflow:hidden;background:var(--btn);border:var(--bw) solid var(--line);border-radius:var(--r);box-shadow:var(--sh)}.seg button{flex:1;min-width:0;border:0;background:none;color:inherit;font:inherit;font-size:.85em;font-weight:800;cursor:pointer}.seg button+button{border-left:var(--bw) solid var(--line)}.seg .on{background:var(--sel)}.sw{flex:none;display:block;width:1.35em;height:1.35em;padding:0;border:.12em solid var(--line);border-radius:50%;font:inherit;color:inherit}button.sw{cursor:pointer}.sw.on{box-shadow:0 0 0 .14em #fff,0 0 0 .3em var(--line)}.sw.big{width:2.75em;height:2.75em}.sw.pp,.pill.pp{background:var(--paper)}.sw.emp{background:transparent;border-style:dashed;opacity:.55}.sw.plus{display:flex;align-items:center;justify-content:center;background:#fff}.sw.plus .ic{width:55%;height:55%}.grid6{display:grid;grid-template-columns:repeat(6,1fr);gap:.7em .3em;justify-items:center;padding:.3em 0}.grid6 .sw{width:2.6em;height:2.6em}.pill{grid-column:span 2;justify-self:stretch;align-self:stretch;display:flex;align-items:center;justify-content:center;gap:.3em;padding:0;border:.14em solid var(--line);border-radius:999em;color:inherit;font:inherit;font-size:.82em;font-weight:800;white-space:nowrap;cursor:pointer}.pill.on{box-shadow:0 0 0 .14em #fff,0 0 0 .3em var(--line)}.pill .ic{width:1.25em;height:1.25em}.hl{margin-bottom:-.4em;font-size:.72em;color:var(--sub)}.sv,.hue{position:relative;border:.12em solid var(--line);touch-action:none;cursor:pointer}.sv{height:8.5em;border-radius:.5em}.hue{height:1.9em;margin:.3em 0;border-radius:999em;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.hue .knob{top:50%}.knob{position:absolute;width:1.5em;height:1.5em;margin:-.75em 0 0 -.75em;border:.18em solid #fff;border-radius:50%;box-shadow:0 0 0 .1em var(--line);pointer-events:none}.pickrow{align-items:center;gap:.8em}.dialog.btm{top:auto;bottom:calc(.8em + env(safe-area-inset-bottom));width:calc(var(--col) - 1.2em);transform:translate(-50%);padding:.9em 1em 1em;gap:.6em;text-align:left}#helpDialog>div{display:flex;flex-direction:column;gap:.6em}.hrw{display:flex;align-items:center;gap:.9em}.hrw .gi{width:4.6em}.hrw>span{flex:none;width:4.6em}.hrw b{display:block;font-size:.95em;font-weight:800}.hrw small{display:block;font-size:.72em;line-height:1.5;color:var(--sub)}.hrw .keys{display:flex;align-items:center;gap:.2em;width:auto;min-width:5.75em;font-size:.8em}kbd{padding:.15em .5em;border:.14em solid var(--line);border-bottom-width:.28em;border-radius:.4em;background:#fff;font:inherit;font-weight:800}.row>.b.sz{min-width:0;flex-direction:column;gap:.2em;padding:.5em .1em .6em}.sz b{font-size:.85em}.sz small{font-size:.58em}.szi{width:4em;height:4em}.lg{display:inline-block;width:1em;height:1em;margin-right:.3em;vertical-align:-.15em;background:var(--sel);border:.12em solid var(--line)}.toast{position:fixed;left:50%;bottom:calc(7.2em + env(safe-area-inset-bottom));z-index:12;width:max-content;max-width:calc(var(--col) - 1.5em);transform:translate(-50%);padding:.5em 1.1em;border-radius:1.4em;background:var(--line);color:#fff;font-size:.85em;text-align:center;pointer-events:none}.dev{flex:none;display:flex;align-items:center;gap:.6em;padding:0 .75em .5em;font-size:.7em;font-weight:500}.spin{align-self:center;width:2.2em;height:2.2em;border:.32em solid color-mix(in srgb,var(--line) 22%,transparent);border-top-color:var(--line);border-radius:50%;animation:pm-spin 1s linear infinite}@keyframes pm-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin{animation-duration:3s}}#tsBox{display:flex;justify-content:center}#tsBox[hidden]{display:none}.done{gap:.9em}.done .logo{font-size:1.7em}.done .paper{width:46%;aspect-ratio:1}.done .paper canvas{display:block;width:100%;height:100%}.done .box{align-self:stretch;padding:.7em .9em;background:#fff;border:var(--bw) solid var(--line);border-radius:.8em;font-size:.85em;line-height:1.6;overflow-wrap:anywhere;text-align:left}.done .note{align-self:stretch;font-size:.8em;line-height:1.6;color:var(--sub);text-align:left}.done .row{align-self:stretch;display:flex;gap:.6em}.done .row>.b{flex:1}.done .mgmt{align-self:stretch;display:flex;flex-direction:column;gap:.5em;margin-top:.6em;padding:.8em .9em;border:var(--bw) dashed var(--line);border-radius:.8em;text-align:left}.done .mgmt p{font-size:.75em;line-height:1.6;color:var(--sub)}.logo.sm{font-size:1.2em}.link-only{display:none}body[data-link] .link-only{display:inline}body[data-link] #back,body[data-link] .head .title{display:none!important}.strip{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.4em;padding:0 .8em .4em}.strip[hidden]{display:none}.msg{justify-content:center}.msg h2{font-size:1.25em}.msg p:empty{display:none}.msg .b{align-self:stretch}.card .paper img{display:block;width:100%;height:100%;object-fit:cover}.card .lk{align-self:flex-start;min-height:44px;padding:0;border:0;background:none;font:inherit;font-size:.75em;color:var(--sub);text-decoration:underline;cursor:pointer}.slidewrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9;overflow:hidden;pointer-events:none}html.sliding,html.sliding body{overflow-x:hidden}.fxcanvas{position:fixed;top:0;z-index:13;pointer-events:none}.fxlayer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:13;overflow:hidden;pointer-events:none}.star{position:absolute;width:1.3em;height:1.3em;margin:-.65em 0 0 -.65em}.star svg{width:100%;height:100%}.hop{display:inline-block}
