/* Islamic Quiz — mobile-first, design-aligned */
:root {
  --green-900: #004D40;
  --green-800: #00695C;
  --gold: #FFC107;
  --gold-dark: #E0A800;
  --white: #ffffff;
  --gray-50: #f6f7f8;
  --gray-100: #eceff1;
  --gray-200: #dfe3e6;
  --gray-600: #546e7a;
  --gray-900: #263238;
  --purple-900: #4A148C;
  --purple-700: #6A1B9A;
  --hint-bg: #FFF9C4;
  --correct-bg: #E8F5E9;
  --correct-text: #2E7D32;
  --danger: #c62828;
  --easy: #2e7d32;
  --medium: #ef6c00;
  --hard: #c62828;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ad-min-h: 90px;
  --sticky-ad-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Site header (home / archive) ---------- */
.site-header {
  background: var(--green-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand__icon {
  font-size: 2rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1.28rem;
}

.brand__tag {
  font-size: 0.84rem;
  opacity: 0.9;
  color: var(--gold);
}

@media (max-width: 575.98px) {
  .brand {
    gap: 10px;
  }
  .brand__icon {
    font-size: 1.8rem;
  }
  .brand__name {
    font-size: 1.15rem;
  }
  .brand__tag {
    font-size: 0.76rem;
  }
}

.site-nav {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  padding-bottom: 8px;
}

.site-nav a {
  opacity: 0.95;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-link--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.site-nav.is-open {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding-bottom: 8px;
}

.js-enabled .site-nav {
  display: none;
}

.js-enabled .site-nav.is-open {
  display: flex;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 16px;
    font-size: 0.82rem;
  }
}

.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.js-enabled .nav-toggle {
  display: flex;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 22px;
  background: var(--white);
  border-radius: 2px;
}

.header-search {
  font-size: 1.2rem;
  padding: 8px;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-auth {
  margin-left: 4px;
}

.header-user-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.header-user-btn:hover,
.header-user-btn:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.header-auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-mobile-list {
  width: 100%;
}

.nav-mobile-link {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
}

.btn--sm {
  padding: 9px 14px;
  font-size: 0.86rem;
}

@media (min-width: 900px) {
  #mainNavbar {
    width: auto;
    margin-top: 0;
    padding: 0;
    background: transparent;
  }

  .nav-mobile-list {
    width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0 !important;
  }

  .nav-mobile-list .nav-item {
    width: auto;
  }

  .nav-mobile-link {
    width: auto;
    min-height: 0;
    padding: 8px 10px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    white-space: nowrap;
  }

  .header-search {
    margin-left: 0;
  }
  .site-header__inner {
    flex-wrap: nowrap;
  }
  .site-nav,
  .js-enabled .site-nav {
    display: flex;
    flex: 1;
    width: auto;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding-bottom: 0;
  }

  .header-auth {
    width: auto;
    margin-left: 6px;
  }

  .header-auth-actions {
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .header-auth .btn,
  .header-auth-actions .btn {
    width: auto;
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  #mainNavbar {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
  }

  .nav-mobile-list {
    display: grid;
    gap: 8px;
    margin-bottom: 10px !important;
  }

  .nav-mobile-list .nav-item {
    width: 100%;
  }

  .nav-mobile-link {
    min-height: 46px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .header-search {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
  }

  .header-auth {
    width: 100%;
    margin-left: 0;
  }

  .header-auth .btn,
  .header-auth-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .header-auth-actions {
    width: 100%;
    display: grid;
    gap: 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, #00352c 100%);
  color: var(--white);
  padding: 36px 18px 48px;
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 193, 7, 0.08), transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 20 L50 20 L38 28 L42 43 L30 35 L18 43 L22 28 L10 20 L25 20 Z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p {
  margin: 0 0 22px;
  opacity: 0.92;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn--gold {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.btn--gold:hover {
  background: var(--gold-dark);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--gray-200);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Features row ---------- */
.features {
  max-width: 1120px;
  margin: -22px auto 0;
  padding: 0 18px 28px;
  position: relative;
  z-index: 2;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--white);
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 10px;
  align-items: center;
  text-align: left;
  padding: 4px 6px;
}

.feature__icon {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: #e8f5e9;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.feature__icon--learn { background: #e8f5e9; }
.feature__icon--fun { background: #ffebee; }
.feature__icon--track { background: #e3f2fd; }
.feature__icon--compete { background: #f3e5f5; }

.feature__label {
  font-weight: 600;
  font-size: 0.8rem;
  grid-column: 2;
  margin-bottom: 2px;
}

.feature__sub {
  font-size: 0.72rem;
  color: var(--gray-600);
  line-height: 1.25;
  grid-column: 2;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.home-main {
  background: var(--gray-50);
}

/* ---------- Sections ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.link-more {
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Cards grid (home + archive) ---------- */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quiz-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}

.quiz-card:hover {
  transform: translateY(-3px);
}

.quiz-card--locked {
  opacity: 0.62;
  filter: grayscale(18%);
}

.quiz-card--locked:hover {
  transform: none;
}

.quiz-card--target {
  border: 2px solid #c4b5fd;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.18);
}

.quiz-card__media {
  position: relative;
  aspect-ratio: 3/2;
  background: var(--gray-200);
}

/* Keep archive thumbnails perfectly uniform across all cards */
.archive-hero .quiz-card__media {
  aspect-ratio: 3/2;
  height: auto;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.archive-hero .quiz-card__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.quiz-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green-900);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.quiz-card__badge--easy {
  background: #12b76a;
}
.quiz-card__badge--medium {
  background: #7c3aed;
}
.quiz-card__badge--hard {
  background: #f79009;
}

.quiz-card__next {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #7c3aed;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.quiz-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-card__title {
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 6px;
}

.quiz-card__desc {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--gray-600);
  flex: 1;
}

.quiz-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.diff {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
}

.diff--easy {
  background: var(--easy);
}
.diff--medium {
  background: var(--medium);
}
.diff--hard {
  background: var(--hard);
}

.btn--block {
  width: 100%;
}

.btn--green {
  background: var(--green-900);
  color: var(--white);
}

.btn--green:hover {
  background: var(--green-800);
}

.btn--purple {
  background: var(--purple-900);
  color: var(--white);
}

.btn--purple:hover {
  background: var(--purple-700);
}

/* ---------- Ramadan banner ---------- */
.banner-ramadan {
  max-width: 1120px;
  margin: 0 auto 8px;
  padding: 0 18px;
}

.banner-ramadan__inner {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.banner-ramadan__text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.banner-ramadan__icon {
  font-size: 2rem;
}

/* ---------- Leaderboard preview ---------- */
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lb-rank {
  font-weight: 800;
  width: 28px;
  text-align: center;
}

.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  object-fit: cover;
}

.lb-name {
  flex: 1;
  font-weight: 600;
}

.lb-city {
  font-size: 0.76rem;
  color: var(--gray-600);
  margin-top: 2px;
}

.lb-pts {
  font-weight: 700;
  color: var(--green-800);
}

.lb-me-card {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.lb-podium__card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 14px 10px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lb-podium__badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin: 0 auto 8px;
  background: #fff8e1;
  border: 1px solid #ffe082;
}

.lb-podium__card .lb-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
}

.lb-podium__card .lb-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}

.lb-podium__card .lb-city {
  font-size: 0.74rem;
  margin-bottom: 8px;
}

.lb-podium__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lb-podium__stats span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  background: #ecfeff;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  padding: 5px 6px;
}

@media (max-width: 720px) {
  .lb-podium {
    grid-template-columns: 1fr;
  }
}

.top-players-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-players-strip::-webkit-scrollbar {
  display: none;
}

.tp-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 145px;
}

.tp-rank {
  font-weight: 800;
  margin-bottom: 6px;
}

.tp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  margin: 0;
  object-fit: cover;
}

.tp-name {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-pts {
  font-size: 0.68rem;
  color: var(--gray-600);
}

.top-players-strip--home {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 8px;
}

.tp-item--compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #eef2f6;
}

.tp-item--compact .tp-rank {
  margin: 0;
  font-size: 0.95rem;
}

.tp-text {
  min-width: 0;
}

@media (max-width: 760px) {
  .hero {
    margin: 0;
    border-radius: 0;
  }
}

/* ---------- Archive ---------- */
.archive-hero {
  background: var(--white);
  padding: 24px 18px 8px;
}

.archive-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--gray-50);
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.search-field input {
  border: 0;
  background: transparent;
  flex: 1;
  font: inherit;
  outline: none;
}

.tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tab-chip {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.tab-chip.is-active {
  background: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
}

.sort-select {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font: inherit;
  font-weight: 600;
  background: var(--white);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 40px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 10px;
}

.pagination a {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.pagination .is-current {
  background: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
}

.journey-card {
  margin-bottom: 14px;
  border: 1px solid #e8defd;
  background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 12px;
}

.journey-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: #4b5563;
}

.journey-progress {
  height: 8px;
  border-radius: 999px;
  background: #ece7fb;
  overflow: hidden;
  margin-top: 8px;
}

.journey-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed 0%, #22c55e 100%);
}

.journey-card__cta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journey-card__label {
  font-size: 0.76rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.journey-card__title {
  font-weight: 800;
  color: #1f2937;
}

.journey-card__done {
  margin: 10px 0 2px;
  color: #166534;
  font-weight: 700;
}

/* Newsletter strip */
.newsletter {
  background: var(--green-900);
  color: var(--white);
  padding: 22px 18px;
  margin-top: 24px;
}

.newsletter__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter input[type="email"] {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 0;
  min-width: 220px;
  font: inherit;
}

/* ---------- Quiz app (mobile SPA) ---------- */
body.quiz-app {
  background: var(--gray-50);
  padding-bottom: calc(var(--sticky-ad-h) + env(safe-area-inset-bottom, 0px));
}

.quiz-app-header {
  background: var(--green-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}

@media (max-width: 767px) {
  .quiz-app-header {
    display: none;
  }
}

.quiz-app-header--purple {
  background: var(--purple-900);
}

.quiz-app-header__left,
.quiz-app-header__right {
  min-width: 44px;
  display: flex;
  justify-content: center;
}

.quiz-app-header__center {
  text-align: center;
  flex: 1;
}

.quiz-app-header .brand {
  justify-content: center;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 10px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.quiz-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 18px;
}

.quiz-mobile-back {
  display: none;
}

.quiz-mobile-toprow {
  display: none;
}

.quiz-mobile-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 6px 10px;
}

.quiz-mobile-user__avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quiz-mobile-user__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-900);
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .journey-card__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .journey-card__cta .btn {
    width: 100%;
  }

  .quiz-mobile-toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
  }

  #quiz-root {
    display: flex;
    justify-content: center;
  }

  #quiz-stage {
    width: 100%;
    max-width: 492px;
    margin: 0 auto;
  }

  .quiz-mobile-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    font-weight: 700;
    font-size: 0.86rem;
  }

  .quiz-shell > .ad-slot:first-of-type {
    margin-top: 6px !important;
  }
}

