:root {
  --bg: #0b1020; --card: #141a30; --text: #eef1ff; --muted: #8b93b8;
  --accent: #ffd54a; --green: #38d98a; --red: #ff5470;
  --radius: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, "SF Arabic", "Segoe UI", Tahoma, sans-serif; }
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#app { max-width: 560px; margin: 0 auto; padding: 16px; }
.screen { min-height: 80vh; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
h1 { font-size: 2.2rem; margin: 0; color: var(--accent); }
h2 { margin: 0; }
.muted { color: var(--muted); font-size: .9rem; }
.big { font-size: 2.4rem; font-weight: 700; }
input { background: var(--card); color: var(--text); border: 1px solid #2a3358;
  border-radius: var(--radius); padding: 14px; font-size: 1.05rem; width: 100%; }
button { border: 0; border-radius: var(--radius); padding: 14px 18px; font-size: 1.05rem;
  background: var(--card); color: var(--text); cursor: pointer; }
button.primary { background: var(--accent); color: #101010; font-weight: 700; width: 100%; }
button:active { transform: scale(.98); }
.pill { background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.row { display: flex; gap: 8px; }
.hero { text-align: center; }
.langs { display: flex; gap: 8px; justify-content: center; }
.langs button { padding: 8px 16px; font-size: .9rem; }
.hint { color: var(--muted); min-height: 1.2em; font-size: .85rem; }
.qhead { display: flex; justify-content: space-between; align-items: center; }
video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16/9; }
#questionText { font-size: 1.3rem; font-weight: 600; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices button { padding: 22px; font-size: 1.2rem; font-weight: 700; }
.choices button.picked { outline: 3px solid var(--accent); }
.choices button.correct { background: var(--green); color: #052; }
.choices button.wrong { background: var(--red); color: #400; }
#countdown { color: var(--accent); }
[dir="ltr"] .choices { direction: ltr; }
