/* Eclipse Reborn — UI Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Johnsen AI site header ────────────────────────────────── */

.eclipse-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
    z-index: 50;
    border-bottom: 1px solid rgb(0 0 0 / 12%);
}

.eclipse-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.eclipse-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.eclipse-header__logo > a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.eclipse-header__logo > a:hover {
    color: #06c;
}

.eclipse-header__logo > a svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.eclipse-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4d4d4d;
}

.eclipse-header__breadcrumb a {
    color: #4d4d4d;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.eclipse-header__breadcrumb a:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.eclipse-header__breadcrumb span[aria-current] {
    color: #333;
    font-weight: 500;
    padding: 4px 8px;
}

.eclipse-header__separator {
    color: #767676;
    font-size: 12px;
}

@media (max-width: 600px) {
    .eclipse-header__logo > a span {
        display: none;
    }

    .eclipse-header__separator:first-child {
        display: none;
    }

    .eclipse-header__breadcrumb {
        font-size: 12px;
    }

    .eclipse-header__separator {
        font-size: 10px;
    }
}

/* ── Game container ────────────────────────────────────────── */

#game-container {
    width: 100vw;
    height: calc(100vh - 56px);
    margin-top: 56px;
}

/* Login scene overlay */
.login-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #555;
    border-radius: 8px;
    padding: 2rem;
    color: #eee;
    min-width: 320px;
    z-index: 10;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #ffd700;
}

.login-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #aaa;
}

.login-form input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-size: 0.95rem;
}

.login-form input:focus {
    outline: none;
    border-color: #ffd700;
}

.login-form button {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.5rem;
    background: #444;
    border: 1px solid #666;
    border-radius: 4px;
    color: #eee;
    font-size: 0.95rem;
    cursor: pointer;
}

.login-form button:hover {
    background: #555;
}

.login-form button.primary {
    background: #2a5a2a;
    border-color: #3a7a3a;
}

.login-form button.primary:hover {
    background: #3a7a3a;
}

.login-form .error-msg {
    color: #f44;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-form .toggle-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #88f;
    cursor: pointer;
    font-size: 0.85rem;
}

.login-form .toggle-link:hover {
    color: #aaf;
}

/* Login form divider */
.login-form__divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #666;
    font-size: 0.8rem;
}

.login-form__divider::before,
.login-form__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #444;
}

.login-form__divider span {
    padding: 0 0.75rem;
}

/* Federated login (Johnsen AI) */
.login-form__federated-btn {
    width: 100%;
    padding: 0.6rem;
    background: #1a3a5a;
    border: 1px solid #2a5a8a;
    border-radius: 4px;
    color: #8abfef;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.login-form__federated-btn:hover {
    background: #2a5a8a;
    color: #cde;
}

.login-form__federated-user {
    font-size: 0.8rem;
    color: #cde;
    font-weight: bold;
}

.login-form__federated-fields label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #aaa;
}

.login-form__federated-fields input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-size: 0.95rem;
}

.login-form__federated-fields input:focus {
    outline: none;
    border-color: #2a5a8a;
}

.login-form__federated-fields button.primary {
    background: #1a3a5a;
    border-color: #2a5a8a;
}

.login-form__federated-fields button.primary:hover {
    background: #2a5a8a;
}

.login-form__federated-fields button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Character select */
.char-select {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #555;
    border-radius: 8px;
    padding: 2rem;
    color: #eee;
    min-width: 400px;
    z-index: 10;
}

.char-select h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffd700;
}

.char-slot {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
}

.char-slot:hover {
    border-color: #ffd700;
}

.char-slot--empty {
    justify-content: center;
    color: #666;
    font-style: italic;
}

.char-slot__name {
    font-weight: bold;
    margin-right: 1rem;
}

.char-slot__info {
    color: #aaa;
    font-size: 0.85rem;
}

/* Sprite picker */
.sprite-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
}

.sprite-picker__arrow {
    width: 32px;
    height: 32px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #eee;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sprite-picker__arrow:hover {
    background: #444;
    border-color: #ffd700;
}

.sprite-picker__preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.sprite-picker__preview {
    width: 96px;
    height: 144px;
    background-size: 384px 576px;
    background-position: 0 0;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #111;
}

.sprite-picker__label {
    font-size: 0.8rem;
    color: #aaa;
}

/* Admin toggle */
.admin-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    background: #2a1a1a;
    border: 1px solid #553333;
    border-radius: 4px;
}

.admin-toggle input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.admin-toggle__label {
    font-size: 0.85rem;
    color: #f88;
}

/* Chat box */
.chat-box {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 400px;
    z-index: 10;
}

.chat-box__messages {
    max-height: 160px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    border-radius: 4px 4px 0 0;
    font-size: 0.8rem;
    color: #ddd;
}

.chat-box__input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 0 0 4px 4px;
    color: #eee;
    font-size: 0.85rem;
}

