/* Updated styles for body */
body {
    margin: 0;
    background-color: #2a3b58;
    z-index: 1;
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.top-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(15, 23, 40, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1500;
    flex-wrap: wrap;
    gap: 12px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    justify-content: flex-start;
    min-width: 0;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.top-left .primary {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(110deg, #56d8ff, #5688ff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-left .primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(86, 136, 255, 0.4);
}

#buyin-button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(86, 136, 255, 0.55);
    background: rgba(86, 136, 255, 0.18);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#buyin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(86, 136, 255, 0.25);
    background: rgba(86, 136, 255, 0.28);
}

#buyin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.buyin-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pass-count {
    font-size: 11px;
    color: #9fb4ff;
    letter-spacing: 0.02em;
}

.lobby-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lobby-count {
    font-size: 11px;
    color: #cfe0ff;
    letter-spacing: 0.02em;
}

.queue-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.queue-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    font: inherit;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.queue-toggle:disabled {
    cursor: default;
    opacity: 0.6;
}

.queue-toggle:hover,
.queue-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 16px rgba(15, 30, 75, 0.25);
    transform: translateY(-1px);
}

.queue-panel {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 240px;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(10, 15, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px;
    z-index: 30;
    box-shadow: 0 10px 24px rgba(3, 8, 20, 0.35);
}

.queue-panel-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8fa8ff;
    margin-bottom: 8px;
}

.queue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #e8f0ff;
    font-size: 12px;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.queue-empty {
    font-size: 12px;
    color: #9fb0e8;
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

@media (max-width: 1100px) {
    .top-ui {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-left,
    .top-right,
    .button-group {
        width: 100%;
        flex: 1 1 auto;
        justify-content: flex-start;
    }
}

.button-group button,
.button-group .outline,
.top-left .primary {
    font-family: inherit;
}

.button-group button,
#wallet-button,
#logout-button,
#profile-button,
#highscore-button {
    border-radius: 999px;
    padding: 8px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#wallet-button {
    min-width: 160px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button-group button:hover,
#wallet-button:hover,
#logout-button:hover,
#profile-button:hover,
#highscore-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

#wallet-button.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.wallet-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.wallet-picker {
    min-width: 240px;
    max-width: 320px;
    background: rgba(10, 18, 34, 0.96);
    border: 1px solid rgba(120, 140, 190, 0.35);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    color: #e7f0ff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-picker-title {
    font-size: 14px;
    font-weight: 600;
}

.wallet-picker-subtitle {
    font-size: 12px;
    color: #b4c3e8;
}

.wallet-picker-button,
.wallet-picker-cancel {
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid rgba(120, 170, 255, 0.3);
    background: rgba(44, 82, 140, 0.45);
    color: #e7f0ff;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wallet-picker-button:hover,
.wallet-picker-cancel:hover {
    background: rgba(56, 108, 182, 0.7);
    transform: translateY(-1px);
}

.wallet-picker-cancel {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #cbd7f2;
}

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.app-modal {
    min-width: 240px;
    max-width: 360px;
    background: rgba(10, 18, 34, 0.96);
    border: 1px solid rgba(120, 140, 190, 0.35);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    color: #e7f0ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-modal-title {
    font-size: 14px;
    font-weight: 600;
}

.app-modal-message {
    font-size: 13px;
    color: #cbd7f2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.app-modal-input {
    border-radius: 8px;
    border: 1px solid rgba(120, 170, 255, 0.3);
    background: rgba(20, 32, 60, 0.8);
    color: #e7f0ff;
    padding: 8px 10px;
    font-family: inherit;
}

.app-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.app-modal-button {
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid rgba(120, 170, 255, 0.3);
    background: rgba(44, 82, 140, 0.45);
    color: #e7f0ff;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-modal-button:hover {
    background: rgba(56, 108, 182, 0.7);
    transform: translateY(-1px);
}

.app-modal-cancel {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #cbd7f2;
}

#hudContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.hp-bar-container,
.name-label,
.damage-text {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1000;
}

.hp-bar-container {
    width: 50px;
    height: 7px;
    background-color: red;
    border-radius: 3px;
    overflow: hidden;
}

.hp-bar {
    width: 100%;
    height: 100%;
    background-color: green;
    border-radius: 3px;
}

.damage-text {
    color: red;
    font-size: 20px;
    font-weight: bold;
    display: none;
}

.name-label {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.chat-bubble {
    position: absolute;
    transform: translate(-50%, -50%);
    max-width: 240px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(10, 16, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 360px;
    background: rgba(12, 20, 36, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(8, 12, 20, 0.45);
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 1200;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 10px;
}

.chat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.chat-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #94a8d4;
}

#toggle-chat,
#expand-chat {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

#expand-chat {
    background: rgba(255, 255, 255, 0.08);
}

#chatbox {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 0 18px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #f2f4ff;
    user-select: text;
}

#chatbox * {
    user-select: text;
}

#chat-container.expanded #chatbox {
    max-height: 420px;
}

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 0 18px 18px;
}

