:root {
  color-scheme: light;
  --bg: #d8d9df;
  --card: #f4f4f5;
  --text: #111319;
  --muted: #505562;
  --primary: #090b10;
  --primary-pressed: #000000;
  --border: #e6e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tajawal", Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  max-width: 600px;
  margin: 44px auto;
  padding: 10px;
  position: relative;
}

.lang-toggle-floating {
  position: absolute;
  top: -30px;
  inset-inline-start: 10px;
  background: #ffffff;
  color: #1b1f2a;
  border: 1px solid #d4d6df;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.card {
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
}

.hidden {
  display: none;
}

h2 {
  margin: 0;
  font-size: 2rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.home-content {
  display: grid;
  gap: 10px;
  text-align: center;
}

.home-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.35rem;
}

.home-section-label {
  margin: 14px 0 8px;
  font-size: 1.6rem;
}

.muted,
.context,
.progress {
  color: var(--muted);
  line-height: 1.6;
}

.progress {
  font-weight: 700;
  margin-bottom: 10px;
}

.question {
  font-size: 1.2rem;
}

.options {
  display: grid;
  gap: 12px;
}

button {
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 14px 16px;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid #88b0ff;
  outline-offset: 2px;
}

.start-random-button {
  width: 100%;
  min-height: 84px;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 18px;
}

.start-random-button:active {
  background: var(--primary-pressed);
}

.option-button {
  background: #f2f6ff;
  color: #072364;
  border: 1px solid #cfdcff;
  text-align: start;
  min-height: 72px;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.actions button {
  background: var(--primary);
  color: #fff;
}

.actions button:active {
  background: var(--primary-pressed);
}

.actions .secondary {
  background: #eff3ff;
  color: #153b9d;
  border: 1px solid #c6d5ff;
}

ul,
ol {
  padding-inline-start: 22px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .app-shell {
    margin: 36px auto;
  }

  .card {
    padding: 22px 16px;
  }

  .home-title {
    font-size: 2.1rem;
  }

  .home-subtitle {
    font-size: 1.1rem;
  }

  .home-section-label {
    font-size: 1.25rem;
  }

  .start-random-button {
    font-size: 1.4rem;
    min-height: 74px;
  }
}
