/* Secret Santa draw. Linked only from this engine's pages; the host's :app
   bundle loads after it, so every rule is scoped under .secret-santa. */

body:has(.secret-santa) {
  background: white;
}

.secret-santa {
  --santa-ink: #222222;
  --santa-muted: #454745;
  --santa-faint: #6a6c6a;
  --santa-green: #163300;
  --santa-lime: #9fe870;
  --santa-lime-wash: #effae6;
  --santa-amber: #81531c;
  --santa-amber-wash: #ffe7ca;
  --santa-cream: #fff6eb;
  --santa-grey: #f7f7f7;
  --santa-line: #f3f3f3;
  --santa-field-line: #dfe5da;

  display: flex;
  flex-direction: column;
  color: var(--santa-ink);
}

.secret-santa p,
.secret-santa h1,
.secret-santa h2,
.secret-santa h3 {
  margin: 0;
}

.secret-santa .icon {
  flex-shrink: 0;
}

/* --- Hero --- */

.secret-santa .santa-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 5vw, 64px) 28px;
  text-align: center;
}

.secret-santa .santa-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--santa-muted);
  text-decoration: none;
}

.secret-santa .santa-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.secret-santa .santa-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
}

.secret-santa .santa-chip .icon {
  width: 14px;
  height: 14px;
}

.secret-santa .santa-chip--lime { background: var(--santa-lime); color: var(--santa-green); }
.secret-santa .santa-chip--soft { background: #e3f6d5; color: var(--santa-green); }
.secret-santa .santa-chip--amber { background: var(--santa-amber-wash); color: var(--santa-amber); }

.secret-santa .santa-hero__title {
  max-width: 18ch;
  font-family: var(--font-family-bricolage);
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.secret-santa .santa-hero__lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--santa-muted);
}

/* --- The tool --- */

.secret-santa .santa-band {
  padding: 0 clamp(16px, 5vw, 64px) 48px;
}

.secret-santa .santa-tool {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background: var(--santa-lime-wash);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-items: start;
  gap: clamp(24px, 4vw, 44px);
}

.secret-santa .santa-tool__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.secret-santa .santa-tool__title {
  font-family: var(--font-family-bricolage);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.secret-santa .santa-tool__panel {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--santa-line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 4px 33px 20px rgb(0 0 0 / 2%);
  text-align: center;
}

.secret-santa .santa-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--santa-amber-wash);
  color: var(--santa-amber);
}

.secret-santa .santa-tool__summary {
  font-family: var(--font-family-bricolage);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.secret-santa .santa-tool__promise {
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--santa-muted);
}

.secret-santa .santa-errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fdecec;
  color: #8a1c1c;
  font-size: 15px;
  font-weight: 500;
}

.secret-santa .santa-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.secret-santa .santa-label {
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

.secret-santa .santa-hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--santa-muted);
}

.secret-santa .santa-input,
.secret-santa .santa-select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--santa-field-line);
  border-radius: 12px;
  background: white;
  font: inherit;
  font-size: 16px;
  color: var(--santa-ink);
}

.secret-santa .santa-input:focus,
.secret-santa .santa-select:focus {
  outline: 2px solid var(--santa-green);
  outline-offset: 1px;
}

.secret-santa .santa-rows,
.secret-santa .santa-couples,
.secret-santa .santa-steps,
.secret-santa .santa-memorable__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.secret-santa .santa-rows,
.secret-santa .santa-couples {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.secret-santa .santa-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) 40px;
  align-items: center;
  gap: 8px;
}

.secret-santa .santa-couple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: white;
}

.secret-santa .santa-couple .santa-select {
  border-color: transparent;
  background: var(--santa-grey);
}

.secret-santa .santa-couple__sign {
  display: inline-flex;
  color: var(--santa-faint);
}

.secret-santa .santa-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--santa-faint);
  cursor: pointer;
}

.secret-santa .santa-icon-button:hover {
  background: rgb(21 51 0 / 7%);
  color: var(--santa-ink);
}

.secret-santa .santa-dashed {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px dashed #b9c4b0;
  border-radius: 9999px;
  background: transparent;
  color: var(--santa-green);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.secret-santa .santa-dashed .icon {
  width: 16px;
  height: 16px;
}

.secret-santa .santa-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secret-santa .santa-pill {
  position: relative;
  cursor: pointer;
}

.secret-santa .santa-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.secret-santa .santa-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 18px;
  border-radius: 9999px;
  background: white;
  font-size: 15px;
  font-weight: 600;
}