.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  place-items: center;
  z-index: 120;
  padding: 14px;
}

.profile-modal.is-open {
  display: grid;
}

.profile-modal__card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  padding: 18px;
  border: 1px solid rgba(0, 77, 64, 0.1);
}

.profile-modal__card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #10342f;
}

.profile-modal__card p {
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.profile-modal__card::before {
  content: "";
  display: block;
  height: 6px;
  margin: -18px -18px 14px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #00695c 0%, #00a889 55%, #26c6a6 100%);
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  background: #eff5f5;
  padding: 4px;
  border-radius: 12px;
}

.auth-switch__btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 10px;
  cursor: pointer;
  font-size: 0.81rem;
  color: #3f4b52;
  transition: all 0.18s ease;
}

.auth-switch__btn.is-active {
  border-color: rgba(0, 105, 92, 0.2);
  background: #fff;
  color: var(--green-900);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.auth-tab-pane {
  display: none;
}

.auth-tab-pane.is-active {
  display: block;
  animation: authFadeIn 0.2s ease;
}

.auth-tab-pane .form-field label {
  font-weight: 700;
  color: #30464f;
}

.auth-tab-pane .form-field input,
.auth-tab-pane .form-field select {
  border: 1px solid #d3dde2;
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
}

.auth-tab-pane .form-field input:focus,
.auth-tab-pane .form-field select:focus {
  outline: 0;
  border-color: #009a83;
  box-shadow: 0 0 0 3px rgba(0, 154, 131, 0.14);
}

.auth-tab-pane .btn--green.btn--block {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(0, 105, 92, 0.28);
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-modal__error {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 9px;
  padding: 8px 10px;
}

.quiz-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.quiz-meta-main {
  min-width: 0;
}

.quiz-meta-bar strong {
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1px;
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.quiz-meta-qcount {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 10px;
}

.quiz-meta-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quiz-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quiz-chip--level {
  background: #ede9fe;
  color: #5b21b6;
}

.quiz-chip--cat {
  background: #dcfce7;
  color: #166534;
}

.progress-wrap {
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-800), #26a69a);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-pct {
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-top: 4px;
}

.q-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  margin-bottom: 14px;
}

.q-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.35;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-btn {
  width: 100%;
  text-align: left;
  padding: 12px 44px 12px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.opt-btn:hover {
  border-color: #90a4ae;
  background: #f8fbfc;
}

.opt-btn:active {
  transform: scale(0.995);
}

.opt-btn:focus-visible {
  outline: 2px solid #26a69a;
  outline-offset: 2px;
}

.opt-btn.is-pending {
  border-color: var(--green-800);
  background: #e0f2f1;
}

.opt-btn:disabled {
  cursor: default;
}

.opt-btn.is-selected.is-correct {
  border-color: var(--green-900);
  background: var(--green-900);
  color: var(--white);
}

.opt-btn.is-selected.is-wrong {
  border-color: var(--danger);
  background: #ffebee;
  color: var(--danger);
}

.opt-btn.is-reveal-correct:not(.is-selected) {
  border-color: var(--correct-text);
  background: var(--correct-bg);
}

.opt-btn .check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
}

.opt-btn__letter {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid #7e8a97;
  color: #4a5563;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.opt-btn__text {
  flex: 1;
  min-width: 0;
}

.hint-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--hint-bg);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
}

