:root{color:#24170f;background:#e7d7b4;font-family:Iowan Old Style,Palatino,Palatino Linotype,Songti SC,Noto Serif CJK SC,Source Han Serif SC,STSong,SimSun,WenQuanYi Micro Hei,Droid Sans Fallback,serif;line-height:1.45}*{box-sizing:border-box}[hidden]{display:none!important}body{background:radial-gradient(circle at 20% 0,#ffffff59,#0000 36%),#e7d7b4;min-height:100vh;margin:0}button,input{font:inherit;color:inherit}.sheet{width:min(520px,100%);min-height:100vh;padding:max(20px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));background:linear-gradient(#fffcf58c,#0000 120px),#f3e6c8;margin:0 auto;box-shadow:0 0 0 1px #8f2d2d2e}.mast{margin-bottom:8px}.brand{letter-spacing:.12em;color:#8f2d2d;margin:0;font-size:22px;font-weight:600}.brand .sub{color:#5c4636;margin-left:12px;font-size:14px;font-weight:400}.tagline,.hint,.status,.date,.parts{color:#5c4636}h1{margin:8px 0 4px;font-size:32px;font-weight:600}.hint{margin:0 0 14px;font-size:15px}.pad-wrap,.split-wrap{justify-items:center;display:grid}#ink,#split{touch-action:none;background:#f7f0df;border:2px solid #8f2d2d;border-radius:6px;width:min(92vw,420px);height:min(92vw,420px);display:block}#split{background:0 0;border:none;width:min(70vw,300px);height:min(70vw,300px)}.actions{gap:8px;margin-top:14px;display:flex}.intent-panel{margin-top:14px}.intent-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.intent-actions button{min-height:48px;font-size:18px}.intent-actions button.selected{color:#f7f0df;background:#8f2d2d}#view-wait{place-items:center;min-height:50vh;padding:48px 12px;display:grid}#view-wait[hidden]{display:none!important}.wait-line{text-align:center;color:#8f2d2d;letter-spacing:.08em;margin:0;font-size:22px;animation:1.6s ease-in-out infinite wait-pulse}@keyframes wait-pulse{0%,to{opacity:.45;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}#view-result.revealing .reveal-item{opacity:0;transform:translateY(14px)}#view-result.revealed .reveal-item{opacity:1;transition:opacity .55s,transform .55s;transform:translateY(0)}#view-result.revealed #craft.reveal-item{transition-delay:0s}#view-result.revealed #reread.reveal-item{transition-delay:.2s}.craft{background:#fffcf58c;border:1px solid #c4a46a;border-radius:8px;margin:12px 0 8px;padding:12px 14px}.craft-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.craft-head h2{color:#8f2d2d;letter-spacing:.12em;margin:0;font-size:16px;font-weight:600}.craft-grade{color:#24170f;margin:0;font-size:24px;font-weight:600}.craft-total{color:#5c4636;margin-left:8px;font-size:15px;font-weight:400}.craft-dims{gap:6px;margin:10px 0 0;padding:0;list-style:none;display:grid}.craft-dims li{grid-template-columns:3.6em auto 1fr;align-items:center;gap:10px;font-size:14px;display:grid}.craft-label{color:#5c4636}.craft-meter{gap:3px;display:inline-flex}.craft-meter i{border:1px solid #8f2d2d;border-radius:50%;width:9px;height:9px;display:inline-block}.craft-meter i.on{background:#8f2d2d}.craft-word{color:#24170f}.craft-ping{border-top:1px dashed #c4a46a;margin:12px 0 0;padding-top:10px;font-size:16px;line-height:1.6}button{cursor:pointer;background:0 0;border:1px solid #8f2d2d;border-radius:999px;padding:10px 14px}button:disabled{opacity:.45;cursor:default}button.primary{color:#f7f0df;background:#8f2d2d;flex:1}button.quiet{color:#8f2d2d;text-underline-offset:3px;border:none;padding-left:0;padding-right:0;text-decoration:underline}.ime{flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.ime input{background:0 0;border:none;border-bottom:1px solid #8f2d2d;width:8rem;padding:8px 0;font-size:24px}.error{color:#8f2d2d;flex-basis:100%;min-height:0;margin:0}#pay-dialog{color:#1c140e;background:#f6efe2;border:none;border-radius:18px;width:min(360px,100vw - 32px);max-height:calc(100vh - 32px);padding:24px 22px 18px;overflow:auto}#pay-dialog::backdrop{background:#1c140e73}#pay-dialog h2{margin:0 0 8px;font-size:22px}#pay-dialog p{margin:0;line-height:1.6}#pay-qr{background:#fff;width:min(260px,72vw);height:auto;margin:16px auto;display:block}#pay-qr-missing{color:#6a5344;margin-top:12px}#pay-dialog .actions{margin-top:16px}#pay-error{margin-top:8px}.status{min-height:1.2em}.date{margin:0;font-size:14px}.result-top{justify-content:space-between;align-items:center;gap:12px;margin-top:8px;display:flex}#ink-shadow{object-fit:contain;background:#f7f0df;border:1px solid #c4a46a;width:112px;height:112px}.big-char{margin:0;font-size:96px;font-weight:600;line-height:1}.badge{color:#8f2d2d;border:1px solid #8f2d2d;margin:0 0 8px;padding:2px 8px;font-size:13px;display:inline-block}#reread{margin:8px 0 18px;font-size:28px;font-weight:600;line-height:1.45}.almanac{border-top:1px solid #c4a46a;border-bottom:1px solid #c4a46a;grid-template-columns:1fr 1fr;gap:12px;padding:12px 0;display:grid}.almanac h2{color:#8f2d2d;margin:0 0 4px;font-size:16px;font-weight:600}.almanac p{margin:0;font-size:16px}.tags{flex-wrap:wrap;gap:8px;margin:14px 0;padding:0;list-style:none;display:flex}.tags li{color:#5c4636;border:1px dashed #8f2d2d;border-radius:999px;padding:4px 10px;font-size:13px}.disclaimer{color:#8f2d2d;margin:0 0 8px;font-size:14px}.note{color:#5c4636;margin:0 0 8px;font-size:15px}.profile{color:#5c4636;margin:8px 0 0}.profile summary{cursor:pointer}.profile label{align-items:center;gap:8px;margin-top:8px;display:flex}.profile input,.profile select{font:inherit;color:inherit;background:0 0;border:none;border-bottom:1px solid #8f2d2d;padding:6px 0}.profile input{width:6rem;font-size:20px}.candidates{flex-wrap:wrap;gap:8px;margin:8px 0;display:flex}.candidates button{min-width:48px;padding:4px 10px;font-size:28px}.candidates button.current{color:#f3e6c8;background:#24170f}.licenses{color:#7a6556;margin-top:28px;font-size:12px;line-height:1.5}.licenses p{margin:0}.parts{text-align:center;margin:0}
