/* Tool Buttons */
.tool-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #eee;
}

.tool-btn.active {
    background: #ddd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #999;
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Coming Soon Button */
.tool-btn.coming-soon-btn {
    position: relative;
    opacity: 0.6;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 1px dashed #aaa;
}

.tool-btn.coming-soon-btn:hover {
    opacity: 0.8;
    background: linear-gradient(135deg, #e8e8e8 0%, #d5d5d5 100%);
    border-color: #888;
}

.tool-btn.coming-soon-btn i {
    color: #888;
}

/* Refresh button spinning animation */
.tool-btn.spinning i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Coming Soon Tooltip */
#coming-soon-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(5px);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

#coming-soon-tooltip::before {
    content: '🚀';
    margin-right: 8px;
}

#coming-soon-tooltip::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #667eea;
    border-top: none;
}

#coming-soon-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Info & Status */
.status-info {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 0 0 auto;
}

.board-total-value {
    color: #444;
    font-weight: 700;
    white-space: nowrap;
}

/* Auth Buttons */
.auth-btn {
    background: #333;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
}

.auth-btn:hover {
    background: #555;
}

/* Side Panel Removed */

/* High Value Indicator */
#high-value-indicator {
    display: none;
    /* Managed by JS */
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 1 360px;
    min-width: 320px;
    max-width: 460px;
    height: 42px;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(44, 44, 42, 0.08);
    background: #ffffff;
    color: #2c2c2a;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    white-space: nowrap;
}

#high-value-indicator:hover {
    border-color: rgba(186, 117, 23, 0.28);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

#high-value-indicator.is-empty .king-main-panel {
    background: #fafaf8;
    border: 1px solid rgba(44, 44, 42, 0.07);
    box-shadow: none;
}

#high-value-indicator.is-empty .crown-icon {
    background: #eeeeeb;
    color: #888780;
}

#high-value-indicator.is-empty .hv-label {
    color: #888780;
}

#high-value-indicator.is-empty .hv-owner,
#high-value-indicator.is-empty .hv-price {
    color: #2c2c2a;
}

.king-main-panel {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
    border-radius: 6px;
}

.king-main-panel {
    flex: 1 1 280px;
    gap: 9px;
    padding: 0 10px 0 7px;
    background: linear-gradient(135deg, #ba7517 0%, #8b5712 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.crown-icon {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
    color: #faeeda;
    font-size: 16px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.hv-copy,
.hv-meta {
    display: flex;
    align-items: baseline;
    min-width: 0;
}

.hv-copy {
    gap: 8px;
    flex: 1 1 auto;
}

.hv-meta {
    gap: 8px;
    flex: 0 0 auto;
}

.hv-label {
    font-size: 10px;
    color: #fac775;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 700;
}

.hv-price {
    font-size: 18px;
    font-weight: 700;
    color: #faeeda;
    text-shadow: none;
}

.hv-owner {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 600;
    color: #faeeda;
}

@media (max-width: 900px) {
    #high-value-indicator {
        min-width: 260px;
    }
}

@media (max-width: 760px) {
    #high-value-indicator {
        min-width: 160px;
    }
}

@media (max-width: 600px) {
    .header-bar {
        gap: 8px;
    }

    #high-value-indicator {
        flex: 1 1 auto;
        min-width: 140px;
        height: 34px;
        gap: 0;
        padding: 3px;
    }

    .king-main-panel {
        flex: 1 1 auto;
        gap: 7px;
        padding: 0 8px 0 6px;
    }

    .crown-icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .hv-label {
        display: none;
    }

    .hv-owner {
        display: none;
    }

    .hv-price {
        font-size: 14px;
    }
}
