.share-results-modal {
  width: min(100%, 860px);
  overflow-x: hidden;
  border-color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 94% 4%, rgba(238, 224, 255, 0.86), transparent 28%),
    var(--paper, #fffdf9);
}

.share-results-modal > p:not(.eyebrow) {
  max-width: 660px;
}

.share-card-preview {
  position: relative;
  display: grid;
  gap: 0.9rem;
  margin-block: 1.15rem;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.45rem);
  color: var(--ink, #45122f);
  background:
    radial-gradient(circle at 104% -5%, rgba(255, 255, 255, 0.72) 0 19%, transparent 19.5%),
    radial-gradient(circle at -4% 105%, rgba(206, 0, 159, 0.09) 0 23%, transparent 23.5%),
    linear-gradient(135deg, #ffe4f1, #f3ddff 55%, #ddd0ff);
  border: 2px solid rgba(118, 19, 77, 0.16);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(81, 16, 57, 0.12);
  isolation: isolate;
}

.share-card-preview > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.share-card-preview > header img {
  width: min(52%, 310px);
  height: auto;
  object-fit: contain;
}

.share-card-preview > header > strong {
  color: var(--plum, #76134d);
  font-family: var(--font-rounded, system-ui, sans-serif);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 950;
}

.share-card-preview > header > span {
  flex: none;
  padding: 0.38rem 0.65rem;
  color: #70145a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(112, 20, 90, 0.13);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.share-career-list {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-career {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: 0.78rem;
  background: rgba(255, 253, 251, 0.92);
  border: 1px solid rgba(118, 19, 77, 0.12);
  border-radius: 17px;
}

.share-career.is-top {
  grid-column: 1 / -1;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(206, 0, 159, 0.28);
  box-shadow: inset 5px 0 0 var(--pink, #ce009f);
}

.share-card-preview[data-share-kind="achievement"] .share-career.is-top {
  grid-column: 1 / -1;
}

.share-career-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--plum, #76134d);
  border-radius: 50%;
  font-family: var(--font-rounded, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 950;
}

.share-career.is-top .share-career-rank {
  color: #713a00;
  background: var(--gold, #f2b847);
}

.share-career-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #fce2ef;
  border-radius: 13px;
  font-size: 1.45rem;
}

.share-career-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.share-career-copy small {
  color: #9a2872;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-career-copy strong {
  overflow-wrap: anywhere;
  font-family: var(--font-rounded, system-ui, sans-serif);
  font-size: 0.98rem;
  line-height: 1.15;
}

.share-career.is-top .share-career-copy strong {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.share-career-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted, #69505e);
  font-size: 0.76rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.share-card-preview > footer {
  display: grid;
  gap: 0.42rem;
  color: #6f3a96;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.share-card-url {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  resize: none;
  padding: 0.55rem 0.7rem;
  overflow-wrap: anywhere;
  color: #70145a;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(112, 20, 90, 0.13);
  border-radius: 12px;
  font: 750 0.7rem/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.015em;
  text-align: left;
}

.share-results-actions {
  display: grid;
  align-items: center;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.share-results-actions > * {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  margin: 0;
  text-align: center;
  text-decoration: none;
}

.share-email-link,
.share-message-link {
  padding-inline: 0.5rem;
}

.share-message-link {
  color: var(--plum, #76134d);
}

.share-card-url:focus-visible {
  outline: 4px solid rgba(206, 0, 159, 0.16);
  outline-offset: 2px;
}

.share-results-status {
  min-height: 1.35em;
  margin: 0.55rem 0 0;
  color: var(--plum, #76134d);
  font-size: 0.82rem;
  font-weight: 800;
}

.shared-results-page {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.shared-result-hero {
  --ink: #45122f;
  --muted: #69505e;
  --plum: #76134d;
  --pink-dark: #a12570;
  position: relative;
  display: grid;
  min-height: 430px;
  align-items: center;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(1.5rem, 6vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 93% 8%, rgb(255 255 255 / 74%) 0 11rem, transparent 11.2rem),
    linear-gradient(135deg, #ffe1ef, #eedbff 62%, #d8d0ff);
  border: 3px solid #d8a8c9;
  border-radius: 38px 16px 38px 22px;
  box-shadow: 0 18px 48px rgb(81 16 57 / 14%);
}

.shared-result-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.shared-result-copy > img {
  width: min(360px, 68%);
  margin-bottom: 1.25rem;
}

.shared-result-copy h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
}

.shared-result-copy > p {
  max-width: 680px;
}

.shared-result-tagline {
  color: var(--plum);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 900;
}

.shared-result-number {
  position: relative;
  display: grid;
  width: clamp(108px, 17vw, 185px);
  height: clamp(108px, 17vw, 185px);
  flex: none;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #d93482, #6f3a96);
  border: 8px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  box-shadow: 0 12px 0 rgb(81 16 57 / 18%);
  font-family: var(--font-rounded);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 950;
  transform: rotate(5deg);
}

.shared-result-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shared-result-tile {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.1rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.shared-result-tile > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--pink-soft);
  border-radius: 17px;
  font-size: 1.7rem;
}

.shared-result-tile small {
  color: var(--pink-dark);
  font-weight: 900;
}

.shared-result-tile h3 {
  margin-block: 0.2rem 0.35rem;
}

.shared-result-tile p {
  margin-bottom: 0.45rem;
}

.shared-result-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  border-radius: 24px;
}

.shared-result-cta p {
  max-width: 720px;
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .share-card-preview > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-card-preview > header img {
    width: min(80%, 280px);
  }

  .share-career-list {
    grid-template-columns: 1fr;
  }

  .share-career.is-top {
    grid-column: auto;
  }

  .share-results-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-results-actions > .primary-button {
    grid-column: 1 / -1;
  }

  .shared-result-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .shared-result-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 72px;
    height: 72px;
    border-width: 4px;
    font-size: 1.8rem;
  }

  .shared-result-copy > img {
    width: min(250px, 65%);
  }

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

  .shared-result-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .share-results-modal {
    padding-inline: 0.9rem;
  }

  .share-card-preview {
    border-radius: 18px;
  }

  .share-career {
    gap: 0.5rem;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .share-career-rank {
    width: 30px;
    height: 30px;
  }

  .share-career-icon {
    display: none;
  }

  .share-results-actions {
    grid-template-columns: 1fr;
  }

  .share-results-actions > .primary-button {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-results-backdrop,
  .share-results-backdrop .share-results-modal {
    animation: none !important;
    scroll-behavior: auto;
  }
}