.secret-santa .santa-pill input:checked + span {
  background: var(--santa-green);
  color: white;
}

.secret-santa .santa-pill input:focus-visible + span {
  outline: 2px solid var(--santa-green);
  outline-offset: 2px;
}

.secret-santa .santa-budget-other[hidden] {
  display: none;
}

.secret-santa .santa-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 20px;
  border: none;
  border-radius: 9999px;
  background: var(--santa-green);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.secret-santa .santa-button:hover {
  color: white;
  filter: brightness(1.15);
}

.secret-santa .santa-button--large {
  min-height: 52px;
  padding: 12px 28px;
  font-size: 17px;
}

.secret-santa .santa-button--lime,
.secret-santa .santa-button--lime:hover {
  background: var(--santa-lime);
  color: var(--santa-green);
}

/* --- Guide --- */

.secret-santa .santa-guide {
  width: 100%;
  max-width: 46rem;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 24px) 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.secret-santa .santa-h2 {
  font-family: var(--font-family-bricolage);
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.secret-santa .santa-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 804;
  border-radius: 20px;
  background: #000000;
}

.secret-santa .santa-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.secret-santa .santa-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: var(--santa-grey);
}

.secret-santa .santa-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--santa-lime);
  color: var(--santa-green);
  font-family: var(--font-family-bricolage);
  font-size: 15px;
  font-weight: 700;
}

.secret-santa .santa-step__title {
  font-weight: 600;
}

.secret-santa .santa-step__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--santa-muted);
}

.secret-santa .santa-faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--santa-line);
}

.secret-santa .santa-faq__item {
  border-bottom: 1px solid var(--santa-line);
}

.secret-santa .santa-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.secret-santa .santa-faq__item summary::-webkit-details-marker {
  display: none;
}

.secret-santa .santa-faq__item summary .icon {
  transition: transform 0.15s ease;
}

.secret-santa .santa-faq__item[open] summary .icon {
  transform: rotate(180deg);
}

.secret-santa .santa-faq__item p {
  padding-bottom: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--santa-muted);
}

/* --- Organiser page --- */

.secret-santa .santa-board {
  width: 100%;
  max-width: 1160px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 24px) 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.secret-santa .santa-board__main {
  flex: 999 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.secret-santa .santa-board__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.secret-santa .santa-board__title {
  font-family: var(--font-family-bricolage);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.secret-santa .santa-board__meta {
  font-size: 14px;
  color: var(--santa-muted);
}

.secret-santa .santa-board__side {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.secret-santa .santa-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--santa-lime-wash);
}

.secret-santa .santa-progress__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.secret-santa .santa-progress__title {
  font-family: var(--font-family-bricolage);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.secret-santa .santa-progress__seen,
.secret-santa .santa-progress__help {
  font-size: 13px;
  line-height: 1.5;
  color: var(--santa-muted);
}

.secret-santa .santa-progress__bar {
  height: 6px;
  border-radius: 9999px;
  background: white;
  overflow: hidden;
}

.secret-santa .santa-progress__bar span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: var(--santa-green);
  transition: width 0.3s ease;
}

.secret-santa .santa-people,
.secret-santa .santa-legend {
  margin: 0;
  padding: 0;
  list-style: none;
}

.secret-santa .santa-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* One tinted card per person: amber still to do, blue handed over, lime
   opened. The private link sits on the first line, the email on its own line
   under it; white controls stand out on the tint. */
.secret-santa .santa-person {
  --person-wash: #fff6eb;
  --person-mark: var(--santa-amber-wash);
  --person-ink: var(--santa-amber);

  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--person-wash);
  scroll-margin-top: 24px;
}

.secret-santa .santa-person--emailed,
.secret-santa .santa-person--copied {
  --person-wash: #edf8ff;
  --person-mark: #d3f2ff;
  --person-ink: #0b4f7a;
}

.secret-santa .santa-person--seen {
  --person-wash: var(--santa-lime-wash);
  --person-mark: var(--santa-lime);
  --person-ink: var(--santa-green);
}

.secret-santa .santa-person:target {
  outline: 2px solid var(--person-ink);
}

.secret-santa .santa-person__who {
  grid-row: span 2;
  align-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 3px;
}

