.masx-sc {
  --sc-bg: var(--masx-ds-canvas, #060914);
  --sc-surface: var(--masx-ds-surface-solid, #0b0d1b);
  --sc-surface-raised: var(--masx-ds-surface-strong, rgba(6, 9, 20, .9));
  --sc-line: var(--masx-ds-line-soft, rgba(126, 49, 82, .36));
  --sc-line-strong: var(--masx-ds-line, rgba(153, 59, 99, .54));
  --sc-muted: var(--masx-ds-ink-soft, #c9c1c4);
  --sc-pink: var(--masx-ds-accent, #a63868);
  --sc-pink-soft: var(--masx-ds-accent-soft, #b9557d);
  --sc-pink-shine: var(--masx-ds-accent-shine, #d884a7);
  --sc-gold: var(--masx-ds-gold, #9d742d);
  --sc-ink: var(--masx-ds-ink, #f8f1ee);
  --sc-panel: var(--masx-ds-panel, linear-gradient(145deg, rgba(255,255,255,.032), transparent 34%), rgba(5,8,20,.68));
  --sc-control: var(--masx-ds-control, linear-gradient(145deg, rgba(255,255,255,.075), transparent 42%), rgba(5,8,20,.88));
  --sc-control-hover: var(--masx-ds-control-hover, linear-gradient(145deg, rgba(255,255,255,.055), transparent 34%), rgba(11,13,27,.92));
  width: 100%;
  min-width: 0;
  color: var(--sc-ink);
  font-family: "Oswald", Arial, sans-serif;
}

.masx-pd.masx-pd--stamps {
  padding-top: 0;
}

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

.masx-sc.masx-sc__overlay-root {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  width: 100vw;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  isolation: isolate;
}

.masx-sc__overlay-root :is(.masx-sc__creator-dialog, .masx-sc__share-dialog) {
  pointer-events: auto;
}

.masx-sc [hidden] {
  display: none !important;
}

.masx-sc button,
.masx-sc input,
.masx-sc select,
.masx-sc textarea {
  font: inherit;
}

.masx-sc button:focus-visible,
.masx-sc input:focus-visible,
.masx-sc select:focus-visible,
.masx-sc textarea:focus-visible {
  outline: 2px solid var(--sc-pink-soft);
  outline-offset: 3px;
}

.masx-sc__hero {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 0;
  margin-bottom: 18px;
  padding: var(--masx-section-inset-block, clamp(28px, 3vw, 40px)) var(--masx-section-inset-inline, clamp(28px, 3vw, 42px));
  border: 1px solid var(--masx-passport-section-line, var(--sc-line));
  border-radius: var(--masx-passport-section-radius, 16px);
  background:
    linear-gradient(90deg, rgba(4, 6, 14, .96) 0%, rgba(6, 8, 18, .86) 38%, rgba(7, 9, 20, .46) 70%, rgba(5, 8, 18, .2) 100%),
    url("../images/passport-stamps-hero-background.png") center / cover no-repeat;
  box-shadow: var(--masx-ds-shadow, 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .055));
}

.masx-sc__hero::after {
  display: none;
  content: none;
}

.masx-sc__eyebrow {
  margin: 0 0 12px;
  color: var(--masx-hero-eyebrow-color, var(--sc-pink-soft));
  font-family: var(--masx-font-content, "Oswald", sans-serif);
  font-size: var(--masx-type-eyebrow, .72rem);
  font-weight: 500;
  letter-spacing: .19em;
  line-height: 1.25;
  text-transform: uppercase;
}

.masx-sc__eyebrow::before {
  display: none;
  content: none;
}

.masx-sc__hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: var(--masx-type-page-title, clamp(1.9rem, 3.1vw, 3.2rem));
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: normal;
}

.masx-sc__hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--masx-hero-description-color, var(--sc-muted));
  font-size: .9rem;
  line-height: 1.6;
}

.masx-sc__hero-action {
  width: fit-content;
}

.masx-sc__creator-dialog {
  position: fixed;
  z-index: 2147483600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.masx-sc__creator-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(2, 2, 6, .84);
  cursor: default;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.masx-sc__creator-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px 24px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(141, 47, 85, .16), transparent 18rem),
    linear-gradient(145deg, rgba(11, 13, 27, .995), rgba(5, 8, 20, .995) 72%);
  box-shadow: 0 32px 110px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .055);
  -webkit-overflow-scrolling: touch;
  animation: masxScSheetIn .22s ease-out both;
}

.masx-sc__creator-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 -24px 20px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--sc-line);
  background: rgba(7, 9, 20, .96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.masx-sc__creator-header p {
  margin: 0 0 5px;
  color: var(--sc-pink-shine);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.masx-sc__creator-header h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.masx-sc__creator-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 50%;
  color: var(--sc-muted);
  background: var(--sc-control);
  cursor: pointer;
}

.masx-sc__grid {
  display: block;
}

.masx-sc__grid.has-preview {
  display: block;
}

.masx-sc__creator-panel :is(.masx-sc__editor, .masx-sc__preview) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.masx-sc__asset-status-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.masx-sc__instructions {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: rgba(141, 47, 85, .08);
  color: var(--sc-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.masx-sc__instructions > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--sc-control);
  color: var(--sc-pink-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
  font-size: 1rem;
}

.masx-sc__instructions span {
  display: grid;
  gap: 3px;
}

.masx-sc__instructions strong {
  color: var(--sc-ink);
  font-family: "Orbitron", sans-serif;
  font-size: .72rem;
  letter-spacing: .025em;
}

.masx-sc__collection,
.masx-sc__editor,
.masx-sc__preview {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--sc-line);
  border-radius: 20px;
  background: var(--sc-panel);
  box-shadow: var(--masx-ds-shadow-soft, 0 12px 28px rgba(0, 0, 0, .2));
  -webkit-backdrop-filter: blur(16px) saturate(.82);
  backdrop-filter: blur(16px) saturate(.82);
}

.masx-sc__collection {
  margin-bottom: 18px;
}

.masx-sc__editor {
  margin: 0 auto;
  max-width: 760px;
  position: static;
}

.masx-sc__grid.has-preview .masx-sc__editor {
  max-width: none;
}

.masx-sc__grid.has-preview .masx-sc__preview {
  max-width: 980px;
  margin: 0 auto;
}

.masx-sc__edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--sc-pink-shine);
  background: none;
  cursor: pointer;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.masx-sc__collection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.masx-sc__collection-heading h2 {
  margin: 0;
  color: var(--sc-ink);
  font-family: "Orbitron", sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.masx-sc__collection-count {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 999px;
  color: var(--sc-pink-shine);
  background: rgba(141, 47, 85, .1);
  font-family: "Orbitron", sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.masx-sc__collection-count.is-counting {
  animation: masxScCountEarned .9s cubic-bezier(.2, .8, .2, 1) both;
}

.masx-sc__collection-status,
.masx-sc__collection-empty {
  margin: 0;
  color: var(--sc-muted);
  font-size: .76rem;
  line-height: 1.55;
}

.masx-sc__collection-status[data-state="error"] {
  color: #d884a7;
}

.masx-sc__collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 170px));
  gap: 14px;
}

