#mode-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 1rem 0 0.5rem;
}

.mode-btn {
    padding: 6px 16px;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.2s;
}

.mode-btn:hover {
    border-color: #6153cc;
    color: #6153cc;
}

.mode-btn.active {
    background: #6153cc;
    border-color: #6153cc;
    color: white;
}

#size-display {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

#size-svg {
    width: 100%;
    max-width: 450px;
    height: 250px;
}

.species-circle {
    fill: #e8e4f8;
    stroke: #6153cc;
    stroke-width: 2;
    cursor: pointer;
    transition: r 0.8s ease, fill 0.2s;
}

.species-circle:hover {
    fill: #d4cef0;
}

.species-circle.selected {
    fill: #6153cc;
}

.species-circle.correct-reveal {
    fill: #e6f9e8;
    stroke: #28a745;
    stroke-width: 3;
    cursor: default;
}

.species-label {
    font-size: 16px;
    font-weight: bold;
    fill: #333;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.radius-label {
    font-size: 11px;
    fill: #6c757d;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.radius-label.visible {
    opacity: 1;
}

#rank-controls {
    margin: 0.5rem 0;
}

#rank-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.rank-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rank-input-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.rank-input-group input {
    width: 40px;
    padding: 6px;
    text-align: center;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 5px;
}

.rank-input-group input:focus {
    outline: none;
    border-color: #6153cc;
}

#tricky-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

#explanation-text {
    text-align: center;
    font-size: 0.95rem;
    color: #495057;
    margin: 0.5rem 0;
    min-height: 1.5em;
}

.pairwise-btn {
    padding: 10px 24px;
    font-size: 1rem;
}
