:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#eaece2;background:#101713;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}main{height:100vh;height:100dvh;max-width:1600px;margin:auto;padding:12px 20px;display:flex;flex-direction:column;gap:10px;min-height:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #ffffff38;background:#26372b;border-radius:9px;padding:12px 16px;min-height:44px;touch-action:manipulation}button:hover{background:#344b37;border-color:#b8da7a}button:focus-visible,a:focus-visible{outline:3px solid #cfef95;outline-offset:2px}button:disabled{opacity:.4}button[hidden],[hidden]{display:none!important}header{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:8px;font-size:27px;color:#c4e795;text-decoration:none}.brand span{color:#eee;font-weight:700;font-size:18px;letter-spacing:2px}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#9baba0;margin-top:3px}nav{display:flex;gap:8px;flex-wrap:wrap}nav button{font-size:13px}.workspace{display:flex;flex:1;min-height:0;gap:16px}.arena{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;border:1px solid #ffffff28;border-radius:12px;overflow:hidden;background:#1c251e}.arena-head,.arena-foot{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:9px 14px;font-size:12px;gap:8px}.tag{font-size:10px;color:#c4e795;white-space:nowrap}#viewport{position:relative;flex:1;min-height:0;overflow:hidden;background:#28342b}canvas{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;touch-action:none}.score{position:absolute;z-index:1;top:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;background:#101713e8;border:1px solid #ffffff35;border-radius:9px;padding:6px 16px;white-space:nowrap;pointer-events:none}.score span{font-size:10px;letter-spacing:1px}.score b{font-size:27px}.score em{font-style:normal;color:#718071;padding:0 8px}.blue{color:#95c7ff}.red{color:#ffa39a}.arena-foot{color:#adb8aa}.arena-foot button{font-size:12px;padding:6px 12px;min-height:36px}.controls{flex:0 0 300px;min-height:0;overflow-y:auto;padding:16px;border:1px solid #ffffff24;border-radius:12px;background:#19271e;scrollbar-width:thin}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#b5d48d;font-weight:700}h1{font-size:28px;margin:10px 0 18px}h2{font-size:17px;margin:20px 0 10px}.actions{display:grid;gap:10px}.actions button{min-height:54px;font-size:15px;text-align:left}.primary{background:#c4e795;color:#172114;border:0;font-weight:700}.primary:hover{background:#d4f4ad}#environments,.environment-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}#environments button{font-size:13px;padding:10px}.selected{border-color:#c4e795;background:#3a4c30;color:#e1f4c6}p{font-size:13px;line-height:1.5;color:#abb7a8}small{color:#92a58f;font-size:11px}#matchInfo{flex:0 0 auto;margin:0;font-size:12px;min-height:18px}.touch{display:none;flex:0 0 auto;gap:12px}.touch button{flex:1;min-height:58px;font-size:17px;touch-action:none}.touch #kick{background:#c4e795;color:#172114;font-weight:bold}.playing .controls{display:none}.playing .touch{display:flex}.playing .arena{width:100%}dialog{background:#19251d;color:#edf2e7;border:1px solid #8ba27666;border-radius:14px;width:min(600px,94vw);padding:24px;max-height:90vh;max-height:90dvh;overflow-y:auto}dialog::backdrop{background:#050a08bb}.close{position:sticky;top:0;float:right;padding:4px 13px;font-size:24px;z-index:2}dialog input{background:#101713;border:1px solid #779168;color:#fff;padding:13px;border-radius:8px;width:100%;font:inherit;margin:12px 0;text-transform:uppercase}dialog a{color:#c4e795}.portrait{width:72px;height:72px;object-fit:cover;border-radius:50%;float:left;margin:0 16px 10px 0}
@media(max-width:850px){main{padding:8px;gap:8px}.controls{flex-basis:250px;padding:12px}.brand small{display:none}nav{gap:5px}nav button{padding:8px 10px}.arena-foot>span{display:none}.arena-foot{justify-content:flex-end}}
@media(max-width:600px){header{gap:6px}.brand{font-size:20px}.brand span{font-size:13px;letter-spacing:1px}nav button{font-size:11px;padding:7px;min-height:38px}nav{gap:4px}header #help{display:none}.workspace{flex-direction:column;gap:8px}.controls{flex:0 1 auto;max-height:45%;padding:10px;overflow-y:auto}.controls h1{font-size:20px;margin:3px 0 8px}.controls .eyebrow,.controls p,.controls small{display:none}.actions{grid-template-columns:1fr 1fr;gap:8px}.actions button{font-size:12px;min-height:48px;padding:10px}.controls h2{margin:8px 0;font-size:13px}#environments{grid-template-columns:repeat(3,1fr);gap:6px}#environments button{padding:6px;min-height:36px;font-size:12px}.score{gap:8px;padding:5px 10px}.score span{font-size:8px}.score b{font-size:22px}.arena-head{font-size:11px;padding:7px}.tag{display:none}.touch{gap:8px}.touch button{font-size:13px;min-height:50px;padding:8px}#matchInfo{font-size:11px}.playing .workspace{flex:1}}
@media(max-height:500px) and (min-width:601px){main{padding:6px;gap:5px}header button{min-height:36px}.controls{padding:10px}.controls h1{font-size:22px;margin:5px 0 10px}.controls h2{margin:10px 0}.controls p,.controls small{display:none}.actions button{min-height:42px;padding:8px}#environments button{min-height:34px;padding:5px}.touch button{min-height:44px}.arena-head{padding:5px 10px}.score{padding:3px 12px}.score b{font-size:22px}}

#enterVR{font-weight:700}header{flex-wrap:wrap}header nav{justify-content:flex-end}header #enterVR{min-width:130px}@media(max-width:600px){header nav{flex:1}header #enterVR{min-width:100px}header #help{display:none}}