.q-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.q-nav--single {
  grid-template-columns: 1fr;
}

.q-nav--right {
  display: flex;
  justify-content: flex-end;
  grid-template-columns: none;
}

.btn--ghost {
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-900);
}

/* Answer / explanation step */
.feedback-correct {
  background: var(--correct-bg);
  color: var(--correct-text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

.feedback-wrong {
  background: #ffebee;
  color: #b71c1c;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

.answer-line {
  margin-top: 8px;
  font-weight: 600;
  color: var(--gray-900);
}

.explain-box {
  background: var(--hint-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.explain-box h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.explain-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-900);
}

.auto-next {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 8px 0 4px;
}

/* Ad slots — fixed height CLS-safe */
.ad-slot {
  min-height: var(--ad-min-h);
  margin: 12px 0;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: 1px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray-600);
  overflow: hidden;
}

.ad-slot.is-loaded {
  border-style: solid;
}

.ad-slot--sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--sticky-ad-h);
  margin: 0;
  border-radius: 0;
  z-index: 30;
  background: #ffffff;
  color: #546e7a;
}

.ad-slot__inner {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.ad-slot--placeholder .ad-slot__inner {
  justify-content: center;
}

/* Result screen */
.result-hero {
  text-align: center;
  padding: 6px 0 4px;
}

.result-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #5b21b6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.result-hero h2 {
  margin: 8px 0 2px;
  font-size: 1.4rem;
}