.masx-sc__stamp {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.masx-sc__stamp img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35));
}

.masx-sc__stamp-count {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: inline-grid;
  min-width: 38px;
  min-height: 27px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 999px;
  color: var(--sc-ink);
  background: var(--sc-surface-raised);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .38), 0 0 12px rgba(141, 47, 85, .16);
  font-family: "Orbitron", sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.masx-sc__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.masx-sc__heading h2 {
  margin: 0;
  color: var(--sc-ink);
  font-family: "Orbitron", sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.masx-sc__status,
.masx-sc__ratio {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  color: var(--sc-muted);
  font-family: "Orbitron", sans-serif;
  font-size: .53rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.masx-sc__status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a828e;
  content: "";
}

.masx-sc__status[data-state="ready"]::before {
  background: #80ad83;
  box-shadow: 0 0 10px rgba(102, 219, 155, .7);
}

.masx-sc__status[data-state="error"]::before {
  background: #b9557d;
}

.masx-sc__field {
  display: block;
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.masx-sc__field > label,
.masx-sc__label-row label,
.masx-sc__field legend {
  color: var(--sc-ink);
  font-family: var(--masx-font-content, "Oswald", sans-serif) !important;
  font-size: .78rem;
  font-weight: 600;
}

.masx-sc__optional {
  color: var(--sc-muted);
  font: inherit;
  font-weight: 400;
}

.masx-sc__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.masx-sc__count {
  color: var(--sc-muted);
  font-size: .67rem;
  font-variant-numeric: tabular-nums;
}

.masx-sc__count.is-near {
  color: #d884a7;
}

.masx-sc input[type="text"],
.masx-sc textarea {
  width: 100%;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  color: var(--sc-ink);
  background: rgba(5, 8, 20, .84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.masx-sc input[type="text"] {
  min-height: 50px;
  padding: 0 14px;
}

.masx-sc textarea {
  min-height: 108px;
  padding: 13px 14px;
  line-height: 1.45;
  resize: vertical;
}

.masx-sc input[type="text"]::placeholder,
.masx-sc textarea::placeholder {
  color: #817980;
}

.masx-sc input[type="text"]:hover,
.masx-sc textarea:hover,
.masx-sc input[type="text"]:focus,
.masx-sc textarea:focus {
  border-color: var(--sc-line-strong);
}

.masx-sc [aria-invalid="true"] {
  border-color: #b9557d !important;
}

.masx-sc__hint,
.masx-sc__error,
.masx-sc__download-status {
  margin: 7px 0 0;
  font-size: .67rem;
  line-height: 1.45;
}

.masx-sc__hint {
  color: var(--sc-muted);
}

.masx-sc__error {
  color: #d884a7;
}

.masx-sc__field--category legend {
  margin-bottom: 9px;
}

.masx-sc__field--category {
  min-inline-size: 0;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.masx-sc__categories {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.masx-sc__category {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 3px 11px;
  border: 0;
  border-radius: 0;
  color: var(--sc-muted);
  background: transparent;
  cursor: pointer;
  font-size: .74rem;
  font-weight: 600;
  text-align: center;
  transition: color .16s ease;
}

.masx-sc__category::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.masx-sc__category:hover {
  color: var(--sc-ink);
}

.masx-sc__category:has(input:checked) {
  color: var(--sc-pink-shine);
  background: transparent;
  box-shadow: none;
  font-weight: 700;
}

.masx-sc__category:has(input:checked)::after {
  right: 4px;
  left: 4px;
  height: 3px;
  background: linear-gradient(90deg, var(--sc-pink-soft), var(--sc-pink), var(--sc-gold));
  box-shadow: 0 0 14px rgba(141, 47, 85, .24);
}

.masx-sc__category:focus-within {
  outline: 2px solid var(--sc-gold);
  outline-offset: 2px;
}

.masx-sc__category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.masx-sc__category i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--sc-pink-soft);
  background: transparent;
  font-size: 1.15rem;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.masx-sc__category:has(input:checked) i {
  border-radius: 50%;
  color: var(--sc-pink-shine);
  background: var(--sc-control);
  box-shadow: 0 0 0 3px rgba(141, 47, 85, .1), 0 7px 18px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .055);
  transform: scale(1.12);
}

.masx-sc__button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 17px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 10px;
  color: var(--sc-muted);
  background: var(--sc-control);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .055);
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: filter .16s ease, opacity .16s ease, transform .16s ease;
}

.masx-sc__button:not(:disabled):hover {
  color: var(--sc-ink);
  background: var(--sc-control-hover);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38), 0 0 18px rgba(141, 47, 85, .12), inset 0 1px 0 rgba(255, 255, 255, .075);
  filter: brightness(1.05) saturate(.94);
  transform: translateY(-1px);
}

.masx-sc__button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.masx-sc__button--share {
  min-height: 46px;
  color: var(--sc-muted);
  background: var(--sc-control);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .055);
}

