*{box-sizing:border-box}html,body{margin:0;height:100%;background:#0f1a12;color:#eee;font:15px/1.4 system-ui,sans-serif;overflow:hidden}#game{position:fixed;top:0;right:0;bottom:0;left:0}#game canvas{image-rendering:pixelated}.hidden{display:none!important}a{color:#f3c64f;cursor:pointer;text-decoration:none}a:hover{text-decoration:underline}.screen{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#1428198c,#050a06eb);z-index:10}.panel{width:min(380px,92vw);background:#1e2820f2;border:2px solid #6b5520;border-radius:10px;padding:24px;box-shadow:0 10px 40px #000a}.logo{margin:0 0 12px;text-align:center;font-size:34px;letter-spacing:2px;color:#f3c64f;text-shadow:0 2px 0 #5a3d00}h2{margin:0 0 8px;font-size:18px}.form{display:flex;flex-direction:column;gap:10px}.row{display:flex;gap:8px}.row input{flex:1}input{background:#121a14;border:1px solid #3d4a3f;color:#eee;padding:10px 12px;border-radius:6px;font:inherit}input:focus{outline:none;border-color:#f3c64f}button{background:linear-gradient(#e2b33a,#b8861b);color:#221800;border:0;border-radius:6px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer}button:hover{filter:brightness(1.1)}button:disabled{opacity:.5;cursor:wait}.links{text-align:center;font-size:13px}.msg{min-height:0;margin-bottom:8px;font-size:14px}.msg.err{color:#ff8a7a}.msg.ok{color:#9be38f}.credits{position:fixed;bottom:8px;font-size:12px;color:#9a9}#char-list{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}.char{display:flex;align-items:center;justify-content:space-between;background:#121a14;border:1px solid #3d4a3f;border-radius:6px;padding:8px 12px}.char small{color:#9a9}#hud{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:5}.bars{position:absolute;top:12px;left:12px;width:260px;background:#0a0f0bb3;border:1px solid #6b5520;border-radius:8px;padding:8px 10px}.who{font-weight:700;margin-bottom:4px}.lvl{color:#f3c64f;font-weight:400}.bar{position:relative;height:16px;background:#222;border-radius:4px;overflow:hidden;margin-top:4px}.bar>div{height:100%;transition:width .15s}.bar.hp>div{background:linear-gradient(#e0473b,#9c2219)}.bar.xp>div{background:linear-gradient(#e7c24a,#a57d12)}.bar span{position:absolute;top:0;right:0;bottom:0;left:0;text-align:center;font-size:11px;line-height:16px;text-shadow:0 1px 1px #000}.help{position:absolute;top:12px;right:12px;font-size:12px;color:#cfc;background:#0a0f0b99;padding:6px 10px;border-radius:6px}#chat{position:absolute;left:12px;bottom:12px;width:min(420px,90vw);pointer-events:auto}#chat-log{max-height:180px;overflow-y:auto;background:#0a0f0b8c;border-radius:6px 6px 0 0;padding:6px 8px;font-size:13px}#chat-log .sys{color:#f3c64f;font-style:italic}#chat-log b{color:#9fd3ff}#chat-in{width:100%;border-radius:0 0 6px 6px;background:#0a0f0bcc}