.secret-santa .santa-person__avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--person-mark);
  color: var(--person-ink);
  font-size: 14px;
  font-weight: 700;
}

.secret-santa .santa-person__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.secret-santa .santa-person__name {
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.secret-santa .santa-person__status {
  padding: 1px 8px;
  border-radius: 9999px;
  background: var(--person-mark);
  color: var(--person-ink);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.secret-santa .santa-person__way {
  min-width: 0;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.secret-santa .santa-person__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--santa-muted);
}

.secret-santa .santa-linkbox {
  min-width: 0;
  display: flex;
  align-items: stretch;
  height: 40px;
  border: 1px solid var(--santa-field-line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}

.secret-santa .santa-linkbox__url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: nowrap;
  user-select: all;
}

.secret-santa .santa-linkbox__base {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--santa-faint);
}

.secret-santa .santa-linkbox__token {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--santa-ink);
}

.secret-santa .santa-linkbox__copy {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: none;
  border-left: 1px solid var(--santa-field-line);
  background: white;
  color: var(--santa-green);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.secret-santa .santa-linkbox__copy:hover {
  background: var(--santa-grey);
}

.secret-santa .santa-linkbox__copy .icon,
.secret-santa .santa-person__send-button .icon,
.secret-santa .santa-person__sent .icon {
  width: 15px;
  height: 15px;
}

.secret-santa .santa-person__send {
  min-width: 0;
  display: flex;
  gap: 6px;
}

.secret-santa .santa-person__email {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--santa-field-line);
  border-radius: 10px;
  background: white;
  font: inherit;
  font-size: 14px;
  color: var(--santa-ink);
}

.secret-santa .santa-person__email:focus {
  outline: 2px solid var(--santa-green);
  outline-offset: 0;
}

.secret-santa .santa-person__send-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 9999px;
  background: var(--santa-green);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.secret-santa .santa-person__sent {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  color: #2f6b12;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Once emailed there is nothing left to type: the line shrinks to its text. */
.secret-santa .santa-person__way--done .santa-person__sent {
  height: auto;
  font-size: 13px;
}

.secret-santa .santa-person:has(.santa-person__way--done) {
  row-gap: 4px;
}

@media (max-width: 40rem) {
  .secret-santa .santa-person {
    grid-template-columns: minmax(0, 1fr);
  }

  .secret-santa .santa-person__who {
    grid-row: auto;
  }

  .secret-santa .santa-person__way {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* --- Preview of the participant's email --- */

.secret-santa .santa-mail {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--santa-line);
  border-radius: 16px;
}

.secret-santa .santa-mail__frame {
  overflow: hidden;
  border: 1px solid var(--santa-line);
  border-radius: 12px;
  background: #fcfaf7;
}

.secret-santa .santa-mail__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--santa-line);
  background: white;
  font-size: 11.5px;
  color: var(--santa-muted);
}

.secret-santa .santa-mail__meta strong {
  font-weight: 600;
  color: var(--santa-ink);
}

.secret-santa .santa-mail__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px;
  padding: 14px;
  border-radius: 10px;
  background: white;
  font-size: 12.5px;
  line-height: 1.45;
}

.secret-santa .santa-mail__brand {
  font-family: var(--font-family-bricolage);
  font-size: 14px;
  font-weight: 700;
  color: var(--santa-green);
}

.secret-santa .santa-mail__heading {
  font-size: 14px;
  font-weight: 600;
}

.secret-santa .santa-mail__button {
  align-self: center;
  margin: 6px 0;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--santa-green);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.secret-santa .santa-mail__promo {
  padding-top: 8px;
  border-top: 1px solid var(--santa-line);
  font-size: 10.5px;
  color: var(--santa-muted);
}

.secret-santa .santa-mail__promo-link {
  font-weight: 600;
  color: var(--santa-green);
  text-decoration: underline;
}

.secret-santa .santa-mail__footer {
  font-size: 10.5px;
  color: var(--santa-faint);
}

.secret-santa .santa-mail__note {
  font-size: 12.5px;
  color: var(--santa-muted);
}

.secret-santa .santa-outline-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--santa-field-line);
  border-radius: 9999px;
  background: white;
  color: var(--santa-green);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.secret-santa .santa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--santa-muted);
}

.secret-santa .santa-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.secret-santa .santa-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}

