/* invest-iq.css — Investor IQ Challenge game. Uses global.css tokens. */

.iq-game { max-width: 640px; margin: 0 auto; }
.iq-screen { animation: iq-fade .3s ease; }
@keyframes iq-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes iq-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Start ---------- */
.iq-start { text-align: center; padding: 1rem 0 2rem; }
.iq-emoji { font-size: 3.5rem; margin-bottom: .5rem; }
.iq-start h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.iq-best { margin: 1rem auto; padding: .6rem 1.1rem; border-radius: 100px; background: var(--bg); display: inline-block; font-size: .95rem; }
.iq-start .btn-lg { margin-top: 1.25rem; }
.iq-fineprint { font-size: .78rem; margin-top: 1rem; }

/* ---------- HUD ---------- */
.iq-hud { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .9rem; }
.iq-hud-item { color: var(--muted); }
.iq-hud-item b { color: var(--ink); font-family: var(--ff-mono); }
.iq-streak b { color: var(--gold); }
.iq-score b { color: var(--teal); }

/* ---------- Timer + progress ---------- */
.iq-timer { height: 6px; border-radius: 100px; background: var(--bg); overflow: hidden; }
.iq-timer-bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 100px; }
.iq-progress { height: 4px; background: var(--bg); border-radius: 100px; margin: .6rem 0 1.25rem; overflow: hidden; }
.iq-progress-bar { height: 100%; width: 0; background: var(--blue); border-radius: 100px; transition: width .35s ease; }

/* ---------- Question + options ---------- */
.iq-question { font-size: 1.3rem; line-height: 1.4; margin-bottom: 1.25rem; }
.iq-options { display: grid; gap: .7rem; }
.iq-option {
  text-align: left; padding: .95rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
}
.iq-option:hover:not(:disabled) { border-color: var(--teal); background: var(--bg); }
.iq-option:active:not(:disabled) { transform: scale(.99); }
.iq-option:disabled { cursor: default; }
.iq-option.is-correct { border-color: var(--green); background: rgba(22,163,74,.10); font-weight: 600; }
.iq-option.is-wrong { border-color: var(--red); background: rgba(220,38,38,.08); }

/* ---------- Feedback ---------- */
.iq-feedback { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .92rem; line-height: 1.5; background: var(--bg); border-left: 4px solid var(--border); }
.iq-feedback.is-correct { border-left-color: var(--green); }
.iq-feedback.is-wrong { border-left-color: var(--red); }
.iq-next { margin-top: 1rem; }

/* ---------- Result ---------- */
.iq-result { text-align: center; padding: 1rem 0; }
.iq-rank-badge { font-size: 4rem; animation: iq-pop .5s ease; }
.iq-result h2 { font-size: 1.8rem; margin: .25rem 0; }
.iq-rank-sub { max-width: 420px; margin: 0 auto 1rem; }
.iq-score-big { font-family: var(--ff-mono); }
.iq-score-big b { font-size: 3rem; font-weight: 700; color: var(--teal); }
.iq-score-big span { display: block; font-size: .85rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.iq-score-line { font-size: .9rem; margin-top: .5rem; }
.iq-score-line b { color: var(--gold); }
.iq-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }

.iq-cta { text-align: left; padding: 1.5rem; margin-top: 1rem; }
.iq-cta h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.iq-lead-form { margin-top: 1rem; display: grid; gap: .75rem; }
.iq-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.iq-lead-form input[type=text]:not([name=website]), .iq-lead-form input[type=tel] {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 8px; font: inherit;
}
@media (max-width: 520px) { .iq-lead-row { grid-template-columns: 1fr; } }