.chat-box__input:focus {
    outline: none;
    border-color: #ffd700;
}

.chat-box__line {
    padding: 1px 0;
    word-wrap: break-word;
}

.chat-box__sender {
    font-weight: bold;
}

.chat-box__msg {
    color: #ddd;
}

/* Scrollbar styling for chat */
.chat-box__messages::-webkit-scrollbar {
    width: 4px;
}

.chat-box__messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box__messages::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

/* HP bar overlay */
.hp-bar {
    position: absolute;
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
}

.hp-bar__fill {
    height: 100%;
    background: #2a2;
    transition: width 0.2s;
}

/* Stats HUD */
.stats-hud {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: #eee;
    font-size: 0.8rem;
    z-index: 10;
    pointer-events: none;
}

.stats-hud__bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.stats-hud__bar-label {
    width: 25px;
    font-weight: bold;
}

.stats-hud__bar-track {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0.4rem;
}

.stats-hud__bar-fill--hp { background: #2a2; }
.stats-hud__bar-fill--mp { background: #22a; }
.stats-hud__bar-fill--exp { background: #aa2; }

.stats-hud__bar-fill {
    height: 100%;
    transition: width 0.3s;
}

/* Editor toolbar */
.editor-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 180px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.5rem;
    color: #eee;
    font-size: 0.8rem;
    z-index: 20;
    user-select: none;
}

.editor-toolbar__title {
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #444;
    font-size: 0.9rem;
}

.editor-toolbar__section {
    margin-bottom: 0.5rem;
}

.editor-toolbar__label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.editor-toolbar__btn {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 2px;
    background: #333;
    border: 1px solid #555;
    border-radius: 3px;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
}

.editor-toolbar__btn:hover {
    background: #444;
    color: #fff;
}

.editor-toolbar__btn--active {
    background: #2a5a2a;
    border-color: #3a7a3a;
    color: #fff;
}

.editor-toolbar__btn--save {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    background: #2a4a6a;
    border-color: #3a6a9a;
    color: #cdf;
    text-align: center;
}

.editor-toolbar__btn--save:hover {
    background: #3a6a9a;
}

.editor-toolbar__btn--action {
    background: #444;
}

.editor-toolbar__info {
    padding-top: 0.4rem;
    border-top: 1px solid #444;
    font-size: 0.7rem;
    color: #999;
    word-wrap: break-word;
}

/* Tile palette */
.tile-palette {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 260px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.5rem;
    color: #eee;
    font-size: 0.8rem;
    z-index: 20;
    user-select: none;
}

.tile-palette__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #444;
}

.tile-palette__label {
    font-size: 0.75rem;
    color: #aaa;
}

.tile-palette__id {
    font-weight: bold;
    color: #ffd700;
    min-width: 2rem;
    text-align: center;
}

.tile-palette__nav {
    padding: 0.15rem 0.4rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 3px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.8rem;
}

.tile-palette__nav:hover {
    background: #444;
    color: #fff;
}

.tile-palette__canvas-wrap {
    position: relative;
    max-height: 256px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #444;
    border-radius: 3px;
}

.tile-palette__canvas {
    display: block;
    width: 100%;
    image-rendering: pixelated;
    cursor: crosshair;
}

.tile-palette__highlight {
    position: absolute;
    border: 2px solid #ffff00;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(255, 255, 0, 0.5);
}

/* Palette scrollbar */
.tile-palette__canvas-wrap::-webkit-scrollbar {
    width: 4px;
}

.tile-palette__canvas-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.tile-palette__canvas-wrap::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

/* Map properties panel */
.map-props {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    color: #eee;
    font-size: 0.85rem;
    z-index: 30;
}

.map-props__title {
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #444;
}

.map-props__row {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.map-props__label {
    width: 90px;
    font-size: 0.75rem;
    color: #aaa;
    flex-shrink: 0;
}

.map-props__input {
    flex: 1;
    padding: 0.25rem 0.4rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 3px;
    color: #eee;
    font-size: 0.8rem;
}

.map-props__input:focus {
    outline: none;
    border-color: #ffd700;
}

.map-props__apply,
.map-props__close {
    display: inline-block;
    width: 48%;
    padding: 0.35rem;
    margin-top: 0.5rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #eee;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.map-props__apply {
    background: #2a5a2a;
    border-color: #3a7a3a;
    margin-right: 4%;
}

.map-props__apply:hover {
    background: #3a7a3a;
}

.map-props__close:hover {
    background: #444;
}

/* Attribute type picker */
.attr-picker {
    position: absolute;
    top: 8px;
    right: 196px;
    width: 140px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.5rem;
    color: #eee;
    font-size: 0.8rem;
    z-index: 20;
    user-select: none;
}

.attr-picker__title {
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #444;
    font-size: 0.85rem;
}

.attr-picker__btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.3rem 0.4rem;
    margin-bottom: 2px;
    background: #333;
    border: 1px solid #555;
    border-radius: 3px;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: left;
}

.attr-picker__btn:hover {
    background: #444;
    color: #fff;
}

.attr-picker__btn--active {
    background: #2a5a2a;
    border-color: #3a7a3a;
    color: #fff;
}

.attr-picker__swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.attr-picker__label {
    flex: 1;
}

/* Attribute configuration dialog */
.attr-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    color: #eee;
    font-size: 0.85rem;
    z-index: 30;
}