.masx-sc__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.masx-sc__actions--single {
  display: block;
}

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

.masx-sc__version-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
}

.masx-sc__version-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(201, 193, 196, .32);
}

.masx-sc__version-dots button[aria-pressed="true"] {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sc-pink-shine), var(--sc-pink));
  box-shadow: 0 0 12px rgba(216, 132, 167, .24);
}

.masx-sc__version {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: rgba(5, 8, 20, .52);
}

.masx-sc__version-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-bottom: 10px;
}

.masx-sc__version-heading h3 {
  margin: 0;
  color: var(--sc-ink);
  font-family: "Orbitron", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.masx-sc__stage {
  --check-a: #18151b;
  --check-b: #251f28;
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  padding: 14px;
  border: 1px solid #38323c;
  border-radius: 15px;
  background-color: var(--check-a);
  background-image:
    linear-gradient(45deg, var(--check-b) 25%, transparent 25%),
    linear-gradient(-45deg, var(--check-b) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--check-b) 75%),
    linear-gradient(-45deg, transparent 75%, var(--check-b) 75%);
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
  background-size: 26px 26px;
}

.masx-sc__stage[data-theme="light"] {
  --check-a: #f4f2ed;
  --check-b: #e2dfd8;
  border-color: #57505a;
}

.masx-sc__canvas-frame {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 9 / 16;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .24));
}

