*{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden;font-family:Hiragino Sans,Noto Sans JP,sans-serif}.game-container{position:relative;width:100%;height:100%}.game-container canvas{display:block}.hud-status,.hud-chat,.hud-hotbar-slots,.hud-window{border-radius:8px;background:#141820b8;color:#e8ecf2;font-size:13px}.hud-anchor{position:absolute;pointer-events:none}.hud-anchor>*{pointer-events:auto}.hud-anchor-status{top:12px;left:12px}.hud-anchor-chat{left:12px;bottom:12px}.hud-anchor-hotbar{bottom:calc(16px + var(--hud-stack, 0) * 72px);left:50%;transform:translate(-50%)}.hud-anchor.hud-hidden{opacity:.35}.game-container button{padding:4px 12px;border:1px solid #4a5568;border-radius:6px;background:#2d3748;color:#e8ecf2;font-size:12px;cursor:pointer}.game-container button:hover:not(:disabled){background:#3a4a5f}.game-container button:disabled{opacity:.45;cursor:default}.game-container input,.game-container textarea{padding:4px 8px;border:1px solid #4a5568;border-radius:6px;background:#1a202c;color:#e8ecf2;font-size:12px}.hud-status{padding:10px 14px;line-height:1.6;pointer-events:none;-webkit-user-select:none;user-select:none}.hud-status-name{font-size:14px;font-weight:600}.hud-status-line{color:#a8b2c2;font-size:12px}.hud-status-message{color:#ffd479;font-size:12px}.hud-chat{width:340px;display:flex;flex-direction:column;padding:8px;gap:6px}.hud-chat-log{height:140px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.5;scrollbar-width:thin}.hud-chat-entry.system{color:#a8d4a8}.hud-chat-entry.error{color:#ff9d9d}.hud-chat-entry.echo{color:#8fa3bd}.hud-chat-entry.chat{color:#f2f5fa;overflow-wrap:break-word}.hud-chat-from{color:#ffd479;font-weight:600}.hud-chat-input{width:100%}.hud-hotbar-slots{display:flex;gap:5px;padding:6px}.game-container button.hud-slot{position:relative;width:52px;height:52px;padding:2px;border-radius:8px;display:flex;align-items:center;justify-content:center}.game-container button.hud-slot.empty{background:#1a202c80;border-style:dashed}.game-container button.hud-slot:active{transform:translateY(1px)}.hud-slot-key{position:absolute;top:2px;left:5px;font-size:10px;color:#8fa3bd}.hud-slot-label{font-size:10px;line-height:1.2;text-align:center;word-break:break-all;overflow:hidden;max-height:100%}.game-container button.hud-slot.drag-over{border-color:#ffd479;background:#4a4330}.game-container button.hud-slot.dragging{opacity:.4}.hud-menu{display:flex;flex-direction:column;gap:6px}.hud-menu-item{width:100%;padding:8px 12px;border:1px solid #4a5568;border-radius:6px;background:#2d3748;font-size:13px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}.hud-menu-item:hover{background:#3a4a5f}.hud-menu-item.dragging{opacity:.4}.hud-window{position:absolute;width:380px;display:flex;flex-direction:column}.hud-window-title{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;font-weight:600;border-bottom:1px solid #4a5568;cursor:move;-webkit-user-select:none;user-select:none;touch-action:none}.hud-window-body{padding:10px;max-height:420px;overflow-y:auto;scrollbar-width:thin}.hud-palette{display:flex;flex-direction:column;gap:6px}.hud-palette-section{color:#a8b2c2;font-size:12px;margin-top:4px}.hud-palette-grid{display:flex;flex-wrap:wrap;gap:4px}.hud-palette-item{padding:5px 10px;border:1px solid #4a5568;border-radius:6px;background:#2d3748;font-size:12px;cursor:grab;-webkit-user-select:none;user-select:none}.hud-palette-item:hover{background:#3a4a5f}.hud-palette-item.dragging{opacity:.4}.hud-palette-empty{color:#a8b2c2;font-size:12px}.hud-palette-free{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.hud-palette-free input{flex:1;min-width:110px}.hud-edit-overlay{position:absolute;inset:0;border:2px dashed #7aa5ff;border-radius:8px;background:#3c64b42e;cursor:move;-webkit-user-select:none;user-select:none;touch-action:none}.hud-edit-label{position:absolute;bottom:100%;right:0;margin-bottom:4px;padding:2px 10px;border-radius:6px;background:#141820cc;color:#cfe0ff;font-size:12px;pointer-events:none;white-space:nowrap}.hud-edit-label.below{bottom:auto;top:100%;margin:4px 0 0}.hud-context-backdrop{position:fixed;inset:0;z-index:20}.hud-context-menu{position:fixed;display:flex;flex-direction:column;min-width:160px;padding:4px;border:1px solid #4a5568;border-radius:8px;background:#1a202cf2;box-shadow:0 6px 20px #0006}.hud-context-menu button{border:none;background:transparent;text-align:left;padding:7px 10px;border-radius:5px}.hud-context-menu button:hover{background:#3a4a5f}.hud-edit-banner{position:absolute;top:12px;left:50%;transform:translate(-50%);display:flex;gap:10px;align-items:center;padding:8px 14px;border-radius:8px;background:#284682d9;color:#eaf1ff;font-size:13px;z-index:50}.hud-keybinds{display:flex;flex-direction:column;gap:6px}.hud-keybind-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hud-keybind-slot{width:110px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hud-keybind-key{width:56px;font-size:12px;color:#ffd479}.hud-keybind-warning{width:100%;color:#ff9d9d;font-size:11px}.hud-players{display:flex;flex-direction:column;gap:4px}.hud-players-row{display:flex;align-items:baseline;gap:8px;padding:6px 8px;border-radius:6px;background:#2d374899}.hud-players-name{font-size:13px}.hud-players-id{color:#a8b2c2;font-size:11px}.hud-players-self{margin-left:auto;padding:1px 8px;border-radius:999px;background:#2f4a75;color:#cfe0ff;font-size:11px}.hud-players-empty{color:#a8b2c2;font-size:12px;padding:4px 2px}.hud-settings-content{display:flex;flex-direction:column;gap:12px}.hud-settings-section{display:flex;flex-direction:column;gap:6px}.hud-settings-label{color:#a8b2c2;font-size:12px}.hud-settings-row{display:flex;flex-wrap:wrap;gap:6px}.hud-settings-row input{flex:1;min-width:120px}.hud-settings-hints{color:#a8b2c2;font-size:11px;line-height:1.7}.hud-macro-list{max-height:72px;overflow-y:auto}.drop-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#1e3c7859;border:3px dashed rgba(160,200,255,.8);color:#fff;font-size:20px;pointer-events:none}
