:root {
  --ppm-bg: #f7f8fa;
  --ppm-panel: rgba(255, 255, 255, 0.06);
  --ppm-panel-2: rgba(255, 255, 255, 0.08);
  --ppm-text: rgba(0, 0, 0, 0.86);
  --ppm-muted: rgba(12, 41, 90, 0.74);
  --ppm-faint: rgba(0, 0, 0, 0.55);
  --ppm-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.1);
  --ppm-radius: 16px;
  --ppm-ring: rgba(98, 210, 255, 0.75);
  --ppm-ring-soft: rgba(98, 210, 255, 0.25);
  --ppm-active: #1b9aa0;
  --ppm-complete-tint: #c4e8c6;
  --ppm-title-mint: #eaffeb;
  --ppm-navy: #0c295a;
  --ppm-white: #ffffff;
}

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

html,
body {
  height: 100%;
}

.ppm-body {
  margin: 0;
  font-family: Lexend, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--ppm-bg);
  color: var(--ppm-text);
}

.ppm-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ppm-navy);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ppm-header__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ppm-kicker {
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ppm-title {
  margin: 0;
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ppm-title-mint);
}

.ppm-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  max-width: 44ch;
}

.ppm-reset {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.ppm-reset:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.ppm-reset:active {
  transform: translateY(0);
}

.ppm-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 42px;
}

.ppm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ppm-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(12, 41, 90, 0.12);
}

.ppm-tab {
  flex: 1;
  max-width: 200px;
  padding: 10px 12px;
  margin: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(12, 41, 90, 0.45);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ppm-tab:hover {
  color: rgba(12, 41, 90, 0.75);
}

.ppm-tab--active {
  color: var(--ppm-navy);
  border-bottom-color: var(--ppm-active);
}

.ppm-tab--completed.ppm-tab--active {
  background: linear-gradient(
    180deg,
    rgba(196, 232, 198, 0.22) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 10px 10px 0 0;
}

.ppm-tab--nudge {
  animation: ppm-tab-nudge 900ms ease-out;
}

@keyframes ppm-tab-nudge {
  0%,
  100% {
    box-shadow: none;
    background-color: transparent;
  }
  25% {
    background-color: rgba(196, 232, 198, 0.38);
    box-shadow: 0 0 0 1px rgba(27, 154, 160, 0.22);
  }
}

.ppm-tab__count {
  display: inline-block;
  transition: transform 200ms ease, color 200ms ease;
}

.ppm-tab__count--pop {
  animation: ppm-count-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ppm-count-pop {
  0% {
    transform: translateY(0) scale(1);
    color: inherit;
  }
  40% {
    transform: translateY(-3px) scale(1.12);
    color: var(--ppm-active);
  }
  100% {
    transform: translateY(0) scale(1);
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppm-tab--nudge {
    animation: none !important;
  }

  .ppm-tab__count--pop {
    animation: none !important;
  }
}

.ppm-tab:focus-visible {
  outline: 2px solid var(--ppm-active);
  outline-offset: 2px;
  border-radius: 6px;
}

.ppm-panel--next {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ppm-hero {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  transition: opacity 400ms ease, transform 400ms ease;
}

.ppm-hero--fade-out {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.ppm-hero--enter {
  animation: ppm-hero-enter 400ms ease-out both;
}

@keyframes ppm-hero-enter {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppm-hero--enter {
    animation: none !important;
  }

  .ppm-hero--fade-out {
    transition: opacity 260ms ease !important;
    transform: none !important;
  }
}

.ppm-all-done {
  text-align: center;
  padding: 24px 16px;
  background: #fafafa;
  border-radius: var(--ppm-radius);
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--ppm-shadow);
}

.ppm-all-done__mark {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.ppm-all-done__mark-inner {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.96);
  border: 1px solid rgba(27, 154, 160, 0.28);
  box-shadow: 0 6px 20px rgba(12, 41, 90, 0.1);
}

.ppm-all-done__mark-inner img {
  width: 36px;
  height: 36px;
  display: block;
}

.ppm-all-done__title {
  margin: 0;
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ppm-navy);
}

.ppm-all-done__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ppm-muted);
}

.ppm-upcoming__title {
  margin: 0 0 6px;
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 41, 90, 0.55);
}

.ppm-upcoming__hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ppm-muted);
  max-width: 48ch;
}

.ppm-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.ppm-strip__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(46vw, 168px);
  min-width: 140px;
}

.ppm-upcoming-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .ppm-upcoming-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.ppm-upcoming-grid__cell {
  min-width: 0;
}

