:root {
  --paper: #f5f0e6;
  --paper-deep: #e9e1d3;
  --ink: #171716;
  --muted: #6f6a62;
  --line: rgba(23, 23, 22, 0.2);
  --brand-red: #f2382b;
  --brand-red-bright: #ff5145;
  --brand-red-dark: #b92118;
  --brand-red-text: var(--brand-red-dark);
  --acid: #d8ff57;
  --blue: var(--brand-red);
  --aqua: #8de0cd;
  --orange: #ef7d43;
  --yellow: #f2c94c;
  --white: #fffdf8;
  --radius: 0px;
  --display: "Space Grotesk", "Arial Black", sans-serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 8px 8px 0 var(--ink);
  --focus-ring: var(--brand-red);
  --focus-backdrop: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.skip-link {
  background: var(--acid);
  border: 2px solid var(--ink);
  color: #171716;
  left: 12px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  margin-inline: auto;
  max-width: 1460px;
  padding-inline: clamp(20px, 4vw, 64px);
  width: 100%;
}

.ticker {
  background: var(--ink);
  border-bottom: 1px solid var(--brand-red);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  overflow: hidden;
  padding: 9px 0;
  padding-right: 92px;
  position: relative;
  white-space: nowrap;
}

.ticker.is-paused .ticker__track {
  animation-play-state: paused;
}

.ticker__toggle {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-left: 1px solid rgba(242, 56, 43, 0.72);
  color: var(--paper);
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  gap: 6px;
  height: 100%;
  justify-content: center;
  min-width: 82px;
  padding: 0 10px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.ticker__toggle:hover {
  background: var(--blue);
  color: #111216;
}

.ticker__track {
  align-items: center;
  animation: ticker 30s linear infinite;
  display: flex;
  gap: 28px;
  width: max-content;
}

.ticker__track i {
  background: var(--brand-red);
  display: block;
  height: 6px;
  transform: rotate(45deg);
  width: 6px;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }

}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-inline: auto;
  max-width: 1460px;
  min-height: 82px;
  padding: 0 clamp(20px, 4vw, 64px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.06em;
  width: max-content;
}

.brand__mark {
  color: var(--brand-red);
  height: 34px;
  margin-right: 10px;
  width: 34px;
}

.brand__name {
  align-items: baseline;
  display: inline-flex;
  white-space: nowrap;
}

.brand__compact {
  display: none;
}

.brand__arrow {
  color: var(--brand-red);
  display: inline-block;
  margin-left: 2px;
  transform: translateY(-1px);
}

.site-nav {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: 12px;
  gap: clamp(22px, 3vw, 48px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  background: var(--ink);
  bottom: -6px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  width: 100%;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .is-current {
  color: var(--brand-red-text);
  font-weight: 700;
}

.site-nav .is-current::after {
  background: var(--blue);
  transform: scaleX(1);
}

/* A class-level display would otherwise beat the browser's [hidden] rule, so a
   button marked hidden would still render. */
.button[hidden] {
  display: none;
}

.button {
  align-items: center;
  border: 2px solid var(--ink);
  display: inline-flex;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  gap: 24px;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 46px;
  padding: 0 19px;
  text-transform: uppercase;
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 5px 5px 0 var(--ink);
  outline: 0;
  transform: translate(-3px, -3px);
}

.button:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(0, 0);
}

.button--ink {
  background: var(--ink);
  color: var(--paper);
}

.button--ink:hover,
.button--ink:focus-visible {
  background: var(--blue);
  color: #111216;
}

.button--acid {
  background: var(--acid);
  color: #171716;
}

.button--danger {
  background: var(--brand-red-dark, #b92118);
  border-color: var(--brand-red-dark, #b92118);
  color: #fff;
}

.button--large {
  font-size: 14px;
  min-height: 58px;
  padding-inline: 25px;
}

.header-wallet {
  flex: 0 0 auto;
}

.wallet-dot {
  background: var(--acid);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-self: end;
}

.mobile-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ink);
  display: none;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 46px;
  padding: 0 12px;
  text-transform: uppercase;
}

.mobile-menu-toggle__icon {
  font-size: 15px;
  line-height: 1;
}

.mobile-site-nav {
  display: none;
}

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 9px;
  gap: 7px;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 46px;
  padding: 0 12px;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--blue);
  color: #111216;
  outline: 0;
  transform: translateY(-2px);
}

.theme-toggle__icon {
  align-items: center;
  display: inline-flex;
  font-size: 16px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.hero {
  display: grid;
  gap: clamp(44px, 7vw, 110px);
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.78fr);
  min-height: min(800px, calc(100vh - 114px));
  padding-bottom: clamp(72px, 9vw, 125px);
  padding-top: clamp(64px, 8vw, 118px);
}

.hero__copy {
  align-self: center;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  gap: 10px;
  letter-spacing: 0.1em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.eyebrow span {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #111216;
  display: inline-flex;
  font-size: 10px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.hero h1,
.section-heading h2,
.faq-intro h2,
.closing-section h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.82;
  margin: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(72px, 8.2vw, 132px);
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  border-bottom: 5px solid var(--blue);
  border-radius: 50%;
  bottom: -8px;
  content: "";
  height: 10px;
  left: 2%;
  position: absolute;
  transform: rotate(-1deg);
  width: 96%;
}

.hero__lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  margin: 38px 0 31px;
  max-width: 640px;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
}

.hero__launch-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 590px;
}

.hero__launch-status span {
  background: var(--orange);
  color: #171716;
  display: inline-block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  margin-right: 6px;
  padding: 2px 6px;
}

.text-link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 0 5px;
  text-transform: uppercase;
}

.text-link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.hero__proof {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
  margin-top: 47px;
  padding-top: 21px;
}

.hero__proof span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__proof b {
  color: var(--ink);
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 2px;
}

.hero__art {
  align-self: center;
  justify-self: end;
  max-width: 560px;
  position: relative;
  width: 100%;
}

.hero-card__wordmark {
  filter: drop-shadow(5px 5px 0 rgba(8, 9, 11, 0.82));
  height: auto;
  left: -26px;
  max-width: 290px;
  position: absolute;
  top: -72px;
  transform: rotate(-2deg);
  width: clamp(205px, 18vw, 290px);
  z-index: 2;
}

