:root{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;color:#49352b;background:#fff5dc}*{box-sizing:border-box}body{margin:0;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overscroll-behavior:none}header{max-width:1000px;margin:0 auto 12px;display:flex;justify-content:space-between;align-items:center;gap:12px}header strong{display:block;font-size:21px}header span{display:block;font-size:12px;color:#826a59;margin-top:3px}nav{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}button,a{font:inherit;color:inherit;border:1px solid #dac8a1;border-radius:12px;background:#fffdf5;padding:10px 14px;text-decoration:none;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #e38b26;outline-offset:2px}button:active,button[data-held=true]{background:#ffd467;border-color:#b78537}main{width:min(100%,900px);margin:auto}#stage{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:15px;background:white;box-shadow:0 8px 28px #5833141b}canvas{display:block;width:100%;height:100%;touch-action:none}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#fff5dcf5;font-weight:700}#loading[hidden]{display:none}#touch-controls{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}#touch-controls button{min-height:48px;font-size:18px;font-weight:700;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#notice{text-align:center;min-height:18px;margin:9px 0 0;font-size:13px;color:#80674f}@media(min-width:1100px){main{width:min(900px,calc((100dvh - 188px)*4/3))}}@media(orientation: landscape) and (max-height:550px){body{padding-top:5px;padding-bottom:5px}header{margin-bottom:5px;gap:6px}header strong{font-size:16px}header span{display:none}nav{gap:5px}nav button,nav a{padding:5px 8px;font-size:12px}main{width:min(100%,calc((100dvh - 139px)*4/3))}#touch-controls{margin-top:7px;gap:7px}#touch-controls button{min-height:41px;padding:7px;font-size:16px}#notice{margin-top:5px;font-size:12px}}@media(max-width:540px){header{align-items:flex-start}header span{max-width:155px}nav{max-width:198px}nav button,nav a{padding:8px;font-size:12px}#touch-controls{gap:5px}#touch-controls button{padding:8px 4px}}
