#fp-game {
  --fp-bg:#fff8ed; --fp-card:#ffffff; --fp-primary:#e65100; --fp-primary-dark:#bf360c;
  --fp-secondary:#1565c0; --fp-green:#2e7d32; --fp-red:#c62828; --fp-text:#263238;
  --fp-muted:#607d8b; --fp-border:#ffe0b2;
  font-family:Arial,Helvetica,sans-serif; color:var(--fp-text); background:var(--fp-bg);
  max-width:1000px; margin:20px auto; padding:clamp(14px,3vw,28px); border-radius:22px;
  box-sizing:border-box; line-height:1.45;
}
#fp-game * {box-sizing:border-box}
#fp-game h1,#fp-game h2,#fp-game p {margin-top:0}
#fp-game .fp-header {text-align:center;margin-bottom:22px}
#fp-game .fp-header h1 {color:var(--fp-primary-dark);font-size:clamp(1.7rem,4vw,2.5rem);margin-bottom:6px}
#fp-game .fp-header p {color:var(--fp-muted);margin-bottom:0}
#fp-game .fp-card {background:var(--fp-card);border:2px solid var(--fp-border);border-radius:18px;padding:clamp(15px,3vw,24px);box-shadow:0 5px 16px #6d4c4110}
#fp-game .fp-config-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
#fp-game .fp-field label {display:block;font-weight:700;margin-bottom:6px}
#fp-game select,#fp-game input[type="checkbox"] {accent-color:var(--fp-primary)}
#fp-game select {width:100%;padding:12px;border:2px solid var(--fp-border);border-radius:10px;background:#fff;font-size:1rem;color:var(--fp-text)}
#fp-game .fp-checks {display:flex;gap:18px;flex-wrap:wrap;margin:18px 0}
#fp-game .fp-checks label {display:flex;align-items:center;gap:7px;font-weight:600}
#fp-game button {font:inherit;cursor:pointer}
#fp-game .fp-btn {border:0;border-radius:12px;padding:12px 18px;font-weight:700;transition:transform .15s,filter .15s}
#fp-game .fp-btn:hover {filter:brightness(.96);transform:translateY(-1px)}
#fp-game .fp-btn:focus-visible,#fp-game .fp-option:focus-visible {outline:3px solid #1565c0;outline-offset:3px}
#fp-game .fp-primary {background:var(--fp-primary);color:#fff}
#fp-game .fp-secondary {background:#e3f2fd;color:#0d47a1}
#fp-game .fp-neutral {background:#eceff1;color:#37474f}
#fp-game .fp-start-row {text-align:center;margin-top:18px}
#fp-game .fp-hidden {display:none!important}
#fp-game .fp-topbar {display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:15px}
#fp-game .fp-stat {background:#fff;border:1px solid var(--fp-border);border-radius:12px;padding:9px;text-align:center}
#fp-game .fp-stat strong {display:block;color:var(--fp-primary-dark);font-size:1.2rem}
#fp-game .fp-stat span {font-size:.8rem;color:var(--fp-muted)}
#fp-game .fp-progress {height:12px;background:#ffe0b2;border-radius:20px;overflow:hidden;margin:10px 0 18px}
#fp-game .fp-progress div {height:100%;width:0;background:var(--fp-primary);transition:width .25s}
#fp-game .fp-question-head {text-align:center}
#fp-game .fp-badge {display:inline-block;background:#fff3e0;color:#bf360c;padding:5px 11px;border-radius:20px;font-weight:700;font-size:.85rem;margin-bottom:10px}
#fp-game .fp-question {font-size:clamp(1.25rem,3vw,1.7rem);font-weight:800;margin:5px 0 8px}
#fp-game .fp-instruction {color:var(--fp-muted);margin-bottom:17px}
#fp-game .fp-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#fp-game .fp-option {background:#fff;border:2px solid #cfd8dc;border-radius:12px;padding:13px 10px;font-weight:700;color:var(--fp-text);min-height:54px}
#fp-game .fp-option:hover {border-color:var(--fp-primary);background:#fffaf4}
#fp-game .fp-option.selected {border-color:var(--fp-secondary);background:#e3f2fd}
#fp-game .fp-option.correct {border-color:var(--fp-green);background:#e8f5e9;color:#1b5e20}
#fp-game .fp-option.wrong {border-color:var(--fp-red);background:#ffebee;color:#b71c1c}
#fp-game .fp-actions {display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:18px}
#fp-game .fp-feedback {margin-top:15px;padding:13px;border-radius:12px;text-align:center;font-weight:700}
#fp-game .fp-feedback.good {background:#e8f5e9;color:#1b5e20}
#fp-game .fp-feedback.bad {background:#ffebee;color:#b71c1c}
#fp-game .fp-feedback.info {background:#e3f2fd;color:#0d47a1}
#fp-game .fp-hint {margin-top:12px;background:#fff8e1;border-left:4px solid #ffb300;padding:11px;border-radius:8px}
#fp-game .fp-result {text-align:center}
#fp-game .fp-result-score {font-size:2.5rem;font-weight:900;color:var(--fp-primary-dark)}
#fp-game .fp-result-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
#fp-game .fp-result-grid div {background:#fff3e0;border-radius:12px;padding:12px}
#fp-game .fp-result-grid strong {display:block;font-size:1.35rem}
#fp-game .fp-small {font-size:.88rem;color:var(--fp-muted)}
@media(max-width:600px) {
 #fp-game .fp-config-grid,#fp-game .fp-options {grid-template-columns:1fr}
 #fp-game .fp-topbar {grid-template-columns:repeat(2,1fr)}
 #fp-game .fp-result-grid {grid-template-columns:1fr}
 #fp-game .fp-btn {padding:11px 14px}
}

