.matchmaking-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.matchmaking-section h2 {
    margin-bottom: 15px;
    text-align: center;
}

.mm-mode-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mm-mode-btn {
    padding: 15px 30px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1em;
    transition: all 0.2s;
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.mm-mode-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.mm-mode-btn .mode-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 4px;
}

.mm-mode-btn .mode-desc {
    font-size: 0.8em;
    color: var(--text-secondary);
}

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

.mm-overlay.active {
    display: flex;
}

.mm-overlay-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.mm-overlay-content h3 {
    color: var(--accent-gold);
    font-size: 1.4em;
    margin-bottom: 20px;
}

/* Spinner */
.mm-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: mm-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes mm-spin {
    to { transform: rotate(360deg); }
}

.mm-status-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1em;
}

/* Countdown */
.mm-countdown {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-gold);
    margin: 15px 0;
    font-variant-numeric: tabular-nums;
}

.mm-countdown.urgent {
    color: var(--accent-red);
    animation: mm-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes mm-pulse {
    to { opacity: 0.5; }
}

/* Player list in match found */
.mm-players {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.mm-players li {
    padding: 6px 0;
    color: var(--text-primary);
    font-size: 0.95em;
}

.mm-players li.accepted {
    color: #4caf50;
}

.mm-players li.accepted::after {
    content: ' \2713';
}

/* Action buttons */
.mm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.mm-btn-accept {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    background: #4caf50;
    color: white;
    font-family: inherit;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.mm-btn-accept:hover {
    background: #388e3c;
}

.mm-btn-decline {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    background: var(--btn-danger);
    color: white;
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.mm-btn-decline:hover {
    background: #a01530;
}

.mm-btn-cancel {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
}

.mm-btn-cancel:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.mm-mode-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    font-size: 0.85em;
    margin-bottom: 10px;
}