.masx-sc canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.masx-sc__loading,
.masx-sc__preview-error {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #eee8f0;
  background: rgba(8, 7, 10, .78);
  font-family: "Orbitron", sans-serif;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.masx-sc__preview-error {
  color: #d884a7;
}

.masx-sc__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-top-color: var(--sc-pink-shine);
  border-radius: 50%;
  animation: masxScSpin .85s linear infinite;
}

@keyframes masxScSpin {
  to { transform: rotate(360deg); }
}

.masx-sc__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 193, 66, .24);
  border-radius: 9px;
  color: #d0a64f;
  background: rgba(113, 84, 20, .12);
  font-size: .68rem;
  line-height: 1.4;
}

.masx-sc__notice--error {
  border-color: rgba(255, 110, 131, .28);
  color: #d884a7;
  background: rgba(124, 29, 48, .14);
}

.masx-sc__notice--dirty {
  margin: 16px 0 0;
}

.masx-sc__retry {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--sc-ink);
  background: none;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  text-decoration: underline;
}

.masx-sc__download-status {
  text-align: center;
}

.masx-sc__download-status[data-state="success"] {
  color: #80ad83;
}

.masx-sc__download-status[data-state="error"] {
  color: #d884a7;
}

.masx-sc__share-dialog {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.masx-sc__share-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(2, 2, 5, .78);
  cursor: default;
  backdrop-filter: blur(10px);
}

.masx-sc__share-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: 24px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(141, 47, 85, .13), transparent 13rem),
    linear-gradient(145deg, rgba(11, 13, 27, .99), rgba(5, 8, 20, .99) 72%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .055);
  animation: masxScSheetIn .22s ease-out both;
}

.masx-sc__share-sheet-header {
  display: flex;
  position: static !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  transform: none !important;
  z-index: auto !important;
}

.masx-sc__share-sheet-header h2 {
  margin: 0;
  color: var(--sc-ink);
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.masx-sc__share-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 50%;
  color: var(--sc-muted);
  background: var(--sc-control);
  cursor: pointer;
}

.masx-sc__share-options {
  display: grid;
  gap: 9px;
}

.masx-sc__share-option {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 8px 14px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  color: var(--sc-ink);
  background: rgba(5, 8, 20, .62);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.masx-sc__share-option:not(:disabled):hover {
  border-color: var(--sc-line-strong);
  background: linear-gradient(110deg, rgba(141, 47, 85, .17), rgba(95, 69, 111, .09));
  transform: translateY(-1px);
}

.masx-sc__share-option:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.masx-sc__share-option > i {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--sc-pink-shine);
  background: var(--sc-control);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
  font-size: .9rem;
}

.masx-sc__share-option strong {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(.78rem, 2.3vw, .9rem);
  letter-spacing: .015em;
  line-height: 1.25;
}

.masx-sc__community-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 13px 2px 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--sc-pink-shine) 34%, transparent);
  border-radius: 10px;
  color: var(--sc-muted);
  background: linear-gradient(115deg, rgba(141, 47, 85, .13), rgba(7, 10, 22, .48));
  font-size: .66rem;
  line-height: 1.5;
  text-align: left;
}

