/* ============================================================
   Simplifying Fractions — Per-Game Styles
   ============================================================ */

/* ===== COLOUR SCHEME ===== */
:root {
    --primary-color:       #CC59D2;
    --primary-hover:       #A445AA;
    --primary-light:       rgba(204, 89, 210, 0.12);
    --primary-shadow:      rgba(204, 89, 210, 0.35);
    --btn-text-color:      #fff;
    --hero-gradient-start: rgba(204, 89, 210, 0.18);
    --hero-gradient-end:   rgba(204, 89, 210, 0.08);
}

/* ===== GAME-SPECIFIC: instruction ===== */

.sf-instruction {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* ===== GAME-SPECIFIC: fraction display ===== */

.fraction-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    gap: 1rem;
}

.fraction-part {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.whole-number { font-size: 2.5rem; }

.fraction-numerator   { padding: 0 1rem; }
.fraction-denominator { padding: 0 1rem; }

.fraction-line {
    width: 100%;
    height: 4px;
    background: #1f2937;
    margin: 0.2rem 0;
}

/* ===== GAME-SPECIFIC: answer inputs ===== */

.answer-section { margin: 1.5rem 0; }

.answer-label {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.answer-inputs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.answer-fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.fraction-input {
    width: 100px;
    height: 56px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 3px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    transition: all 0.2s ease;
    outline: none;
}

.fraction-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.fraction-input.correct   { border-color: #28a745; background: rgba(40,167,69,0.1); }
.fraction-input.incorrect { border-color: #dc3545; background: rgba(220,53,69,0.1); }

.whole-input { width: 80px; }

.answer-divider {
    width: 100px;
    height: 4px;
    background: #1f2937;
    margin: 0.2rem 0;
}

/* ===== GAME-SPECIFIC: buttons ===== */

.sf-btn-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sf-submit-btn { min-width: 200px; }
.sf-next-btn   { min-width: 180px; }

/* ===== GAME-SPECIFIC: flash ===== */

@keyframes flash-correct {
    0%, 100% { background-color: transparent; }
    50%       { background-color: rgba(76,175,80,0.2); }
}

@keyframes flash-incorrect {
    0%, 100% { background-color: transparent; }
    50%       { background-color: rgba(244,67,54,0.2); }
}

.gs-game-card.flash-correct   { animation: flash-correct   0.6s ease; }
.gs-game-card.flash-incorrect { animation: flash-incorrect 0.6s ease; }

/* ===== UTILITIES ===== */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }