html {
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 28rem),
    #020617;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.answer-option {
  min-height: 56px;
}

.accordion-toggle span {
  transition: transform 0.2s ease;
}

.accordion-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.quiz-animate-in {
  animation: quizIn 0.28s ease-out both;
}

@keyframes quizIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popularity-bar {
  position: relative;
  overflow: hidden;
}

.popularity-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  opacity: 0.28;
}

.popularity-bar-content {
  position: relative;
  z-index: 1;
}

.login-page {
  background:
    linear-gradient(rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.92)),
    url('../media/login-bg.webp') center / cover no-repeat fixed;
}

.category-image-wrap {
  position: relative;
  overflow: hidden;
  margin: -1.5rem -1.5rem 1.5rem;
  min-height: 220px;
  border-radius: 1.5rem 1.5rem 0 0;
  background: rgba(15, 23, 42, 0.8);
}

.category-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.94)),
    radial-gradient(circle at center, rgba(16, 185, 129, 0.12), transparent 60%);
}

.success-hero {
  position: relative;
  overflow: hidden;
  margin: -1.5rem -1.5rem 1.5rem;
  min-height: 240px;
  border-radius: 1.5rem 1.5rem 0 0;
  background:
    linear-gradient(rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.88)),
    url('../media/success-bg.webp') center / cover no-repeat;
}

.success-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.trophy-card {
  background:
    linear-gradient(rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.84)),
    url('../media/trophy.webp') center / cover no-repeat;
}

.login-video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-video-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.94)),
    radial-gradient(circle at top, rgba(16, 185, 129, 0.16), transparent 34rem);
}

.category-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.88)),
    radial-gradient(circle at center, rgba(16, 185, 129, 0.12), transparent 60%);
}