#message-input {
    flex: 1;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 12px;
}

#message-input::placeholder {
    color: #9fb2d9;
}

#send-button {
    border-radius: 10px;
    border: none;
    padding: 10px 16px;
    background: linear-gradient(120deg, #56d8ff, #5688ff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

#chat-container.collapsed #chatbox,
#chat-container.collapsed .chat-input-row {
    display: none;
}

#chat-container.collapsed #toggle-chat::after {
    content: ' show';
    text-transform: lowercase;
}

#winner-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 48px;
    font-weight: bold;
    z-index: 1000;
    display: none;
}

#highscore-popup {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 10000;
    display: none;
}

#highscore-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#highscore-popup-list {
    max-height: 400px;
    overflow-y: auto;
}

#lobby-popup {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(380px, 92vw);
    background: rgba(12, 20, 36, 0.95);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(8, 12, 20, 0.5);
    z-index: 10000;
    display: none;
}

#drop-popup {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(460px, 94vw);
    background: rgba(12, 20, 36, 0.97);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(8, 12, 20, 0.5);
    z-index: 10001;
    display: none;
}

#claim-popup {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 94vw);
    background: rgba(12, 20, 36, 0.97);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(8, 12, 20, 0.5);
    z-index: 10001;
    display: none;
}

#drop-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#drop-popup-header h2 {
    margin: 0;
    font-size: 18px;
}

#close-drop-button {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

#claim-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#claim-popup-header h2 {
    margin: 0;
    font-size: 18px;
}

#close-claim-button {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

#drop-popup-list {
    max-height: 420px;
    overflow-y: auto;
}

#claim-popup-list {
    max-height: 420px;
    overflow-y: auto;
}

#lobby-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#lobby-popup-header h2 {
    margin: 0;
    font-size: 18px;
}

#close-lobby-button {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

#lobby-popup-list {
    max-height: 320px;
    overflow-y: auto;
}

#lobby-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lobby-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lobby-card.active {
    border-color: rgba(86, 216, 255, 0.8);
    box-shadow: 0 10px 18px rgba(86, 216, 255, 0.2);
}

.lobby-card h4 {
    margin: 0;
    font-size: 14px;
}

.lobby-card p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #9fb2d9;
}

