:root{font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',system-ui,sans-serif;color:#25231e;background:#ebe8e0}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,input,textarea{font:inherit}button{cursor:pointer}#app,#canvas{width:100%;height:100dvh;overflow:hidden}#canvas{position:fixed;inset:0;touch-action:none;background:linear-gradient(#d2dce0,#f1e9d8)}.hud{position:fixed;top:calc(env(safe-area-inset-top) + 12px);left:12px;right:12px;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.brand{color:#25231e;text-shadow:0 1px 6px #fffd}.brand small{font:10px Georgia,serif;letter-spacing:.2em;color:#775f3b}.brand h1{font-family:Georgia,'Yu Mincho',serif;font-size:clamp(18px,4vw,27px);margin:3px 0;font-weight:600}.brand p{font-size:10px;margin:0;color:#584f44}.actionbar{pointer-events:auto;display:flex;gap:6px;flex-direction:column}.btn{border:1px solid #aa9476;background:rgba(255,252,247,.92);color:#3a2d1b;padding:10px 12px;border-radius:7px;font-size:12px;font-weight:600;box-shadow:0 4px 18px #0001}.btn.primary{background:#745b38;color:#fff;border-color:#745b38}.btn:focus-visible{outline:3px solid #8daac6}.bottom{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 16px);left:0;right:0;z-index:4;display:flex;justify-content:space-between;align-items:end;padding:0 18px;pointer-events:none}.joystick{width:116px;height:116px;border-radius:50%;border:1px solid #b29c7a;background:#fffc;backdrop-filter:blur(4px);position:relative;pointer-events:auto;touch-action:none;user-select:none}.stick{position:absolute;width:49px;height:49px;background:#887054d9;border-radius:50%;top:calc(50% - 24.5px);left:calc(50% - 24.5px);box-shadow:0 2px 12px #0004}.instructions{font-size:11px;color:#3b2e1b;background:#fffde6d9;padding:8px 10px;border-radius:7px;max-width:170px;line-height:1.55;text-align:right}.sheetback{position:fixed;inset:0;background:#17140ecc;z-index:9;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.sheet{width:min(520px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:#faf7f0;border:1px solid #c4ab80;border-radius:13px;padding:22px;box-shadow:0 26px 90px #0005}.sheet header{display:flex;justify-content:space-between;align-items:center;gap:10px}.sheet h2{font:25px Georgia,'Yu Mincho',serif;margin:4px 0 12px}.sheet p,.sheet label{font-size:13px;line-height:1.6}.sheet label{display:block;margin:12px 0 4px}.sheet input,.sheet textarea{width:100%;border:1px solid #c7bbaa;border-radius:5px;padding:11px;background:#fff;color:#222}.sheet input[type=file]{padding:8px}.sheet textarea{min-height:65px}.buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.listitem{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #ddd1bd}.cover{width:46px;height:62px;object-fit:cover;background:#bba987}.listitem span{flex:1;min-width:0;font-size:13px}.listitem strong{display:block;overflow-wrap:anywhere}.muted{color:#746b60}.hint{position:fixed;z-index:5;bottom:calc(env(safe-area-inset-bottom) + 150px);left:50%;transform:translateX(-50%);font-size:12px;padding:8px 14px;border-radius:30px;background:#1c1918d9;color:#fff;max-width:90%;text-align:center}.centerMessage{position:fixed;inset:0;z-index:20;background:#f6f1e8;color:#3a342b;display:flex;align-items:center;justify-content:center;padding:32px;text-align:center}.hidden{display:none!important}@media(pointer:fine){.joystick{opacity:.55}.instructions{max-width:none}}@media(max-width:600px){.hud{left:10px;right:10px}.brand h1{font-size:18px}.brand small{font-size:8px}.actionbar .btn{font-size:11px;padding:8px}.sheet{padding:16px}.bottom{padding:0 14px}}

.asset-status{display:inline-block;font-size:10px;margin-top:6px;color:#705735;background:#fffde9d9;padding:3px 6px;border:1px solid #dbcba8;border-radius:4px}@media(max-width:600px){.asset-status{font-size:9px}}

/* Version 03: legible iPhone HUD while keeping the joystick interaction unchanged. */
.brand{background:rgba(255,250,240,.89);border:1px solid #c4a980;border-radius:7px;padding:10px 12px;box-shadow:0 5px 24px #0001;backdrop-filter:blur(7px)}
.brand h1{font-family:'Yu Mincho','Hiragino Mincho ProN',serif}
.hud{gap:8px}.actionbar{max-width:130px}.actionbar .btn{white-space:nowrap;padding:8px 9px}
.asset-status{display:block;margin-top:5px;font-size:10px}.instructions{border:1px solid #c4aa7c;background:rgba(255,250,236,.87)}
@media(max-width:450px){.brand{padding:8px 9px;max-width:55vw}.brand h1{font-size:17px}.brand p{font-size:9px}.actionbar{gap:5px}.actionbar .btn{font-size:10px;padding:8px 6px}.asset-status{font-size:9px}.hint{display:none}}
