/* Fermi Bounder — minimal styling, matching the Quant Sprint look */

.fb-container {
    max-width: 760px;
    margin: 60px auto 80px;
    padding: 0 20px;
    color: #1F2933;
}

.fb-header h1 {
    margin: 0 0 4px;
    font-size: 1.8em;
    font-weight: 700;
}
.fb-subtitle { color: #6B7280; margin: 0 0 24px; font-size: 0.95em; }

.fb-panel {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.fb-panel.hidden { display: none; }

.fb-instructions ul { padding-left: 22px; margin: 8px 0 12px; }
.fb-instructions li { margin: 4px 0; }
.fb-instructions code {
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}
.fb-tip {
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
    padding: 8px 12px;
    margin: 12px 0;
    font-size: 0.92em;
    border-radius: 0 6px 6px 0;
}

.primary, .secondary {
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.primary { background: #2563EB; color: #fff; }
.primary:hover:not(:disabled) { background: #1D4ED8; }
.primary:disabled { opacity: 0.5; cursor: not-allowed; }
.secondary { background: #F3F4F6; color: #4B5563; border: 1px solid #D1D5DB; }
.secondary:hover { background: #E5E7EB; }

.fb-hud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #F9FAFB;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.92em;
}
.fb-hud > div { text-align: center; }
.fb-hud strong { display: block; color: #6B7280; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }

.fb-prompt { text-align: center; margin: 24px 0; }
.fb-prompt-label { color: #6B7280; font-size: 0.9em; margin-bottom: 6px; }
.fb-expr {
    font-size: 2em;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-weight: 700;
    color: #1F2933;
    letter-spacing: 0.02em;
}

.fb-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: center;
    margin: 20px 0;
}
.fb-input-block {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 220px;
}
.fb-input-block span {
    font-size: 0.82em;
    color: #6B7280;
    margin-bottom: 4px;
    font-weight: 600;
}
.fb-input-block input {
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 1.1em;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    text-align: right;
}
.fb-input-block input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.fb-dash {
    color: #9CA3AF;
    font-size: 1.4em;
    padding-bottom: 12px;
}

.fb-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 16px 0;
}

.fb-feedback {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 0.95em;
    display: none;
}
.fb-feedback:not(:empty) { display: block; }
.fb-feedback.good { background: #ECFDF5; border-left: 3px solid #10B981; color: #065F46; }
.fb-feedback.ok   { background: #FEFCE8; border-left: 3px solid #EAB308; color: #713F12; }
.fb-feedback.miss { background: #FEF2F2; border-left: 3px solid #EF4444; color: #7F1D1D; }
.fb-feedback.warn { background: #FEF3C7; border-left: 3px solid #F59E0B; color: #78350F; }

.fb-result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #F9FAFB;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
}
.fb-result-grid > div span:not(strong) { font-size: 1.4em; font-weight: 700; }

.fb-calibration-note {
    background: #EEF2FF;
    border-left: 3px solid #6366F1;
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95em;
    color: #312E81;
    margin: 16px 0;
}

.fb-review-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.92em;
}
.fb-review-table th, .fb-review-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #E5E7EB;
}
.fb-review-table th { background: #F9FAFB; font-weight: 600; color: #4B5563; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.03em; }
.fb-review-table tr.hit  { background: rgba(16, 185, 129, 0.04); }
.fb-review-table tr.miss { background: rgba(239, 68, 68, 0.04); }

.fb-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
}
.fb-link:hover { text-decoration: underline; }

@media (max-width: 540px) {
    .fb-container { margin-top: 36px; padding: 0 14px; }
    .fb-hud { grid-template-columns: repeat(2, 1fr); }
    .fb-result-grid { grid-template-columns: repeat(2, 1fr); }
    .fb-input-row { flex-direction: column; align-items: stretch; }
    .fb-input-block { max-width: none; }
    .fb-dash { display: none; }
    .fb-expr { font-size: 1.6em; }
}