.ppm-upcoming-grid + .ppm-upcoming-more {
  margin-top: 28px;
  padding-top: 6px;
}

.ppm-upcoming-more {
  margin-top: 4px;
}

.ppm-upcoming-more__title {
  margin: 0 0 10px;
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(12, 41, 90, 0.45);
}

.ppm-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--ppm-muted);
  font-size: 14px;
}

.ppm-grid--completed {
  margin-top: 4px;
}

.ppm-noscript {
  padding: 16px;
  color: var(--ppm-muted);
}

.ppm-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .ppm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.ppm-step.ppm-step--card {
  position: relative;
  border-radius: var(--ppm-radius);
  overflow: hidden;
  background: #fafafa;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--ppm-shadow);
  cursor: default;
  padding: 0;
  text-align: left;
  user-select: none;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, border-color 180ms ease, box-shadow 180ms ease,
    background-color 160ms ease;
}

.ppm-step.ppm-step--card:hover {
  transform: translateY(-2px);
  background-color: rgba(27, 154, 160, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 20px 44px rgba(0, 0, 0, 0.12);
}

.ppm-step.ppm-step--card:active {
  transform: translateY(0);
}

/* Avoid a full-card blue ring when an inner control (e.g. hero mark) is focused. */
.ppm-step.ppm-step--card:focus-within {
  outline: none;
}

.ppm-step__go {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: inherit;
}

.ppm-step__go:focus-visible {
  outline: none;
}

.ppm-step__go:focus-visible .ppm-step__media {
  box-shadow:
    0 0 0 3px var(--ppm-ring-soft),
    inset 0 0 0 999px rgba(27, 154, 160, 0.06);
  border-color: rgba(98, 210, 255, 0.65);
}

/* Link to lesson — bottom-right with inset so the arrow isn’t flush to the edge */
.ppm-step--active .ppm-step__go::after {
  content: "Start ↗";
  position: absolute;
  left: auto;
  right: 22px;
  bottom: 18px;
  max-width: calc(100% - 44px);
  font-family: Comfortaa, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(27, 154, 160, 0.95);
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 520px) {
  .ppm-step--strip.ppm-step--active .ppm-step__go::after,
  .ppm-step--upgrid.ppm-step--active .ppm-step__go::after {
    font-size: 12px;
    right: 16px;
    bottom: 14px;
    max-width: calc(100% - 32px);
  }
}

.ppm-step__media-wrap {
  position: relative;
  width: 100%;
}

.ppm-step__media {
  width: calc(100% - 20px);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #f3f3f3;
  padding: 12px;
  border: 2px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  margin: 10px 10px 0;
}

.ppm-step--hero .ppm-step__media {
  width: calc(100% - 20px);
  max-width: none;
  aspect-ratio: 4 / 3;
  min-height: 168px;
}

.ppm-step--strip .ppm-step__media {
  width: calc(100% - 16px);
  margin: 8px 8px 0;
  aspect-ratio: 4 / 3;
  padding: 8px;
}

.ppm-step--strip .ppm-step__caption {
  padding: 8px 44px 10px 8px;
}

.ppm-step--strip .ppm-step__name {
  font-size: 11px;
}

.ppm-step--strip .ppm-step__mark {
  font-size: 11px;
  padding: 0.35rem 0.45rem;
  min-height: 34px;
  gap: 0.35rem;
}

.ppm-step--strip .ppm-step__mark.ppm-step__mark--compact {
  min-width: 32px;
  padding: 0.3rem;
}

.ppm-step--strip .ppm-step__mark-label {
  font-size: 9px;
}

.ppm-step--strip .ppm-step__mark.ppm-step__mark--done {
  min-width: 34px;
  min-height: 34px;
  padding: 0.3rem;
}

.ppm-step--strip .ppm-step__mark-checkwrap svg {
  width: 17px;
  height: 17px;
}

.ppm-step--upgrid .ppm-step__media {
  width: calc(100% - 16px);
  margin: 8px 8px 0;
  aspect-ratio: 4 / 3;
  padding: 8px;
}

.ppm-step--upgrid .ppm-step__caption {
  padding: 8px 44px 10px 8px;
}

.ppm-step--upgrid .ppm-step__name {
  font-size: 11px;
}

.ppm-step--upgrid .ppm-step__mark {
  font-size: 11px;
  padding: 0.35rem 0.45rem;
  min-height: 34px;
  gap: 0.35rem;
}

.ppm-step--upgrid .ppm-step__mark.ppm-step__mark--compact {
  min-width: 32px;
  padding: 0.3rem;
}

.ppm-step--upgrid .ppm-step__mark-label {
  font-size: 9px;
}

.ppm-step--upgrid .ppm-step__mark.ppm-step__mark--done {
  min-width: 34px;
  min-height: 34px;
  padding: 0.3rem;
}

.ppm-step--upgrid .ppm-step__mark-checkwrap svg {
  width: 17px;
  height: 17px;
}

.ppm-step__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.ppm-step__caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px 12px;
}