.result-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.result-hero__unlock {
  margin-top: 7px !important;
  font-weight: 600;
  color: #374151 !important;
}

.result-level-map {
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fcfdff;
}

.level-track {
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  max-width: 460px;
}

.level-box {
  position: relative;
  border: 1px solid #d8dee4;
  background: #fff;
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.level-box:not(:nth-child(5n))::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #d0d7de;
  transform: translateY(-50%);
}

.level-box.is-done {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.level-box.is-current {
  background: #f3e8ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.level-box.is-locked {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.level-box__state {
  font-size: 0.9rem;
}

.score-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.score-ring {
  width: 160px;
  height: 160px;
  position: relative;
}

.score-ring svg {
  transform: rotate(-90deg);
}

.score-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.motivate {
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.result-summary {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.stat-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid #eceff1;
}

.stat-box .icon {
  font-size: 1.2rem;
}

.stat-box .val {
  font-weight: 800;
  font-size: 1.1rem;
}

.stat-box .lbl {
  font-size: 0.72rem;
  color: var(--gray-600);
}

.share-row {
  margin: 14px 0 16px;
  padding-top: 8px;
  border-top: 1px solid #edf1f4;
}

.share-row h3 {
  font-size: 0.98rem;
  margin: 0 0 12px;
}

.share-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.share-btns a,
.share-btns button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--white);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.share-wa {
  background: #25d366;
}
.share-fb {
  background: #1877f2;
}
.share-copy {
  background: #37474f;
}

.result-card {
  position: relative;
  border: 1px solid #e6ebef;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.result-card .btn--purple {
  margin-top: 10px !important;
}

.result-fail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ad-gate {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
}

.ad-gate__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.ad-gate__ad {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #000;
  color: #fff;
}

.ad-gate__ad .ad-slot,
.ad-gate__ad .ad-slot__inner {
  width: 100%;
  min-height: 100%;
  border-radius: 0;
  background: #000;
  color: #fff;
}

.ad-gate__card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.ad-gate__card h3 {
  margin: 0;
  font-size: 1rem;
}

.ad-gate__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ad-gate__footer--fixed {
  position: absolute;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: auto;
  width: min(340px, calc(100vw - 20px));
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#ad-gate-count,
#quiz-ad-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.9);
  font-size: 0.94rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
  font-weight: 400;
}

#ad-gate-skip.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.result-hero,
.result-level-map,
.result-summary,
.result-card > div:last-child {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-fail-actions {
    grid-template-columns: 1fr;
  }
}

.rec-section h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
}

