@font-face{font-family:BagKanji;src:url('assets/kanji-full.woff2') format('woff2');font-weight:900;font-display:block}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:system-ui,'Yu Gothic',sans-serif;color:#493e2e;background:#eee4cc}button,input,a{-webkit-tap-highlight-color:transparent;color:inherit}button{font:inherit;cursor:pointer;border:0}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #547767;outline-offset:3px}[hidden]{display:none!important}
#game{height:var(--play-height,100dvh);max-width:1100px;margin:auto;display:flex;flex-direction:column}#stage{position:relative;flex:1;min-height:0;overflow:hidden}#field{width:100%;height:100%;display:block;touch-action:none;cursor:grab}header{position:absolute;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:flex;align-items:center;gap:14px;pointer-events:none}header>*{pointer-events:auto}header a{text-decoration:none;font-size:25px;padding:6px}header h1{font-size:18px;letter-spacing:.14em;margin:0}header button{background:transparent;font-size:22px;padding:10px}#pause{margin-left:auto}#folk{position:absolute;bottom:5px;left:4%;width:55px;pointer-events:none}#cord{position:absolute;width:56px;height:56px;border-radius:50%;border:2px solid #8c7350;background:#e2c28b;box-shadow:0 4px 0 #93754d;touch-action:none;cursor:ns-resize;font-size:27px;color:#6b5137}#cord:disabled{opacity:.5}#workbench{flex:none;display:grid;grid-template-columns:100px minmax(0,1fr) 155px;align-items:center;gap:12px;padding:10px 20px max(12px,env(safe-area-inset-bottom));background:linear-gradient(100deg,#dfc7a0,#e8d7b7);border-top:2px solid #c5ad85}#kanji-input{width:100%;height:59px;border:2px solid #ac946e;border-radius:5px;background:#fff7e4;font:900 36px BagKanji,serif;text-align:center;padding:3px}#kanji-input::placeholder{font:14px system-ui;color:#8b7655}#input-status{font-size:12px;color:#55765d;line-height:1.5}#input-status.error{color:#a44232}#drop{height:58px;border-radius:5px;background:#665442;color:#fff4da;box-shadow:0 4px 0 #433629;font-size:18px;letter-spacing:.1em}#pause-layer{position:absolute;inset:0;background:#eee4ccc0;backdrop-filter:blur(3px);display:grid;place-items:center}#resume,#reload{padding:18px 30px;background:#665442;color:#fff4da;border-radius:5px}#loading{position:fixed;inset:0;background:#eee4cc;z-index:20;display:grid;align-content:center;justify-items:center;gap:20px}#loading p{font-size:14px}#loading-mark{font-size:60px;animation:breathe 1s infinite}@keyframes breathe{50%{transform:translateY(-10px)}}dialog{border:0;padding:0;border-radius:8px;background:#f5ebd7;width:min(520px,94vw);max-height:95dvh;color:#423b2c}dialog::backdrop{background:#312a21a0;backdrop-filter:blur(4px)}.result-inner{padding:20px;text-align:center}.result-head>span{font-size:10px;letter-spacing:.25em}.result-head h2{margin:8px 0;font-size:23px}.result-head p{font-size:13px;margin:3px 0 12px}.result-head strong{font:50px Georgia,serif}#result-characters{font:900 20px BagKanji;word-break:break-all;max-height:100px;overflow:auto;line-height:1.6}#result-image{width:100%;display:block;border-radius:4px;margin-bottom:14px}#retry{width:100%;padding:15px;background:#665442;color:#fff4da;border-radius:4px}.share-row{display:flex;gap:6px;margin-top:12px}.share-row>*{background:#dfd0b5;border-radius:3px;padding:12px 6px;font:12px system-ui;text-decoration:none;flex:1}.share-note,#share-status{font-size:11px;color:#786956}.world{font-size:12px;color:#50745a;display:inline-block;padding:9px}
@media(max-width:650px){#workbench{grid-template-columns:74px minmax(0,1fr) 110px;gap:8px;padding:8px 12px max(12px,env(safe-area-inset-bottom))}#kanji-input{height:53px;font-size:32px}#drop{height:53px;font-size:16px}#input-status{font-size:10px}header h1{font-size:16px}#folk{width:43px;bottom:1px}header button{font-size:18px;padding:8px}.result-inner{padding:15px}body.typing #folk{display:none}}
@media(max-height:550px) and (orientation:landscape){#game{flex-direction:row}#stage{flex:1}#workbench{width:170px;display:flex;flex-direction:column;justify-content:center;border-top:0;border-left:2px solid #c5ad85;padding:12px;gap:12px}#kanji-input{width:90px}#drop{width:100%}header h1{font-size:14px}header button{padding:5px}#folk{width:36px}}

#game{max-width:1280px}#workbench{grid-template-columns:minmax(0,1fr) 155px;min-height:65px}#supply-status{font-size:12px;letter-spacing:.12em;color:#796344}#cord-label{position:absolute;width:106px;text-align:center;background:#fff3d5e8;border:1px solid #c8a46b;border-radius:7px;padding:5px 3px;font-size:12px;color:#70522f;line-height:1.35;pointer-events:none;box-shadow:0 2px 4px #6c4f2b18}#cord-label strong{font-size:14px}#cord{background:#e6b565;color:#624725;border-color:#9c733c}#cord:not(:disabled){animation:invite 1.8s ease-in-out 2}@keyframes invite{50%{box-shadow:0 6px 0 #93754d;transform:translateY(4px)}}@media(prefers-reduced-motion:reduce){#cord:not(:disabled){animation:none}}@media(max-width:650px){#workbench{grid-template-columns:minmax(0,1fr) 120px;min-height:62px}#drop{height:46px}#supply-status{font-size:10px}}@media(max-height:550px) and (orientation:landscape){#game{flex-direction:row}#workbench{width:150px;display:flex;flex-direction:column;gap:20px}#supply-status{font-size:10px}#drop{width:100%}}
