/* Module 2: Filipino phrases and everyday life */
.module-two-page .level-card:nth-child(-n+10)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 100'%3E%3Cpath fill='black' d='M8 88h48V44L32 25 8 44v44Zm12-31h9v13h-9V57Zm19 0h9v13h-9V57ZM70 88h48V52L94 34 70 52v36Zm11-25h9v13h-9V63Zm19 0h9v13h-9V63Z'/%3E%3Cpath d='M4 91h122' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 100'%3E%3Cpath fill='black' d='M8 88h48V44L32 25 8 44v44Zm12-31h9v13h-9V57Zm19 0h9v13h-9V57ZM70 88h48V52L94 34 70 52v36Zm11-25h9v13h-9V63Zm19 0h9v13h-9V63Z'/%3E%3Cpath d='M4 91h122' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.module-two-page .level-card:nth-child(n+11):nth-child(-n+20)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 100'%3E%3Cg fill='none' stroke='black' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 30h54v30c0 17-11 28-27 28S18 77 18 60V30Z'/%3E%3Cpath d='M72 39h12c13 0 13 22 0 22H72M28 18c0-7 8-7 8-14M47 18c0-7 8-7 8-14M66 18c0-7 8-7 8-14M10 92h86'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 100'%3E%3Cg fill='none' stroke='black' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 30h54v30c0 17-11 28-27 28S18 77 18 60V30Z'/%3E%3Cpath d='M72 39h12c13 0 13 22 0 22H72M28 18c0-7 8-7 8-14M47 18c0-7 8-7 8-14M66 18c0-7 8-7 8-14M10 92h86'/%3E%3C/g%3E%3C/svg%3E");
}

.module-two-page .level-card:nth-child(n+21)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 100'%3E%3Cg fill='none' stroke='black' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='28' width='102' height='52' rx='14'/%3E%3Cpath d='M29 80v10M101 80v10M14 48h102M32 38h20M78 38h20M27 66h1M102 66h1M5 91h120'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 100'%3E%3Cg fill='none' stroke='black' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='28' width='102' height='52' rx='14'/%3E%3Cpath d='M29 80v10M101 80v10M14 48h102M32 38h20M78 38h20M27 66h1M102 66h1M5 91h120'/%3E%3C/g%3E%3C/svg%3E");
}

.correct-this-round-list {
  max-height: 180px;
  margin-top: 16px;
  padding-top: 12px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  text-align: left;
}

.correct-this-round-list:empty {
  display: none;
}

.correct-this-round-item {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.premium-result-card {
  position: relative;
  isolation: isolate;
  width: min(420px, 92vw);
  overflow: hidden;
  border: 1px solid rgba(255, 214, 70, .52);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 214, 70, .42), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(142, 126, 255, .24), transparent 30%),
    linear-gradient(145deg, #fffdf8 0%, #fff6d9 48%, #f5f0ff 100%);
  box-shadow:
    0 22px 48px rgba(47, 40, 95, .2),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.premium-result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .52), transparent);
  transform: translateX(-120%);
  animation: result-card-shine 3.6s ease-in-out infinite;
}

.premium-result-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 22px;
  pointer-events: none;
}

.premium-result-card .score-stars {
  position: relative;
  display: inline-block;
  color: #f4b82e;
  text-shadow: 0 2px 10px rgba(244, 184, 46, .32);
}

.premium-result-card strong {
  color: var(--purple);
  text-shadow: 0 4px 18px rgba(91, 80, 214, .16);
}

.result-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.result-sparkles span {
  position: absolute;
  color: #f4b82e;
  font-size: 19px;
  filter: drop-shadow(0 3px 8px rgba(244, 184, 46, .35));
  animation: result-sparkle-float 2.8s ease-in-out infinite;
}

.result-sparkles span:nth-child(1) { top: 18px; left: 22px; }
.result-sparkles span:nth-child(2) { top: 32px; right: 30px; animation-delay: .45s; }
.result-sparkles span:nth-child(3) { right: 58px; bottom: 28px; animation-delay: .9s; }

.result-progress {
  height: 12px;
  margin: 10px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(91, 80, 214, .13);
  box-shadow: inset 0 1px 3px rgba(47, 40, 95, .13);
}

.result-progress-fill {
  display: block;
  width: var(--result-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd646, #ffb84d, #7f6cff);
  box-shadow: 0 0 18px rgba(255, 214, 70, .45);
  transition: width .7s cubic-bezier(.2, .8, .2, 1);
}

.result-score-helper {
  margin: 10px 0 0;
  color: #4f4774;
  font-size: 15px;
  font-weight: 900;
}

@keyframes result-card-shine {
  0%, 52% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@keyframes result-sparkle-float {
  0%, 100% { opacity: .58; transform: translateY(0) scale(.92) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-7px) scale(1.08) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .premium-result-card::before,
  .result-sparkles span {
    animation: none;
  }

  .result-progress-fill {
    transition: none;
  }
}

@media (max-width: 520px) {
  .premium-result-card {
    padding-right: 24px;
    padding-left: 24px;
  }

  .correct-this-round-list {
    max-height: 145px;
  }
}