.rec-section .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rec-section .quiz-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rec-section .quiz-card__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.rec-section .quiz-card__body {
  padding: 10px;
  display: block;
  flex: 0 0 auto;
}

.rec-section .quiz-card__title {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.rec-section .quiz-card__meta {
  margin-bottom: 8px;
}

/* Auth forms */
.auth-card {
  max-width: 420px;
  margin: 32px auto;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font: inherit;
}

.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font: inherit;
  background: var(--white);
}

.alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.alert--error {
  background: #ffebee;
  color: #b71c1c;
}

.alert--ok {
  background: var(--correct-bg);
  color: var(--correct-text);
}

.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Admin */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-nav a {
  padding: 8px 14px;
  background: var(--white);
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--gray-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--gray-100);
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

/* ---- Homepage screenshot match pass ---- */
.home-main .hero {
  padding: 34px 20px 42px;
}

.home-main .hero__inner {
  gap: 14px;
}

.home-main .hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
}

.home-main .hero p {
  max-width: 430px;
  font-size: 1rem;
}

.home-main .hero__visual {
  aspect-ratio: 16/9;
}

.home-main .features {
  margin-top: -20px;
}

.home-main .features__grid {
  gap: 10px;
  padding: 12px 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.home-main .feature {
  grid-template-columns: 46px 1fr;
  padding: 6px 8px;
}

.home-main .feature__icon {
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
}

.home-main .feature__label {
  font-size: 0.95rem;
}

.home-main .feature__sub {
  font-size: 0.83rem;
}

.home-popular .section__head {
  margin-bottom: 12px;
}

.home-popular-grid .quiz-card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border-radius: 12px;
}

