:root {
  color-scheme: dark;
  --ink: #f5f0e6;
  --muted: #aaa397;
  --gold: #d8a43d;
  --gold-light: #f1ca6f;
  --canvas: #090908;
  --surface: #151512;
  --line: #4b4438;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 0, #2c261a 0, transparent 30%), var(--canvas);
  color: var(--ink);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: 1.25rem;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.88rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover {
  color: var(--ink);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 60px;
  padding: clamp(56px, 9vw, 112px) 0 88px;
}
.hero-copy {
  max-width: 820px;
}
.eyebrow {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}
.hero h1 {
  font-size: clamp(3.25rem, 9vw, 7.25rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin: 0.2em 0;
}
.hero p,
.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  max-width: 680px;
}
.hero-mark {
  width: 230px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #6e6e68;
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(216, 164, 61, 0.08),
    inset 0 0 40px rgba(216, 164, 61, 0.08);
  transform: rotate(4deg);
  background:
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 5px
    ),
    #0a0a09;
}
.hero-mark img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
}
.hero-mark strong {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  color: var(--gold);
}
.hero-mark small {
  margin-top: 7px;
  color: var(--muted);
  letter-spacing: 0.18em;
}
.manifesto {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 15px 18px;
  border-block: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}
.manifesto strong {
  color: var(--ink);
  text-align: center;
  font-size: 0.78rem;
}
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #090908;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.05em;
}
.button:hover {
  background: var(--gold-light);
}
.button:focus-visible,
.challenge-chip:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.compact {
  min-height: 46px;
}
.builder {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(34px, 7vw, 88px);
  padding: 72px clamp(20px, 5vw, 64px);
  margin-inline: calc(clamp(20px, 5vw, 64px) * -1);
  background: linear-gradient(135deg, #171611, #0e0e0c);
  border: 1px solid var(--line);
}
.builder h2 {
  font-size: clamp(2.2rem, 5vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0.25em 0;
}
.challenge-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 22px;
}
.challenge-chip {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #0e0e0c;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.challenge-chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(216, 164, 61, 0.14);
  color: var(--ink);
}
.challenge-chip.custom[aria-pressed="true"]::after {
  content: " ×";
  color: var(--gold);
}
.custom-challenge {
  display: grid;
  gap: 8px;
}
.custom-challenge label,
.field label {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
input {
  width: 100%;
  min-height: 48px;
  background: #0d0d0b;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0 14px;
}
.builder-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-size: 0.88rem;
}
.commit-button {
  width: 100%;
  margin-top: 18px;
  min-height: 58px;
  font-size: 1.05rem;
}
.privacy-note,
.card-caption {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.card-stage {
  align-self: center;
}
.card-view-switch {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 6px;
  margin-bottom: 10px;
}
.card-view-switch button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #080808;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.09em;
}
.card-view-switch button[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(216, 164, 61, 0.1);
}
.challenge-card {
  position: relative;
  padding: 26px;
  border: 1px solid #666661;
  border-radius: 20px;
  background:
    linear-gradient(
      115deg,
      transparent 0 18%,
      rgba(255, 255, 255, 0.055) 32%,
      transparent 45% 100%
    ),
    repeating-linear-gradient(
      100deg,
      #050505 0,
      #151515 1px,
      #070707 3px,
      #111 6px
    );
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.68),
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 5px #090909;
  overflow: hidden;
}
.challenge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.85);
}
.card-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(216, 164, 61, 0.35);
}
.card-topline div {
  display: grid;
  gap: 4px;
}
.card-topline span {
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.card-topline strong {
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.card-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.card-status {
  border: 1px solid var(--gold);
  padding: 7px 9px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #4e4b43;
  margin: 20px 0;
}
.card-position {
  min-height: 90px;
  padding: 14px;
  position: relative;
  background:
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.022) 0 1px,
      transparent 1px 5px
    ),
    #080808;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
}
.card-position span {
  grid-row: 1/3;
  color: #6f6758;
  font-weight: 950;
  font-size: 1.45rem;
}
.card-position strong {
  align-self: end;
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  color: #80786b;
}
.card-position small {
  color: #625c51;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.card-position.planned {
  background:
    linear-gradient(135deg, rgba(216, 164, 61, 0.12), transparent 55%), #0d0d0c;
}
.card-position.planned span,
.card-position.planned small {
  color: var(--gold);
}
.card-position.planned strong {
  color: var(--ink);
}
.card-position.earned {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 50%,
      rgba(216, 164, 61, 0.22),
      transparent 28%
    ),
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 5px
    ),
    #111;
}
.card-position.earned span,
.card-position.earned small {
  color: var(--gold);
}
.card-position.earned strong {
  color: var(--ink);
}
.earned-punch {
  position: absolute;
  right: 8px;
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 0.62;
  filter: sepia(1) saturate(1.4) drop-shadow(0 2px 3px #000);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.card-caption {
  text-align: center;
  margin: 14px auto 0;
  max-width: 520px;
}
.share-preview {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #0a0a09;
}
.share-copy h3 {
  margin: 6px 0;
  font-size: 1.2rem;
}
.share-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.platforms span {
  padding: 5px 7px;
  border: 1px solid #39362f;
  color: #bbb4a7;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.share-post {
  min-height: 205px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #706b62;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(100deg, #111 0, #1c1c1b 1px, #080808 4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.share-post-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: auto;
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}
.share-post-head img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.share-post > strong {
  font-size: 1.85rem;
  line-height: 0.9;
}
.share-post > span {
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
}
.share-post > small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}
.profile-start {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  padding: 18px;
  background: linear-gradient(
    135deg,
    rgba(224, 167, 48, 0.12),
    rgba(17, 17, 15, 0.92)
  );
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.profile-start[hidden] {
  display: none;
}
.profile-start h3 {
  margin: 5px 0 7px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.profile-start p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.profile-start form {
  display: grid;
  gap: 10px;
}
.field {
  display: grid;
  gap: 8px;
}
.honeypot {
  position: absolute;
  left: -9999px;
}
.status {
  min-height: 24px;
  color: var(--gold);
  grid-column: 1/-1;
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 72px 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}
.panel strong {
  color: var(--gold);
}
.panel h2 {
  font-size: 1.5rem;
}
.panel p {
  color: var(--muted);
  line-height: 1.55;
}
.legal {
  max-width: 760px;
  padding: 56px 0 96px;
}
.legal h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}
.legal h2 {
  margin-top: 36px;
}
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.conversion {
  display: none;
}
.conversion.active {
  display: block;
  padding: 70px 0;
}
.conversion h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.92;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.small {
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    display: none;
  }
  .builder {
    grid-template-columns: 1fr;
  }
  .card-stage {
    order: -1;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }
  .nav a:nth-child(-n + 2) {
    display: none;
  }
  .hero {
    padding-top: 52px;
  }
  .builder {
    padding: 36px 16px;
    margin-inline: 0;
  }
  .manifesto {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .challenge-card {
    padding: 16px;
    border-radius: 15px;
  }
  .share-preview {
    grid-template-columns: 1fr 140px;
  }
  .card-position {
    min-height: 78px;
    padding: 10px;
  }
  .card-footer {
    display: grid;
    text-align: center;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    min-height: 60px;
  }
  .custom-row {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
  }
}
@media (max-width: 460px) {
  .share-preview {
    grid-template-columns: 1fr;
  }
  .share-post {
    min-height: 180px;
  }
}
[hidden] {
  display: none !important;
}

/* Mobile-app introduction; the existing web builder stays available below. */
.hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.app-note { color: var(--muted); font-size: .9rem; }
.app-preview { border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: repeating-linear-gradient(100deg, #10110e 0 2px, #171813 2px 3px); box-shadow: 0 24px 60px #0005; }
.preview-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 20px; color: var(--gold); }
.preview-heading img { width: 32px; height: 40px; object-fit: contain; }
.preview-heading span { font-size: .65rem; border: 1px solid var(--gold); padding: 5px; }
.preview-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preview-slots > div { position: relative; display: flex; gap: 8px; align-items: center; min-height: 128px; padding: 12px; border-top: 1px solid var(--line); }
.preview-slots > div:nth-child(odd) { border-right: 1px solid var(--line); }
.preview-slots > div > span { color: var(--gold); font-size: 1.5rem; font-weight: 900; }
.preview-slots strong { font-size: .85rem; overflow-wrap: anywhere; }
.preview-slots small { display: block; color: var(--muted); font-size: .6rem; margin-top: 7px; letter-spacing: .05em; }
.preview-earned img { position: absolute; right: 12px; width: 70px; height: 85px; object-fit: contain; opacity: .25; transform: rotate(-9deg); }
.preview-earned small { color: var(--gold); }
.app-preview > p { font-size: .6rem; text-align: center; letter-spacing: .08em; margin: 22px 0 0; }
.app-guide { padding: 32px 0 64px; }
.app-guide h2 { font-size: clamp(2rem, 5vw, 3rem); max-width: 700px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.journey-grid h3 { font-size: 1.3rem; }
.journey-grid p { color: var(--muted); line-height: 1.65; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; } .journey-grid { grid-template-columns: 1fr; } .app-preview { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero h1 { font-size: clamp(3rem, 6.7vw, 6rem); }
.builder, .builder-copy, .card-stage { min-width: 0; }


.companion { max-width: 900px; margin: 48px auto; }
.companion > h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.companion > section, .companion > form, .companion > details { margin-block: 28px; }
.companion-form, .companion label { display: grid; gap: 12px; }
.companion input, .companion textarea, .companion select { width: 100%; max-width: 100%; background: var(--canvas); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font: inherit; }
.companion .button { cursor: pointer; }
.account-challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.account-challenge { position: relative; min-width: 0; overflow-wrap: anywhere; }
.account-challenge h3, .account-challenge p { position: relative; z-index: 1; }
.account-stamp { position: absolute; width: 80px; height: 100px; object-fit: contain; right: 16px; top: 20px; opacity: .22; transform: rotate(-9deg); }
.preserve-lines { white-space: pre-line; line-height: 1.65; }
@media (max-width: 500px) { .account-challenges { grid-template-columns: 1fr; } }

/* Focused public introduction; the interactive draft lives on /preview/. */
.landing-page .hero { padding: 72px 0 64px; gap: 48px; }
.landing-page .hero h1 { font-size: clamp(38px, 4.4vw, 68px); line-height: .98; letter-spacing: -.045em; }
.landing-page .hero h1 span { display: block; }
.landing-page .hero-copy > p { max-width: 32em; }
.landing-page .hero .app-note { font-size: 15px; }
.text-link { color: var(--gold, #d9a83e); text-underline-offset: 5px; }
.landing-plan { padding: 56px 0; border-top: 1px solid #494431; }
.landing-plan h2, .landing-close h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; margin: 12px 0 18px; }
.landing-plan > .lede { max-width: 40em; }
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.step-number { color: #d9a83e; font-size: 26px; font-weight: 800; }
.landing-steps h3 { font-size: 20px; margin: 14px 0 10px; }
.landing-steps p, .landing-close p { color: #bdb6a5; line-height: 1.65; margin: 0; }
.landing-close { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; padding: 40px; margin: 0 0 48px; background: #1c1a12; border: 1px solid #494431; border-radius: 18px; }
.landing-cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.landing-cta small { color: #bdb6a5; line-height: 1.5; }
@media (max-width: 720px) {
  .landing-page .hero { padding: 36px 0; gap: 32px; }
  .landing-page .hero h1 { font-size: clamp(30px, 8vw, 56px); }
  .landing-steps, .landing-close { grid-template-columns: 1fr; gap: 28px; }
  .landing-close { padding: 24px; }
  .landing-plan { padding: 32px 0; }
}

/* The public example follows ChallengeCard's mobile detail layout and MascotStamp. */
@font-face { font-family: "Card Oswald"; src: url("/fonts/Oswald_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Card Oswald"; src: url("/fonts/Oswald_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
.mobile-card-preview { width: 100%; max-width: 372px; margin: 0 auto; color: #f5f0e6; font-family: "Card Oswald", sans-serif; }
.mobile-phone { background: #0b0b0a; border: 1px solid #3b3932; border-radius: 32px; padding: 16px 12px 22px; box-shadow: 0 24px 60px #0005; }
.mobile-screen-title { text-align: center; font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.mobile-example-card { background: #151613; border: 1px solid #73766e; border-radius: 12px; padding: 14px; }
.mobile-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #d5a34580; }
.mobile-card-brand { display: flex; align-items: center; gap: 6px; color: #d5a345; font-size: 16px; font-weight: 700; letter-spacing: 1.5px; }
.mobile-card-brand img { width: 25px; height: 25px; object-fit: contain; }
.mobile-card-header > div > strong { display: block; font-size: 21px; line-height: 1.3; letter-spacing: 1.2px; margin-top: 4px; }
.mobile-earned-count { border: 1px solid #d5a345; padding: 4px 8px; color: #d5a345; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 1.8px; }
.mobile-card-preview .mobile-card-guide { border: 1px solid #d5a345; padding: 8px 3px; margin: 10px 0; font-size: 8px; line-height: 1.4; letter-spacing: .6px; text-align: center; }
.mobile-card-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-slot { min-width: 0; min-height: 94px; position: relative; overflow: hidden; display: flex; gap: 7px; align-items: center; padding: 12px 7px; border-bottom: 1px solid #b7b0a340; }
.mobile-slot:nth-child(odd) { border-right: 1px solid #b7b0a340; }
.mobile-number { position: relative; z-index: 3; color: #d5a345; font-size: 22px; font-weight: 700; line-height: 1.2; }
.mobile-slot-copy { min-width: 0; position: relative; z-index: 1; }
.mobile-slot-copy strong { display: block; font-size: 15px; line-height: 1.27; letter-spacing: .3px; }
.mobile-slot-copy small { display: block; color: #d5a345; font-size: 8px; line-height: 1.4; letter-spacing: .8px; margin-top: 5px; }
.mobile-earned { background: #d5a3450a; }
.mobile-chevron { position: absolute; top: 4px; right: 8px; color: #d5a345; font-size: 24px; }
.mobile-empty .mobile-number { color: #b7b0a3; }
.mobile-empty strong { color: #d5a345; font-size: 12px; letter-spacing: .8px; }
.mobile-empty small { color: #b7b0a3; font-size: 8px; }
.mobile-add { display: block; color: #d5a345; font-size: 21px; line-height: 1; margin-bottom: 5px; }
.mobile-stamp { position: absolute; z-index: 2; top: -10px; right: 0; width: 76px; height: 76px; padding: 3px; border: 1.5px dashed #d5a345; border-radius: 5px; opacity: .22; transform: rotate(-7deg); pointer-events: none; }
.mobile-stamp > span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border: 1px solid #d5a345; border-radius: 2px; }
.mobile-stamp img { width: 43px; height: 43px; object-fit: contain; }
.mobile-stamp b { color: #d5a345; font-size: 8px; letter-spacing: .6px; }
.mobile-card-preview .mobile-card-motto { text-align: center; font-size: 8px; letter-spacing: .8px; line-height: 1.5; padding-top: 10px; margin: 0; }
.mobile-card-preview figcaption { text-align: center; color: #b7b0a3; font-size: 10px; letter-spacing: 1px; margin-top: 14px; }
@media (max-width: 380px) { .mobile-phone { padding: 12px 8px; } .mobile-example-card { padding: 10px; } .mobile-slot { gap: 5px; padding: 10px 5px; } .mobile-slot-copy strong { font-size: 13px; } .mobile-empty strong { font-size: 11px; } }

.public-library { margin: 48px auto; max-width: 1000px; }
.public-library h1 { font-size: clamp(28px, 6vw, 48px); overflow-wrap: anywhere; }
.public-library input, .public-library select { display: block; width: 100%; background: #151613; color: var(--ink); border: 1px solid var(--line); padding: 14px; font: inherit; border-radius: 8px; margin: 8px 0 18px; }
.library-category-tiles, .library-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.library-category-tiles button { padding: 18px 8px; min-height: 48px; background: #22221e; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; font: inherit; cursor: pointer; }
.library-category-tiles button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.library-result { display: block; padding: 18px; border-bottom: 1px solid var(--line); color: var(--gold); text-decoration: none; overflow-wrap: anywhere; }
.library-result small { display: block; color: var(--muted); line-height: 1.4; margin-top: 8px; }
.challenge-actions { padding-left: 24px; line-height: 1.35; }
.challenge-actions li { margin: 5px 0; }
.public-library details { margin: 24px 0; }
.public-library summary { cursor: pointer; padding: 12px 0; }
.library-safety { color: var(--muted); line-height: 1.4; }
.landing-library { padding: 0 0 48px; }
@media(max-width: 620px) { .library-results { grid-template-columns: 1fr; } .library-category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 13px; } }

/* Library uses the same three-wide, category-first rhythm as the mobile app. */
.public-library { max-width: 720px; color: #f5f0e6; }
.public-library h1, .public-library h2, .library-category-tiles, .library-back { font-family: "Card Oswald", sans-serif; }
.public-library h1 { font-size: 32px; margin: 12px 0; }
.library-category-tiles { gap: 28px 16px; margin: 32px 0; }
.library-category-tiles[hidden], .library-results[hidden] { display: none; }
.library-category-tiles button, .library-personal-folder { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0; background: none; border: 0; color: #f5f0e6; font-size: 20px; font-weight: 700; text-decoration: none; cursor: pointer; }
.library-folder-icon { display: grid; place-items: center; width: min(100%, 124px); aspect-ratio: 1; border-radius: 26px; background: #22231e; color: #d5a345; }
.library-folder-icon svg { width: 56px; height: 56px; }
.library-category-tiles button:hover .library-folder-icon, .library-personal-folder:hover .library-folder-icon { background: #303127; }
.public-library :focus-visible { outline: 2px solid #d5a345; outline-offset: 5px; }
.library-back { background: none; border: 0; color: #d5a345; padding: 12px 0; font-size: 17px; cursor: pointer; }
.library-create { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border: 1px solid #615334; border-radius: 14px; background: #191a16; margin: 28px 0; }
.library-create h2 { font-size: 23px; margin: 0; }
.library-create p { color: #b7b0a3; margin-bottom: 0; font-size: 14px; }
.library-create .button { flex-shrink: 0; }
.library-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
.library-result { background: #191a16; border: 1px solid #44463e; border-radius: 14px; font-family: "Card Oswald", sans-serif; font-size: 22px; }
.library-result small { font-family: sans-serif; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media(max-width:620px) { .public-library { margin: 28px auto; } .library-category-tiles { gap: 24px 12px; } .library-category-tiles button, .library-personal-folder { font-size: 16px; } .library-folder-icon { border-radius: 22px; } .library-folder-icon svg { width: 48px; height: 48px; } .library-create { align-items: flex-start; flex-direction: column; } .library-results { grid-template-columns: 1fr; } }
