*{box-sizing:border-box}body{margin:0;background:#e9e6d7;color:#27372c;font-family:system-ui,sans-serif}main,canvas{width:100%;height:100dvh;display:block}canvas{touch-action:none}header,footer,.actions{position:fixed;z-index:1}header{inset:max(18px,env(safe-area-inset-top)) 22px auto;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.brand,button,footer{background:#faf7eeef;box-shadow:0 2px 12px #18342128}.brand{display:flex;gap:10px;align-items:center;padding:9px 15px 9px 10px;border-radius:3px}.brand b{background:#943f30;color:#fff;writing-mode:vertical-rl;padding:4px;font:600 14px serif;letter-spacing:2px}.brand h1{font:600 21px/1.2 serif;letter-spacing:4px;margin:0}.brand small,dialog small{font:9px/1.2 system-ui;letter-spacing:2px}nav{display:flex;gap:6px;pointer-events:auto}button{color:#293c31;border:1px solid #70796355;padding:10px 14px;min-height:44px;font:500 14px system-ui;border-radius:3px;cursor:pointer}footer{left:18px;bottom:max(15px,env(safe-area-inset-bottom));padding:8px 13px;border-left:3px solid #934b37;pointer-events:none}footer span{display:block;font-size:14px}#controls{font-size:11px;color:#566158;margin-top:2px}.actions{right:20px;bottom:max(22px,env(safe-area-inset-bottom));display:grid;justify-items:end;gap:10px;pointer-events:none}output:not(:empty){padding:9px 13px;background:#21392eea;color:#fff;font-size:14px;border-radius:4px}#wash,#pray{pointer-events:auto;background:#973e2c;color:#fff8ec;padding:12px 32px;font:600 20px serif}aside,dialog{background:#f7f2e5;text-align:center}aside{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;z-index:5}h2{font-family:serif;letter-spacing:.16em}dialog{padding:35px 45px;color:#293b30;border:1px solid #a49d8b}dialog::backdrop{background:#13261c77}.seal{border:5px double #a03d2f;color:#a03d2f;font:700 45px/1.05 serif;letter-spacing:.06em;width:120px;padding:8px 0;margin:24px auto;transform:rotate(-4deg)}[hidden]{display:none!important}@media(max-width:600px){header{left:10px;right:10px}.actions{bottom:max(16px,env(safe-area-inset-bottom));right:12px}.actions output:not(:empty){position:fixed;top:78px;right:12px}footer{left:10px}}select.language{min-height:44px;max-width:120px;background:#faf7ee;color:#293c31;border:1px solid #70796366;border-radius:3px;padding:5px;font:500 14px system-ui}#seat,#counter{pointer-events:auto;background:#4c6452;color:#fff}dialog{width:min(94vw,440px);max-height:88dvh;overflow:auto;border-radius:8px;padding:18px 22px;box-shadow:0 18px 60px #172d2740}dialog h2,dialog h3{margin:9px 0}dialog p{margin:8px 0}dialog small{display:block}#detail{display:block;height:min(25dvh,188px);margin:0 auto}#choices,.shophead,.shopbuttons,#mounts{display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap}.shophead{justify-content:space-between}#choices button,#mounts button{font-size:13px;padding:6px}button[aria-pressed=true]:not(#sound){border-color:#805b39;background:#eee3cb}#shop>small,#leave{margin-top:10px}header nav{justify-content:flex-end;flex-wrap:wrap}.brand small{white-space:nowrap}.brand h1{letter-spacing:.04em}.actions{max-width:50vw}button:focus-visible,select:focus-visible{outline:3px solid #4976ad}@media(max-width:600px){.brand{padding:5px;gap:5px}.brand h1{font-size:15px}.brand small{font-size:8px;letter-spacing:1px}.brand b{display:none}header{gap:5px}header nav{gap:3px}nav button{padding:5px;font-size:12px}select.language{max-width:89px;font-size:12px}footer{max-width:53vw}.actions{max-width:41vw}.actions output:not(:empty){top:100px;max-width:90vw}dialog{padding:14px}}.dialogNotice:not(:empty){display:block;margin-top:8px}#watch{pointer-events:auto;background:#61505a;color:#fff8f2}body.watching #controls{display:none}#support{border-color:#aa8770;color:#784031}#supportPanel{width:min(90vw,370px);padding:22px;background:#f8f4e8}#supportPanel h2{margin:18px 0 8px;font-size:1.5rem;letter-spacing:.05em}#supportPanel p{font-size:.92rem;line-height:1.6}#supportPanel figure{margin:18px auto 10px}#supportPanel figcaption{margin-top:10px;font-size:.88rem;color:#665a50}#supportPanel .code-frame{box-sizing:border-box;width:min(190px,100%);aspect-ratio:1;margin:auto;background:#fff}#qrPlaceholder{position:relative;display:grid;place-items:center;border:1px dashed #aa9583}#qrPlaceholder i{position:absolute;width:17%;height:17%;border:3px solid #bba995}#qrPlaceholder i:after{content:"";display:block;position:absolute;top:20%;right:20%;bottom:20%;left:20%;background:#bba995}#qrPlaceholder i:nth-child(1){top:9%;left:9%}#qrPlaceholder i:nth-child(2){top:9%;right:9%}#qrPlaceholder i:nth-child(3){bottom:9%;left:9%}#supportCharm{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;height:52%;width:auto}#qrLink{display:block}#qrLink img{width:100%;height:100%;object-fit:contain}#supportPanel button{margin-top:8px}#shopSupport{display:block;margin:10px auto 0;color:#784031;border-color:#aa8770}
