.qq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 30px 8px;
}
.qq-home {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f9fdfbf0;
  border: 2px solid #9cc8bc;
  outline: 1px solid #d3e8e0;
  outline-offset: -6px;
  border-radius: 14px;
  padding: 22px 18px;
}
.qq-lead {
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
  color: #2e4b41;
}
.qq-label {
  font-size: 14px;
  font-weight: 700;
  color: #0b4f3e;
}
.qq-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1.5px solid #9cc8bc;
  background: #fdfefc;
  color: #2e2620;
  font-family: inherit;
}
.qq-or {
  text-align: center;
  color: #5e8f82;
  font-size: 14px;
}
.qq-or:before,
.qq-or:after {
  content: "\2014";
  color: #b7dccf;
  margin: 0 8px;
}
.qq-primary {
  width: 100%;
  text-align: center;
  padding: 13px;
  font-size: 16px;
}
.qq-error {
  color: #9e3b2b;
  font-size: 14px;
  margin: 0;
}
.qq-note {
  font-size: 13px;
  color: #5e8f82;
  margin: 0;
  text-align: center;
}
.qq-loading {
  text-align: center;
  padding: 32px 0;
  font-size: 15px;
  color: #0b4f3e;
}
.qq-quiz,
.qq-done {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f9fdfbf0;
  border: 2px solid #9cc8bc;
  outline: 1px solid #d3e8e0;
  outline-offset: -6px;
  border-radius: 14px;
  padding: 18px 14px;
}
.qq-band {
  text-align: center;
  padding: 10px 0;
  background: linear-gradient(180deg, #e3f2ecf2, #d5ebe1f2);
  border-top: 1.5px solid #0f766e;
  border-bottom: 1.5px solid #0f766e;
  border-radius: 4px;
}
.qq-surah {
  font-size: 21px;
  font-weight: 800;
  color: #14422f;
}
.qq-surah:before {
  content: "\2741  ";
  color: #0f766e;
}
.qq-surah:after {
  content: " \2741";
  color: #0f766e;
}
.qq-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #0b4f3e;
  min-height: 30px;
  padding: 0 2px;
}
.qq-timer {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: #0e5b43;
  border-radius: 999px;
  min-width: 46px;
  text-align: center;
  padding: 3px 10px;
  border: 2px solid #0a4634;
}
.qq-timer.is-low {
  background: #9e3b2b;
  border-color: #7c2d22;
}
.qq-ayah {
  font-size: 25px;
  line-height: 2.15;
  text-align: justify;
  margin: 0;
  color: #241c12;
  background: #fdfefcf2;
  border: 1.5px solid #b7dccf;
  box-shadow:
    inset 0 0 0 3px #fdfefcf2,
    inset 0 0 0 4px #9cc8bc;
  border-radius: 10px;
  padding: 18px 16px;
}
.qq-w {
  border-radius: 8px;
  padding: 0 2px;
  transition: background 0.12s;
}
.qq-w.is-active {
  background: #cde9dd;
}
.qq-w.is-answer {
  background: #dcefe2;
  color: #0e5b43;
  font-weight: 800;
}
.qq-aya-num {
  color: #0f766e;
  font-size: 23px;
}
.qq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qq-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: right;
  font-family: inherit;
  font-size: 21px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid #9cc8bc;
  background: #fffdf4f0;
  color: #2e2620;
  cursor: pointer;
}
.qq-opt:not(:disabled):hover,
.qq-opt:not(:disabled):focus-visible {
  border-color: #0e5b43;
  background: #eef7f1;
  outline: none;
}
.qq-opt:disabled {
  cursor: default;
}
.qq-opt-num {
  color: #5e8f82;
  font-size: 16px;
}
.qq-opt.is-correct {
  border-color: #0e5b43;
  background: #dff0e6;
  color: #0b4433;
  font-weight: 800;
}
.qq-opt.is-wrong {
  border-color: #9e3b2b;
  background: #f9e9e5;
  color: #7c2d22;
}
.qq-mark {
  margin-inline-start: auto;
  font-weight: 800;
}
.qq-hint {
  font-size: 13px;
  color: #5e8f82;
  margin: 0;
  text-align: center;
}
.qq-replay {
  align-self: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: #0e5b43;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}
.qq-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qq-verdict {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.qq-verdict.is-right {
  color: #0e5b43;
}
.qq-verdict.is-bad {
  color: #9e3b2b;
}
.qq-score {
  font-size: 46px;
  font-weight: 800;
  color: #0e5b43;
  margin: 6px 0 0;
}
@media (min-width: 768px) {
  .qq-ayah {
    font-size: 29px;
  }
  .qq-opt {
    font-size: 23px;
  }
  .qq-surah {
    font-size: 24px;
  }
}
.qq-ayah,
.qq-opt,
.qq-surah,
.qq-seg-text {
  font-family:
    Amiri Quran,
    Segoe UI,
    Tahoma,
    serif;
}
.qq-clips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.qq-clip-btn {
  font-size: 0.95rem;
  padding: 6px 12px;
}
.qq-clip-tag {
  margin-inline-start: 10px;
  font-size: 0.85rem;
  opacity: 0.85;
}
.qq-levels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 12px;
}
.qq-level-btn {
  padding: 10px 14px;
  border: 1px solid #b7dccf;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  text-align: right;
  cursor: pointer;
}
.qq-level-btn.is-active {
  border-color: #0f766e;
  background: #e3f2ec;
  font-weight: 600;
}
.qq-seg {
  margin-top: 14px;
  border: 1px dashed #b7dccf;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7fbf9;
}
.qq-seg-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #2e4b41;
}
.qq-seg-text {
  font-size: 19px;
  line-height: 2.1;
  margin: 0;
  color: #241c12;
}
.qq-exit {
  margin-top: 14px;
}
.qq {
  position: relative;
}
.qq-credit {
  position: relative;
  z-index: 1;
  background: #f9fdfbe6;
  border-radius: 10px;
  padding: 4px 6px;
}
.qq-orn {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.qq-orn-img {
  position: absolute;
  transform: translate(-50%);
  animation: qq-drift-a 26s ease-in-out infinite alternate;
}
.qq-orn-img.k1 {
  animation-name: qq-drift-b;
}
.qq-orn-img.k2 {
  animation-name: qq-drift-c;
}
@keyframes qq-drift-a {
  0% {
    transform: translate(-50%, -16px);
  }
  to {
    transform: translate(calc(-50% + 10px), 16px);
  }
}
@keyframes qq-drift-b {
  0% {
    transform: translate(calc(-50% - 9px), 14px);
  }
  to {
    transform: translate(calc(-50% + 9px), -14px);
  }
}
@keyframes qq-drift-c {
  0% {
    transform: translate(-50%, 12px);
  }
  to {
    transform: translate(calc(-50% - 10px), -12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .qq-orn-img {
    animation: none;
  }
}
.qq-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 12px 26px;
  background: #f9fdfbe6;
  border-radius: 14px;
}
.qq-hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #14422f;
  margin: 0 0 8px;
  line-height: 1.5;
}
.qq-hero-title:after {
  content: "";
  display: block;
  width: 110px;
  height: 3px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, #9cc8bc 20%, #0f766e 50%, #9cc8bc 80%, transparent);
  border-radius: 2px;
}
.qq-hero-sub {
  font-size: 15px;
  line-height: 1.9;
  color: #2e4b41;
  margin: 10px auto 0;
  max-width: 34em;
}
.qq-home,
.qq-quiz,
.qq-done {
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .qq-hero-title {
    font-size: 42px;
  }
}
.qq {
  font-family:
    Tajawal,
    Segoe UI,
    Tahoma,
    sans-serif;
}
.qq-hero-title,
.tt-logo,
.qq-surah,
.qq-score,
.tt-stage-name,
.tt-cert-title {
  font-family: Cairo, Tajawal, Tahoma, sans-serif;
}
.qq-ayah,
.qq-opt,
.qq-seg-text {
  font-family:
    Amiri Quran,
    Segoe UI,
    Tahoma,
    serif;
}
.tt-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(160deg, #0b4f3e, #0f766e);
  border: 2px solid #14a086;
  outline: 1px solid rgba(20, 160, 134, 0.45);
  outline-offset: -7px;
  border-radius: 16px;
  padding: 20px 18px;
}
.tt-hero-text {
  text-align: center;
}
.tt-logo {
  font-size: 52px;
  font-weight: 800;
  color: #f6efda;
  margin: 0;
  line-height: 1.35;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.tt-logo:after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 6px auto 0;
  background: linear-gradient(90deg, transparent, #bfe6dc 20%, #7fd4c0 50%, #bfe6dc 80%, transparent);
  border-radius: 2px;
}
.tt-tagline {
  font-size: 15px;
  line-height: 1.9;
  color: #dcefe6;
  margin: 10px 0 0;
}
.tt-hero-asser {
  width: 126px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tt-asser-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 3px solid #f6efda;
  background: #fff;
}
.tt-asser-bubble {
  margin: 8px 0 0;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.7;
  color: #0b4f3e;
  background: #f6efda;
  border-radius: 10px;
  padding: 6px 8px;
}
@media (min-width: 768px) {
  .tt-logo {
    font-size: 64px;
  }
  .tt-hero-asser {
    width: 150px;
  }
  .tt-asser-img {
    width: 128px;
    height: 128px;
  }
}
.tt-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1.5px dashed #b7dccf;
  padding-top: 12px;
}
.tt-progress-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tt-progress-name {
  font-weight: 700;
  font-size: 14.5px;
  color: #14422f;
}
.tt-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #dcebe3;
  overflow: hidden;
}
.tt-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #14a086);
}
.tt-progress-num {
  font-size: 12.5px;
  color: #0b4f3e;
}
.tt-stages {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tt-stage-card {
  background: #f9fdfbf0;
  border: 2px solid #0f766e;
  outline: 1px solid rgba(15, 118, 110, 0.35);
  outline-offset: -6px;
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tt-stage-card.is-locked {
  border-color: #b7dccf;
  opacity: 0.96;
}
.tt-stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tt-stage-img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 2.5px solid #0f766e;
  background: #fff;
  flex-shrink: 0;
}
.tt-stage-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tt-stage-name {
  font-size: 20px;
  font-weight: 800;
  color: #0b4f3e;
}
.tt-stage-sub {
  font-size: 13.5px;
  color: #2e4b41;
}
.tt-stage-timer {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f766e;
}
.tt-locked-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #0b4f3e;
  background: #eff6f2;
  border: 1px dashed #b7dccf;
  border-radius: 8px;
  padding: 8px 10px;
}
.tt-soon {
  display: inline-block;
  font-weight: 800;
  color: #fff;
  background: #0f766e;
  border-radius: 999px;
  padding: 1px 10px;
  margin-inline-end: 6px;
  font-size: 12.5px;
}
.tt-lvl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 5px;
  margin: 6px 0 2px;
}
.tt-lvl {
  aspect-ratio: 1;
  border: 1px solid var(--teal-soft);
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.tt-lvl.is-pass {
  background: #0b4f3e;
  border-color: #0b4f3e;
  color: #fff;
}
.tt-lvl.is-active {
  outline: 2px solid var(--gold, #c9a227);
  outline-offset: 1px;
}
.tt-lvl.is-locked {
  opacity: 0.75;
  cursor: default;
  background: repeating-linear-gradient(45deg, #f6f3ec, #f6f3ec 6px, #eee9dc 6px 12px);
  color: #8a8577;
}
.tt-lvl-info {
  margin-top: 2px;
}
.tt-lvl.tt-lvl-wide {
  aspect-ratio: auto;
  grid-column: span 4;
  padding: 10px 6px;
  font-size: 14.5px;
}
.tt-lvl.is-pass:after {
  content: " \2713";
}
.tt-trial {
  border-color: var(--gold, #c9a227);
}
.tt-scope-btn {
  width: 100%;
}
.tt-scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--ivory-deep);
  border: 1px solid var(--teal-soft);
}
.tt-scope-actions {
  display: flex;
  gap: 8px;
}
.tt-scope-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.tt-chip {
  border: 1px solid var(--teal-soft);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.tt-chip.is-on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.tt-chip:disabled {
  opacity: 0.4;
  cursor: default;
}
.tt-gate {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--ivory-deep);
  border: 1px dashed var(--teal-soft);
  text-align: right;
}
.tt-gate-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.tt-gate-item {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.7;
}
.tt-gate-item.is-done {
  color: var(--teal);
}
.tt-fix-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-inline-end: 2px;
}
.tt-fix-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fdfefc;
  border: 1px solid #b7dccf;
  border-radius: 10px;
  padding: 8px 10px;
}
.tt-fix-ref {
  font-weight: 700;
  font-size: 14px;
  color: #14422f;
}
.tt-fix-word {
  font-size: 13.5px;
  color: #7c2d22;
}
.tt-fix-btn {
  margin-inline-start: auto;
  font-size: 13px;
}
.tt-cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tt-cert-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, #fdfbf3, #f7f1df);
  border: 2px solid #c9a227;
  border-radius: 12px;
  padding: 10px 12px;
}
.tt-cert-card.is-new {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px #0f766e26;
}
.tt-cert-title {
  font-weight: 800;
  font-size: 15.5px;
  color: #0b4f3e;
}
.tt-cert-meta {
  font-size: 13px;
  color: #0b4f3e;
}
.tt-fb {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef7f1;
  border: 1.5px solid #0f766e;
  border-radius: 12px;
  padding: 8px 12px;
}
.tt-fb-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 2px solid #0f766e;
  background: #fff;
  flex-shrink: 0;
}
.tt-fb-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tt-fb-phrase {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #0b4f3e;
}
.tt-fb .qq-verdict {
  text-align: right;
}
.tt-verdict {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.tt-verdict.is-pass {
  color: #0e5b43;
}
.tt-verdict.is-fail {
  color: #9e3b2b;
}
.qq-level-btn.is-locked {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f4f0e2;
}
.tt-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.tt-name-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1.5px solid #0b4f3e;
  border-radius: 10px;
  font-family: Tajawal, sans-serif;
  font-size: 16px;
  background: #fff;
}
.tt-quiz-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tt-resume {
  border: 2px solid #0e6b56;
  background: #eef7f1;
}