.hero-card {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 13px 13px 0 var(--ink);
  padding: 14px;
  transform: rotate(2.2deg);
  transition: transform 250ms ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-card__meta,
.hero-card__footer {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  justify-content: space-between;
  letter-spacing: 0.07em;
  padding: 0 1px;
  text-transform: uppercase;
}

.hero-card__meta {
  height: 37px;
}

.status-pill {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  height: 20px;
  padding: 0 7px;
}

.hero-card__image {
  border: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
}

.hero-card__image svg,
.hero-card__artwork {
  display: block;
  height: auto;
  width: 100%;
}

.hero-card__sticker {
  align-items: center;
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 50%;
  bottom: 18px;
  display: flex;
  font-family: var(--display);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 700;
  height: clamp(72px, 7vw, 96px);
  justify-content: center;
  line-height: 0.9;
  position: absolute;
  right: 18px;
  text-align: center;
  transform: rotate(-12deg);
  width: clamp(72px, 7vw, 96px);
}

.hero-card__footer {
  padding: 14px 1px 2px;
}

.hero-card__footer div:last-child {
  text-align: right;
}

.hero-card__footer small {
  color: var(--muted);
  display: block;
  font-size: 8px;
}

.hero-card__footer strong {
  font-family: var(--display);
  font-size: 12px;
}

.scribble {
  font-family: var(--mono);
  font-size: 11px;
  position: absolute;
}

.scribble--one {
  bottom: -48px;
  right: 5%;
  transform: rotate(-4deg);
}

.manifesto {
  background: var(--blue);
  border-bottom: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.manifesto__inner {
  padding-bottom: clamp(55px, 6vw, 90px);
  padding-top: clamp(55px, 6vw, 90px);
}

.manifesto p {
  font-family: var(--display);
  font-size: clamp(42px, var(--manifesto-fluid-size, 7.1vw), var(--manifesto-max-size, 112px));
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.87;
  margin: 0;
  text-transform: uppercase;
}

.manifesto p:nth-child(2) {
  margin-left: 10%;
}

.manifesto__accent {
  --manifesto-fluid-size: 5.7vw;
  --manifesto-max-size: 82px;
  color: var(--acid);
  margin-left: clamp(0px, 12vw, 176px) !important;
  white-space: nowrap;
}

.creator-section,
.how-section,
.faq-section {
  padding-bottom: clamp(92px, 11vw, 168px);
  padding-top: clamp(92px, 11vw, 168px);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.25fr 0.75fr;
  margin-bottom: clamp(48px, 6vw, 86px);
}

.section-heading h2,
.faq-intro h2 {
  font-size: clamp(55px, 7vw, 105px);
}

.section-heading > p {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  margin: 0 0 2px auto;
  max-width: 490px;
}

.creator-app {
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(480px, 1.08fr);
}

.preview-pane {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(18px, 2.2vw, 33px);
}

.preview-pane__topline {
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  justify-content: space-between;
  letter-spacing: 0.1em;
  margin-bottom: 17px;
}

.duck-stage {
  aspect-ratio: 1;
  background: #cfd6ff;
  border: 1px solid var(--paper);
  overflow: hidden;
  position: relative;
}

.duck-stage > svg {
  height: 100%;
  width: 100%;
}

.canvas-corner {
  border-color: var(--ink);
  height: 24px;
  position: absolute;
  width: 24px;
}

.canvas-corner--tl { border-left: 3px solid; border-top: 3px solid; left: 12px; top: 12px; }
.canvas-corner--tr { border-right: 3px solid; border-top: 3px solid; right: 12px; top: 12px; }
.canvas-corner--bl { border-bottom: 3px solid; border-left: 3px solid; bottom: 12px; left: 12px; }
.canvas-corner--br { border-bottom: 3px solid; border-right: 3px solid; bottom: 12px; right: 12px; }

.preview-actions {
  border-bottom: 1px solid rgba(245, 240, 230, 0.25);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(245, 240, 230, 0.25);
  color: var(--paper);
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.07em;
  min-height: 52px;
  text-transform: uppercase;
}

.icon-button:last-child {
  border-right: 0;
}

.icon-button span {
  color: var(--acid);
  font-size: 15px;
}

.icon-button:hover {
  background: rgba(245, 240, 230, 0.08);
}

.wallet-pass {
  align-items: center;
  border: 1px solid rgba(245, 240, 230, 0.5);
  display: grid;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
  padding: 14px;
}

.wallet-pass.is-connected {
  border-color: var(--acid);
}

.wallet-pass__icon {
  align-items: center;
  background: var(--acid);
  color: var(--ink);
  display: flex;
  font-family: var(--display);
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.wallet-pass small,
.mint-bar small {
  color: #a9a49a;
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.wallet-pass strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
}

.wallet-pass p {
  color: #aaa69e;
  font-size: 10px;
  margin: 2px 0 0;
}

.circle-button {
  align-items: center;
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  display: flex;
  font-size: 17px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.circle-button:hover {
  background: var(--acid);
}

.control-pane {
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 3vw, 44px);
}

.creator-progress {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  padding-bottom: 29px;
}

.creator-progress > i {
  background: var(--line);
  height: 1px;
  margin: 0 14px;
  width: 45px;
}

.creator-progress__item {
  align-items: center;
  color: #aaa49b;
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  gap: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.creator-progress__item span {
  align-items: center;
  border: 1px solid #aaa49b;
  border-radius: 50%;
  display: flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.creator-progress__item.is-active {
  color: var(--ink);
}

.creator-progress__item.is-active span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.creator-progress__item.is-complete span {
  background: var(--acid);
  border-color: var(--ink);
  color: var(--ink);
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 28px -4px 0;
  overflow-x: auto;
  padding: 4px 4px 10px;
  scrollbar-width: thin;
}

.category-tab {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  text-transform: uppercase;
}

.category-tab span {
  color: var(--muted);
  font-size: 8px;
}

.category-tab:hover {
  border-color: var(--ink);
}

.category-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.category-tab.is-active span {
  color: var(--acid);
}

.trait-panel {
  flex: 1;
  padding-top: 27px;
}

.trait-panel__heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.trait-panel__heading p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  margin: 0 0 4px;
}

.trait-panel__heading h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 41px);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.trait-legend {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-lock {
  color: var(--blue);
}

.trait-panel__description {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 21px;
}

.trait-panel__description--review {
  margin: 24px 0 0;
}

.trait-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trait-card {
  background: transparent;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 7px;
  position: relative;
  text-align: left;
  transition: border 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.trait-card:hover,
.trait-card:focus-visible {
  border-color: var(--ink);
  outline: 0;
  transform: translateY(-2px);
}

.trait-card.is-selected {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px;
}

.trait-card.is-locked {
  background: #eeebe4;
  color: #7d7870;
}

.trait-card__visual {
  align-items: center;
  aspect-ratio: 1;
  background-color: #ddd;
  border: 1px solid rgba(23, 23, 22, 0.13);
  display: flex;
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 700;
  height: auto;
  justify-content: center;
  letter-spacing: -0.08em;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* "None" is a control rather than artwork, so it reads as an empty slot: a
   dashed well instead of the solid tile every real trait card shows. */
.trait-card__visual--none {
  background-color: transparent;
  border: 1px dashed rgba(23, 23, 22, 0.35);
  color: rgba(23, 23, 22, 0.45);
}

.trait-card--none .trait-card__tag {
  opacity: 0.65;
}

/* A layer that takes several traits shows how many are in play. */
.trait-grid[data-multi-select="true"] .trait-card.is-selected .trait-card__visual::after {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  content: "¹3";
  display: flex;
  font-size: 11px;
  height: 18px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 18px;
}

.trait-card__swatch {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.trait-card__visual--bg-aqua-grid {
  background-color: #8de0cd;
  background-image: linear-gradient(rgba(23,23,22,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(23,23,22,.12) 1px, transparent 1px);
  background-size: 18px 18px;
}

.trait-card__visual--bg-sundown {
  background: linear-gradient(145deg, #f2c94c 0 48%, #ef7d43 49%);
}

.trait-card__visual--bg-purple {
  background: #b9b8ff radial-gradient(circle at 30% 30%, #d8ff57 0 8%, transparent 9%);
}

.trait-card__visual--bg-cosmos {
  background: #27254d radial-gradient(circle at 30% 35%, #d8ff57 0 3%, transparent 4%);
}

#duckCanvas.is-production-stack #groundLayer,
#duckCanvas.is-production-stack #faceLayer {
  display: none;
}

.trait-card__visual img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.trait-card__visual::after {
  border: 2px solid rgba(23, 23, 22, 0.75);
  border-radius: 50% 48% 46% 52%;
  content: "";
  height: 38%;
  opacity: 0.22;
  position: absolute;
  transform: translate(17%, 25%);
  width: 44%;
}

.trait-card.has-artwork .trait-card__visual::after {
  display: none;
}

.trait-card__visual span {
  position: relative;
  z-index: 1;
}

.trait-card.is-locked .trait-card__visual {
  filter: grayscale(1);
  opacity: 0.68;
}

.trait-card__meta {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  margin-top: 7px;
  min-width: 0;
}

.trait-card__name {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trait-card__gate {
  color: var(--brand-red-text);
  flex: 0 0 auto;
  font-size: 9px;
}

.trait-card__tag {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  margin-top: 1px;
  text-transform: uppercase;
}

.mint-bar {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 22px;
}

.mint-bar__price small {
  color: var(--muted);
}

.mint-bar__price strong {
  font-family: var(--display);
  font-size: 20px;
}

.mint-bar__price strong span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
}

.button--mint {
  min-width: 205px;
}

.gates-section {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: clamp(92px, 11vw, 168px);
  padding-top: clamp(92px, 11vw, 168px);
}

.section-heading--light > p {
  color: #aca79f;
}

.gate-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.gate-card {
  border: 2px solid var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 430px;
  padding: clamp(20px, 2.6vw, 38px);
  position: relative;
  transition: transform 200ms ease;
}

.gate-card:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.gate-card--lime { background: var(--acid); }
.gate-card--blue { background: var(--blue); color: #111216; }
.gate-card--cream { background: var(--paper); }

.gate-card__number {
  font-family: var(--display);
  font-size: clamp(75px, 8vw, 128px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
  text-align: right;
}

.gate-card span:not(.gate-card__arrow) {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.gate-card h3 {
  font-family: var(--display);
  font-size: clamp(27px, 2.5vw, 39px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 8px 0 12px;
  text-transform: uppercase;
}

.gate-card p {
  font-size: 13px;
  margin: 0;
  max-width: 290px;
}

.gate-card__arrow {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  font-size: 23px;
  height: 48px;
  justify-content: center;
  justify-self: end;
  width: 48px;
}

.gates-footnote {
  color: #8d8982;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  margin: 22px 0 0;
  text-align: center;
  text-transform: uppercase;
}

.steps-grid {
  border-left: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-grid li {
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  min-height: 390px;
  padding: clamp(22px, 3vw, 42px);
  position: relative;
}

.steps-grid__number {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.steps-grid__icon {
  align-items: center;
  background: var(--paper-deep);
  border-radius: 50%;
  display: flex;
  font-family: var(--display);
  font-size: 36px;
  height: 90px;
  justify-content: center;
  margin: 52px 0 42px;
  transition: background 180ms ease, transform 180ms ease;
  width: 90px;
}

.steps-grid li:hover .steps-grid__icon {
  background: var(--acid);
  transform: rotate(-8deg) scale(1.06);
}

.steps-grid h3 {
  font-family: var(--display);
  font-size: 33px;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.steps-grid p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 290px;
}

.faq-section {
  border-top: 1px solid var(--ink);
  display: grid;
  gap: clamp(50px, 8vw, 130px);
  grid-template-columns: 0.8fr 1.2fr;
}

.faq-intro h2 {
  margin-bottom: 26px;
}

.faq-intro > p:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.accordion {
  border-top: 2px solid var(--ink);
}

.accordion details {
  border-bottom: 1px solid var(--ink);
}

.accordion summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: -0.035em;
  list-style: none;
  padding: 25px 3px;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  height: 32px;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
  width: 32px;
}

.accordion details[open] summary span {
  background: var(--acid);
  transform: rotate(45deg);
}

.accordion details p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: -4px 45px 24px 3px;
  max-width: 690px;
}

.closing-section {
  background: var(--brand-red);
  border-bottom: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  overflow: hidden;
}

.closing-section__inner {
  min-height: 540px;
  padding-bottom: 90px;
  padding-top: 90px;
  position: relative;
}

.closing-section__inner > :not(.closing-duck) {
  position: relative;
  z-index: 1;
}

.closing-section p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0 0 15px;
}

.closing-section h2 {
  font-size: clamp(72px, 10vw, 155px);
  margin-bottom: 47px;
  max-width: 1000px;
}

.closing-duck {
  bottom: -116px;
  filter: drop-shadow(14px 16px 0 rgba(23, 23, 22, 0.24));
  height: auto;
  opacity: 0.72;
  position: absolute;
  right: -2%;
  transform: rotate(-7deg);
  width: clamp(300px, 38vw, 570px);
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 65px 0 24px;
}

.site-footer__top {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr 0.8fr;
  padding-bottom: 70px;
}

.brand--footer {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.8;
}

.site-footer__top > p {
  color: #aaa69e;
  font-size: 13px;
  margin: 0;
}

.footer-links {
  display: grid;
  font-family: var(--mono);
  font-size: 10px;
  gap: 10px;
  justify-self: end;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--acid);
}

.site-footer__bottom {
  border-top: 1px solid #3b3a37;
  color: #918d86;
  display: flex;
  font-family: var(--mono);
  font-size: 8px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding-top: 20px;
}

.modal {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  color: var(--ink);
  max-height: min(850px, calc(100vh - 40px));
  max-width: calc(100vw - 34px);
  padding: 0;
  width: 560px;
}

.modal--wide {
  width: 760px;
}

.modal::backdrop {
  background: rgba(23, 23, 22, 0.74);
  backdrop-filter: blur(5px);
}

.modal[open] {
  animation: modal-in 180ms ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }

}

.modal__topline {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  justify-content: space-between;
  letter-spacing: 0.1em;
  min-height: 47px;
  padding-left: 19px;
}

.modal__close {
  align-self: stretch;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--ink);
  font-size: 25px;
  line-height: 1;
  width: 47px;
}

.modal__close:hover {
  background: var(--acid);
}

.modal__body {
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: clamp(25px, 4vw, 48px);
}

@supports (height: 100dvh) {
  .modal {
    max-height: min(850px, calc(100dvh - 24px));
  }

  .modal__body {
    max-height: calc(100dvh - 74px);
  }

}

.modal-feedback {
  background: rgba(242, 56, 43, 0.08);
  border: 1px solid rgba(242, 56, 43, 0.45);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 18px;
  padding: 12px 14px;
}

.modal-feedback[hidden] {
  display: none;
}

.modal-feedback.is-error {
  background: rgba(242, 56, 43, 0.14);
  border-left: 5px solid var(--brand-red, #f2382b);
  font-weight: 600;
}

.modal--confirm {
  width: 520px;
}

.modal-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}

.modal-copy-field {
  display: block;
  margin-top: 24px;
}

.modal-copy-field > span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.modal-copy-field input {
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

html[data-theme="dark"] .modal-copy-field input {
  background: #202126;
  border-color: #5b5c66;
  color: #f1efe9;
}

.modal__eyebrow {
  color: var(--brand-red-text);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  margin: 0 0 9px;
}

.modal__body h2 {
  font-family: var(--display);
  font-size: clamp(41px, 5vw, 65px);
  letter-spacing: -0.07em;
  line-height: 0.86;
  margin: 0 0 21px;
  text-transform: uppercase;
}

.modal__body > p:not(.modal__eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.wallet-options {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.wallet-option {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ink);
  display: grid;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
  min-height: 68px;
  padding: 9px 17px 9px 9px;
  text-align: left;
  transition: background 140ms ease, transform 140ms ease;
}

.wallet-option:hover {
  background: var(--acid);
  transform: translateX(4px);
}

.wallet-option__logo {
  align-items: center;
  display: flex;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.wallet-option__logo--pera { background: #ffd233; }
.wallet-option__logo--lute { background: #b7c3ff; }

.wallet-option b {
  display: block;
  font-family: var(--display);
  font-size: 14px;
}

.wallet-option small {
  color: var(--muted);
  display: block;
  font-size: 10px;
}

.wallet-option i {
  font-style: normal;
}

.security-note {
  align-items: start;
  background: var(--paper-deep);
  display: flex;
  gap: 11px;
  margin-top: 22px;
  padding: 13px;
}

.security-note > span {
  color: var(--blue);
  flex: 0 0 auto;
}

.security-note p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  margin: 0;
}

.security-note b {
  color: var(--ink);
}

.mint-review {
  display: grid;
  gap: 27px;
  grid-template-columns: 0.8fr 1.2fr;
}

.mint-review__art {
  align-self: start;
  aspect-ratio: 1;
  background: #cfd6ff;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.mint-review__art svg {
  height: auto;
  width: 100%;
}

.mint-review__details h2 {
  font-size: clamp(38px, 4vw, 54px);
}

.receipt {
  border-top: 1px solid var(--ink);
  margin: 23px 0;
}

.receipt__row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  justify-content: space-between;
  padding: 10px 0;
  text-transform: uppercase;
}

.receipt__row span:first-child {
  color: var(--muted);
}

.receipt__row strong {
  font-size: 10px;
}

.mint-consent {
  align-items: start;
  display: flex;
  font-size: 9px;
  gap: 9px;
  line-height: 1.5;
  margin-bottom: 17px;
}

.mint-consent input {
  accent-color: var(--blue);
  margin-top: 2px;
}

.mint-submit {
  width: 100%;
}

.mint-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.45;
}

.success-panel {
  text-align: center;
}

.success-burst {
  align-items: center;
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  font-size: 48px;
  height: 115px;
  justify-content: center;
  margin: 0 auto 27px;
  transform: rotate(-6deg);
  width: 115px;
}

.success-panel h2 {
  margin-bottom: 16px;
}

.success-panel > p {
  margin-inline: auto !important;
  max-width: 440px;
}

.success-id {
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 10px;
  margin: 23px 0;
  padding: 12px;
}

.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.toast {
  background: var(--ink);
  border: 2px solid var(--paper);
  bottom: 22px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  left: 50%;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 13px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 120;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.has-action {
  align-items: center;
  display: flex;
  gap: 14px;
  pointer-events: auto;
}

.toast.is-error {
  background: #791f1a;
  border-color: #ff9b93;
}

.toast__action {
  background: var(--acid);
  border: 0;
  color: #171716;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  min-height: 30px;
  padding: 0 10px;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

.reveal--delay {
  transition-delay: 120ms;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal.is-navigation-target {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-site-nav:not([hidden]) {
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px clamp(20px, 4vw, 64px) 12px;
    position: relative;
    z-index: 19;
  }

  .mobile-site-nav a {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    font-family: var(--mono);
    font-size: 10px;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    text-transform: uppercase;
  }

  .mobile-site-nav a::after {
    content: "→";
  }

  .mobile-site-nav a:hover,
  .mobile-site-nav a:focus-visible,
  .mobile-site-nav a.is-current {
    background: var(--acid);
    color: #171716;
  }

  .hero {
    gap: 60px;
    grid-template-columns: 1fr 0.82fr;
  }

  .hero h1 {
    font-size: clamp(68px, 9.4vw, 104px);
  }

  .creator-app {
    grid-template-columns: minmax(330px, 0.86fr) minmax(430px, 1.14fr);
  }

  .trait-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gate-card {
    min-height: 370px;
  }

}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    justify-self: center;
    max-width: 520px;
  }

  .manifesto__accent {
    margin-left: 0 !important;
    white-space: normal;
  }

  .section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    margin-left: 0;
  }

  .creator-app {
    grid-template-columns: 1fr;
  }

  .preview-pane {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
  }

  .preview-pane__topline {
    grid-column: 1 / -1;
  }

  .duck-stage {
    grid-row: span 2;
  }

  .preview-actions {
    border-left: 1px solid rgba(245, 240, 230, 0.25);
    grid-template-columns: 1fr;
    margin: 0;
  }

  .icon-button {
    border-bottom: 1px solid rgba(245, 240, 230, 0.25);
    border-right: 0;
  }

  .wallet-pass {
    align-self: end;
    margin-left: 18px;
  }

  .gate-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .gate-card {
    min-height: 330px;
  }

  .steps-grid li {
    min-height: 300px;
  }

  .steps-grid__icon {
    margin: 35px 0 28px;
  }

  .faq-section {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .brand--footer {
    grid-column: 1 / -1;
  }

}

@media (max-width: 560px) {
  .ticker {
    font-size: 9px;
  }

  .site-header {
    min-height: 70px;
  }

  .brand {
    font-size: 19px;
  }

  .brand__mark {
    height: 29px;
    width: 29px;
  }

  .brand__full {
    display: none;
  }

  .brand__compact {
    display: inline;
  }

  .brand--footer .brand__full {
    display: inline;
  }

  .brand--footer .brand__compact {
    display: none;
  }

  .header-wallet {
    font-size: 0;
    gap: 7px;
    min-height: 44px;
    min-width: 72px;
    padding: 0 10px;
  }

  .header-wallet::after {
    content: "WALLET";
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .header-create-link::after {
    content: "CREATE";
  }

  .header-actions {
    gap: 5px;
  }

  .mobile-menu-toggle {
    min-height: 44px;
    padding: 0;
    width: 44px;
  }

  .mobile-menu-toggle__label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .mobile-site-nav:not([hidden]) {
    grid-template-columns: 1fr 1fr;
    padding-inline: 10px;
  }

  .theme-toggle {
    min-height: 44px;
    padding: 0;
    width: 44px;
  }

  .theme-toggle__label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .header-wallet .wallet-dot {
    height: 9px;
    width: 9px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(46px, 13.3vw, 62px);
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero__lede {
    overflow-wrap: anywhere;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    box-shadow: 8px 8px 0 var(--ink);
  }

  .hero-card__wordmark {
    filter: drop-shadow(4px 4px 0 rgba(8, 9, 11, 0.78));
    left: 5px;
    margin-bottom: 17px;
    max-width: 225px;
    position: relative;
    top: auto;
    width: 64%;
  }

  .manifesto p {
    font-size: clamp(38px, 13vw, 61px);
  }

  .manifesto p:nth-child(2) {
    margin-left: 0;
  }

  .closing-duck {
    bottom: -72px;
    opacity: 0.38;
    right: -23%;
    width: min(420px, 92vw);
  }

  .section-heading h2,
  .faq-intro h2 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .preview-pane {
    display: block;
  }

  .preview-actions {
    border-left: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .icon-button {
    border-bottom: 0;
    border-right: 1px solid rgba(245, 240, 230, 0.25);
  }

  .wallet-pass {
    margin-left: 0;
  }

  .control-pane {
    padding: 22px 15px 19px;
  }

  .creator-progress > i {
    margin: 0 7px;
    width: 18px;
  }

  .creator-progress__item {
    font-size: 8px;
  }

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

  .trait-card__visual {
    aspect-ratio: 1;
    height: auto;
  }

  .mint-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .button--mint {
    width: 100%;
  }

  .demo-note {
    text-align: left;
  }

  .gate-card {
    min-height: 310px;
  }

  .gate-card__number {
    font-size: 87px;
  }

  .steps-grid li {
    min-height: 280px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .brand--footer {
    grid-column: auto;
  }

  .footer-links {
    justify-self: start;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .modal {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .mint-review {
    grid-template-columns: 1fr;
  }

  .mint-review__art {
    margin-inline: auto;
    max-width: 300px;
  }

  .success-actions {
    flex-direction: column;
  }

}

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

}

.not-found-page {
  background: var(--ink);
  min-height: 100dvh;
}

.not-found {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 90px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  margin: 0 auto;
  max-width: 1280px;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(24px, 5vw, 72px);
}

.not-found h1 {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(70px, 9vw, 150px);
  letter-spacing: -.075em;
  line-height: .78;
  margin: 24px 0;
  text-transform: uppercase;
}

.not-found h1 em { color: var(--brand-red); font-style: normal; }

.not-found__copy > p:not(.eyebrow) {
  color: #b8b5bd;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.65;
  max-width: 620px;
}

.not-found__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.not-found > img {
  align-self: end;
  display: block;
  filter: drop-shadow(0 20px 38px rgba(242, 56, 43, .26));
  margin-bottom: -12%;
  max-width: 100%;
}

@media (max-width: 760px) {
  .not-found {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .not-found h1 { font-size: clamp(64px, 22vw, 105px); }
  .not-found > img { justify-self: center; max-width: 420px; width: 92%; }

}

/* Homepage hand-off to the dedicated creator app. */
.builder-launch {
  align-items: center;
  background: #3d3c4a;
  color: #f3f0e8;
  display: grid;
  gap: clamp(42px, 6vw, 94px);
  grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1.22fr);
  max-width: none;
  padding-block: clamp(78px, 9vw, 132px);
}

.builder-launch__copy {
  justify-self: end;
  max-width: 520px;
}

.builder-launch__copy .section-kicker {
  color: #aaa7b3;
}

.builder-launch__copy h2 {
  color: #fffdf8;
  font-size: clamp(54px, 6.4vw, 98px);
  margin: 0 0 25px;
}

.builder-launch__copy > p:not(.section-kicker) {
  color: #cbc8d1;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  margin: 0;
  max-width: 500px;
}

.builder-launch__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.builder-launch__actions > span {
  align-items: center;
  color: #b6b3bd;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 8px;
  gap: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.builder-launch__actions > span i {
  background: #59dda9;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(89, 221, 169, 0.12);
  height: 6px;
  width: 6px;
}

.builder-launch__studio {
  background: #0f1013;
  border: 1px solid #5a5867;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(8, 8, 11, 0.32);
  justify-self: start;
  max-width: 720px;
  overflow: hidden;
  padding: 7px;
  width: 100%;
}

.builder-launch__bar {
  align-items: center;
  background: #16171b;
  border-radius: 15px 15px 0 0;
  color: #9b9ca5;
  display: flex;
  font-family: var(--mono);
  font-size: 8px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  min-height: 50px;
  padding-inline: 17px;
}

.builder-launch__bar span:last-child {
  color: #62d9ad;
}

.builder-launch__screen {
  background: #18191e;
  border-radius: 0 0 15px 15px;
  display: grid;
  gap: clamp(14px, 2vw, 26px);
  grid-template-columns: minmax(220px, 0.9fr) minmax(190px, 1.1fr);
  padding: clamp(14px, 2.4vw, 30px);
}

.builder-launch__art {
  aspect-ratio: 1;
  background: #10ced8;
  border: 1px solid #3f4149;
  border-radius: 12px;
  overflow: hidden;
}

.builder-launch__art img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.builder-launch__steps {
  align-content: center;
  display: grid;
  gap: 9px;
}

.builder-launch__steps span {
  align-items: center;
  background: #202126;
  border: 1px solid #303139;
  border-radius: 10px;
  color: #dedde3;
  display: flex;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  min-height: 62px;
  padding: 10px 13px;
  text-transform: uppercase;
}

.builder-launch__steps b {
  align-items: center;
  background: #665cf0;
  border-radius: 50%;
  color: #111216;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 8px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

@media (max-width: 900px) {
  .builder-launch {
    grid-template-columns: 1fr;
  }

  .builder-launch__copy,
  .builder-launch__studio {
    justify-self: center;
  }

}

@media (max-width: 560px) {
  .builder-launch {
    gap: 38px;
    padding-block: 70px;
  }

  .builder-launch__copy h2 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .builder-launch__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-launch__screen {
    grid-template-columns: 1fr;
  }

  .builder-launch__art {
    aspect-ratio: 1;
  }

  .builder-launch__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .builder-launch__steps span {
    align-items: flex-start;
    flex-direction: column;
    font-size: 9px;
    min-height: 92px;
  }

}

.success-actions {
  flex-wrap: wrap;
}

.history-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.history-card {
  background: var(--white);
  border: 1px solid var(--ink);
  min-width: 0;
  padding: 9px;
}

.history-card__art {
  aspect-ratio: 1;
  background: var(--aqua);
  border: 1px solid var(--line);
  overflow: hidden;
}

.history-card__art svg {
  height: 100%;
  margin: auto;
  width: 100%;
}

.history-card__art img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.history-card__art > span {
  align-items: center;
  display: flex;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
}

.history-card__body {
  padding: 12px 3px 10px;
}

.history-card__body > span {
  color: var(--brand-red-text);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.history-card__body h3 {
  font-family: var(--display);
  font-size: 16px;
  margin: 3px 0;
  text-transform: uppercase;
}

.history-card__body p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  margin: 0;
}

.history-card__actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr auto;
  padding-top: 8px;
}

.history-card__actions button {
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  min-height: 31px;
  padding-inline: 8px;
  text-transform: uppercase;
}

.history-card__actions button:hover {
  background: var(--acid);
  color: #171716;
}

.history-empty {
  align-items: center;
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 250px;
  padding: 30px;
  text-align: center;
}

.history-empty > span {
  color: var(--blue);
  font-size: 35px;
}

.history-empty strong {
  font-family: var(--display);
  font-size: 17px;
  margin-top: 8px;
  text-transform: uppercase;
}

.history-empty p {
  color: var(--muted);
  font-size: 10px;
}

html[data-theme="dark"] .history-card {
  background: #202127;
  border-color: #45464f;
}

html[data-theme="dark"] .history-card__actions,
html[data-theme="dark"] .history-card__actions button,
html[data-theme="dark"] .history-empty {
  border-color: #45464f;
}

@media (max-width: 560px) {
  .history-grid {
    grid-template-columns: 1fr;
  }

}

/* Creator dashboard — informed by the supplied dark project-board reference. */
.creator-section.shell {
  background: #3d3c4a;
  color: #f3f0e8;
  max-width: none;
  padding-left: clamp(16px, 3.2vw, 52px);
  padding-right: clamp(16px, 3.2vw, 52px);
}

.creator-section > .section-heading,
.creator-section > .creator-app,
.creator-section > .demo-note {
  margin-left: auto;
  margin-right: auto;
  max-width: 1360px;
}

.creator-section .section-heading > p {
  color: #c4c1cb;
}

.creator-app {
  background: #0f1013;
  border: 1px solid #53515f;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(8, 8, 11, 0.35);
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 790px;
  overflow: hidden;
  padding: 8px;
}

.creator-sidebar {
  background: #16171b;
  border-radius: 17px 0 0 17px;
  color: #d3d2d9;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 11px 11px;
}

.creator-profile {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 22px;
  padding: 0 5px;
}

.creator-profile__avatar {
  align-items: center;
  background: linear-gradient(145deg, #8de0cd, #5362dd);
  border: 2px solid #c8fff2;
  border-radius: 50%;
  color: #111216;
  display: flex;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  height: 37px;
  justify-content: center;
  width: 37px;
}

.creator-profile strong,
.creator-profile span {
  display: block;
}

.creator-profile__identity img {
  display: block;
  height: auto;
  margin-bottom: 3px;
  max-width: 104px;
  width: 100%;
}

.creator-profile strong {
  color: #f6f4f0;
  font-size: 11px;
}

.creator-profile span {
  color: #a0a1aa;
  font-size: 10px;
}

.creator-profile button {
  background: transparent;
  border: 0;
  color: #a0a1aa;
  font-size: 13px;
  min-height: 30px;
  min-width: 30px;
  padding: 4px;
}

.creator-search {
  align-items: center;
  background: #101115;
  border: 1px solid #2b2d33;
  border-radius: 9px;
  color: #9697a1;
  display: flex;
  font-size: 10px;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.creator-search > span {
  color: #b9b8c0;
  font-size: 17px;
}

.creator-search kbd {
  background: #202127;
  border: 0;
  border-radius: 4px;
  color: #a1a2ab;
  font-family: var(--mono);
  font-size: 9px;
  margin-left: auto;
  padding: 2px 5px;
}

.creator-search:hover {
  border-color: #6c64f4;
  color: #dddce2;
}

.creator-sidebar__label {
  color: #9697a1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  margin: 23px 9px 7px;
}

.creator-menu {
  display: grid;
  gap: 3px;
}

.creator-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #9697a1;
  display: grid;
  font-size: 10px;
  gap: 9px;
  grid-template-columns: 18px 1fr auto;
  min-height: 34px;
  padding: 0 9px;
  text-align: left;
  width: 100%;
}

.creator-menu button > span:first-child {
  color: #989aa5;
  font-size: 12px;
  text-align: center;
}

.creator-menu button:hover {
  background: #202126;
  color: #d6d5db;
}

.creator-menu button.is-active {
  background: #665cf0;
  color: #fff;
  font-weight: 700;
}

.creator-menu button.is-active > span:first-child {
  color: #fff;
}

.creator-menu i {
  color: #a1a2ab;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.creator-menu button.is-active i {
  color: #fff;
}

.creator-menu .creator-menu__new {
  background: #17362e;
  border-radius: 6px;
  color: #5ce4b8;
  padding: 2px 4px;
}

.creator-sidebar__spacer {
  flex: 1;
  min-height: 25px;
}

.network-card {
  background: #111216;
  border: 1px solid #292b31;
  border-radius: 10px;
  margin: 12px 0 8px;
  padding: 11px;
}

.network-card > div {
  align-items: center;
  display: flex;
  gap: 6px;
}

.network-card__dot {
  background: #59dda9;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(89, 221, 169, 0.1);
  height: 6px;
  width: 6px;
}

.network-card small {
  color: #9697a1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.network-card strong,
.network-card > span {
  display: block;
}

.network-card strong {
  color: #efedf2;
  font-size: 11px;
  margin-top: 9px;
}

.network-card > span {
  color: #9697a1;
  font-size: 9px;
}

.partner-slot {
  align-items: center;
  background: #111216;
  border: 1px dashed #393b43;
  border-radius: 10px;
  color: #84858e;
  display: flex;
  flex-direction: column;
  min-height: 92px;
  padding: 12px;
  width: 100%;
}

.partner-slot > span {
  align-items: center;
  background: #665cf0;
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 14px;
  height: 24px;
  justify-content: center;
  margin-bottom: 6px;
  width: 24px;
}

.partner-slot b {
  color: #d6d5dc;
  font-size: 10px;
}

.partner-slot small {
  color: #9697a1;
  font-size: 9px;
  margin-top: 1px;
}

.partner-slot:hover {
  border-color: #665cf0;
}

.partner-slot--note {
  cursor: default;
}

.partner-slot--note:hover {
  border-color: #393b43;
}

.creator-workspace {
  background: #111216;
  border-radius: 0 17px 17px 0;
  min-width: 0;
  overflow: hidden;
}

.creator-topbar {
  align-items: center;
  border-bottom: 1px solid #292a30;
  display: flex;
  justify-content: space-between;
  min-height: 65px;
  padding: 0 18px;
}

.creator-topbar__title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.creator-topbar__pulse {
  border: 1px solid #6d64f2;
  border-radius: 50%;
  height: 10px;
  position: relative;
  width: 10px;
}

.creator-topbar__pulse::after {
  background: #6d64f2;
  border-radius: 50%;
  content: "";
  height: 4px;
  inset: 2px;
  position: absolute;
  width: 4px;
}

.creator-topbar__title strong,
.creator-topbar__title small {
  display: block;
}

.creator-topbar__title strong {
  color: #ecebf0;
  font-size: 11px;
}

.creator-topbar__title small {
  color: #9697a1;
  font-size: 9px;
}

.creator-topbar__actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.creator-topbar__actions > button {
  background: #18191e;
  border: 1px solid #292b31;
  border-radius: 8px;
  color: #8b8c95;
  height: 32px;
  width: 32px;
}

.mini-flock {
  display: flex;
  margin-right: 5px;
}

.mini-flock span {
  align-items: center;
  background: #f2c94c;
  border: 2px solid #111216;
  border-radius: 50%;
  color: #171716;
  display: flex;
  font-family: var(--mono);
  font-size: 6px;
  height: 25px;
  justify-content: center;
  margin-left: -6px;
  width: 25px;
}

.mini-flock span:nth-child(2) { background: #8de0cd; }
.mini-flock span:nth-child(3) { background: #ef7d43; }

.draft-status {
  color: #62d9ad;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.creator-workspace__body {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(350px, 0.88fr) minmax(440px, 1.12fr);
  min-height: calc(100% - 65px);
  padding: 9px;
}

.creator-app .preview-pane,
.creator-app .control-pane {
  background: #18191e;
  border: 1px solid #27292f;
  border-radius: 13px;
  color: #ecebf0;
}

.creator-app .preview-pane {
  padding: clamp(13px, 1.8vw, 23px);
}

.creator-app .preview-pane__topline {
  color: #9697a1;
  font-size: 9px;
}

.creator-app .duck-stage {
  border: 1px solid #34363d;
  border-radius: 11px;
}

.creator-app .preview-actions {
  border-bottom-color: #303138;
}

.creator-app .icon-button {
  border-right-color: #303138;
  color: #8e8f98;
  font-size: 9px;
}

.creator-app .icon-button span {
  color: #8a81ff;
}

.creator-app .wallet-pass {
  background: #131419;
  border: 1px solid #303138;
  border-radius: 10px;
}

.creator-app .wallet-pass.is-connected {
  border-color: #59dda9;
}

.creator-app .wallet-pass__icon {
  background: #665cf0;
  border-radius: 9px;
  color: #fff;
}

.creator-app .circle-button {
  background: #24252b;
  color: #efedf2;
}

.creator-app .circle-button:hover {
  background: #665cf0;
}

.creator-app .control-pane {
  padding: clamp(18px, 2vw, 27px);
}

.creator-app .creator-progress {
  border-bottom-color: #303138;
}

.creator-app .creator-progress > i {
  background: #303138;
}

.creator-app .creator-progress__item {
  color: #9697a1;
}

.creator-app .creator-progress__item span {
  border-color: #747580;
}

.creator-app .creator-progress__item.is-active {
  color: #eeedf1;
}

.creator-app .creator-progress__item.is-active span {
  background: #665cf0;
  border-color: #665cf0;
  color: #fff;
}

.creator-app .creator-progress__item.is-complete span {
  background: #59dda9;
  border-color: #59dda9;
  color: #101115;
}

.creator-start {
  align-items: center;
  background: linear-gradient(135deg, rgba(102, 92, 240, 0.18), rgba(89, 221, 169, 0.07));
  border: 1px solid #4c4879;
  border-radius: 11px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px 15px;
  scroll-margin-top: 18px;
}

.creator-start small {
  color: #8f88ff;
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.creator-start h3 {
  color: #f0eff3;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.creator-start p {
  color: #aaaab3;
  font-size: 10px;
  line-height: 1.45;
  margin: 4px 0 0;
  max-width: 470px;
}

.creator-start > button {
  align-items: center;
  background: #665cf0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px;
}

.creator-start > button:hover,
.creator-start > button:focus-visible {
  background: #766df4;
}

.creator-app .category-tabs {
  scrollbar-color: #44464f transparent;
}

.creator-app .category-tab {
  border-color: #303138;
  border-radius: 7px;
  color: #9697a1;
}

.creator-app .category-tab span {
  font-size: 9px;
}

.creator-app .category-tab:hover {
  border-color: #6962d6;
  color: #c7c6cc;
}

.creator-app .category-tab.is-active {
  background: #665cf0;
  border-color: #665cf0;
  color: #fff;
}

.creator-app .category-tab.is-active span {
  color: #fff;
}

.creator-app .trait-panel__heading p,
.creator-app .trait-panel__description,
.creator-app .trait-legend {
  color: #9697a1;
}

.creator-app .trait-panel__heading p,
.creator-app .trait-legend {
  font-size: 9px;
}

.creator-app .trait-panel__heading h3 {
  color: #f0eff3;
  font-size: clamp(25px, 2.5vw, 35px);
}

.creator-app .mini-lock {
  color: #8a81ff;
}

.creator-app .trait-grid {
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
}

.creator-app .trait-card {
  background: #202126;
  border: 1px solid #303139;
  border-radius: 9px;
  color: #dedde3;
  padding: 6px;
}

.creator-app .trait-card:hover,
.creator-app .trait-card:focus-visible {
  border-color: #7770ec;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.creator-app .trait-card.is-selected {
  border: 2px solid #8a81ff;
  box-shadow: 0 0 0 2px rgba(102, 92, 240, 0.16);
  padding: 5px;
}

.creator-app .trait-card.is-locked {
  background: #191a1e;
  color: #9a9ba5;
}

.creator-app .trait-card__visual {
  aspect-ratio: 1;
  border: 0;
  border-radius: 7px;
  height: auto;
}

.creator-app .trait-card__name {
  font-size: 10px;
}

.creator-app .trait-card__tag {
  color: #a1a2ab;
  font-size: 9px;
}

.creator-app .trait-card__gate {
  color: #8a81ff;
}

.creator-app .mint-bar {
  border-top-color: #303138;
}

.creator-app .mint-bar__price strong {
  color: #f1f0f3;
}

.creator-app .button--mint {
  background: #665cf0;
  border: 0;
  border-radius: 8px;
  color: #fff;
}

.creator-app .button--mint:hover,
.creator-app .button--mint:focus-visible {
  box-shadow: 4px 4px 0 #d8ff57;
}

.creator-help-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.creator-help-steps li {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  grid-template-columns: 34px 1fr;
  padding-top: 12px;
}

.creator-help-steps li > span {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: var(--mono);
  font-size: 10px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.creator-help-steps strong {
  display: block;
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
}

.creator-help-steps p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 2px 0 0;
}

.creator-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

@media (max-width: 1180px) {
  .creator-app {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .creator-workspace__body {
    grid-template-columns: minmax(310px, 0.82fr) minmax(390px, 1.18fr);
  }

}

@media (max-width: 980px) {
  .creator-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .creator-sidebar {
    padding-inline: 8px;
  }

  .creator-profile {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .creator-profile > div:nth-child(2),
  .creator-profile > button,
  .creator-search:not(:focus),
  .creator-sidebar__label,
  .creator-menu button:not(.is-active)::after,
  .creator-menu button i,
  .creator-menu button {
    font-size: 0;
  }

  .creator-search {
    justify-content: center;
    padding: 0;
  }

  .creator-search > span {
    font-size: 18px;
  }

  .creator-search kbd {
    display: none;
  }

  .creator-menu button {
    display: flex;
    justify-content: center;
    min-height: 40px;
    padding: 0;
  }

  .creator-menu button > span:first-child {
    font-size: 14px;
  }

  .network-card {
    padding: 10px 0;
    text-align: center;
  }

  .network-card > div {
    justify-content: center;
  }

  .network-card small,
  .network-card strong,
  .network-card > span {
    display: none;
  }

  .partner-slot {
    min-height: 54px;
    padding: 0;
  }

  .partner-slot > span {
    margin: 0;
  }

  .partner-slot b,
  .partner-slot small {
    display: none;
  }

}

@media (max-width: 820px) {
  .creator-app {
    grid-template-columns: 1fr;
  }

  .creator-sidebar {
    display: none;
  }

  .creator-workspace {
    border-radius: 17px;
  }

  .creator-workspace__body {
    grid-template-columns: 1fr;
  }

  .creator-app .preview-pane {
    display: grid;
  }

}

@media (max-width: 560px) {
  .creator-section.shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .creator-app {
    border-radius: 18px;
    padding: 5px;
  }

  .creator-topbar {
    min-height: 56px;
    padding: 0 12px;
  }

  .mini-flock,
  .draft-status {
    display: none;
  }

  .creator-workspace__body {
    padding: 6px;
  }

  .creator-app .preview-pane {
    display: block;
  }

  .creator-start {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-start > button {
    justify-content: center;
    width: 100%;
  }

  .creator-app .category-tab {
    min-height: 44px;
  }

  .creator-app .trait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-app .trait-card__visual {
    aspect-ratio: 1;
    height: auto;
  }

}

/* Theme system. Dark is initialized in the document head to avoid a flash. */
html[data-theme="dark"] {
  color-scheme: dark;
  --brand-red-text: var(--brand-red-bright);
  --focus-ring: #d8ff57;
  --focus-backdrop: #111216;
}

html[data-theme="light"] {
  color-scheme: light;
}

body,
.site-header,
.hero-card,
.steps-grid li,
.accordion details,
.modal,
.creator-section,
.creator-app,
.creator-sidebar,
.creator-workspace,
.creator-app .preview-pane,
.creator-app .control-pane {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

html[data-theme="dark"] body {
  background: #111216;
  color: #f1efe9;
}

html[data-theme="dark"] .site-header {
  background: #111216;
  border-bottom-color: #393a42;
}

html[data-theme="dark"] .mobile-menu-toggle {
  background: #1b1c21;
  border-color: #3b3d45;
  color: #f1efe9;
}

@media (max-width: 1100px) {
  html[data-theme="dark"] .mobile-site-nav:not([hidden]) {
    background: #111216;
    border-bottom-color: #393a42;
  }

  html[data-theme="dark"] .mobile-site-nav a {
    border-bottom-color: #393a42;
    color: #f1efe9;
  }

  html[data-theme="dark"] .mobile-site-nav a:hover,
  html[data-theme="dark"] .mobile-site-nav a:focus-visible,
  html[data-theme="dark"] .mobile-site-nav a.is-current {
    color: #171716;
  }

}

html[data-theme="dark"] .brand__mark path:nth-child(2) {
  fill: #111216;
}

html[data-theme="dark"] .site-nav a::after {
  background: #f1efe9;
}

html[data-theme="dark"] .site-nav .is-current::after {
  background: var(--brand-red);
}

html[data-theme="dark"] .theme-toggle {
  background: #1b1c21;
  border-color: #3b3d45;
  color: #f1efe9;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
  background: var(--blue);
  border-color: var(--brand-red-bright);
  color: #111216;
}

html[data-theme="dark"] .button {
  border-color: #f1efe9;
}

html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .button:focus-visible {
  box-shadow: 5px 5px 0 #f1efe9;
}

html[data-theme="dark"] .button--ink {
  background: #f1efe9;
  color: #111216;
}

html[data-theme="dark"] .button--ink:hover,
html[data-theme="dark"] .button--ink:focus-visible {
  background: var(--blue);
  color: #111216;
}

html[data-theme="dark"] .button--acid {
  color: #171716;
}

html[data-theme="dark"] .text-link {
  border-bottom-color: #f1efe9;
  color: #f1efe9;
}

html[data-theme="dark"] .hero__proof {
  border-top-color: #393a42;
}

html[data-theme="dark"] .hero__proof span,
html[data-theme="dark"] .section-heading > p,
html[data-theme="dark"] .faq-intro > p:last-child {
  color: #9c9aa4;
}

html[data-theme="dark"] .hero__launch-status {
  color: #9c9aa4;
}

html[data-theme="dark"] .hero__proof b {
  color: #f1efe9;
}

html[data-theme="dark"] .hero-card {
  background: #1a1b20;
  border-color: #4a4b54;
  box-shadow: 13px 13px 0 #08090b;
  color: #f1efe9;
}

html[data-theme="dark"] .hero-card__image,
html[data-theme="dark"] .status-pill {
  border-color: #5b5c65;
}

html[data-theme="dark"] .hero-card__sticker {
  color: #171716;
}

html[data-theme="dark"] .hero-card__footer small,
html[data-theme="dark"] .scribble {
  color: #8f8d96;
}

html[data-theme="dark"] .steps-grid {
  border-left-color: #4a4b53;
}

html[data-theme="dark"] .steps-grid li {
  background: #15161a;
  border-bottom-color: #4a4b53;
  border-right-color: #4a4b53;
  border-top-color: #4a4b53;
}

html[data-theme="dark"] .steps-grid__icon {
  background: #222329;
}

html[data-theme="dark"] .steps-grid li:hover .steps-grid__icon {
  background: var(--acid);
  color: #171716;
}

html[data-theme="dark"] .steps-grid p,
html[data-theme="dark"] .accordion details p {
  color: #9c9aa4;
}

html[data-theme="dark"] .faq-section {
  border-top-color: #46474f;
}

html[data-theme="dark"] .accordion {
  border-top-color: #f1efe9;
}

html[data-theme="dark"] .accordion details {
  border-bottom-color: #46474f;
}

html[data-theme="dark"] .accordion summary span {
  border-color: #f1efe9;
}

html[data-theme="dark"] .accordion details[open] summary span {
  color: #171716;
}

html[data-theme="dark"] .closing-section {
  color: #171716;
}

html[data-theme="dark"] .closing-section .button--ink {
  background: #171716;
  border-color: #171716;
  color: #f5f0e6;
}

html[data-theme="dark"] .closing-section .button--ink:hover,
html[data-theme="dark"] .closing-section .button--ink:focus-visible {
  background: var(--blue);
  box-shadow: 5px 5px 0 #171716;
}

html[data-theme="dark"] .modal {
  background: #17181d;
  border-color: #5b5c66;
  box-shadow: 12px 12px 0 #08090b;
  color: #f1efe9;
}

html[data-theme="dark"] .modal__topline,
html[data-theme="dark"] .modal__close {
  border-color: #44454e;
}

html[data-theme="dark"] .modal__close:hover {
  background: var(--blue);
  color: #111216;
}

html[data-theme="dark"] .modal__body > p:not(.modal__eyebrow),
html[data-theme="dark"] .wallet-option small,
html[data-theme="dark"] .security-note p,
html[data-theme="dark"] .trait-panel__description {
  color: #9c9aa4;
}

html[data-theme="dark"] .wallet-option {
  background: #202127;
  border-color: #45464f;
}

html[data-theme="dark"] .wallet-option:hover {
  background: #665cf0;
  color: #fff;
}

html[data-theme="dark"] .wallet-option:hover small {
  color: #d8d5ff;
}

html[data-theme="dark"] .wallet-option__logo {
  color: #171716;
}

html[data-theme="dark"] .security-note,
html[data-theme="dark"] .success-id {
  background: #23242a;
}

html[data-theme="dark"] .security-note b {
  color: #f1efe9;
}

html[data-theme="dark"] .creator-help-steps li {
  border-top-color: #3d3e46;
}

html[data-theme="dark"] .creator-help-steps strong {
  color: #f1efe9;
}

html[data-theme="dark"] .creator-help-steps p {
  color: #aaa8b2;
}

html[data-theme="dark"] .mint-review__art {
  border-color: #5b5c66;
}

html[data-theme="dark"] .receipt {
  border-top-color: #5b5c66;
}

html[data-theme="dark"] .receipt__row {
  border-bottom-color: #3d3e46;
}

html[data-theme="dark"] .modal .button:not(.button--acid) {
  color: #f1efe9;
}

html[data-theme="dark"] .toast {
  background: #665cf0;
  border-color: #bdb8ff;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  box-shadow: 0 0 0 5px var(--focus-backdrop) !important;
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 3px !important;
}

@media (max-width: 560px) {
  .ticker {
    padding-right: 42px;
  }

  .ticker__toggle {
    min-width: 42px;
    padding: 0;
  }

  .ticker__toggle span {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none !important;
  }

}

/* The alternate light theme includes a light version of the dashboard. */
html[data-theme="light"] .creator-section.shell {
  background: #dedde7;
  color: #171716;
}

html[data-theme="light"] .creator-section .section-heading > p {
  color: #5d5c66;
}

html[data-theme="light"] .creator-app {
  background: #f5f4f8;
  border-color: #b9b8c3;
  box-shadow: 0 28px 70px rgba(31, 29, 45, 0.17);
}

html[data-theme="light"] .creator-sidebar {
  background: #eeedf3;
  color: #44434b;
}

html[data-theme="light"] .creator-profile strong,
html[data-theme="light"] .network-card strong,
html[data-theme="light"] .partner-slot b {
  color: #1d1d21;
}

html[data-theme="light"] .creator-profile span,
html[data-theme="light"] .creator-profile button,
html[data-theme="light"] .creator-sidebar__label,
html[data-theme="light"] .network-card small,
html[data-theme="light"] .network-card > span,
html[data-theme="light"] .partner-slot small {
  color: #666570;
}

html[data-theme="light"] .creator-search,
html[data-theme="light"] .network-card,
html[data-theme="light"] .partner-slot {
  background: #f9f8fb;
  border-color: #d1d0d8;
  color: #6e6c76;
}

html[data-theme="light"] .creator-search kbd {
  background: #e5e4eb;
  color: #686670;
}

html[data-theme="light"] .creator-menu button {
  color: #686771;
}

html[data-theme="light"] .creator-menu button > span:first-child {
  color: #777680;
}

html[data-theme="light"] .creator-menu i {
  color: #686771;
}

html[data-theme="light"] .creator-menu button:hover {
  background: #dfdee7;
  color: #27262c;
}

html[data-theme="light"] .creator-menu button.is-active {
  background: #665cf0;
  color: #fff;
}

html[data-theme="light"] .creator-menu button.is-active > span:first-child {
  color: #fff;
}

html[data-theme="light"] .creator-workspace {
  background: #e9e8ee;
}

html[data-theme="light"] .creator-topbar {
  background: #f8f7fa;
  border-bottom-color: #d5d4db;
}

html[data-theme="light"] .creator-topbar__title strong {
  color: #27262b;
}

html[data-theme="light"] .creator-topbar__title small {
  color: #666570;
}

html[data-theme="light"] .creator-topbar__actions > button {
  background: #eeeef2;
  border-color: #d5d4dc;
  color: #66656e;
}

html[data-theme="light"] .mini-flock span {
  border-color: #f8f7fa;
}

html[data-theme="light"] .creator-app .preview-pane,
html[data-theme="light"] .creator-app .control-pane {
  background: #fbfafc;
  border-color: #d2d1d9;
  color: #27262b;
}

html[data-theme="light"] .creator-app .preview-pane__topline,
html[data-theme="light"] .creator-app .wallet-pass p,
html[data-theme="light"] .creator-app .wallet-pass small,
html[data-theme="light"] .creator-app .mint-bar small {
  color: #666570;
}

html[data-theme="light"] .creator-app .preview-actions {
  border-bottom-color: #d8d7de;
}

html[data-theme="light"] .creator-app .icon-button {
  border-right-color: #d8d7de;
  color: #62616a;
}

html[data-theme="light"] .creator-app .wallet-pass {
  background: #f0eff4;
  border-color: #d1d0d8;
}

html[data-theme="light"] .creator-app .wallet-pass.is-connected {
  border-color: #36a47d;
}

html[data-theme="light"] .creator-app .circle-button {
  background: #dedde5;
  color: #29282e;
}

html[data-theme="light"] .creator-app .creator-progress,
html[data-theme="light"] .creator-app .mint-bar {
  border-color: #d8d7de;
}

html[data-theme="light"] .creator-app .creator-progress > i {
  background: #d1d0d8;
}

html[data-theme="light"] .creator-app .creator-progress__item {
  color: #666570;
}

html[data-theme="light"] .creator-app .creator-progress__item.is-active {
  color: #27262b;
}

html[data-theme="light"] .creator-start {
  background: linear-gradient(135deg, rgba(102, 92, 240, 0.1), rgba(89, 221, 169, 0.08));
  border-color: #aaa6da;
}

html[data-theme="light"] .creator-start h3 {
  color: #27262b;
}

html[data-theme="light"] .creator-start p {
  color: #666570;
}

html[data-theme="light"] .creator-app .category-tab {
  border-color: #d5d4dc;
  color: #6f6d77;
}

html[data-theme="light"] .creator-app .category-tab:hover {
  color: #27262b;
}

html[data-theme="light"] .creator-app .category-tab.is-active {
  color: #fff;
}

html[data-theme="light"] .creator-app .trait-panel__heading h3,
html[data-theme="light"] .creator-app .mint-bar__price strong {
  color: #27262b;
}

html[data-theme="light"] .creator-app .trait-panel__heading p,
html[data-theme="light"] .creator-app .trait-panel__description,
html[data-theme="light"] .creator-app .trait-legend {
  color: #666570;
}

html[data-theme="light"] .creator-app .trait-card {
  background: #f1f0f4;
  border-color: #d5d4dc;
  color: #28272c;
}

html[data-theme="light"] .creator-app .trait-card.is-locked {
  background: #e6e5eb;
  color: #666570;
}

html[data-theme="light"] .creator-app .trait-card__tag {
  color: #686771;
}

html[data-theme="light"] .draft-status {
  color: #257a60;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .hero-card,
  .steps-grid li,
  .accordion details,
  .modal,
  .creator-section,
  .creator-app,
  .creator-sidebar,
  .creator-workspace,
  .creator-app .preview-pane,
  .creator-app .control-pane {
    transition: none;
  }

}

/* NGMI-Downbad brand layer: red carries identity; acid remains the action color. */
.builder-launch__steps b,
.creator-menu button.is-active,
.partner-slot > span,
.creator-app .wallet-pass__icon,
.creator-app .circle-button:hover,
.creator-app .creator-progress__item.is-active span,
.creator-start > button,
.creator-app .category-tab.is-active,
.creator-app .button--mint,
html[data-theme="dark"] .wallet-option:hover,
html[data-theme="dark"] .toast,
html[data-theme="light"] .creator-menu button.is-active {
  background: var(--brand-red);
}

.builder-launch__steps b,
.creator-menu button.is-active,
.partner-slot > span,
.creator-app .wallet-pass__icon,
.creator-app .circle-button:hover,
.creator-app .creator-progress__item.is-active span,
.creator-start > button,
.creator-app .category-tab.is-active,
.creator-app .category-tab.is-active span,
.creator-app .button--mint,
html[data-theme="dark"] .wallet-option:hover,
html[data-theme="dark"] .wallet-option:hover small,
html[data-theme="dark"] .toast:not(.is-error),
html[data-theme="light"] .creator-menu button.is-active {
  color: #111216;
}

.creator-search:hover,
.partner-slot:hover,
.creator-app .category-tab:hover,
.creator-app .trait-card:hover,
.creator-app .trait-card:focus-visible {
  border-color: var(--brand-red-bright);
}

.creator-topbar__pulse {
  border-color: var(--brand-red);
}

.creator-topbar__pulse::after {
  background: var(--brand-red);
}

.creator-app .icon-button span,
.creator-start small,
.creator-app .mini-lock,
.creator-app .trait-card__gate {
  color: var(--brand-red-bright);
}

.creator-app .creator-progress__item.is-active span,
.creator-app .category-tab.is-active {
  border-color: var(--brand-red);
}

.creator-app .trait-card.is-selected {
  border-color: var(--brand-red-bright);
  box-shadow: 0 0 0 2px rgba(242, 56, 43, 0.18);
}

.creator-start,
html[data-theme="light"] .creator-start {
  background: linear-gradient(135deg, rgba(242, 56, 43, 0.17), rgba(89, 221, 169, 0.06));
  border-color: rgba(255, 81, 69, 0.5);
}

.creator-start > button:hover,
.creator-start > button:focus-visible {
  background: var(--brand-red-bright);
}

.creator-profile__avatar {
  background: linear-gradient(145deg, #8de0cd, var(--brand-red));
}

html[data-theme="dark"] .wallet-option:hover small {
  color: #111216;
}

html[data-theme="dark"] .toast {
  border-color: #ff9b93;
}

[data-avatar-fit="cover"] {
  object-fit: cover !important;
}

@keyframes profile-dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }

}

@keyframes profile-pulse {
  to { opacity: 0.25; transform: scale(0.7); }

}

html[data-theme="dark"] .modal-feedback {
  color: #f1efe9;
}

html[data-theme="dark"] .toast.is-error {
  background: #791f1a;
  border-color: #ff9b93;
}

@media (max-width: 560px) {
  .modal-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-confirm-actions .button {
    width: 100%;
  }

}

@media (max-width: 370px) {
  .site-header {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .site-header .brand__name {
    display: none;
  }

  .site-header .brand__mark {
    margin-right: 0;
  }

  .header-actions {
    gap: 4px;
  }

  .header-wallet {
    min-width: 58px;
    padding-inline: 7px;
  }

}
