*{box-sizing:border-box}body{margin:0;color:#233e3a;font-family:Arial,"PingFang SC",sans-serif;overflow:hidden;background:#d7e4dd}#world{position:fixed;inset:0}canvas{display:block;touch-action:none;width:100%;height:100%}header{position:fixed;top:max(25px,env(safe-area-inset-top));left:32px;pointer-events:none}.eyebrow{font-size:13px;letter-spacing:0;color:#315749;text-decoration:none;pointer-events:auto}h1{font-size:25px;letter-spacing:0;margin:10px 0}header p{font-size:14px;margin:0}.tools{position:fixed;right:24px;top:28px;display:flex;gap:8px}button{font:inherit;border:0;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #eb796e;outline-offset:4px}.tools button{width:44px;height:44px;border-radius:50%;background:#fffdf3d9;color:#304d45;font-size:25px}footer{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:12px;width:min(92%,440px)}#caption{font-size:13px;text-align:center;background:#fffdf2e0;padding:7px 14px;border-radius:6px}#action,#next{background:#244e46;color:white;min-height:49px;padding:13px 28px;border-radius:7px;font-weight:600;box-shadow:0 5px 20px #163a2920}button:disabled{opacity:.65;cursor:wait}small{font-size:10px;color:#314d43}dialog{border:0;border-radius:8px;padding:25px 26px;width:min(88vw,390px);color:#29483e;background:#fffdf5;text-align:center;max-height:80dvh;overflow:auto}dialog::backdrop{background:#183d3850;backdrop-filter:blur(3px)}#close{position:absolute;right:10px;top:8px;background:none;font-size:28px;color:#4c6457}#art{height:85px;display:flex;align-items:center;justify-content:center;font-size:56px}#art img{max-width:100%;height:90px;object-fit:contain}#art:has(img){height:95px}#chapter{font-size:11px;color:#b85d55}h2{font-size:24px;margin:12px 0}dialog p{font-size:15px;line-height:1.7;white-space:pre-line}#photoLabel{font-size:13px;margin:14px auto 0;display:table;min-height:42px;padding:8px 14px;border:1px solid #b8c9bd;border-radius:4px;cursor:pointer}#photoLabel[hidden]{display:none}input[type=file]{display:none}#photoNote{font-size:11px;color:#61756b;margin-bottom:0}#loading{position:fixed;inset:0;background:#d7e4dd;display:grid;place-items:center;font-size:18px} @media(max-width:600px){header{left:20px;top:22px}h1{font-size:21px}.eyebrow{font-size:12px}.tools{right:14px;top:22px;flex-direction:column}.tools button{width:44px;height:44px}footer{gap:10px}#caption{font-size:12px}}
