:root{--mat:#1d4a42;--mat-deep:#163a34;--mat-line:#e9f4e212;--mat-line-strong:#e9f4e224;--chalk:#eef4e4;--chalk-soft:#b4cdbd;--ink:#16302b}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%;color:var(--chalk);background-color:var(--mat);background-image:linear-gradient(var(--mat-line-strong) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px), linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);overscroll-behavior:none;-webkit-user-select:none;user-select:none;background-position:top;background-size:120px 120px,120px 120px,24px 24px,24px 24px;margin:0;font-family:Zen Maru Gothic,Hiragino Maru Gothic ProN,ui-rounded,system-ui,sans-serif;font-size:16px;font-weight:500}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:0;padding:0}:focus-visible{outline:2px solid var(--chalk);outline-offset:2px;border-radius:4px}#root{height:100%}.screen{max-width:480px;min-height:100dvh;padding:max(8px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));flex-direction:column;margin:0 auto;display:flex}.play{height:100dvh;overflow:hidden}.top{justify-content:space-between;align-items:center;min-height:44px;display:flex}h1{margin:0;font-size:22px;font-weight:900}.top button{min-height:44px;color:var(--chalk-soft);padding:0 4px;font-weight:700}.top-nav{gap:14px;display:flex}.brief{align-items:flex-start;gap:14px;display:flex}.target{flex-direction:column;flex:none;align-items:center;gap:2px;width:min(36vw,22dvh,150px);font-size:14px;font-weight:700;display:flex}.sheet,.fold,.stage{width:100%;display:block;overflow:visible}.sheet-ghost{fill:var(--mat-deep);stroke:#e9f4e238;stroke-width:.12px}.sheet-crease{stroke:var(--ink);stroke-opacity:.32;stroke-width:.1px;stroke-dasharray:.5 .4}.steps{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.folds{gap:6px;display:flex}.defs{position:absolute}.fold-step{min-width:0;max-width:96px;color:var(--chalk-soft);flex-direction:column;flex:1;align-items:center;gap:1px;font-size:13px;font-weight:700;transition:opacity .16s;display:flex}.fold-step.quiet{opacity:.4}.fold-step.active{color:var(--chalk)}.stage-crease{stroke:var(--ink);stroke-opacity:.55;stroke-width:.14px;stroke-dasharray:.5 .35}.fold-crease{stroke:var(--ink);stroke-width:.5px;stroke-dasharray:1.2 .9}.fold-arrow{fill:none;stroke:var(--ink);stroke-width:.9px;stroke-linecap:round}.link{min-height:32px;color:var(--chalk-soft);text-underline-offset:3px;align-self:flex-start;font-size:14px;font-weight:700;text-decoration:underline}.notice{color:var(--chalk-soft);margin:4px 0 0;font-size:14px}.table{flex:1;min-height:0;margin-top:4px;position:relative}.board,.stage-wrap,.zoom{width:100%;height:100%;position:absolute;inset:0}.board{touch-action:none;cursor:crosshair;display:block;overflow:hidden}.board.locked{pointer-events:none}.stage-wrap .stage{height:100%}.paper-still,.paper-moving,.piece>polygon:last-of-type{filter:drop-shadow(0 .08px .12px #081c188c)}.piece{transition:transform .14s ease-out}.folded-edge{stroke:var(--ink);stroke-opacity:.6;stroke-width:.18px;stroke-linecap:round}.dot{fill:#e9f4e252;pointer-events:none}.dot.on{fill:#16302b6b}.cut-line{stroke:#fff;stroke-width:.14px;stroke-dasharray:.5 .32;filter:drop-shadow(0 0 1px #081c18e6);pointer-events:none}.cut-end{fill:#fff;stroke:var(--ink);stroke-width:.1px;pointer-events:none}.falling{transform-box:fill-box;transform-origin:50%;pointer-events:none;animation:.52s cubic-bezier(.45,0,.9,.6) forwards fall}@keyframes fall{0%{opacity:1;transform:none}to{transform:translate(var(--dx), var(--dy)) rotate(24deg);opacity:0}}.zoom{background:#163a34e0;border-radius:6px;justify-content:center;align-items:center;display:flex}.zoom .sheet{aspect-ratio:1;width:auto;max-width:100%;height:100%}.limit{justify-content:space-between;align-items:center;margin-top:6px;display:flex}.limit b{font-size:18px;font-weight:900}.pips{gap:6px;display:flex}.pips i{background:var(--chalk);border-radius:1px;width:22px;height:8px;transition:opacity .16s}.pips i.used{opacity:.22}.hint{min-height:22px;color:var(--chalk-soft);margin:2px 0 8px;font-size:15px}.bar{gap:8px;display:flex}.bar button{background:var(--mat-deep);border:1.5px solid #e9f4e257;border-radius:6px;flex:1;min-height:50px;font-weight:700;transition:transform 80ms}.bar button:active:not(:disabled){transform:translateY(1px)}.bar button:disabled{opacity:.38;cursor:default}.bar .go{color:var(--ink);border:0;flex:1.4;font-weight:900}.reveal{min-height:70dvh}.outcome{flex-direction:column;flex:1;align-items:center;display:flex}.pair{grid-template-columns:1fr 1fr;gap:12px;width:100%;margin-top:8px;display:grid}figure{margin:0}figcaption{text-align:center;color:var(--chalk-soft);margin-top:4px;font-weight:700}.score{font-variant-numeric:tabular-nums;margin:20px 0 0;font-size:84px;font-weight:900;line-height:1}.verdict{margin:6px 0 0;font-size:24px;font-weight:900}.used,.next{color:var(--chalk-soft);margin:6px 0 0}.gap{flex:1;min-height:16px}.next{margin-bottom:10px}.outcome .bar{width:100%}.shelf{grid-template-columns:repeat(5,1fr);gap:12px 8px;margin-top:8px;display:grid}.shelf button{min-width:0;color:var(--chalk-soft);flex-direction:column;align-items:center;gap:2px;font-size:14px;font-weight:700;display:flex}.tile{width:100%;display:block;position:relative}.tile.done .sheet{opacity:.2}.tile b{font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #081c18d9;justify-content:center;align-items:center;font-size:19px;font-weight:900;display:flex;position:absolute;inset:0}.tier-perfect{color:#ffd84d}.tier-close{color:#8df0ad}.tier-good{color:#eef4e4}.tier-off{color:#ff9f8a}.shelf-new{bottom:max(12px, env(safe-area-inset-bottom));margin-top:16px;position:sticky}.yours{z-index:1;position:relative}@keyframes arrive{0%{opacity:0}}.settling .yours .sheet-ghost{animation:.3s .6s both arrive}.settling .yours figcaption{animation:.26s .82s both arrive}.settling .pair figure:not(.yours){animation:.32s 1s both arrive}.settling .score,.settling .verdict,.settling .used,.settling .next,.settling .bar{animation:.32s 1.3s both arrive}.empty{text-align:center;color:var(--chalk-soft);margin:30dvh 0 0;font-size:18px}.tally{color:var(--chalk-soft);margin:4px 0 12px}.days{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.days li,.days-head{grid-template-columns:58px 76px 76px 1fr;align-items:center;gap:10px;display:grid}.days-head{text-align:center;color:var(--chalk-soft);margin-bottom:4px;font-size:14px;font-weight:700}.day{color:var(--chalk-soft);font-weight:700}.missed{text-align:center;color:var(--chalk-soft);font-size:14px}.days b{text-align:right;font-variant-numeric:tabular-nums;font-size:22px;font-weight:900}@media (prefers-reduced-motion:reduce){.falling{animation-duration:1ms}.piece{transition:none}.settling *{animation-duration:1ms!important;animation-delay:0s!important}}