.masx-sc__community-note p {
  margin: 0;
}

.masx-sc__community-note strong {
  color: var(--sc-pink-shine);
  font-weight: 700;
  white-space: nowrap;
}

.masx-sc__community-note button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 8px;
  background: var(--sc-control);
  color: var(--sc-pink-shine);
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.masx-sc__community-note button:is(:hover, :focus-visible),
.masx-sc__community-note button[data-state="success"] {
  border-color: var(--sc-pink-shine);
  background: linear-gradient(110deg, rgba(141, 47, 85, .24), rgba(95, 69, 111, .16));
  color: var(--sc-ink);
}

.masx-sc__share-status {
  margin: 14px 0 0;
  color: var(--sc-muted);
  font-size: .68rem;
  line-height: 1.45;
  text-align: center;
}

.masx-sc__share-status[data-state="error"] {
  color: #d884a7;
}

/* Reconnected share-success animation from the original Discovery flow. */
.masx-sc__reward {
  position: fixed;
  z-index: 2147483647;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(84vw, 330px);
  place-items: center;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%);
}

.masx-sc__reward img {
  position: relative;
  z-index: 3;
  display: block;
  width: min(68vw, 250px);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .62));
  opacity: 0;
}

.masx-sc__reward > strong,
.masx-sc__reward > span {
  position: relative;
  z-index: 4;
  opacity: 0;
}

.masx-sc__reward > strong {
  margin-top: 8px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  letter-spacing: .08em;
  text-shadow: 0 4px 22px #000, 0 0 18px rgba(242, 41, 164, .72);
  text-transform: uppercase;
}

.masx-sc__reward > span {
  margin-top: 6px;
  color: var(--masx-tone-culture-shine, #d0a64f);
  font-family: "Orbitron", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-shadow: 0 3px 16px #000;
}

.masx-sc__reward-smoke,
.masx-sc__reward-burst {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -58%);
}

.masx-sc__reward-smoke span {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 101, 192, .52) 0%, rgba(105, 54, 153, .3) 38%, transparent 72%);
  filter: blur(16px);
  opacity: 0;
}

.masx-sc__reward-smoke span:nth-child(1) { left: 20px; bottom: 38px; }
.masx-sc__reward-smoke span:nth-child(2) { right: 12px; bottom: 46px; }
.masx-sc__reward-smoke span:nth-child(3) { left: 82px; bottom: 4px; }
.masx-sc__reward-smoke span:nth-child(4) { left: 5px; bottom: 108px; }
.masx-sc__reward-smoke span:nth-child(5) { right: 2px; bottom: 118px; }

.masx-sc__reward-burst {
  z-index: 2;
  width: 210px;
  height: 210px;
  border: 2px solid rgba(255, 193, 66, .74);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(242, 41, 164, .72), inset 0 0 35px rgba(242, 41, 164, .28);
  opacity: 0;
}

.masx-sc__reward.is-active img {
  animation: masxScStampEarned 2.35s cubic-bezier(.19, .8, .2, 1) both;
}

.masx-sc__reward.is-active > strong,
.masx-sc__reward.is-active > span {
  animation: masxScRewardCopy 2.35s ease both;
}

.masx-sc__reward.is-active .masx-sc__reward-burst {
  animation: masxScRewardBurst 1.6s ease-out both;
}

.masx-sc__reward.is-active .masx-sc__reward-smoke span {
  animation: masxScRewardSmoke 2.2s ease-out both;
}

.masx-sc__reward.is-active .masx-sc__reward-smoke span:nth-child(2) { animation-delay: .08s; }
.masx-sc__reward.is-active .masx-sc__reward-smoke span:nth-child(3) { animation-delay: .15s; }
.masx-sc__reward.is-active .masx-sc__reward-smoke span:nth-child(4) { animation-delay: .04s; }
.masx-sc__reward.is-active .masx-sc__reward-smoke span:nth-child(5) { animation-delay: .12s; }

@keyframes masxScSheetIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes masxScStampEarned {
  0% { opacity: 0; transform: translateY(55px) scale(.42) rotate(-8deg); }
  24% { opacity: 1; transform: translateY(-8px) scale(1.1) rotate(2deg); }
  38%, 78% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
  100% { opacity: 0; transform: translateY(-24px) scale(.96); }
}