.home-popular-grid .quiz-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.home-popular-grid .quiz-card__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.home-popular-grid .quiz-card__body {
  padding: 10px 10px 10px;
}

.home-popular-grid .quiz-card__title {
  font-size: 0.86rem;
}

.home-popular-grid .quiz-card__desc {
  font-size: 0.74rem;
  margin-bottom: 8px;
}

@media (max-width: 899.98px) {
  .home-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
}

.home-play-btn {
  padding: 7px 10px;
  font-size: 0.78rem;
  border-width: 1px;
}

.home-main .banner-ramadan__inner {
  padding: 12px 16px;
}

.top-players-strip--home {
  padding: 7px;
}

.top-players-strip--home .tp-item {
  min-width: 155px;
}

.top-players-strip--home .tp-avatar {
  width: 30px;
  height: 30px;
}

.top-players-strip--home .tp-name {
  font-size: 0.8rem;
}

.top-players-strip--home .tp-pts {
  font-size: 0.68rem;
}

/* Exact-style Ramadan banner + leaderboard card */
.home-banner {
  width: 100%;
  background: linear-gradient(135deg, #1a3d2b 0%, #2d6a4f 60%, #1a3d2b 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px 20px 20px;
  position: relative;
  overflow: hidden;
}

.home-banner::before {
  content: '';
  position: absolute;
  right: 200px;
  top: 0;
  bottom: 0;
  width: 160px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.home-banner::after {
  content: '';
  position: absolute;
  right: 160px;
  top: -30px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.home-banner__left {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1;
}

.home-banner__icon {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 200, 80, 0.5));
}

.home-banner__text h2 {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
}

.home-banner__text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin: 0;
}

.play-btn {
  background: #f5c842;
  color: #1a1a00;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(245, 200, 66, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 200, 66, 0.5);
}

.home-leader-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.home-leader-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.home-leader-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
}

.view-link {
  font-size: 13px;
  font-weight: 700;
  color: #2d9e6b;
  text-decoration: none;
}

.view-link:hover {
  text-decoration: underline;
}

.players {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 140px;
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.rank-1 .rank-num {
  background: linear-gradient(135deg, #f5c842, #e6a800);
  box-shadow: 0 3px 10px rgba(230, 168, 0, 0.45);
}

.rank-3 .rank-num {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.4);
}

.plain-rank {
  font-size: 14px;
  font-weight: 700;
  color: #aaa;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.avatar-emoji {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8e8e8;
  flex-shrink: 0;
}

.av1 {
  background: #fff3cd;
  border-color: #f5c842;
}

.av2 {
  background: #fce4ec;
  border-color: #f48fb1;
}

.av3 {
  background: #fff8e1;
  border-color: #cd7f32;
}

.av4 {
  background: #fce4ec;
  border-color: #ddd;
}

.av5 {
  background: #e3f2fd;
  border-color: #ddd;
}

.player-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 2px;
}

.player-info span {
  font-size: 12px;
  color: #aaa;
  font-weight: 600;
}

.divider {
  width: 1px;
  height: 50px;
  background: #eee;
  flex-shrink: 0;
}

/* Exact feature strip block (as provided) */
.features-section {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  flex-wrap: nowrap;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  max-width: 240px;
}

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: #fff;
  display: block;
}

.green { background-color: #4caf7d; }
.red { background-color: #e05c5c; }
.blue { background-color: #4aabdb; }
.purple { background-color: #7b6fd8; }

.feature-text h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 5px;
  line-height: 1.2;
}

.feature-text p {
  font-size: 13px;
  font-weight: 400;
  color: #7a7a9a;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 980px) {
  .features-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }
  .feature-item {
    min-width: 0;
    max-width: none;
    width: 100%;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: #f8fafc;
  }
  .icon-circle {
    width: 48px;
    height: 48px;
  }
  .icon-circle svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 520px) {
  .features-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px 8px;
  }
  .feature-text h3 {
    font-size: 14px;
    margin-bottom: 3px;
  }
  .feature-text p {
    font-size: 12px;
    line-height: 1.35;
  }
}