.tt-page {
  max-width: 760px;
  margin: 0 auto;
}
.tt-page-title {
  color: #0f766e;
  margin: 10px 0 12px;
  font-family: Cairo, Tajawal, sans-serif;
}
.tt-foot {
  font-size: 0.85rem;
  color: #0f766e;
  text-align: center;
}
.tt-foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  margin: 2px 0;
}
.tt-foot-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.tt-foot-strip {
  margin: 2px 0 0;
}
.tt-foot-link {
  background: none;
  border: none;
  padding: 0;
  color: #0f766e;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.qq-muta-reveal {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #d8cfc0;
  border-radius: 10px;
  background: #faf7f0;
  text-align: right;
}
.qq-muta-reveal .qq-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.qq-muta-cp {
  margin: 4px 0;
  line-height: 1.9;
}

.qq-muta-seg {
  margin: 2px 0 10px;
  font-size: 21px;
  line-height: 2.1;
  color: #241c12;
  font-family:
    Amiri Quran,
    Segoe UI,
    Tahoma,
    serif;
}
.qq-muta-hl {
  background: #fde68a;
  border-radius: 6px;
  padding: 1px 3px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ===== Tamteen premium experience layer ===== */
:root {
  --teal: #0f766e;
  --teal-deep: #0b4f3e;
  --teal-bright: #14b8a6;
  --teal-soft: #b7dccf;
  --ivory: #f8f5ef;
  --ivory-deep: #f1eadb;
  --ink: #2e2620;
  --ink-soft: #5e6b62;
  --gold: #c9a227;
}
html {
  background: #f3efe6;
}
body {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(20, 184, 166, 0.12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%230F766E' stroke-opacity='.055'%3E%3Cpath d='M42 10l8 24 24 8-24 8-8 24-8-24-24-8 24-8z'/%3E%3Ccircle cx='42' cy='42' r='16'/%3E%3C/g%3E%3C/svg%3E")
      fixed,
    #f8f5ef;
}
@keyframes tt-screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tt-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes tt-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tt-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes tt-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.35);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(15, 118, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
  }
}
@keyframes tt-score-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.qq-home,
.tt-hero,
.tt-stages,
.qq-quiz,
.qq-done {
  animation: tt-screen-in 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
/* Hero */
.tt-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #083c30 0%, #0b4f3e 45%, #0f766e 100%);
  border: none;
  outline: none;
  box-shadow:
    0 18px 40px -18px rgba(11, 79, 62, 0.55),
    0 2px 8px rgba(11, 79, 62, 0.18);
  padding: 26px 18px 30px;
}
.tt-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Cpath d='M42 10l8 24 24 8-24 8-8 24-8-24-24-8 24-8z'/%3E%3Ccircle cx='42' cy='42' r='16'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.tt-hero:after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  left: -120px;
  top: -140px;
  box-shadow:
    0 0 0 26px rgba(255, 255, 255, 0.045),
    0 0 0 60px rgba(255, 255, 255, 0.025);
  pointer-events: none;
  animation: tt-bob 9s ease-in-out infinite;
}
.tt-hero > * {
  position: relative;
  z-index: 1;
}
.tt-logo {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
}
.tt-asser-img {
  width: 128px;
  height: 128px;
  border: 3px solid #f6efda;
  box-shadow:
    0 0 0 5px rgba(246, 239, 218, 0.22),
    0 10px 24px -8px rgba(0, 0, 0, 0.45);
  animation:
    tt-pop-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1.2) 0.15s both,
    tt-bob 5.5s ease-in-out 1.2s infinite;
}
.tt-asser-bubble {
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.3);
  animation: tt-fade-up 0.4s ease 0.45s both;
}
/* Stage cards */
.tt-stage-card {
  border: 1.5px solid rgba(15, 118, 110, 0.5);
  outline: none;
  background: linear-gradient(180deg, #fdfefd, #f6fbf8);
  box-shadow:
    0 10px 26px -14px rgba(11, 79, 62, 0.3),
    0 1.5px 4px rgba(11, 79, 62, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  animation: tt-fade-up 0.4s ease both;
}
.tt-stage-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px -16px rgba(11, 79, 62, 0.4),
    0 2px 6px rgba(11, 79, 62, 0.1);
  border-color: var(--teal);
}
.tt-stage-card:nth-child(2) {
  animation-delay: 0.07s;
}
.tt-stage-card:nth-child(3) {
  animation-delay: 0.14s;
}
.tt-stage-img {
  width: 88px;
  height: 88px;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px var(--teal),
    0 6px 14px -4px rgba(11, 79, 62, 0.35);
}
.tt-stage-name {
  font-size: 22px;
}
.tt-stages {
  gap: 16px;
}
/* Buttons */
.file-button {
  font-family: inherit;
  font-weight: 800;
  font-size: 15.5px;
  color: #fff;
  background: linear-gradient(160deg, #0f766e, #0b4f3e);
  border: 1.5px solid #0a4634;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow:
    0 6px 16px -6px rgba(11, 79, 62, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.file-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px -8px rgba(11, 79, 62, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.06);
}
.file-button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}
.file-button[data-variant="secondary"],
.file-button.qq-exit,
.file-button.tt-fix-btn {
  background: #f1f7f3;
  color: var(--teal-deep);
  border-color: var(--teal-soft);
  box-shadow: 0 2px 6px rgba(11, 79, 62, 0.08);
}
.file-button[data-variant="secondary"]:hover:not(:disabled),
.file-button.qq-exit:hover:not(:disabled),
.file-button.tt-fix-btn:hover:not(:disabled) {
  background: #e4f1ea;
  filter: none;
}
.file-button:disabled {
  opacity: 0.55;
  cursor: default;
}
/* Level grid journey */
.tt-lvl {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}
.tt-lvl:not(.is-locked):hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 5px 12px -4px rgba(11, 79, 62, 0.4);
  z-index: 1;
}
.tt-lvl.is-pass {
  background: linear-gradient(150deg, #0f766e, #0b4f3e);
  border-color: #0a4634;
  box-shadow: 0 3px 8px -2px rgba(11, 79, 62, 0.4);
}
.tt-lvl.is-active {
  outline: 2px solid var(--gold);
  animation: tt-pulse-ring 2.4s ease-out infinite;
}
/* Session (calm) */
.qq-quiz,
.qq-done {
  border: 1.5px solid var(--teal-soft);
  outline: none;
  background: linear-gradient(180deg, #fdfefdf2, #f8fcf9f2);
  box-shadow: 0 12px 30px -18px rgba(11, 79, 62, 0.28);
}
.qq-ayah {
  box-shadow:
    inset 0 0 0 3px #fdfefcf2,
    inset 0 0 0 4px var(--teal-soft),
    0 6px 18px -10px rgba(11, 79, 62, 0.2);
}
.qq-opt {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}
.qq-opt:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(11, 79, 62, 0.35);
}
.qq-opt:not(:disabled):active {
  transform: scale(0.985);
}
.qq-opt.is-correct,
.qq-opt.is-wrong {
  animation: tt-fade-up 0.25s ease both;
}
/* Feedback presence */
.tt-fb {
  background: linear-gradient(150deg, #eff8f2, #e2f2e9);
  box-shadow: 0 8px 20px -10px rgba(11, 79, 62, 0.3);
  animation: tt-fade-up 0.3s ease both;
}
.tt-fb-img {
  width: 64px;
  height: 64px;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  animation: tt-pop-in 0.38s cubic-bezier(0.2, 0.7, 0.3, 1.25) both;
}
.tt-fb-phrase {
  animation: tt-fade-up 0.3s ease 0.08s both;
}
/* Results */
.qq-done .qq-score {
  animation: tt-score-pop 0.5s cubic-bezier(0.2, 0.7, 0.3, 1.2) both;
  text-shadow: 0 3px 10px rgba(11, 79, 62, 0.25);
}
.tt-verdict {
  animation: tt-fade-up 0.35s ease both;
}
/* Certificates keep gold */
.tt-cert-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.tt-cert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(201, 162, 39, 0.45);
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qq-home,
  .tt-hero,
  .tt-stages,
  .qq-quiz,
  .qq-done,
  .tt-stage-card,
  .tt-asser-img,
  .tt-asser-bubble,
  .tt-fb,
  .tt-fb-img,
  .tt-fb-phrase,
  .qq-done .qq-score,
  .tt-verdict,
  .qq-opt.is-correct,
  .qq-opt.is-wrong,
  .tt-hero:after,
  .tt-lvl.is-active {
    animation: none !important;
  }
  .file-button,
  .tt-stage-card,
  .tt-lvl,
  .qq-opt,
  .tt-cert-card {
    transition: none !important;
  }
}

/* ===== entrance visibility pass ===== */
@keyframes tt-screen-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tt-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.qq-home,
.tt-hero,
.tt-stages,
.qq-quiz,
.qq-done {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 0.8, 0.3, 1);
}
.tt-stage-card {
  animation: tt-fade-up 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.tt-stage-card:nth-child(2) {
  animation-delay: 0.12s;
}
.tt-stage-card:nth-child(3) {
  animation-delay: 0.24s;
}
.tt-asser-img {
  animation:
    tt-pop-in 0.6s cubic-bezier(0.2, 0.7, 0.3, 1.2) 0.1s both,
    tt-bob 5.5s ease-in-out 1.2s infinite;
}
.tt-asser-bubble {
  animation: tt-fade-up 0.45s ease 0.5s both;
}
.qq-opt {
  animation: tt-fade-up 0.4s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.qq-opt:nth-of-type(2) {
  animation-delay: 0.08s;
}
.qq-opt:nth-of-type(3) {
  animation-delay: 0.16s;
}
.qq-opt:nth-of-type(4) {
  animation-delay: 0.24s;
}
.tt-lvl {
  animation: tt-fade-up 0.45s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.tt-lvl:nth-child(2) {
  animation-delay: 0.025s;
}
.tt-lvl:nth-child(3) {
  animation-delay: 0.05s;
}
.tt-lvl:nth-child(4) {
  animation-delay: 0.075s;
}
.tt-lvl:nth-child(5) {
  animation-delay: 0.1s;
}
.tt-lvl:nth-child(6) {
  animation-delay: 0.125s;
}
.tt-lvl:nth-child(7) {
  animation-delay: 0.15s;
}
.tt-lvl:nth-child(8) {
  animation-delay: 0.175s;
}
.tt-lvl:nth-child(9) {
  animation-delay: 0.2s;
}
.tt-lvl:nth-child(10) {
  animation-delay: 0.225s;
}
.tt-lvl:nth-child(11) {
  animation-delay: 0.25s;
}
.tt-lvl:nth-child(12) {
  animation-delay: 0.275s;
}
.tt-lvl:nth-child(13) {
  animation-delay: 0.3s;
}
.tt-lvl:nth-child(14) {
  animation-delay: 0.325s;
}
.tt-lvl:nth-child(15) {
  animation-delay: 0.35s;
}
.tt-lvl:nth-child(16) {
  animation-delay: 0.375s;
}
.tt-lvl:nth-child(17) {
  animation-delay: 0.4s;
}
.tt-lvl:nth-child(18) {
  animation-delay: 0.425s;
}
.tt-lvl:nth-child(19) {
  animation-delay: 0.45s;
}
.tt-lvl:nth-child(20) {
  animation-delay: 0.475s;
}
.tt-lvl:nth-child(21) {
  animation-delay: 0.5s;
}
.tt-lvl:nth-child(22) {
  animation-delay: 0.525s;
}
.tt-lvl:nth-child(23) {
  animation-delay: 0.55s;
}
.tt-lvl:nth-child(24) {
  animation-delay: 0.575s;
}
@media (prefers-reduced-motion: reduce) {
  .qq-opt,
  .tt-lvl {
    animation: none !important;
  }
}
.qq-backtop {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 2px 0 0;
}
.qq-backtop-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #0b6b5e;
  background: rgba(11, 107, 94, 0.07);
  border: 1.5px solid #0b6b5e;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  line-height: 1.7;
}
.qq-backtop-btn:hover {
  background: rgba(11, 107, 94, 0.13);
}
.qq-backtop-btn:active {
  transform: translateY(1px);
}
html[data-theme="dark"] .qq-backtop-btn {
  color: #dcefe6;
  background: rgba(255, 255, 255, 0.07);
  border-color: #8ee3da;
}
html[data-theme="dark"] .qq-backtop-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}
.tt-asser-bubble:empty {
  min-height: 2.4em;
}
