:root{font-family:Arial,Helvetica,sans-serif;color:#333;background:#fff;font-synthesis:none;--green:#7bc331;--blue:#578fc2;--cyan:#56c9e8}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #4ca8e8;outline-offset:2px}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}#game{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#shade{position:absolute;inset:0;background:rgba(0,0,0,.49)}#home{position:absolute;inset:0;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 16px}.menu-grid{display:grid;grid-template-columns:256px 256px 256px;grid-template-rows:auto auto auto;gap:5px;align-items:start}.panel{border-radius:8px;background:#fff;padding:16px;box-shadow:0 1px 1px #0002}.panel h2{font-size:20px;line-height:1.2;margin:0 0 12px;font-weight:700;text-align:center}.profile-panel{grid-column:1;grid-row:1;padding:16px}.profile{display:flex;gap:10px;align-items:center}.profile strong{display:block;font-size:20px}.profile small{display:block;color:#888;font-size:12px;margin-top:4px}.avatar{width:46px;height:46px;display:grid;place-items:center;background:#ddd;border:1px solid #b9b9b9;border-radius:4px;color:#888;font-size:40px;line-height:1}.record{margin-top:12px;border:2px solid #8bc35b;border-radius:3px;text-align:center;font-size:12px;padding:5px}.record strong{margin-left:10px}.main-panel{position:relative;grid-column:2;grid-row:1/3;min-height:280px;padding:26px 32px 14px;text-align:center}.main-panel h1{font-size:40px;line-height:1;margin:20px 0 14px;letter-spacing:-1.8px;font-weight:700}.settings-gear{position:absolute;top:10px;left:10px;border:0;background:none;padding:0;color:#777;font-size:25px;line-height:1}.nick-row{display:flex;gap:5px;margin-bottom:10px;align-items:center}.nick-row input{width:100%;min-width:0;height:28px;border:2px solid #aaa;border-radius:3px;padding:3px 6px;font-size:14px}#skins-button{flex:none;border:1px solid #888;border-radius:50%;background:#fff;width:37px;height:37px;font-size:10px;padding:0}.button{border:0;border-radius:3px;color:#fff;font-weight:700;text-align:center;padding:6px 10px;line-height:1.1;transition:filter .12s}.button:hover{filter:brightness(.94)}.button:active{transform:translateY(1px)}.green{background:var(--green)}.blue{background:var(--blue)}.cyan{background:var(--cyan)}.main-panel>.button{width:100%;font-size:16px;margin-bottom:5px;min-height:29px}.main-panel #spectate{font-size:13px;min-height:25px}.instructions{font-size:10px;line-height:1.35;margin-top:8px;white-space:nowrap;margin-left:-23px;margin-right:-23px;color:#666}.connection{font-size:10px;color:#888;margin:9px -20px 0}.connection.error{color:#c53737}.modes-panel{grid-column:3;grid-row:1;padding:12px 16px 16px}.modes-panel h2{white-space:nowrap;margin-bottom:5px}.modes{display:flex;gap:6px}.mode{border:0;background:#ddd;color:#999;border-radius:3px;width:52px;min-height:87px;font-size:9px;line-height:1.1;padding:5px 2px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.mode.active{color:#fff;background:#ef4b63}.mode[data-mode=battle].active{background:#e5ad28}.mode[data-mode=teams].active{background:#608fc6}.mode[data-mode=experimental].active{background:#7cb74b}.mode-art{display:block;width:44px;height:58px;position:relative}.mode-art i{position:absolute;background:#fff;border-radius:50%;display:block;opacity:.85}.ffa-art i:nth-child(1){width:20px;height:20px;left:6px;top:10px}.ffa-art i:nth-child(2){width:12px;height:12px;left:24px;top:30px}.ffa-art i:nth-child(3){width:8px;height:8px;left:8px;top:36px}.battle-art{border:5px solid #fff7;border-radius:50%;height:49px;margin-top:3px}.battle-art i:nth-child(1){width:13px;height:13px;left:1px;top:8px}.battle-art i:nth-child(2){width:9px;height:9px;left:18px;top:3px}.battle-art i:nth-child(3){width:9px;height:9px;left:17px;top:24px}.teams-art i:nth-child(1){width:14px;height:14px;left:3px;top:10px;box-shadow:4px 18px 0 -2px #fff}.teams-art i:nth-child(2){width:10px;height:10px;left:25px;top:7px;box-shadow:4px 17px 0 1px #fff}.teams-art i:nth-child(3){width:9px;height:9px;left:17px;top:39px}.experimental-art{height:42px;width:42px;margin-top:8px;border:5px dotted #fff;border-radius:50%}.experimental-art i{inset:7px}.bots-panel{grid-column:1;grid-row:2/4;padding:14px 16px}.bots-panel h2{margin-bottom:13px}.bots-panel label{display:block;font-size:12px;color:#555;margin:0 0 6px}.bots-panel select{width:100%;padding:6px 8px;border:1px solid #aaa;border-radius:3px;font-size:13px;background:#fff;color:#444;margin-bottom:14px}.bots-panel output{float:right;font-weight:700}input[type=range]{width:100%;accent-color:var(--green);margin:0}.bots-panel p{font-size:11px;line-height:1.45;color:#888;margin:10px 0 0;min-height:32px}.party-panel{grid-column:3;grid-row:2;padding:12px 16px}.party-panel h2{margin-bottom:5px}.party-panel p{font-size:12px;color:#888;text-align:center;white-space:nowrap;margin:0 -10px 10px}.party-actions{display:flex;justify-content:center;gap:7px}.party-actions button{font-size:13px;min-width:74px}.party-panel label{font-size:11px;display:block;margin:12px 0 4px}.party-input{display:flex;gap:4px}.party-input input{min-width:0;width:100%;border:1px solid #999;border-radius:3px;text-transform:uppercase;padding:5px;font-size:13px}.party-input button{white-space:nowrap;font-size:11px}#party-status{display:block;color:#777;font-size:10px;margin-top:5px;word-break:break-all}.text-button{border:0;background:none;color:#888;font-size:11px;text-decoration:underline;padding:6px 0 0}.controls-panel{grid-column:2/4;grid-row:3;padding:13px}.control-row{display:flex;gap:10px;justify-content:center;align-items:center;font-size:11px;color:#888}.key{border:1px solid #ccc;border-bottom-width:2px;border-radius:3px;padding:3px 6px;color:#666;font-size:10px}.control-row span:nth-child(2),.control-row span:nth-child(4){margin-right:15px}footer{font-size:11px;color:#fff9;padding:15px;text-align:center}#hud{position:absolute;inset:0;pointer-events:none}#score{position:absolute;left:10px;bottom:10px;background:#0003;color:#fff;font-size:24px;font-weight:bold;padding:4px 9px;border-radius:2px;text-shadow:0 1px 2px #0008}#leaderboard{position:absolute;right:10px;top:10px;width:200px;background:#0005;color:#fff;text-align:center;padding:10px 12px;font-size:16px}#leaderboard h2{font-weight:400;font-size:28px;margin:0 0 10px}#leaderboard ol{list-style:decimal inside;margin:0;padding:0;line-height:1.35}#leaderboard li{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#leaderboard li.me{color:#ffaaaa}#room-hud{position:absolute;top:12px;left:50%;transform:translateX(-50%);font-size:12px;color:#777;text-align:center;white-space:nowrap}#zone-hud{position:absolute;top:36px;left:50%;transform:translateX(-50%);background:#e2a32dcc;color:#fff;padding:5px 10px;font-size:13px;border-radius:3px}#minimap{position:absolute;bottom:10px;right:10px;background:#0002;border:1px solid #0002;width:142px;height:142px}#menu-button{pointer-events:auto;position:absolute;top:10px;left:10px;width:34px;height:34px;border:0;border-radius:3px;background:#0003;color:#fff;font-size:21px}.dialog{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:320px;padding:24px;z-index:5}.dialog h2{margin-bottom:20px}.dialog>.button{display:block;width:100%;margin-top:6px}.close{position:absolute;right:8px;top:5px;font-size:24px;border:0;background:none;color:#888}.check{display:flex;gap:8px;align-items:center;font-size:14px;padding:9px 0;border-bottom:1px solid #eee}.check input{accent-color:var(--green);width:16px;height:16px}.check:last-of-type{border-bottom:0;margin-bottom:14px}.results-grid{display:grid;grid-template-columns:1fr 1fr;text-align:center;gap:17px 10px;margin-bottom:22px}.results-grid strong,.results-grid span{display:block}.results-grid strong{font-size:24px;font-weight:400;margin-bottom:4px}.results-grid span{font-size:12px;color:#888}.results-graph{border-bottom:1px solid #ddd;margin-bottom:20px}.results-graph svg{width:100%;height:60px}.results-graph path{fill:none;stroke:#7bc331;stroke-width:2}#skin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.skin-option{width:52px;height:52px;border-radius:50%;border:3px solid #ddd;background:#fff;font-size:29px;display:grid;place-items:center}.skin-option.selected{border-color:#7bc331;background:#eff8e7}.skin-option:first-child{color:#9e42cf}#touch-controls{position:absolute;bottom:25px;right:20px;display:flex;gap:12px}#touch-controls button{width:64px;height:64px;border-radius:50%;border:2px solid #fff9;background:#0003;color:white;font-size:24px;touch-action:none}#touch-controls button:active{background:#0006}#toast{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;background:#333e;color:white;padding:12px 20px;border-radius:5px;font-size:13px;z-index:10;text-align:center}body.dark{background:#111}body.dark #room-hud{color:#aaa}body.dark #minimap{border-color:#fff3;background:#fff1}@media(max-width:820px){.menu-grid{grid-template-columns:230px 230px}.main-panel{grid-column:1;grid-row:1/3}.profile-panel{display:none}.modes-panel{grid-column:2;grid-row:1;padding:12px}.bots-panel{grid-column:2;grid-row:2;padding:12px}.party-panel{grid-column:1;grid-row:3}.controls-panel{grid-column:2;grid-row:3;padding:12px;height:100%;display:grid;place-items:center}.control-row{flex-wrap:wrap;gap:7px}.control-row span:nth-child(2),.control-row span:nth-child(4){margin-right:0}.mode{width:47px}.mode-art{transform:scale(.9)}.modes{gap:4px}.modes-panel h2{font-size:18px}.party-panel p{font-size:11px}#leaderboard{width:160px;font-size:13px}#leaderboard h2{font-size:22px}#room-hud{top:auto;bottom:12px;font-size:10px}#minimap{bottom:100px;width:102px;height:102px}#minimap canvas{width:100px;height:100px}}@media(max-width:510px){#home{justify-content:flex-start;padding:25px 12px 10px}.menu-grid{display:flex;flex-direction:column;width:min(310px,100%);gap:6px}.menu-grid>.panel{width:100%}.main-panel{order:0;padding:20px 30px 15px;min-height:0}.main-panel h1{margin-top:10px}.modes-panel{order:1;padding:12px 20px}.modes{justify-content:center;gap:8px}.mode{width:56px;min-height:76px}.mode-art{height:48px;transform:scale(.85);transform-origin:top center}.bots-panel{order:2;padding:12px 20px}.bots-panel h2{font-size:18px;margin-bottom:9px}.bots-panel select{margin-bottom:10px}.bots-panel p{min-height:0;margin-top:7px}.party-panel{order:3}.controls-panel{display:none}footer{padding:12px 0;font-size:10px}#leaderboard{width:133px;font-size:12px;padding:8px}#leaderboard h2{font-size:20px}#score{font-size:19px}.dialog{max-width:calc(100% - 24px)}.connection{margin-top:6px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(min-width:821px){#home{justify-content:flex-start;padding-top:12.8vh}}
