.editor{--paper:#0f151e;--ink:#d5e1ec;--muted:#8193a5;--good:#2fa874;--bad:#ff6b5e;--field:#070b11;--line:#2c4a60;--accent:#5fd0ff;box-sizing:border-box;background:var(--paper);border:1px solid var(--line);width:min(340px,100vw - 24px);color:var(--ink);border-radius:14px;flex-direction:column;gap:14px;padding:16px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;display:flex;position:fixed;top:12px;bottom:12px;right:12px;overflow-y:auto;box-shadow:0 10px 40px #0009,inset 0 1px #5fd0ff26}.editor header{justify-content:space-between;align-items:center;gap:8px;display:flex}.editor h1{margin:0;font-size:20px}.editor h2{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 6px;font-size:14px}.editor section{flex-direction:column;gap:8px;display:flex}.editor label{flex-direction:column;gap:3px;font-size:13px;font-weight:600;display:flex}.editor input,.editor select{font:inherit;border:1px solid var(--line);background:var(--field);color:var(--ink);border-radius:8px;min-width:0;padding:7px 9px}.editor select{flex:1}.editor input:focus-visible,.editor select:focus-visible,.editor button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.editor button{font:inherit;border:1px solid var(--line);background:var(--field);color:var(--ink);cursor:pointer;border-radius:8px;padding:7px 10px;font-weight:700}.editor button:disabled{opacity:.45;cursor:default}.editor button.primary{background:var(--good);color:#fff}.editor button.danger{color:var(--bad)}.editor button.active{border-color:var(--accent);color:var(--ink);background:#5fd0ff24}.editor .row{flex-wrap:wrap;gap:6px;display:flex}.editor .row>*{flex:auto}.editor .size label{flex:70px}.editor .size button{flex:100%}.editor .palette{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px;display:grid}.editor .swatch{text-align:center;flex-direction:column;align-items:center;gap:2px;padding:4px;font-size:11px;font-weight:600;line-height:1.15;display:flex}.editor .swatch canvas{width:64px;height:52px}.editor .swatch.active{color:var(--ink);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:#5fd0ff1a}.editor .hint{color:var(--muted);margin:0;font-size:12px}.editor .hint:empty,.editor .status:empty{display:none}.editor .status{color:var(--good);margin:0;font-weight:600}.editor .status.error{color:var(--bad)}.editor label.check{cursor:pointer;flex-direction:row;align-items:center;gap:8px;font-weight:600}.editor label.check input{width:16px;height:16px;accent-color:var(--accent)}.editor .zoom{align-items:center}.editor .zoom>button[data-action^=zoom]{flex:0 0 38px;padding:4px 0;font-size:18px}.editor .zoomlevel{text-align:center;font-variant-numeric:tabular-nums;color:var(--muted);flex:0 0 56px;font-weight:600}.lobby,.gamebar{--paper:#0f151e;--ink:#d5e1ec;--muted:#8193a5;--good:#2fa874;--bad:#ff6b5e;--field:#070b11;--line:#2c4a60;--accent:#5fd0ff;color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif}.lobby{background:#020408b3;place-items:center;padding:16px;display:grid;position:fixed;inset:0;overflow-y:auto}.lobby[hidden]{display:none}.card{box-sizing:border-box;background:var(--paper);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:12px;width:min(100%,380px);padding:28px;display:flex;box-shadow:0 10px 40px #0009,inset 0 1px #5fd0ff26}.card.wide{width:min(100%,560px)}.card h1{margin:0;font-size:26px}.card h2{margin:8px 0 0;font-size:18px}.head{justify-content:space-between;align-items:center;gap:12px;display:flex}.tabs{gap:8px;display:flex}.tabs button{flex:1}.tabs button.active{border-color:var(--accent);color:var(--ink);background:#5fd0ff24}label{flex-direction:column;gap:4px;font-size:14px;font-weight:600;display:flex}input{font:inherit;border:1px solid var(--line);background:var(--field);color:var(--ink);border-radius:10px;min-width:0;padding:10px 12px;font-weight:400}input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}button{font:inherit;border:1px solid var(--line);background:var(--field);color:var(--ink);cursor:pointer;border-radius:10px;padding:10px 16px;font-weight:700}button:hover:not(:disabled){filter:brightness(.95)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--good);color:#fff}button.link{background:0 0;border:0;padding:4px;font-weight:600;text-decoration:underline}.row{gap:8px;display:flex}.row input{flex:1}.row.wrap{flex-wrap:wrap}.row.wrap input{flex:180px}.row.wrap button{flex:1 0 100%}.lock{font-size:14px}.head .actions{align-items:center;gap:8px;display:flex}select{font:inherit;border:1px solid var(--line);background:var(--field);color:var(--ink);border-radius:10px;min-width:0;padding:10px 12px}.row.wrap select{flex:1 0 100%}.error{min-height:1.2em;color:var(--bad);margin:0;font-size:14px;font-weight:600}.error:empty{min-height:0}.hint{color:var(--muted);margin:-4px 0 0;font-size:13px}.games{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.games li{border:1px solid var(--line);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.games li.empty{color:var(--muted);justify-content:center}.games small{color:var(--muted);margin-top:2px;display:block}code{letter-spacing:.08em;font-weight:700}.users select{flex:none;width:auto}.users .role{color:var(--accent);font-size:14px;font-weight:600}.gamebar{background:var(--paper);border:1px solid var(--line);border-radius:12px;align-items:center;gap:8px;padding:6px 8px 6px 14px;font-size:14px;display:flex;position:fixed;top:12px;right:12px}.gamebar button{padding:6px 10px;font-size:13px}@media (width<=480px){.row{flex-direction:column}.card{padding:20px}}.heroes{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.hero{flex-direction:column;align-items:center;gap:4px;padding:8px 4px;font-size:13px;display:flex}.hero canvas{width:64px;height:72px}.hero small{color:var(--muted);font-weight:600}.hero.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent), 0 0 12px #5fd0ff40;background:#5fd0ff1a}@media (width<=480px){.heroes{grid-template-columns:repeat(3,1fr)}}.team{flex-direction:column;gap:8px;display:flex}.teamhead{justify-content:space-between;align-items:center;gap:8px;font-size:17px;display:flex}.teamhead strong{color:var(--accent)}.members li.pending{opacity:.8;border-style:dashed}.invites li{border-color:var(--accent)}.games li .row button,.members button{padding:6px 10px;font-size:13px}.card.leaderboard{width:min(100%,640px)}.leaderboard .tabs button small{color:var(--muted);margin-left:4px;font-weight:600}.board{flex-direction:column;gap:8px;display:flex}.board ol{counter-reset:rank;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.board li{counter-increment:rank;border:1px solid var(--line);border-radius:10px;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:8px 10px;display:grid}.board li:before{content:counter(rank);color:var(--muted);text-align:center;font-weight:800}.board li:first-child{border-color:var(--accent)}.board li:first-child:before{color:var(--accent)}.board small{color:var(--muted);margin-top:2px;font-size:12px;display:block}.board .score{text-align:right}.teamcard{border:1px solid var(--line);background:#5fd0ff08;border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.teamhead .size{color:var(--muted);margin-left:10px;margin-right:auto;font-size:13px}.team select{flex:none;width:auto}.card.home{grid-template-columns:1.25fr 1fr;grid-template-areas:"top top""play side";gap:18px 22px;width:min(100%,1040px);display:grid}.topbar{border-bottom:1px solid var(--line);flex-wrap:wrap;grid-area:top;justify-content:space-between;align-items:center;gap:16px;padding-bottom:14px;display:flex}.brand span{color:var(--accent);letter-spacing:.12em;text-transform:uppercase;font-size:12px;font-weight:700;display:block}.brand h1{font-size:24px}.nav{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.nav button{white-space:nowrap;padding:8px 12px;font-size:14px}.play{flex-direction:column;grid-area:play;gap:14px;min-width:0;display:flex}.side{flex-direction:column;grid-area:side;gap:14px;min-width:0;display:flex}.panel{border:1px solid var(--line);background:#5fd0ff06;border-radius:12px;flex-direction:column;gap:10px;padding:16px;display:flex}.panel h2{color:var(--accent);text-transform:uppercase;letter-spacing:.06em;margin:0;font-size:16px}.panel h3{color:var(--muted);margin:4px 0 0;font-size:14px}.stack{flex-direction:column;gap:8px;display:flex}.side .heroes{gap:6px}.side .hero{padding:6px 2px;font-size:12px}.side .hero canvas{width:48px;height:54px}.side .team .row{flex-wrap:wrap}.side .team .row input{flex:140px}@media (width<=820px){.card.home{grid-template-columns:1fr;grid-template-areas:"top""play""side"}}a.button{border:1px solid var(--line);background:var(--field);color:var(--ink);border-radius:10px;padding:10px 16px;font-weight:700;text-decoration:none;display:inline-block}a.button:hover{filter:brightness(1.1)}.maps .status{color:var(--muted);flex:none;font-size:13px;font-weight:700}.maps .status.ok{color:var(--accent)}.maps .row{flex:none}.maps .row button{padding:6px 10px;font-size:13px}button.danger{color:var(--bad)}