.ppm-step__caption-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}

.ppm-step__caption-row--solo {
  justify-content: center;
}

.ppm-step__caption-row--solo .ppm-step__name {
  flex: 1 1 100%;
  text-align: center;
}

.ppm-step__name {
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.15;
  color: var(--ppm-navy);
  text-align: center;
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  min-width: min(100%, 120px);
}

button.ppm-step__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  min-height: 40px;
  border-radius: 10px;
  border: 2px solid var(--ppm-navy);
  background: var(--ppm-white);
  color: var(--ppm-navy);
  font-family: Comfortaa, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(12, 41, 90, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.12s ease;
}

.ppm-step__mark-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ppm-step__mark-ghost .ppm-step__ghost-check {
  width: 18px;
  height: 18px;
  display: block;
}

.ppm-step__mark-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  max-width: 10rem;
}

button.ppm-step__mark:hover {
  border-color: rgba(27, 154, 160, 0.85);
  color: rgba(27, 154, 160, 1);
  background: rgba(27, 154, 160, 0.08);
}

button.ppm-step__mark:focus-visible {
  outline: 2px solid var(--ppm-active);
  outline-offset: 2px;
}

button.ppm-step__mark:active {
  transform: scale(0.98);
}

button.ppm-step__mark.ppm-step__mark--done {
  padding: 0.4rem;
  min-width: 40px;
  border-color: rgba(27, 154, 160, 0.55);
  background: rgba(196, 232, 198, 0.35);
  color: #0c295a;
}

/* Next tab — neutral outer frame; soft blue sits on the ghost check only */
button.ppm-step__mark.ppm-step__mark--pending {
  background: transparent;
  border-color: rgba(12, 41, 90, 0.16);
  color: var(--ppm-navy);
  box-shadow: 0 1px 3px rgba(12, 41, 90, 0.06);
}

