:root{font:14px system-ui,sans-serif;color:#eee9e5;background:#e9e2de;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select,input{font:inherit}button,select{border:1px solid #ffffff18;background:#ffffff08;color:inherit;border-radius:8px;padding:10px;cursor:pointer}button:hover{background:#ffffff19}button[aria-pressed=true]{background:#d7baa0;color:#292624;border-color:#d7baa0}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #a4d1cd;outline-offset:3px}header{position:fixed;inset:0 0 auto;height:76px;background:#272727f7;display:flex;align-items:center;padding:0 26px;gap:16px;z-index:4}header .mark{font:italic 32px Georgia;color:#d7baa0}header strong{letter-spacing:.2em;font-size:15px}header small{display:block;font-size:9px;letter-spacing:.16em;color:#a69e98;margin-top:4px}header #state{margin-left:22px;font-size:12px;color:#bcd5ca}header a{margin-left:auto;color:#d7baa0;text-decoration:none}aside{position:fixed;right:0;top:76px;bottom:34px;width:300px;overflow:auto;background:#2c2c2bf7;padding:22px;z-index:3;border-left:1px solid #ffffff12}.section-title{font-size:12px;letter-spacing:.1em;margin:4px 0 14px;color:#d7baa0;display:flex;justify-content:space-between}.section-title span{color:#88817b}.tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}p{color:#aca8a2;font-size:12px;line-height:1.65}label{display:block;font-size:12px;margin:17px 0;color:#d8d3ce}output{float:right;color:#d7baa0;font-variant-numeric:tabular-nums}input[type=range]{display:block;width:100%;margin:10px 0;accent-color:#d7baa0}input[type=color]{border:0;width:48px;height:28px;background:none}.field{display:flex;align-items:center;justify-content:space-between;gap:8px}.field select{max-width:190px;font-size:12px}#layer{width:100%}.row{display:flex;gap:8px}.row button{flex:1}.wide{width:100%}.section-title:not(:first-child){border-top:1px solid #ffffff15;padding-top:18px}.footnote{margin-bottom:0;font-size:11px}.scene{position:absolute;left:0;right:300px;top:76px;bottom:34px}.scene-canvas{display:block;width:100%;height:100%;touch-action:none}.loading{position:fixed;top:50%;left:calc((100% - 300px)/2);transform:translate(-50%,-50%);color:#635d57;background:#f9f5efe0;padding:14px 20px;border-radius:12px;font-size:13px}footer{position:fixed;bottom:0;left:0;right:0;height:34px;background:#272727;display:flex;justify-content:space-between;align-items:center;padding:0 22px;font-size:10px;letter-spacing:.04em;color:#aaa29a;z-index:4}[hidden]{display:none!important}@media(max-width:700px){header{padding:0 14px;height:60px}header #state{margin-left:0;font-size:10px}aside{top:auto;bottom:34px;width:100%;height:34vh;padding:14px}.scene{top:60px;right:0;bottom:calc(34vh + 34px)}.loading{left:50%;top:32%}.tools{grid-template-columns:repeat(4,1fr)}.tools button{padding:9px 2px}header small{font-size:8px}}

#face-panel{position:fixed;left:12px;top:138px;z-index:4;color:#f3e7d9;font-size:12px;pointer-events:none}#face-panel summary{background:#302e2b;padding:5px 10px;cursor:pointer;pointer-events:auto}#face-panel canvas{height:auto;display:block;width:min(clamp(155px,23vw,280px),32dvh);aspect-ratio:1;outline:1px solid #9e9385}

@media(max-width:700px){#face-panel{top:120px}#face-panel canvas{height:auto;display:block;width:min(38vw,20dvh,180px)}}

#asahi-speech{position:fixed;bottom:52px;left:clamp(12px,22vw,380px);background:#242021e8;color:#fff4df;padding:8px 14px;border-radius:8px;pointer-events:none;z-index:5}#asahi-speech:empty{display:none}

@media(max-width:700px){#asahi-speech{bottom:calc(34vh + 46px);left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content}}
