/* Self-hosted brand fonts (from the Figma "Rogue Agent House" design) */
@font-face {
  font-family: "DM Sans";
  src: url("/static/pumpkinshell/assets/fonts/DMSans-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/static/pumpkinshell/assets/fonts/DMSans-Italic.ttf")
    format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/static/pumpkinshell/assets/fonts/Poppins-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/static/pumpkinshell/assets/fonts/Poppins-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spooky Theme";
  src: url("/static/pumpkinshell/assets/fonts/SpookyTheme.otf")
    format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
}
/* UI / emphasis uses Poppins; reading copy stays DM Sans */
button,
.btn-white,
.btn-pink,
.btn-check,
.pill-pink,
.pill-points,
.pill-marker,
th,
.challenge-step,
label,
select,
input,
.font-ui {
  font-family: "Poppins", "DM Sans", system-ui, sans-serif;
}
.font-display {
  font-family: "Spooky Theme", system-ui, cursive;
  letter-spacing: 0.01em;
  font-weight: 400;
}
/* nav + footer */
.nav-underline {
  box-shadow: inset 0 -1px 0 0 #ff5a5a;
}

/* Completion page: equal columns and consistent visible alignment. */
.completion-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 5vw, 6rem);
}
.completion-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.completion-invite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 50px;
  gap: 1.25rem;
  min-width: 0;
  text-align: left;
}
.completion-title {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
}
.completion-certificate-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.completion-cta {
  display: inline-block;
  max-width: 100%;
  margin-top: 30px;
  padding: 0.875rem 1.75rem;
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  text-align: center;
}
.completion-web {
  position: absolute;
  top: 0;
  right: 0;
  width: 28%;
  pointer-events: none;
}
/* Align the visible pink frame, excluding the artwork's glow margins.
       Original artwork: 820 × 609; visible frame: (40, 37) to (780, 566). */
.certificate {
  position: relative;
  width: 100%;
  aspect-ratio: 740 / 529;
}
.certificate-artwork {
  position: absolute;
  left: calc(-100% * 40 / 740);
  top: calc(-100% * 37 / 529);
  width: calc(100% * 820 / 740);
  aspect-ratio: 820 / 609;
  container-type: inline-size;
  /* The transparent glow extends over the share buttons below the frame. */
  pointer-events: none;
}
@media (min-width: 1024px) {
  .completion-layout {
    max-width: 1600px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 5vw, 6rem);
  }
}

/* marker-stroke pink highlight: slanted sides (~6deg parallelogram), upright text (Group 1000002925.svg) */
.pill-marker {
  position: relative;
  display: inline-block;
  color: #141019;
  padding: 0.1em 0.55em;
  z-index: 0;
}
.pill-marker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff73ff;
  transform: skewX(-6deg);
  z-index: -1;
}

.btn-white {
  background: #fff;
  color: #141019;
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 4px 6px 0 rgba(2, 84, 236, 0.95);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-white:hover {
  transform: translate(-1px, -2px);
  box-shadow: 6px 9px 0 rgba(2, 84, 236, 0.95);
}
.btn-white:active {
  transform: translate(2px, 3px);
  box-shadow: 1px 2px 0 rgba(2, 84, 236, 0.95);
}
.btn-pink {
  background: #ff73ff;
  color: #141019;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(2, 84, 236, 0.95);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(2, 84, 236, 0.95);
}
.btn-pink:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(2, 84, 236, 0.95);
}

.certificate-artwork {
  display: block;
  max-width: none;
  background: none;
}
.certificate-share-status {
  color: #fbaeff;
  font-size: 0.875rem;
}
.completion-page {
  background:
    radial-gradient(
      820px 680px at 20% 42%,
      #4a2d54 0%,
      #2e2440 42%,
      rgba(30, 29, 38, 0) 72%
    ),
    #1e1d26;
}
.certificate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.certificate-form > button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
}
@font-face {
  font-family: "Certificate Name";
  src: url("/static/pumpkinshell/assets/fonts/DMSans-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.certificate-preview .certificate-artwork {
  background: url("/static/pumpkinshell/assets/certificate-artwork.svg")
    center / contain no-repeat;
}
.certificate-preview .certificate-date {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.certificate-preview .certificate-name-field {
  position: absolute;
  top: 41.5%;
  left: 17%;
  width: 66%;
  pointer-events: auto;
}
.certificate-preview .cert-name {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-family: "Certificate Name", "DM Sans", sans-serif;
  font-size: 6.09756cqw;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  color: #ff73ff;
  -webkit-text-stroke: 0.03cqw #111018;
  paint-order: stroke fill;
  text-shadow: 0 0.36cqw 0 #0254ec;
  cursor: text;
}
.certificate-preview .cert-name:hover {
  background: rgba(255, 115, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 115, 255, 0.35);
}
.certificate-preview .cert-name:focus {
  background: rgba(255, 115, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 115, 255, 0.6);
  outline: none;
}
.certificate-preview .cert-name::placeholder {
  color: #ff73ff;
  opacity: 0.6;
}
.certificate-preview .cert-edit {
  position: absolute;
  right: -3.5cqw;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff73ff;
  cursor: pointer;
  opacity: 0.7;
}
.certificate-preview .cert-edit:hover,
.certificate-preview .cert-edit:focus-visible {
  opacity: 1;
}

@media (max-width: 767px) {
  .completion-main {
    padding: 24px 20px 32px;
  }
  .completion-invite {
    gap: 20px;
  }
  .completion-invite > p,
  .completion-invite > div {
    font-size: 16px;
    line-height: 1.5;
  }
  .completion-invite .pill-marker {
    max-width: 100%;
    font-size: clamp(12px, 3.8vw, 16px);
    white-space: nowrap;
  }
  .completion-cta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
  }
  footer.site-footer {
    padding-block: 32px;
    gap: 24px;
    line-height: 1.5;
  }
  .site-footer .site-footer-brand {
    gap: 16px;
  }
  .site-footer .site-footer-brand > div {
    min-width: 0;
  }
  .site-footer .site-footer-links {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
