:root{color:#294d46;font-synthesis:none;--green:#326e60;--muted:#73847a;--line:#dcded2;background:#f6f4ee;font-family:Yu Gothic UI,Hiragino Kaku Gothic ProN,Meiryo,sans-serif;font-size:15px;font-weight:500;line-height:1.6}*{box-sizing:border-box}body{margin:0}button,summary{font:inherit;cursor:pointer}button{border:1px solid var(--line);min-height:44px;color:inherit;background:#fffef8;border-radius:9px;padding:10px 16px;transition:background .15s,transform .15s}button:hover{background:#edf2e8}button:active{transform:translateY(1px)}button:focus-visible,summary:focus-visible,canvas:focus-visible{outline-offset:4px;outline:3px solid #d6a94b}button:disabled{opacity:.45;cursor:default}button[hidden],[hidden]{display:none!important}.app{max-width:1120px;margin:auto;padding:0 30px}.masthead{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;height:82px;display:flex}.brand{letter-spacing:.12em;align-items:center;gap:10px;font-size:14px;display:flex}.tofu-mark{background:#fffef8;border:1.5px solid #739186;border-radius:5px 7px 4px 5px;width:24px;height:22px;display:inline-block;transform:rotate(-8deg);box-shadow:3px 4px #cfddd2}.header-right{align-items:center;gap:26px;display:flex}.edition{letter-spacing:.15em;color:var(--muted);font-size:10px}.quiet{background:0 0;border:0;padding:8px 5px;font-size:12px}.quiet span{border:1px solid #b7c6b8;border-radius:50%;place-items:center;width:22px;height:22px;margin-left:6px;display:inline-grid}.intro{text-align:center;padding:26px 0 25px}.eyebrow{letter-spacing:.18em;color:var(--muted);margin:0 0 10px;font-size:10px}.intro h1{letter-spacing:.07em;margin:5px 0 12px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(26px,3.6vw,38px);font-weight:500;line-height:1.4}.intro>p:last-child{color:#728077;letter-spacing:.04em;margin:0;font-size:12px}.intro strong{color:#396b5d;letter-spacing:.12em;font-weight:600}.play-layout{grid-template-columns:minmax(0,1fr) 260px;gap:24px;display:grid}.stage{background:#e7e9df;border:1px solid #e0e3d7;border-radius:24px;height:460px;position:relative;overflow:hidden}.stage-caption{z-index:1;pointer-events:none;letter-spacing:.06em;color:#60756a;justify-content:space-between;font-size:11px;display:flex;position:absolute;top:21px;left:23px;right:23px}.time-free{color:#839284;font-size:10px}#scene{touch-action:none;cursor:crosshair;width:100%;height:100%;display:block}.gesture-hint{pointer-events:none;text-align:center;color:#657d6d;letter-spacing:.09em;font-size:12px;position:absolute;bottom:22px;left:0;right:0}.gesture-hint span{vertical-align:-2px;margin-right:9px;font-size:22px;display:inline-block}.stage-footer{color:#677b6d;align-items:center;gap:10px;min-height:62px;padding:13px 4px;font-size:12px;display:flex}.stage-footer p{margin:0}.step-dot{background:#92ab98;border-radius:50%;flex:none;width:6px;height:6px}.side-panel{flex-direction:column;gap:18px;padding-top:6px;display:flex}.shape-buttons{gap:6px;display:flex}.shape-buttons button{color:#809082;background:0 0;border-color:#e0e1d4;flex-direction:column;flex:1;align-items:center;padding:8px 3px;font-size:11px;display:flex}.shape-buttons span{margin-top:2px;font-size:11px}.shape-buttons [aria-pressed=true]{color:#386754;background:#e4ece0;border-color:#9cb7a3}#shape-note{color:var(--muted);margin:9px 0 0;font-size:11px}.result-card{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0 15px}.weights{justify-content:space-around;align-items:center;gap:8px;display:flex}.weights>div{flex-direction:column;align-items:center;min-width:75px;display:flex}.weight-label{letter-spacing:.1em;color:#7f9387;font-size:10px}.weights strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-family:Georgia,Times New Roman,serif;font-size:36px;font-weight:400;line-height:1.4}.weights small{margin-left:3px;font-family:inherit;font-size:16px}.weight-divider{color:#aab5a7;margin-top:17px;font:22px Georgia,serif}.balance{border-radius:3px;gap:3px;height:5px;margin:15px 0 19px;display:flex;position:relative;overflow:visible}.balance i{background:#b9cebc;border-radius:2px;width:50%;display:block}.balance i+i{background:#7fa18b}.balance>span{opacity:.7;background:#466757;width:1px;height:11px;position:absolute;top:-3px;left:50%}#verdict{text-align:center;margin:0 0 5px;font-family:Yu Mincho,serif;font-size:20px;font-weight:600}#error-value{color:var(--muted);text-align:center;margin:0;font-size:11px}.best{color:#819180;text-align:center;margin:13px 0 0;font-size:10px}.actions{flex-direction:column;gap:9px;margin-top:auto;display:flex}.actions button{min-height:46px;font-size:12px}.primary{background:var(--green);border-color:var(--green);color:#fffef8;justify-content:space-between;align-items:center;gap:10px;display:flex}.primary:hover{background:#245b4f}.secondary{background:0 0}.keyboard{color:#7c897d;margin:3px 0 20px;font-size:11px}.keyboard summary{width:-moz-fit-content;width:fit-content;min-height:36px;padding:6px 2px}.keyboard p{max-width:640px}.line-controls{flex-wrap:wrap;gap:8px;display:flex}.line-controls button{min-width:44px}.page-footer{border-top:1px solid var(--line);color:#8a9589;letter-spacing:.08em;justify-content:space-between;padding:18px 0 25px;font-size:10px;display:flex}.page-footer span:last-child{font-size:9px}.piece-label{pointer-events:none;text-align:center;color:#4d7963;background:#fffff3e6;border:1px solid #8cae97;border-radius:50%;width:26px;height:26px;font-size:12px;line-height:26px;position:absolute;transform:translate(-50%,-50%)}.render-error{text-align:center;color:#8f442e;background:#fff;padding:20px;position:absolute;inset:120px 20px auto}.paused-banner{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:3;background:#f6f4eec9;justify-content:center;align-items:center;gap:20px;display:flex;position:absolute;inset:0}dialog{color:#38564b;background:#fffef6;border:1px solid #ccd6c8;border-radius:20px;width:calc(100% - 32px);max-width:440px;padding:36px;box-shadow:0 20px 80px #304c4126}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#1e392f50}dialog h2{font-family:Yu Mincho,serif;font-size:24px;font-weight:500}dialog p{font-size:13px;line-height:1.9}.dialog-close{background:0 0;border:0;font-size:24px;position:absolute;top:10px;right:12px}.dialog-tip{color:#7c8a7b;font-size:11px}dialog .primary{justify-content:center;width:100%;margin-top:24px}@media (min-width:1000px) and (min-height:850px){.intro{padding:35px 0 33px}.stage{height:510px}}@media (max-width:740px){.app{padding:0 18px}.masthead{height:62px}.edition{display:none}.intro{padding:23px 0 20px}.intro h1{letter-spacing:.035em;font-size:28px}.intro>p:last-child{font-size:11px}.play-layout{flex-direction:column;gap:2px;display:flex}.stage{border-radius:18px;height:365px}.stage-caption{font-size:10px;top:16px;left:16px;right:16px}.time-free{display:none}.gesture-hint{font-size:11px;bottom:16px}.stage-footer{min-height:54px;padding:10px 2px;font-size:11px}.side-panel{grid-template-columns:1fr 1.05fr;gap:15px;padding:0;display:grid}.shape-picker{grid-column:1}.shape-picker .eyebrow{margin-bottom:6px}.shape-buttons button{min-height:50px;padding:7px 1px}#shape-note{font-size:10px;line-height:1.5}.result-card{border-top:0;grid-area:1/2/span 2;padding:0 0 12px}.result-card>.eyebrow{margin-bottom:5px;font-size:9px}.weights{gap:2px}.weights>div{min-width:0}.weights strong{font-size:27px}.weights small{font-size:12px}.weight-divider{font-size:17px}.balance{margin:10px 0 13px}#verdict{font-size:16px}#error-value{font-size:10px}.best{margin-top:8px;font-size:9px}.actions{grid-column:1;gap:7px;margin:0}.actions button{min-height:44px;padding:8px 9px;font-size:10px}.keyboard{margin-top:17px}.page-footer{padding:16px 0;font-size:9px}.page-footer span:last-child{font-size:8px}}@media (max-width:360px){.app{padding:0 12px}.intro h1{font-size:25px}.stage{height:320px}.side-panel{gap:10px}.weights strong{font-size:24px}.stage-caption{font-size:9px}#verdict{font-size:15px}.page-footer{letter-spacing:0}}@media (prefers-reduced-motion:reduce){button{transition:none}}
