:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #09090b;
  --panel: #111114;
  --surface: #19191e;
  --surface-hover: #212127;
  --border: #303038;
  --text: #ffffff;
  --muted: #a6a5ae;
  --accent: #f448a7;
  --accent-light: #ff73c2;
  --focus: #f9a8d4;
  background: var(--background);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { min-height: 100svh; margin: 0; color: var(--text); background: radial-gradient(circle at 50% 0, rgba(244, 72, 167, .09), transparent 32rem), var(--background); }
button, a { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }

.creator-page { width: min(1180px, 100%); margin: 0 auto; padding: 28px 24px 48px; }
.creator-panel { width: 100%; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--border); border-radius: 30px; background: rgba(17, 17, 20, .96); box-shadow: 0 28px 80px rgba(0, 0, 0, .42); }

.page-header { display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 56px); }
.brand { flex: 0 0 auto; color: var(--text); font-size: clamp(34px, 4.6vw, 54px); font-style: italic; font-weight: 1000; letter-spacing: -.09em; line-height: .9; transform: skewX(-7deg); }
.brand__pink { color: #ef79b9; }
.brand__white { color: var(--text); }
.page-heading { max-width: 650px; }
.eyebrow, .step-counter { margin: 0 0 7px; color: var(--accent-light); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 43px); font-weight: 950; letter-spacing: -.045em; line-height: 1.05; }
.page-heading > p:last-child, #step-description { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.progress { margin: clamp(34px, 5vw, 58px) auto 40px; }
.progress__list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.progress__item { position: relative; min-width: 0; }
.progress__item:not(:last-child)::after { position: absolute; z-index: 0; top: 21px; right: calc(-50% + 28px); left: calc(50% + 28px); height: 3px; content: ""; border-radius: 999px; background: #34343c; transition: background .2s ease; }
.progress__item.is-complete:not(:last-child)::after { background: linear-gradient(90deg, var(--accent), #ed71bb); }
.progress__button { position: relative; z-index: 1; display: grid; width: 100%; min-width: 0; place-items: center; gap: 9px; padding: 0 5px; color: #777681; border: 0; background: transparent; font-size: 13px; font-weight: 800; }
.progress__icon { display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid #393941; border-radius: 50%; background: #17171b; font-size: 15px; transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.progress__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress__button[aria-current="step"] { color: var(--text); }
.progress__button[aria-current="step"] .progress__icon { color: var(--text); border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(244, 72, 167, .15); }
.progress__item.is-complete .progress__button { color: #d8d7dd; }
.progress__item.is-complete .progress__icon { color: var(--text); border-color: var(--accent); background: #331526; }
.progress__button:disabled { opacity: .62; }

.step-content { padding-top: 5px; }
.step-heading { display: flex; margin-bottom: 22px; align-items: end; justify-content: space-between; gap: 24px; }
.step-heading h2 { margin-bottom: 5px; font-size: clamp(25px, 3vw, 34px); font-weight: 930; letter-spacing: -.035em; }
.step-heading > div { min-width: 0; }

.option-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 20px); }
.option-card { position: relative; display: block; min-width: 0; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; color: var(--text); border: 2px solid #474750; border-radius: clamp(15px, 2vw, 23px); background: linear-gradient(145deg, #595e70, #20212b 50%, #101014); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); isolation: isolate; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.option-card::after { position: absolute; z-index: 2; inset: 38% 0 0; content: ""; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .83)); }
.option-card:hover { border-color: #8d8993; transform: translateY(-3px); }
.option-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244, 72, 167, .34), 0 14px 28px rgba(244, 72, 167, .14); }
.option-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.option-card:hover .option-card__image { transform: scale(1.035); }
.option-card__label { position: absolute; z-index: 3; right: 10px; bottom: 13px; left: 10px; overflow: hidden; font-size: clamp(13px, 1.5vw, 17px); font-weight: 900; letter-spacing: -.015em; line-height: 1.18; text-align: center; text-overflow: ellipsis; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.option-card.is-selected .option-card__label { color: #ff77c3; }
.option-card__mark { position: absolute; z-index: 4; top: 10px; right: 10px; display: grid; width: 27px; height: 27px; place-items: center; opacity: 0; color: var(--text); border-radius: 50%; background: var(--accent); font-size: 16px; font-weight: 950; transform: scale(.75); transition: opacity .2s ease, transform .2s ease; }
.option-card.is-selected .option-card__mark { opacity: 1; transform: scale(1); }
.option-card.has-image-error .option-card__image { display: none; }
.option-card--custom { border-color: #36363e; background: #242428; }
.option-card--custom:hover { border-color: #77747d; }
.option-card--custom.is-selected { border-color: var(--accent); }
.custom-card__visual { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 19% 18%, rgba(177, 177, 182, .5) 0 6%, transparent 7%), radial-gradient(circle at 71% 29%, rgba(161, 161, 168, .28) 0 5%, transparent 6%), radial-gradient(ellipse at 50% 54%, #69696f 0, #47474d 39%, #252529 76%); }
.custom-card__visual::before, .custom-card__visual::after { position: absolute; content: "♥"; color: rgba(229, 229, 232, .38); filter: blur(1px); }
.custom-card__visual::before { top: 11%; left: 12%; font-size: clamp(42px, 5vw, 66px); transform: rotate(-13deg); }
.custom-card__visual::after { right: 11%; bottom: 24%; font-size: clamp(32px, 4vw, 48px); transform: rotate(12deg); }
.custom-card__heart { position: absolute; z-index: 1; top: 16%; right: 16%; color: #f448a7; font-size: clamp(26px, 3vw, 38px); filter: drop-shadow(0 4px 10px rgba(244, 72, 167, .35)); }
.custom-card__brush { position: absolute; z-index: 1; top: 43%; left: 28%; width: 48%; height: 15%; border-radius: 8px 14px 14px 8px; background: linear-gradient(150deg, #e4e4e6, #818187 42%, #3e3e44 43% 100%); box-shadow: 0 9px 19px rgba(0, 0, 0, .35); transform: rotate(28deg); }
.custom-card__brush::after { position: absolute; top: -37%; left: -36%; width: 43%; height: 174%; content: ""; border-radius: 12px 4px 4px 12px; background: repeating-linear-gradient(90deg, #d5d5d8 0 3px, #8e8e94 3px 6px); }
.option-card--custom .option-card__label { bottom: 18px; color: #fff; font-size: clamp(20px, 2.4vw, 29px); letter-spacing: 0; }
.option-card--long-custom .option-card__label { right: 14px; bottom: 16px; left: 14px; font-size: clamp(14px, 1.55vw, 19px); line-height: 1.32; text-wrap: balance; }

.creator-actions { display: grid; max-width: 520px; margin: 36px 0 0 auto; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.3fr); gap: 14px; }
.action-button { min-height: 58px; padding: 12px 22px; border-radius: 999px; font-weight: 900; transition: filter .2s ease, transform .2s ease, opacity .2s ease; }
.action-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.action-button--secondary { color: #e4e3e7; border: 1px solid #44444d; background: #202025; }
.action-button--primary { color: var(--text); border: 0; background: linear-gradient(180deg, #ff72c7, #ef159e); box-shadow: 0 13px 26px rgba(255, 31, 167, .22), inset 0 1px rgba(255, 255, 255, .3); }
.action-button--primary:disabled { opacity: .38; box-shadow: none; }
.completion-message, .noscript-message { margin: 25px 0 0; padding: 15px 18px; color: #ffd8ee; border: 1px solid rgba(244, 72, 167, .42); border-radius: 16px; background: rgba(244, 72, 167, .1); font-weight: 800; text-align: center; }

.has-open-modal { overflow: hidden; }
.completion-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: clamp(14px, 3vw, 28px); background: rgba(0, 0, 0, .78); backdrop-filter: blur(8px); }
.completion-modal[hidden] { display: none; }
.completion-modal__panel { position: relative; width: min(100%, 500px); aspect-ratio: .78; min-height: 0; padding: 7% 6% 5%; overflow: hidden; color: #fff; border-radius: 26px; background: radial-gradient(ellipse at 50% 105%, rgba(0, 0, 0, .58), transparent 45%), radial-gradient(ellipse at 50% 39%, rgba(70, 70, 72, .44), transparent 38%), #242424; box-shadow: 0 24px 70px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .04); }
.completion-modal__panel::before { position: absolute; inset: 0; content: ""; opacity: .42; pointer-events: none; background-image: radial-gradient(circle, #8e8e91 1.15px, transparent 1.85px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse at 50% 39%, #000 0 39%, transparent 74%); mask-image: radial-gradient(ellipse at 50% 39%, #000 0 39%, transparent 74%); }
.completion-modal__heart { position: absolute; z-index: 0; top: 6%; left: 50%; color: transparent; font-family: Georgia, serif; font-size: min(94vw, 470px); font-weight: 700; line-height: .72; letter-spacing: -.12em; text-align: center; transform: translateX(-50%) scaleX(1.08); background-image: radial-gradient(circle, rgba(212, 212, 215, .72) 1.3px, transparent 1.9px); background-size: 12px 12px; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 22px rgba(230, 230, 234, .12)); }
.completion-modal__heading { position: relative; z-index: 1; margin-top: 36%; font-weight: 800; letter-spacing: -.08em; line-height: .98; text-align: center; }
.completion-modal__heading span, .completion-modal__heading strong { display: block; }
.completion-modal__heading span { color: #fff; font-size: clamp(32px, 9vw, 46px); }
.completion-modal__heading strong { margin-top: 12px; color: #f45ab7; font-size: clamp(33px, 9.4vw, 48px); font-weight: 800; }
.completion-modal__features { position: relative; z-index: 1; display: grid; width: max-content; max-width: 100%; margin: 5% auto 0; padding: 0; gap: clamp(8px, 1.8vw, 11px); list-style: none; color: #fff; font-size: clamp(22px, 6vw, 30px); font-weight: 700; letter-spacing: -.07em; line-height: 1.12; text-align: left; }
.completion-modal__features li { display: flex; align-items: center; gap: .35em; white-space: nowrap; }
.completion-modal__icon { position: relative; display: inline-block; width: .73em; height: .62em; flex: 0 0 .73em; color: #f45ab7; letter-spacing: 0; }
.completion-modal__features li:nth-child(1) .completion-modal__icon { border-radius: 50%; background: currentColor; }
.completion-modal__features li:nth-child(1) .completion-modal__icon::after { position: absolute; right: 6%; bottom: -.18em; width: 0; height: 0; content: ""; border-top: .27em solid currentColor; border-left: .22em solid transparent; }
.completion-modal__features li:nth-child(2) .completion-modal__icon::before { position: absolute; inset: -.33em 0 0 -.1em; content: "☎"; color: currentColor; font-family: Arial, sans-serif; font-size: 1.15em; font-weight: 900; transform: rotate(-12deg); }
.completion-modal__features li:nth-child(3) .completion-modal__icon { width: .8em; flex-basis: .8em; height: .52em; border-radius: .08em; background: currentColor; }
.completion-modal__features li:nth-child(3) .completion-modal__icon::after { position: absolute; top: -.06em; right: -.22em; width: .28em; height: .63em; content: ""; border-radius: 0 .08em .08em 0; background: currentColor; }
.completion-modal__features li:nth-child(4) .completion-modal__icon { width: .72em; flex-basis: .72em; height: .6em; border: .09em solid currentColor; }
.completion-modal__features li:nth-child(4) .completion-modal__icon::after { position: absolute; right: .06em; bottom: .04em; left: .06em; height: .28em; content: ""; background: linear-gradient(135deg, transparent 46%, currentColor 48% 60%, transparent 62%), linear-gradient(45deg, transparent 48%, currentColor 50% 63%, transparent 65%); }
.completion-modal__action { position: absolute; z-index: 1; right: 4%; bottom: 5%; left: 4%; display: flex; min-height: 13%; align-items: center; justify-content: center; gap: .38em; color: #fff; border-radius: 999px; background: linear-gradient(180deg, #fa8cda 0%, #f54dc1 54%, #ed0f9b 100%); box-shadow: inset 0 1px rgba(255, 255, 255, .54), 0 10px 25px rgba(245, 38, 174, .28); font-size: clamp(22px, 6.2vw, 31px); font-weight: 700; letter-spacing: -.06em; }
.completion-modal__action span { font-size: 1.18em; }
.completion-modal__action:hover { filter: brightness(1.08); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 767px) {
  .creator-page { padding: 16px 14px 34px; }
  .creator-panel { padding: 24px 18px 30px; border-radius: 24px; }
  .page-header { display: block; }
  .brand { display: inline-block; margin-bottom: 24px; }
  .progress { margin-top: 34px; margin-bottom: 32px; }
  .progress__item:not(:last-child)::after { top: 19px; right: calc(-50% + 24px); left: calc(50% + 24px); }
  .progress__icon { width: 40px; height: 40px; }
  .progress__label { font-size: 11px; }
  .step-heading { display: block; }
  .option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
  .creator-panel { padding-right: 14px; padding-left: 14px; }
  .progress__button { gap: 7px; padding: 0 2px; }
  .progress__icon { width: 36px; height: 36px; font-size: 13px; }
  .progress__item:not(:last-child)::after { top: 17px; right: calc(-50% + 21px); left: calc(50% + 21px); height: 2px; }
  .progress__label { max-width: 72px; font-size: 10px; }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .creator-actions { max-width: none; grid-template-columns: 1fr 1.25fr; }
  .action-button { min-height: 54px; padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 350px) {
  .progress__label { font-size: 9px; }
  .creator-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .option-card:hover, .action-button:hover:not(:disabled) { transform: none; }
  .option-card:hover .option-card__image { transform: none; }
}
