:root{color-scheme:dark;font-family:Inter,system-ui,sans-serif;background:#090f1a;color:#e8f0fc}*{box-sizing:border-box}body{margin:0}header{height:68px;padding:14px 24px;border-bottom:1px solid #27354e;display:flex;align-items:center;justify-content:space-between}header b{letter-spacing:.12em;color:#b9e1ff}header span{margin-left:20px;color:#93a8c5;font-size:14px}output{font-size:14px;color:#8cc5f9}main{max-width:1440px;margin:auto;padding:18px}#join{max-width:530px;margin:10vh auto;padding:32px;background:#142034;border:1px solid #334969;border-radius:16px}h1{font-size:28px;margin-top:0}p{line-height:1.6;color:#b1bfd3}form{display:flex;gap:12px;align-items:end;margin:28px 0}label{display:flex;gap:8px;flex-direction:column;font-size:14px}input,select,button{font:inherit;border:1px solid #385573;background:#1c304b;color:#edf5ff;border-radius:7px;padding:10px 14px}input{max-width:230px}button{cursor:pointer;font-weight:600}button:hover{background:#284b70}button.selected{background:#295d84;border-color:#72b9e8}.hint{font-size:14px}.toolbar,.bottom{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:12px;background:#121e30;border:1px solid #283b55;border-radius:10px}.toolbar label{margin-left:auto;flex-direction:row;align-items:center}.toolbar select{padding:6px;font-size:14px}#viewport{position:relative;height:min(70vh,720px);margin:12px 0;overflow:hidden;border:1px solid #334969;border-radius:10px;background:#14243a}canvas{width:100%;height:100%;display:block;touch-action:none;outline:none;image-rendering:pixelated}#notice{position:absolute;top:14px;left:14px;right:14px;font-size:14px;text-align:center;color:#d5eaff;pointer-events:none;text-shadow:0 2px 3px #000}.bottom span{font-size:14px;color:#9eb8d5;flex:1}.bottom div{display:flex;gap:8px}#events{font-size:14px;min-height:42px;color:#bdd5ef;padding:12px}#touch{position:absolute;bottom:12px;left:12px;right:12px;display:none;gap:12px;pointer-events:none}#touch button{pointer-events:auto;touch-action:none;min-width:58px;min-height:52px;background:#15304dcc}#touch button:last-child{margin-left:auto}@media(pointer:coarse){#touch{display:flex}}@media(max-width:700px){header{padding:12px}header span{display:none}main{padding:8px}.toolbar{gap:10px;font-size:14px}.toolbar label{width:100%;margin:0}#viewport{height:62vh}.bottom span{display:none}form{flex-direction:column;align-items:stretch}input{max-width:none}#join{margin:5vh auto;padding:22px}}