button.ppm-step__mark.ppm-step__mark--pending .ppm-step__mark-ghost {
  color: rgba(42, 130, 198, 0.55);
  background: rgba(98, 210, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(98, 210, 255, 0.42);
}

button.ppm-step__mark.ppm-step__mark--pending:hover {
  border-color: rgba(12, 41, 90, 0.28);
  background: rgba(98, 210, 255, 0.04);
  color: var(--ppm-navy);
}

button.ppm-step__mark.ppm-step__mark--pending:hover .ppm-step__mark-ghost {
  color: rgba(42, 130, 198, 0.72);
  background: rgba(98, 210, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(98, 210, 255, 0.55);
}

/* Smaller tiles: no “Mark complete” text — compact control */
button.ppm-step__mark.ppm-step__mark--compact {
  padding: 0.35rem 0.45rem;
  min-width: 36px;
  gap: 0;
}

.ppm-step__mark-checkwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.ppm-step__mark-checkwrap svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ppm-step--upcoming {
  opacity: 0.86;
}

.ppm-step--completed {
  opacity: 0.78;
  filter: grayscale(0.12);
}

.ppm-step--completed .ppm-step__media {
  box-shadow: inset 0 0 0 999px rgba(196, 232, 198, 0.18);
  border-color: rgba(27, 154, 160, 0.18);
}

.ppm-step--completed .ppm-step__name {
  color: #0c295a;
}

.ppm-step--active {
  opacity: 1;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--ppm-shadow);
}

.ppm-step__media--active {
  border-color: var(--ppm-active);
  border-width: 4px;
  box-shadow:
    inset 0 0 0 999px rgba(27, 154, 160, 0.1),
    0 0 0 4px rgba(27, 154, 160, 0.12);
}

.ppm-step__status {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  pointer-events: none;
  z-index: 4;
}

.ppm-step__status > * {
  grid-area: 1 / 1;
}

.ppm-step__status .ppm-check {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* Upcoming strip / grid — bring this step to the main (hero) slot (bottom-right of image) */
button.ppm-step__promote {
  position: absolute;
  top: auto;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(27, 154, 160, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(27, 154, 160, 0.72);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(12, 41, 90, 0.1);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

button.ppm-step__promote:hover {
  border-color: rgba(27, 154, 160, 0.55);
  background: rgba(98, 210, 255, 0.12);
  color: rgba(27, 154, 160, 0.9);
  box-shadow: 0 4px 12px rgba(12, 41, 90, 0.14);
}

button.ppm-step__promote:active {
  transform: scale(0.96);
}

button.ppm-step__promote:focus-visible {
  outline: 2px solid var(--ppm-active);
  outline-offset: 2px;
}

.ppm-step__promote-svg {
  width: 14px;
  height: 14px;
  display: block;
}

@media (max-width: 520px) {
  .ppm-step__promote-svg {
    width: 13px;
    height: 13px;
  }
}

.ppm-check__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(0.8);
}

.ppm-check--done .ppm-check__icon {
  background: rgba(196, 232, 198, 0.62);
  border-color: rgba(27, 154, 160, 0.22);
}

.ppm-check--done .ppm-check__icon svg path {
  fill: rgba(11, 12, 16, 0.8) !important;
}

.ppm-check__icon svg {
  width: 30px;
  height: 30px;
}

.ppm-check--animate .ppm-check__icon {
  animation: ppm-check-pop 420ms ease-out forwards;
}

.ppm-check--done .ppm-check__icon {
  opacity: 1;
  transform: scale(1);
}

@keyframes ppm-check-pop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.ppm-confetti {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ppm-confetti__piece {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.ppm-confetti--animate .ppm-confetti__piece {
  animation: ppm-confetti-burst 700ms ease-out forwards;
}

@keyframes ppm-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot));
  }
}

.ppm-confetti__piece:nth-child(1) {
  background: #1b9aa0;
  --dx: -42px;
  --dy: -34px;
  --rot: -220deg;
}
.ppm-confetti__piece:nth-child(2) {
  background: #ffd166;
  --dx: -18px;
  --dy: -54px;
  --rot: 200deg;
  animation-delay: 20ms;
}
.ppm-confetti__piece:nth-child(3) {
  background: #06d6a0;
  --dx: 6px;
  --dy: -62px;
  --rot: 260deg;
  animation-delay: 10ms;
}
.ppm-confetti__piece:nth-child(4) {
  background: #ef476f;
  --dx: 24px;
  --dy: -50px;
  --rot: -180deg;
  animation-delay: 25ms;
}
.ppm-confetti__piece:nth-child(5) {
  background: #118ab2;
  --dx: 46px;
  --dy: -32px;
  --rot: 210deg;
  animation-delay: 15ms;
}
.ppm-confetti__piece:nth-child(6) {
  background: #8338ec;
  --dx: -54px;
  --dy: 4px;
  --rot: 300deg;
  animation-delay: 30ms;
}
.ppm-confetti__piece:nth-child(7) {
  background: #ffbe0b;
  --dx: -28px;
  --dy: 18px;
  --rot: -260deg;
  animation-delay: 35ms;
}
.ppm-confetti__piece:nth-child(8) {
  background: #3a86ff;
  --dx: 0px;
  --dy: 22px;
  --rot: 240deg;
  animation-delay: 40ms;
}
.ppm-confetti__piece:nth-child(9) {
  background: #fb5607;
  --dx: 28px;
  --dy: 18px;
  --rot: -210deg;
  animation-delay: 35ms;
}
.ppm-confetti__piece:nth-child(10) {
  background: #38b000;
  --dx: 54px;
  --dy: 6px;
  --rot: 280deg;
  animation-delay: 30ms;
}
.ppm-confetti__piece:nth-child(11) {
  background: #ff006e;
  --dx: -18px;
  --dy: 42px;
  --rot: 190deg;
  animation-delay: 45ms;
}
.ppm-confetti__piece:nth-child(12) {
  background: #00bbf9;
  --dx: 18px;
  --dy: 42px;
  --rot: -190deg;
  animation-delay: 45ms;
}

.ppm-wrap {
  position: relative;
}

.ppm-nicework {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 6;
}

.ppm-nicework__inner {
  font-family: Comfortaa, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  background: rgba(250, 250, 250, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.84);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  animation: ppm-nicework-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ppm-nicework-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppm-check--animate .ppm-check__icon {
    animation: none !important;
  }
  .ppm-nicework__inner {
    animation: none !important;
  }
  .ppm-confetti {
    display: none !important;
  }
  .ppm-confetti__piece {
    animation: none !important;
  }
}

.ppm-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

.ppm-fallback strong {
  display: block;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 700;
  margin-bottom: 6px;
}