@keyframes masxScRewardCopy {
  0%, 20% { opacity: 0; transform: translateY(12px); }
  34%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-12px); }
}

@keyframes masxScRewardBurst {
  0% { opacity: 0; transform: translate(-50%, -58%) scale(.25); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(1.65); }
}

@keyframes masxScRewardSmoke {
  0% { opacity: 0; transform: translateY(45px) scale(.5); }
  22% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.45); }
}

@media (prefers-reduced-motion: reduce) {
  .masx-sc__reward.is-active img,
  .masx-sc__reward.is-active > strong,
  .masx-sc__reward.is-active > span,
  .masx-sc__reward.is-active .masx-sc__reward-burst,
  .masx-sc__reward.is-active .masx-sc__reward-smoke span {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes masxScCountEarned {
  0% { color: var(--sc-pink-shine); transform: scale(1); }
  38% { color: var(--masx-tone-culture-shine, #d0a64f); text-shadow: 0 0 16px rgba(139, 108, 53, .38); transform: scale(1.12); }
  100% { color: var(--sc-pink-shine); text-shadow: none; transform: scale(1); }
}

body.masx-passport-share-overlay-active,
body.masx-passport-discovery-overlay-active {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html:has(body.masx-passport-share-overlay-active),
html:has(body.masx-passport-discovery-overlay-active) {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body:is(.masx-passport-share-overlay-active, .masx-passport-discovery-overlay-active) :is(
  .masx-passport-app__mobile-nav,
  .masx-passport-account-mobile-nav,
  .masx-passport-app__mobile-more,
  .masx-passport-app__mobile-scrim,
  .masx-live-chat,
  .masx-contact-bubble,
  .masx-whatsapp
) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.masx-passport-discovery-overlay-active :is(
  #qlwapp,
  #chaty-widget-0,
  [class*="whatsapp"],
  [class*="live-chat"],
  [class*="contact-bubble"]
) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1180px) {
  .masx-sc__grid.has-preview {
    grid-template-columns: 1fr;
  }

  .masx-sc__editor {
    position: static;
  }

  .masx-sc__stage {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .masx-sc__hero {
    grid-template-columns: 1fr;
    min-height: 180px;
    gap: 0;
    margin-bottom: 24px;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .masx-sc__hero h1 {
    font-size: var(--masx-type-page-title, clamp(1.65rem, 7.2vw, 1.9rem));
  }

  .masx-sc__collection,
  .masx-sc__editor,
  .masx-sc__preview {
    padding: 18px;
    border-radius: 15px;
  }

  .masx-sc__instructions {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    font-size: .74rem;
  }

  .masx-sc__instructions > i {
    width: 34px;
    height: 34px;
    font-size: .92rem;
  }

  .masx-sc__collection-heading {
    align-items: center;
    margin-bottom: 18px;
  }

  .masx-sc__collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .masx-sc__stamp {
    padding: 6px;
  }

  .masx-sc__stamp-count {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    font-size: .52rem;
  }

  .masx-sc__creator-dialog {
    display: block;
    padding: 0;
    background: #050814;
  }

  .masx-sc__creator-panel {
    display: grid;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 88% 0%, rgba(141, 47, 85, .13), transparent 18rem),
      #050814;
    box-shadow: none;
  }

  .masx-sc__creator-header {
    position: relative;
    margin: 0;
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      16px
      12px;
    background: #070914;
  }

  .masx-sc__creator-header p {
    margin-bottom: 2px;
  }

  .masx-sc__creator-header h2 {
    font-size: .95rem;
  }

  .masx-sc__creator-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .masx-sc__creator-panel > .masx-sc__grid {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 14px max(14px, env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .masx-sc__heading {
    margin-bottom: 22px;
  }

  .masx-sc__status {
    max-width: 108px;
  }

  .masx-sc__grid.has-preview {
    overflow: hidden;
  }

  .masx-sc__grid.has-preview .masx-sc__preview {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
  }

  .masx-sc__grid.has-preview .masx-sc__heading {
    min-height: 40px;
    flex: 0 0 auto;
    margin-bottom: 8px;
  }

  .masx-sc__grid.has-preview .masx-sc__heading h2 {
    font-size: .9rem;
  }

  .masx-sc__versions {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .masx-sc__versions::-webkit-scrollbar {
    display: none;
  }

  .masx-sc__version {
    display: grid;
    min-width: 100%;
    height: 100%;
    flex: 0 0 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 8px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .masx-sc__version-heading {
    min-height: 26px;
    margin-bottom: 5px;
  }

  .masx-sc__stage {
    height: min(54dvh, 470px);
    min-height: 0;
    padding: 8px;
  }

  .masx-sc__canvas-frame {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }

  .masx-sc__actions {
    margin-top: 7px;
  }

  .masx-sc__button--share {
    min-height: 42px;
  }

  .masx-sc__version-dots {
    display: flex;
    flex: 0 0 auto;
  }

  .masx-sc__categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .masx-sc__share-dialog {
    align-items: center;
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      12px
      max(12px, env(safe-area-inset-bottom, 0px));
  }

  .masx-sc__share-sheet {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 16px;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .masx-sc__community-note {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
    font-size: .62rem;
  }

  .masx-sc__community-note button {
    min-height: 32px;
    padding-inline: 9px;
    font-size: .54rem;
  }
}

/* 1.2.155 staging conflict lock. The Goyto header contract also targets
 * generic header elements, so reserve the modal header's grid row explicitly. */
@media (max-width: 680px) {
  html body .masx-sc__overlay-root .masx-sc__creator-panel {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  html body .masx-sc__overlay-root .masx-sc__creator-header {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    min-height: 72px !important;
    grid-row: 1 !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding:
      max(14px, env(safe-area-inset-top, 0px))
      16px
      12px !important;
    overflow: visible !important;
  }

  html body .masx-sc__overlay-root .masx-sc__creator-header > div {
    min-width: 0 !important;
    padding-right: 2px !important;
  }

  html body .masx-sc__overlay-root .masx-sc__creator-header :is(p, h2) {
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  html body .masx-sc__overlay-root .masx-sc__creator-header h2 {
    font-size: clamp(.88rem, 4.4vw, 1rem) !important;
    line-height: 1.15 !important;
  }

  html body .masx-sc__overlay-root .masx-sc__creator-close {
    position: static !important;
    grid-column: 2 !important;
    justify-self: end !important;
  }

  html body .masx-sc__overlay-root .masx-sc__creator-panel > .masx-sc__grid {
    min-height: 0 !important;
    grid-row: 2 !important;
  }

  html body .masx-sc__overlay-root .masx-sc__grid.has-preview .masx-sc__heading {
    min-height: 34px !important;
    margin-bottom: 6px !important;
  }

  html body .masx-sc__overlay-root .masx-sc__grid.has-preview .masx-sc__versions {
    min-height: 0 !important;
  }

  html body .masx-sc__overlay-root .masx-sc__grid.has-preview .masx-sc__stage {
    display: flex !important;
    height: min(60dvh, 500px) !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 8px !important;
  }

  html body .masx-sc__overlay-root .masx-sc__grid.has-preview .masx-sc__canvas-frame {
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    flex: 0 1 auto !important;
    aspect-ratio: 9 / 16 !important;
  }

  html body .masx-sc__overlay-root .masx-sc__version-dots {
    min-height: 22px !important;
    gap: 8px !important;
    padding: 8px 0 0 !important;
  }

  html body .masx-sc__overlay-root .masx-sc__version-dots button {
    width: 8px !important;
    min-width: 0 !important;
    height: 8px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(201, 193, 196, .32) !important;
    box-shadow: none !important;
  }

  html body .masx-sc__overlay-root .masx-sc__version-dots button[aria-pressed="true"] {
    width: 22px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--sc-pink-shine), var(--sc-pink)) !important;
    box-shadow: 0 0 12px rgba(216, 132, 167, .24) !important;
  }
}

@media (max-width: 340px) {
  .masx-sc__collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .masx-sc *,
  .masx-sc *::before,
  .masx-sc *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .masx-sc__collection-count.is-counting {
    animation: none !important;
  }

}