.attr-dialog__title {
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #444;
}

.attr-dialog__fields {
    margin-bottom: 0.5rem;
}

.attr-dialog__row {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.attr-dialog__label {
    width: 80px;
    font-size: 0.75rem;
    color: #aaa;
    flex-shrink: 0;
}

.attr-dialog__input {
    flex: 1;
    padding: 0.25rem 0.4rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 3px;
    color: #eee;
    font-size: 0.8rem;
}

.attr-dialog__input:focus {
    outline: none;
    border-color: #ffd700;
}

.attr-dialog__buttons {
    display: flex;
    gap: 4%;
}

.attr-dialog__apply,
.attr-dialog__cancel {
    flex: 1;
    padding: 0.35rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #eee;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.attr-dialog__apply {
    background: #2a5a2a;
    border-color: #3a7a3a;
}

.attr-dialog__apply:hover {
    background: #3a7a3a;
}

.attr-dialog__cancel:hover {
    background: #444;
}

/* Inventory panel */
.inventory-panel {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 240px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.5rem;
    color: #eee;
    font-size: 0.8rem;
    z-index: 15;
    user-select: none;
}

.inventory-panel__section-title {
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    padding-bottom: 0.3rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #444;
    font-size: 0.85rem;
}

.inventory-panel__eq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 0.4rem;
}

.inventory-panel__eq-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.3rem;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 3px;
    cursor: pointer;
    min-height: 40px;
}

.inventory-panel__eq-slot:hover {
    border-color: #ffd700;
}

.inventory-panel__eq-slot--filled {
    background: #1e2a1e;
    border-color: #3a7a3a;
}

.inventory-panel__eq-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
}

.inventory-panel__eq-icon {
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 2px;
}

.inventory-panel__stats {
    display: flex;
    justify-content: space-around;
    padding: 0.3rem 0;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    color: #aaa;
    border-bottom: 1px solid #333;
}

.inventory-panel__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
}

.inventory-panel__slot {
    aspect-ratio: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 34px;
}

.inventory-panel__slot:hover {
    border-color: #888;
}

.inventory-panel__slot--filled {
    background: #1e1e2a;
    border-color: #555;
}

.inventory-panel__slot--selected {
    border-color: #ffd700;
    background: #2a2a1a;
}

.inventory-panel__item-name {
    font-size: 0.55rem;
    text-align: center;
    line-height: 1.1;
    color: #ccc;
    padding: 1px;
    word-break: break-word;
}

.inventory-panel__item-qty {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 0.6rem;
    color: #ffd700;
    font-weight: bold;
}

.inventory-panel__tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #ffd700;
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 0.75rem;
    color: #eee;
    pointer-events: none;
    z-index: 20;
    max-width: 180px;
}

/* Disconnect overlay */
.disconnect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disconnect-overlay__box {
    background: #1a1a1a;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    min-width: 280px;
}

.disconnect-overlay__title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f44;
    margin-bottom: 0.75rem;
}

.disconnect-overlay__msg {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.25rem;
}

.disconnect-overlay__btn {
    padding: 0.6rem 1.5rem;
    background: #2a5a2a;
    border: 1px solid #3a7a3a;
    border-radius: 4px;
    color: #eee;
    font-size: 0.95rem;
    cursor: pointer;
}

.disconnect-overlay__btn:hover {
    background: #3a7a3a;
}

/* Spell bar */
.spell-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 12;
    user-select: none;
}

.spell-bar__slot {
    position: relative;
    width: 64px;
    height: 52px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.spell-bar__slot:hover {
    border-color: #888;
}

.spell-bar__slot--filled {
    border-color: #4466aa;
    background: rgba(20, 20, 50, 0.85);
}

.spell-bar__key {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.6rem;
    color: #888;
    font-weight: bold;
}

.spell-bar__name {
    font-size: 0.6rem;
    color: #ccc;
    text-align: center;
    line-height: 1.2;
    padding: 0 2px;
    word-break: break-word;
}

.spell-bar__mp {
    font-size: 0.55rem;
    color: #6688cc;
    margin-top: 1px;
}

.spell-bar__cooldown {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    display: none;
}

.spell-bar__hint {
    position: absolute;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #4488ff;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #88bbff;
    white-space: nowrap;
}

/* Ping overlay */
.ping-overlay {
    position: fixed;
    top: 64px;
    right: 8px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    color: #44ff44;
    z-index: 40;
    pointer-events: none;
}
