@font-face { font-family: 'DejaVu Sans'; font-weight: 400; src: local('DejaVu Sans'), url(fonts/DejaVuSans.ttf) format('truetype'); font-display: block; }
@font-face { font-family: 'DejaVu Sans'; font-weight: 700; src: local('DejaVu Sans Bold'), url(fonts/DejaVuSans-Bold.ttf) format('truetype'); font-display: block; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05070a; color: #dfe6ee; font: 14px/1.4 'DejaVu Sans', system-ui, sans-serif; overflow: hidden; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; image-rendering: auto; touch-action: none; cursor: crosshair; }
[hidden] { display: none !important; }
#login { position: fixed; inset: 0; display: grid; place-items: center; overflow: auto; background: radial-gradient(ellipse at 50% 30%, #1b2430, #05070a 70%); }
#loginForm { width: min(560px, 94vw); padding: 24px; background: #0e131aee; border: 1px solid #2c3948; border-radius: 10px; }
h1 { margin: 0; letter-spacing: 3px; color: #ffe14a; font-size: 30px; }
h1 small { color: #8fa; font-size: 14px; letter-spacing: 1px; }
.sub { color: #8b98a8; margin: 4px 0 16px; }
label { display: block; margin: 12px 0 4px; color: #9fb0c3; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
input#name { width: 100%; padding: 10px; font: inherit; font-size: 16px; background: #05070a; color: #fff; border: 1px solid #3a4a5d; border-radius: 6px; }
input#name:focus { outline: 2px solid #ffe14a; }
#classes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cls { padding: 10px; border: 1px solid #2c3948; border-radius: 6px; cursor: pointer; background: #0a0e14; }
.cls:hover { border-color: #5b7088; }
.cls.on { border-color: #ffe14a; background: #1a1a0a; }
.cls b { color: #ffe14a; display: block; }
.cls span { color: #9fb0c3; font-size: 12px; display: block; }
.cls i { color: #6c7d90; font-size: 11px; font-style: normal; display: block; margin-top: 4px; }
.row { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
button { font: inherit; padding: 9px 18px; border-radius: 6px; border: 1px solid #ffe14a; background: #ffe14a; color: #111; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button.ghost { background: transparent; color: #9fb0c3; border-color: #3a4a5d; font-weight: 400; padding: 9px 12px; font-size: 12px; }
.err { color: #ff8a70; min-height: 1.4em; margin-top: 10px; }
.fine { color: #5c6b7c; font-size: 11px; margin: 14px 0 0; }
#hud button { position: fixed; top: 8px; padding: 4px 8px; font-size: 13px; background: #0e131acc; color: #cfd9e4; border: 1px solid #2c3948; font-weight: 400; }
#lbBtn { right: 8px; } #leave { right: 52px; }
#net { position: fixed; left: 8px; top: 6px; font-size: 11px; color: #7fd89a; background: #0008; padding: 1px 6px; border-radius: 4px; pointer-events: none; }
#net.bad { color: #ff8a70; }
#lb { position: fixed; right: 8px; top: 42px; width: 300px; max-height: 70vh; overflow: auto; background: #0e131af0; border: 1px solid #2c3948; border-radius: 8px; padding: 8px; font-size: 12px; }
#lbTabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
#lbTabs button { position: static; padding: 2px 8px; font-size: 11px; background: transparent; color: #9fb0c3; border-color: #3a4a5d; }
#lbTabs button.on { background: #ffe14a; color: #111; border-color: #ffe14a; }
#lb table { width: 100%; border-collapse: collapse; }
#lb td { padding: 1px 4px; } #lb td:last-child { text-align: right; color: #ffe14a; } #lb td:first-child { color: #6c7d90; width: 1.6em; }
#overlay { position: fixed; inset: 0; display: grid; place-items: center; background: #05070acc; z-index: 5; }
#overlayBox { max-width: 90vw; padding: 20px 28px; text-align: center; background: #0e131a; border: 1px solid #2c3948; border-radius: 10px; font-size: 16px; }
#overlayBox.bad { border-color: #ff8a70; }
#overlayBox small { display: block; color: #8b98a8; margin-top: 6px; font-size: 12px; }
#overlayBox button { margin-top: 14px; }