.lobby-select-button {
    border-radius: 999px;
    padding: 6px 12px;
    border: none;
    background: linear-gradient(110deg, #56d8ff, #5688ff);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.lobby-select-button.secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.lobby-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.lobby-drop-list {
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(6, 12, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #cfe0ff;
}

.drop-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(6, 12, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #cfe0ff;
}

.drop-summary {
    padding: 10px;
    border-radius: 10px;
    background: rgba(9, 16, 30, 0.75);
    border: 1px solid rgba(120, 150, 220, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drop-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.drop-summary-title {
    font-size: 12px;
    font-weight: 700;
    color: #e7f0ff;
}

.drop-summary-winner {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.drop-summary-winner--self {
    background: rgba(72, 191, 145, 0.2);
    color: #bff7de;
    border: 1px solid rgba(72, 191, 145, 0.55);
}

.drop-summary-winner--other {
    background: rgba(90, 120, 200, 0.18);
    color: #cfe0ff;
    border: 1px solid rgba(90, 120, 200, 0.4);
}

.drop-summary-mode {
    font-size: 10px;
    color: #8aa1c9;
}

.drop-status {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.drop-status--pending {
    background: rgba(255, 203, 104, 0.15);
    color: #ffd58a;
    border: 1px solid rgba(255, 203, 104, 0.35);
}

.drop-status--awarded {
    background: rgba(120, 255, 195, 0.15);
    color: #7ef3b0;
    border: 1px solid rgba(120, 255, 195, 0.35);
}

.drop-status--miss {
    background: rgba(145, 160, 190, 0.15);
    color: #b2c1e6;
    border: 1px solid rgba(145, 160, 190, 0.3);
}

.drop-status--claim {
    background: rgba(110, 160, 255, 0.18);
    color: #a8c2ff;
    border: 1px solid rgba(110, 160, 255, 0.4);
}

.drop-summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.drop-summary-item {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(13, 22, 40, 0.6);
    border: 1px solid rgba(120, 150, 220, 0.18);
}

.drop-summary-label {
    font-size: 10px;
    color: #8aa1c9;
    margin-bottom: 2px;
}

.drop-summary-value {
    font-size: 12px;
    font-weight: 600;
    color: #e7f0ff;
    word-break: break-word;
}

.drop-summary-subvalue {
    font-size: 10px;
    color: #a7badd;
    margin-top: 2px;
    word-break: break-word;
}

.drop-summary-formula {
    font-size: 10px;
    color: #b9ccff;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(10, 18, 34, 0.7);
    border: 1px solid rgba(120, 150, 220, 0.2);
    word-break: break-word;
}

.drop-summary-note {
    font-size: 10px;
    color: #8aa1c9;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    transition: opacity 0.2s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-dialog {
    background: rgba(12, 20, 36, 0.95);
    border-radius: 14px;
    padding: 1.4rem 2rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    text-align: center;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    color: #e7f0ff;
    border: 1px solid rgba(120, 150, 220, 0.35);
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(160, 190, 255, 0.25);
    border-top-color: #6fb0ff;
    border-radius: 50%;
    animation: drop-spinner 0.8s linear infinite;
}

@keyframes drop-spinner {
    to {
        transform: rotate(360deg);
    }
}

.drop-banner {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(180, 120, 0, 0.2);
    border: 1px solid rgba(255, 205, 110, 0.45);
    color: #ffd58a;
    font-size: 11px;
}

.drop-action-card {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(120, 150, 220, 0.2);
    background: rgba(8, 14, 28, 0.72);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drop-action-card--claim {
    border-color: rgba(120, 200, 255, 0.45);
    box-shadow: 0 10px 16px rgba(80, 140, 220, 0.25);
}

.drop-action-title {
    font-size: 12px;
    font-weight: 700;
    color: #e7f0ff;
}

.drop-action-text {
    font-size: 10px;
    color: #b9ccff;
}

.drop-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.drop-action-button {
    background: rgba(44, 82, 140, 0.6);
    border: 1px solid rgba(120, 170, 255, 0.4);
    color: #e7f0ff;
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.drop-action-button--primary {
    background: linear-gradient(120deg, rgba(86, 136, 255, 0.9), rgba(86, 216, 255, 0.9));
    border: none;
    color: #fff;
    font-weight: 600;
}

body.editor-mode .top-ui,
body.editor-mode #chat-container,
body.editor-mode #highscore-popup,
body.editor-mode #lobby-popup,
body.editor-mode #drop-popup,
body.editor-mode #claim-popup,
body.editor-mode #winner-message,
body.editor-mode #loadingOverlay {
    display: none !important;
}

#editor-hud {
    position: fixed;
    left: 18px;
    top: 18px;
    z-index: 3000;
    background: rgba(7, 12, 22, 0.92);
    border: 1px solid rgba(120, 180, 255, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    color: #e7f0ff;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    min-width: 220px;
    display: none;
}

body.editor-mode #editor-hud {
    display: block;
}

#editor-hud h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.editor-hud-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.editor-hud-row button {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(120, 170, 255, 0.35);
    background: rgba(22, 36, 64, 0.8);
    color: #e7f0ff;
    font-size: 11px;
    cursor: pointer;
}

.editor-hud-row button.active {
    background: rgba(90, 170, 255, 0.9);
    color: #062033;
    font-weight: 700;
}

.editor-object-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow: auto;
}

.editor-object-item {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(120, 150, 220, 0.25);
    background: rgba(12, 18, 36, 0.8);
    font-size: 11px;
    cursor: pointer;
}

.editor-object-item.active {
    border-color: rgba(120, 200, 255, 0.65);
    background: rgba(60, 110, 200, 0.35);
}

.editor-hud-note {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 6px;
}

.drop-inbox-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drop-section {
    padding: 10px;
    border-radius: 10px;
    background: rgba(9, 16, 30, 0.7);
    border: 1px solid rgba(120, 150, 220, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drop-section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drop-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #e7f0ff;
}

.drop-section-note {
    font-size: 10px;
    color: #8aa1c9;
}

.drop-section-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.drop-proof-label {
    color: #8aa1c9;
    font-size: 10px;
    margin-right: 6px;
}

.drop-proof-value {
    font-size: 10px;
    color: #d7e7ff;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.drop-proof-copy {
    margin-left: auto;
    background: rgba(35, 64, 115, 0.6);
    border: 1px solid rgba(120, 170, 255, 0.35);
    color: #e7f0ff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
}

.drop-proof-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drop-proof-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drop-proof-empty {
    font-size: 10px;
    color: #8aa1c9;
}

.lobby-drop-header {
    font-weight: 600;
    color: #a8c2ff;
    margin-bottom: 6px;
}

.lobby-drop-hint {
    margin: 0 0 10px;
    font-size: 11px;
    color: #8aa1c9;
}

.drop-warning {
    margin: 8px 0 12px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(180, 120, 0, 0.15);
    border: 1px solid rgba(255, 205, 110, 0.4);
    color: #ffd58a;
    font-size: 10px;
    line-height: 1.45;
    white-space: pre-line;
}

.drop-proof {
    margin: 8px 0 12px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(9, 18, 32, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drop-proof-title {
    font-size: 11px;
    font-weight: 600;
    color: #b9ccff;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.drop-proof-title-desc {
    font-size: 10px;
    font-weight: 500;
    color: #8aa1c9;
}

.drop-proof-row {
    font-size: 10px;
    color: #cddcff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drop-proof-mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.drop-proof-link {
    font-size: 10px;
    color: #7bc8ff;
    text-decoration: none;
    display: inline-block;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.drop-proof-link:hover {
    text-decoration: underline;
}

.drop-proof-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.drop-proof-actions-global {
    margin-top: 12px;
    padding: 10px;
    background: rgba(11, 18, 36, 0.7);
    border: 1px solid rgba(120, 140, 190, 0.35);
    border-radius: 10px;
}

.drop-proof-actions-note {
    width: 100%;
    font-size: 12px;
    color: #d6deff;
    opacity: 0.9;
}

.drop-proof-button {
    background: rgba(44, 82, 140, 0.6);
    border: 1px solid rgba(120, 170, 255, 0.4);
    color: #e7f0ff;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.drop-proof-button:hover {
    background: rgba(56, 108, 182, 0.75);
}

.drop-proof-status {
    font-size: 10px;
    color: #cddcff;
}

.drop-proof-status-verified {
    color: #86f3a7;
}

.drop-proof-status-mismatch,
.drop-proof-status-error {
    color: #ffb4b4;
}

.lobby-drop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
    color: #d7e7ff;
}

.drop-empty {
    font-size: 10px;
    color: #8aa1c9;
}

.drop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.drop-card {
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drop-card img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.drop-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #e8f0ff;
}

.drop-card-mint {
    font-size: 10px;
    color: #9fb2d9;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.drop-card-placeholder {
    height: 120px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.drop-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drop-grid .lobby-drop-item {
    justify-content: flex-start;
}

@media (max-width: 520px) {
    .drop-grid {
        grid-template-columns: 1fr;
    }
    .drop-summary-row {
        grid-template-columns: 1fr;
    }
}

.lobby-drop-mint {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #c1d6ff;
}

.lobby-drop-rate {
    font-weight: 600;
    color: #74f0c5;
}

#drop-list .lobby-drop-list {
    margin-top: 0;
}

.lobby-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: #9fb2d9;
    text-align: center;
}

/* Removed styles for #login-form and #register-form since they are replaced with modals */

/* Damage and Healing Display Styles */
.damage-display {
    color: red;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    z-index: 1000;
}

.healing-display {
    color: green;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    z-index: 1000;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

/* Button Styling */
.btn {
    width: 100%;
    padding: 10px;
    background-color: #2a3b58;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #1d2c44;
}

/* Input Error Styling */
.input-error {
    border-color: red;
}
.hidden { display: none !important; }

