/* History button */
.history-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text3);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    -webkit-tap-highlight-color: transparent;
}
.history-toggle:hover { color: var(--green); }
.history-toggle .history-count {
    background: var(--green);
    color: white;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 800;
}

/* History list */
.history-list {
    margin-bottom: 20px;
}
.history-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.history-item:hover {
    border-color: var(--green);
    transform: translateY(-1px);
}

.history-item-info {
    flex: 1;
    min-width: 0;
}
.history-item-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item-meta {
    font-size: 0.72rem;
    color: var(--text3);
    margin-top: 2px;
    font-weight: 600;
}

.history-item-score {
    font-size: 1.1rem;
    font-weight: 900;
    font-family: 'Space Mono', monospace;
    flex-shrink: 0;
}

.history-item-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.history-empty {
    text-align: center;
    padding: 24px;
    color: var(--text3);
    font-size: 0.85rem;
    font-weight: 600;
}

.history-clear {
    text-align: center;
    margin-top: 8px;
}