.secret-santa .santa-legend__dot--todo { background: var(--santa-amber-wash); border: 1px solid #e3b77d; }
.secret-santa .santa-legend__dot--sent { background: #d3f2ff; border: 1px solid #7cc6ec; }
.secret-santa .santa-legend__dot--seen { background: var(--santa-lime); border: 1px solid #5fb02c; }

.secret-santa .santa-side-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--santa-line);
  border-radius: 16px;
}

.secret-santa .santa-side-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.secret-santa .santa-side-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--santa-muted);
}

.secret-santa .santa-again {
  padding: 0 16px 72px;
  text-align: center;
}

.secret-santa .santa-link-text {
  font-weight: 600;
  color: var(--santa-green);
}

/* --- Reveal: a gift tag --- */

.secret-santa .santa-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(32px, 5vw, 56px) 20px 48px;
  text-align: center;
}

.secret-santa .santa-reveal__lead {
  font-size: 18px;
  color: var(--santa-muted);
}

.secret-santa .santa-reveal__lead strong {
  color: var(--santa-ink);
  font-weight: 700;
}

.secret-santa .santa-tag {
  position: relative;
  width: min(100%, 320px);
  padding-top: 34px;
}

.secret-santa .santa-tag__string {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 46px;
  background: #b45309;
  transform: translateX(-50%);
}

/* The rotation also gives the card its own stacking context, which keeps the
   highlight under the name but above the card. */
.secret-santa .santa-tag__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px 28px;
  border: 2px solid var(--santa-amber-wash);
  border-radius: 28px 28px 24px 24px;
  background: white;
  box-shadow: 0 18px 40px rgb(129 83 28 / 15%);
  transform: rotate(-2deg);
}

.secret-santa .santa-tag__hole {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid #e3b77d;
  border-radius: 9999px;
  background: white;
  transform: translateX(-50%);
}

.secret-santa .santa-tag__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--santa-amber);
}

.secret-santa .santa-tag__name {
  position: relative;
  z-index: 0;
  font-family: var(--font-family-bricolage);
  font-size: clamp(56px, 14vw, 76px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.secret-santa .santa-tag__name::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 6px;
  z-index: -1;
  height: 18px;
  border-radius: 8px;
  background: var(--santa-lime);
}

.secret-santa .santa-tag__budget {
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--santa-green);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.secret-santa .santa-reveal__secret {
  font-size: 15px;
  color: var(--santa-muted);
}

/* --- Memorable --- */

.secret-santa .santa-memorable {
  width: calc(100% - 2 * clamp(16px, 5vw, 64px));
  max-width: 1040px;
  box-sizing: border-box;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: center;
  gap: 24px 40px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px) 0;
  border-radius: 32px;
  background: linear-gradient(180deg, #edf8ff 0%, #d8ecfd 100%);
  overflow: hidden;
}

.secret-santa .santa-memorable__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: clamp(28px, 4vw, 48px);
}

.secret-santa .santa-memorable__eyebrow {
  font-family: var(--font-family-bricolage);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0e3dd5;
}

.secret-santa .santa-memorable__title {
  font-family: var(--font-family-bricolage);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.secret-santa .santa-memorable__body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--santa-muted);
}

.secret-santa .santa-memorable__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secret-santa .santa-memorable__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.45;
}

.secret-santa .santa-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 9999px;
  background: var(--santa-lime);
  color: var(--santa-green);
}

.secret-santa .santa-check .icon {
  width: 14px;
  height: 14px;
}

.secret-santa .santa-memorable__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 6px;
}

.secret-santa .santa-memorable__actions .santa-link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secret-santa .santa-memorable__visual {
  display: flex;
  align-self: end;
  justify-content: center;
}

/* The screenshot runs off the bottom of the card: only its top is rounded. */
.secret-santa .santa-memorable__visual img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 12px 40px rgb(22 51 0 / 18%);
}

@media (max-width: 48rem) {
  .secret-santa .santa-tool__panel {
    position: static;
    min-height: 0;
  }

  .secret-santa .santa-rows {
    gap: 16px;
  }

  .secret-santa .santa-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 4px 8px;
  }

  .secret-santa .santa-row input[type="email"] {
    grid-row: 2;
  }

  .secret-santa .santa-couple {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .secret-santa .santa-couple__sign {
    display: none;
  }

  .secret-santa .santa-couple select:nth-of-type(2) {
    grid-row: 2;
  }

}
