 /* ============================================================
   Comparing Fractions — Per-Game Styles
   /maths/css/comparingfractions.css
   ============================================================ */

:root {
    --primary-color:        #FF8C42;
    --primary-hover:        #FF6B35;
    --primary-light:        rgba(255, 140, 66, 0.10);
    --primary-shadow:       rgba(255, 140, 66, 0.30);
    --btn-text-color:       #fff;
    --hero-gradient-start:  rgba(255, 140, 66, 0.15);
    --hero-gradient-end:    rgba(255, 107, 53, 0.08);
}

/* ===== FRACTION DISPLAY ===== */

.fraction-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-width: 110px;
    text-align: center;
    border: 1.5px solid #e9ecef;
}

.fraction-display .numerator,
.fraction-display .denominator {
    display: block;
    text-align: center;
    line-height: 1.1;
}

.fraction-display .fraction-line {
    border-top: 3px solid #212529;
    margin: 6px 0;
}

/* ===== OPERATOR DROP ZONE ===== */

.operator-space {
    min-width: 110px;
    min-height: 110px;
    background: var(--primary-light);
    border: 3px dashed var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: #dee2e6;
    transition: all 0.2s ease;
    cursor: default;
}

.operator-space.drag-over {
    background: rgba(255, 140, 66, 0.25);
    border-color: var(--primary-hover);
    transform: scale(1.05);
}

.operator-space.filled {
    background: #fff;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
}

/* ===== QUESTION DISPLAY ROW ===== */

.question-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    min-height: 120px;
}

/* ===== DRAGGABLE OPERATORS ===== */

.operators-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.operator-draggable {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #fff;
    border: 2.5px solid var(--primary-color);
    border-radius: 14px;
    padding: 1rem 2rem;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px var(--primary-shadow);
    user-select: none;
}

.operator-draggable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--primary-shadow);
}

.operator-draggable:active {
    cursor: grabbing;
}

.operator-draggable.used {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== CHECK ANSWER BUTTON ===== */

.check-button {
    display: block;
    margin: 0 auto;
    padding: 0.9rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--primary-shadow);
}

.check-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-shadow);
}

.check-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== FEEDBACK LINE ===== */

#feedback {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    min-height: 30px;
    margin-top: 1.25rem;
}