/* SAT Academy: a section of the dashboard (#viewSat). Everything is scoped under .sat and uses the dashboard's own tokens
   (--bg, --panel, --ink, --muted, --line, --ok, --bad, --radius), so it follows the same look and light / dark mode. */
.sat { max-width: 980px; margin-top: 12px; }
.sat .hero { position: static; overflow: visible; color: var(--ink); padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid #51007A; border-radius: var(--radius); }   /* overrides the homepage's .hero (site.css) */
.sat { color: var(--ink); }
.sat h1, .sat .hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2; letter-spacing: 0; margin: 6px 0; color: var(--ink); }
.sat h2 { margin: 0 0 10px; font-size: 1.15rem; }
.sat p { line-height: 1.6; }
.sat .muted { color: var(--muted); font-size: 0.875rem; }
.sat .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.sat .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.sat .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.sat .panel + .panel { margin-top: 12px; }
.sat .grid > .panel + .panel { margin-top: 0; }
.sat .stat { font-size: 1.8rem; font-weight: 750; margin: 4px 0; color: var(--ink); }
.sat button, .sat .button { font: inherit; cursor: pointer; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: var(--radius); padding: 8px 16px; font-weight: 600; min-height: 38px; text-decoration: none; display: inline-flex; align-items: center; }
.sat button.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); font-weight: 500; }
.sat button:disabled { opacity: 0.45; cursor: not-allowed; }
.sat .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sat .choices { display: grid; gap: 8px; margin-top: 16px; }
.sat .choice { text-align: left; justify-content: flex-start; background: var(--panel); color: var(--ink); border: 1px solid var(--line); font-weight: 500; padding: 10px 14px; min-height: 0; }
.sat .choice:hover:not(:disabled) { border-color: var(--ink); }
.sat .choice.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sat .choice.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--panel)); }
.sat .choice.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--panel)); }
.sat .track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 10px 0 14px; }
.sat .track > div { height: 100%; background: var(--ink); transition: width .2s; }
.sat .question { font-size: 1.1rem; font-weight: 600; white-space: pre-line; line-height: 1.55; }
.sat .passage { background: var(--bg); border-left: 3px solid var(--line); padding: 10px 14px; margin: 14px 0; white-space: pre-line; line-height: 1.7; }
.sat .feedback { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.sat .feedback p { margin: 4px 0; }
.sat .small { font-size: 0.8125rem; color: var(--muted); }
.sat .scoreline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.sat .pill { display: inline-block; font-size: 0.75rem; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.sat .list { display: grid; gap: 6px; }
.sat .list > div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sat .list > div:last-child { border-bottom: 0; }
@media (max-width: 600px) { .sat .hero, .sat .panel { padding: 14px; } }

.sat .sat-sensor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.sat .sat-sensor select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.sat .sat-sensor button { min-height: 34px; padding: 6px 12px; }

/* SAT learning sections and vocabulary flashcards */
.sat .sat-flashcard { min-height: 175px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:22px; margin:16px 0; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); }
.sat .sat-flashcard h2 { margin-bottom:12px; }
.sat .sat-flashcard p { max-width:560px; }

/* the quick games (Word Sprint, Number Rush): tap-only, big targets */
.sat .sg-launches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sat .sg-launch { display: grid; gap: 4px; justify-items: start; text-align: left; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid #51007A; padding: 14px 16px; font-weight: 500; min-height: 0; }
.sat .sg-launch:hover { border-color: var(--ink); border-left-color: #51007A; }
.sat .sg-launch b { font-size: 1.1rem; }
.sat .sg-icon { font-size: 1.4rem; font-weight: 800; color: #7b2cbf; }
.sat .sg-hud { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sat .sg-hud .sg-title { font-weight: 800; font-size: 1.15rem; margin-right: auto; }
.sat .sg-hud .sg-quit { min-height: 32px; padding: 4px 12px; }
.sat .sg-streak.hot { color: #c2410c; font-weight: 700; }
.sat .sg-time { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 12px 0 16px; }
.sat .sg-time > div { height: 100%; background: var(--ok); transition: width .1s linear; }
.sat .sg-time > div.low { background: var(--bad); }
.sat .sg-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sat .sg-prompt { font-size: 1.3rem; line-height: 1.5; margin: 0 0 18px; font-weight: 600; }
.sat .sg-blank { display: inline-block; min-width: 4em; border-bottom: 3px solid #7b2cbf; color: transparent; }
.sat .sg-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sat .sg-opt { justify-content: center; min-height: 64px; font-size: 1.15rem; background: var(--panel); color: var(--ink); border: 2px solid var(--line); font-weight: 600; touch-action: manipulation; }
.sat .sg-opt:hover { border-color: var(--ink); }
.sat .sg-opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, var(--panel)); }
.sat .sg-opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 18%, var(--panel)); animation: sg-shake .3s; }
.sat .sg-pop { position: absolute; right: 18px; top: 12px; font-weight: 800; font-size: 1.3rem; pointer-events: none; animation: sg-rise .7s ease-out forwards; }
.sat .sg-pop.good { color: var(--ok); } .sat .sg-pop.bad { color: var(--bad); } .sat .sg-pop.lvl { color: #7b2cbf; top: 40px; }
.sat .sg-tip { text-align: center; margin-top: 12px; }
@keyframes sg-rise { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-28px); } }
@keyframes sg-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 600px) { .sat .sg-opts { grid-template-columns: 1fr; } .sat .sg-prompt { font-size: 1.1rem; } }
