@import url("/lib/tokens.css");

/* Nav ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 248, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.035em;
}

.logo__mark {
  width: 22px;
  height: 22px;
  flex: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav__link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
}

.nav__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* Demo notice -------------------------------------------------------------- */

.demobar {
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.demobar__in {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 24px;
}

.demobar a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hero --------------------------------------------------------------------- */

.hero {
  padding: 72px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    padding: 44px 0 36px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.02;
}

.hero__title em {
  font-style: normal;
  color: var(--ember);
}

.hero__sub {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 46ch;
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__foot {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Bag scan card ------------------------------------------------------------ */

.scan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scan__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.scan__body {
  padding: 20px;
}

.scan__total {
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.scan__caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.scan__list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 268px;
  overflow-y: auto;
}

.holding {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
}

.holding:hover {
  background: var(--surface-2);
}

.holding__sym {
  font-weight: 700;
  font-size: 0.9375rem;
}

.holding__name {
  font-size: 0.75rem;
  color: var(--muted);
}

.holding__amt {
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 600;
}

.holding__usd {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.scan__empty {
  padding: 26px 4px 8px;
  text-align: center;
}

.scan__skeleton {
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, #ecebe8 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
  margin-bottom: 6px;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Disclosure band ---------------------------------------------------------- */

/* Kickstarter can hide its terms because all-or-nothing protects backers by default.
   Kindling has no such protection, so the trade has to be stated in the open. */
.disclose {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ember-soft);
}

.disclose__in {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
}

.disclose__icon {
  flex: none;
  margin-top: 2px;
  color: var(--ember);
}

.disclose__text {
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 86ch;
}

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

/* Gallery ------------------------------------------------------------------ */

.section {
  padding: 56px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.section__title {
  font-size: 1.75rem;
}

.section__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.section__right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease,
    border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}

.card__cover img,
.card__cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__chip {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__blurb {
  margin-top: 7px;
  font-size: 0.875rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__creator {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.card__foot {
  margin-top: auto;
  padding-top: 16px;
}

.card__stats {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.card__raised {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}

.card__sep {
  color: var(--border-strong);
}

.card__tokens {
  margin-top: 9px;
  font-size: 0.75rem;
  color: var(--faint);
}

/* How it works -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step__n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 800;
}

.step__n::before {
  content: counter(step);
}

.step__title {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.step__body {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Empty state --------------------------------------------------------------- */

.blank {
  padding: 64px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.blank__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.blank__body {
  margin-top: 8px;
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
}

.blank__cta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer -------------------------------------------------------------------- */

.foot {
  padding: 44px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.foot__in {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.foot__note {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 62ch;
}

.foot__addr {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--faint);
}

.foot__addr a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Toasts -------------------------------------------------------------------- */

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(400px, calc(100vw - 32px));
}

.toast {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: rise 180ms ease;
}

.toast--err {
  background: var(--ember);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Chain indicators ---------------------------------------------------------- */

.chaindots {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.chaindot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

.chaindot--base { background: #2f6bff; }
.chaindot--ethereum { background: #7b7fd4; }

.nettag {
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: 1px;
}

.nettag--base { background: #e8efff; color: #1d4ed8; }
.nettag--ethereum { background: #eeeefb; color: #4b4fa6; }

.notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 18px;
}

.notice--warn {
  background: var(--ember-soft);
  color: var(--ember-hover);
  border: 1px solid rgba(228, 83, 29, 0.25);
}

/* Campaign detail ----------------------------------------------------------- */

.loading { padding: 80px 0; color: var(--muted); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0 72px;
  align-items: start;
}

@media (max-width: 920px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
}

.detail__cover {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.detail__cover img, .detail__cover svg { width: 100%; height: 100%; object-fit: cover; }

.detail__title { margin-top: 26px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.detail__summary { margin-top: 14px; font-size: 1.0625rem; color: var(--ink-2); max-width: 62ch; }

.detail__by { margin-top: 18px; display: flex; align-items: center; gap: 9px; font-size: 0.9375rem; color: var(--muted); }

.prose { margin-top: 26px; max-width: 66ch; }
.prose p { margin-bottom: 14px; color: var(--ink-2); }

.detail__link { display: inline-block; margin-top: 8px; color: var(--ember); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.disclose--inline { margin-top: 30px; border-radius: var(--radius); border: 1px solid rgba(228,83,29,.2); }
.disclose--inline .disclose__in { padding: 16px 18px; }

.block { margin-top: 36px; }
.block__title { font-size: 1.125rem; margin-bottom: 14px; }
.block__note { margin-top: 12px; font-size: 0.875rem; color: var(--muted); max-width: 62ch; }

.legs { display: flex; flex-direction: column; gap: 8px; }
.leg {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.leg__amt { font-weight: 800; }
.leg__meta { color: var(--muted); font-size: 0.875rem; }
.leg__link { margin-left: auto; font-size: 0.8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.clist { display: flex; flex-direction: column; }
.crow {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--border); font-size: 0.875rem;
}
.crow:last-child { border-bottom: 0; }
.crow__who { font-weight: 600; min-width: 96px; }
.crow__tok { color: var(--muted); }
.crow__amt { margin-left: auto; font-weight: 700; }
.crow__link { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; font-size: 0.8125rem; }

/* Funding panel ------------------------------------------------------------- */

.detail__side { position: sticky; top: 86px; }
@media (max-width: 920px) { .detail__side { position: static; } }

.fund {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.fund__raised { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.fund__goal { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; margin-bottom: 16px; }

.fund__facts { display: flex; gap: 22px; margin-top: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.fact__v { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.fact__l { font-size: 0.8125rem; color: var(--muted); }

.contrib { margin-top: 20px; }
.contrib__label { display: block; font-size: 0.8125rem; font-weight: 700; margin-bottom: 7px; }
.contrib__amt { display: flex; gap: 8px; margin-top: 10px; }
.contrib__amt .input { flex: 1; }
.contrib__hint { font-size: 0.8125rem; color: var(--muted); margin: 10px 0 14px; }
.contrib__fine { margin-top: 12px; font-size: 0.75rem; color: var(--muted); line-height: 1.45; }
.contrib__closed { color: var(--muted); font-size: 0.9375rem; }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-sm); }
.seg__btn {
  flex: 1; padding: 8px 10px; border: 0; background: transparent; border-radius: 6px;
  font-size: 0.875rem; font-weight: 700; color: var(--muted); cursor: pointer;
}
.seg__btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.quote { margin: 16px 0; padding: 14px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 0.875rem; }
.quote__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-2); }
.quote__row.is-strong { font-weight: 800; color: var(--ink); }
.quote--bad { background: var(--ember-soft); color: var(--ember-hover); }
.quote__warn { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.8125rem; }
.quote__warn--high { color: var(--ember-hover); font-weight: 600; }
.quote__warn--notable { color: var(--muted); }

/* Create -------------------------------------------------------------------- */

.create { padding: 40px 0 80px; }
.create__head { max-width: 62ch; }
.create__title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.create__sub { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; }

.create__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px; margin-top: 36px; align-items: start;
}
@media (max-width: 920px) { .create__grid { grid-template-columns: minmax(0,1fr); gap: 32px; } }

.create__side { position: sticky; top: 86px; }
@media (max-width: 920px) { .create__side { position: static; order: -1; } }

.fs { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0 0 22px; background: var(--surface); }
.fs__legend { padding: 0 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.f { display: block; margin-bottom: 18px; }
.f:last-child { margin-bottom: 0; }
.f__label { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 6px; }
.f__opt { font-weight: 500; color: var(--faint); }
.f__hint { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.f__err { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--ember-hover); font-weight: 600; }
.f__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .f__row { grid-template-columns: 1fr; } }

.input.is-bad { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-ring); }
textarea.input { resize: vertical; line-height: 1.5; font-size: 0.9375rem; }

.chainpick { display: flex; gap: 10px; flex-wrap: wrap; }
.chainopt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-size: 0.875rem; font-weight: 600;
}
.chainopt.is-on { border-color: var(--ember); background: var(--ember-soft); }
.chainopt__note { color: var(--muted); font-weight: 500; font-size: 0.75rem; }

.create__fine { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.preview { margin-bottom: 14px; }
.done { max-width: 62ch; padding: 40px 0; }

/* Uploads ------------------------------------------------------------------- */

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 118px; padding: 18px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2); cursor: pointer; text-align: center;
  transition: border-color 140ms ease, background 140ms ease;
}
.drop:hover, .drop.is-over { border-color: var(--ember); background: var(--ember-soft); }
.drop.is-filled { border-style: solid; background: var(--surface); }
.drop__body { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.drop__body strong { font-size: 0.9375rem; }
.drop__body span { font-size: 0.8125rem; color: var(--muted); }
.drop__thumb { width: 100%; max-height: 190px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px; }
.drop__meta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.drop__bar { width: 100%; margin-top: 10px; }
.drop__pct { font-variant-numeric: tabular-nums; }
.drop__remove { margin-top: 8px; }

.card__play {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 20, 25, 0.62); color: #fff; font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

.detail__cover--video { background: #000; }
.detail__cover video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Submit block spacing. The disclosure, the button and the cost line were running together. */
.create__form .disclose--inline { margin: 28px 0 22px; }
.create__form #submit { margin-top: 2px; }
.create__form .create__fine { margin-top: 12px; margin-bottom: 8px; }

/* Moderation --------------------------------------------------------------- */

.suspend-banner {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 2px solid #c62828;
  border-radius: var(--radius);
  background: #fdecec;
}
.suspend-banner__title {
  font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em;
  color: #b3231f; text-transform: uppercase;
}
.suspend-banner__body { margin-top: 5px; font-size: 0.9375rem; color: #7f2320; }

.suspended-flag {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(198, 40, 40, 0.82);
  color: #fff; font-weight: 800; font-size: 1.125rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.card--suspended { opacity: 0.92; }
.card--suspended:hover { transform: none; }

/* Optional backer identity --------------------------------------------------- */

.ident { margin: 4px 0 14px; }
.ident__summary {
  cursor: pointer; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2);
  padding: 6px 0; list-style: none;
}
.ident__summary::-webkit-details-marker { display: none; }
.ident__summary::before { content: "+ "; color: var(--ember); font-weight: 800; }
.ident[open] .ident__summary::before { content: "− "; }
.ident .input { margin-top: 8px; }
.ident__note { resize: vertical; line-height: 1.45; font-size: 0.875rem; }
.ident__hint { margin-top: 8px; font-size: 0.75rem; color: var(--muted); line-height: 1.45; }

.centry { border-bottom: 1px solid var(--border); }
.centry:last-child { border-bottom: 0; }
.centry .crow { border-bottom: 0; }
.crow__note {
  padding: 0 4px 12px; margin-top: -4px;
  font-size: 0.875rem; color: var(--ink-2); line-height: 1.5;
  max-width: 62ch; overflow-wrap: anywhere;
}

/* Wallet menu -------------------------------------------------------------- */

.wmenu { position: relative; }
.wmenu__trigger { display: inline-flex; align-items: center; gap: 7px; }
.wmenu__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.wmenu__caret { font-size: 0.6875rem; color: var(--muted); }

.wmenu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 236px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: wmenu-in 120ms ease;
}
@keyframes wmenu-in { from { opacity: 0; transform: translateY(-4px); } }

.wmenu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.wmenu__label { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wmenu__addr { margin-top: 3px; font-family: var(--mono); font-size: 0.75rem; overflow-wrap: anywhere; }

.wmenu__item {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.wmenu__item:hover { background: var(--surface-2); }
.wmenu__item--danger { color: var(--ember); }
.wmenu__item--danger:hover { background: var(--ember-soft); }
.wmenu__sep { height: 1px; background: var(--border); margin: 6px 0; }

/* Loading ------------------------------------------------------------------ */

.loadwrap { padding: 72px 0; text-align: center; }
.loadwrap__bar {
  width: 180px; height: 4px; margin: 0 auto 14px; border-radius: 999px;
  background: var(--surface-2); overflow: hidden; position: relative;
}
.loadwrap__bar::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--ember); border-radius: 999px;
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.loadwrap__text { color: var(--muted); font-size: 0.9375rem; }

/* My campaigns -------------------------------------------------------------- */

.mine__head { padding: 36px 0 8px; }

.arow {
  display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 18px;
  padding: 18px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .arow { grid-template-columns: minmax(0,1fr); } }

.arow__thumb {
  aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.arow__thumb img, .arow__thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.arow__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.arow__title { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.025em; }
.arow__summary { margin-top: 3px; font-size: 0.875rem; color: var(--ink-2); }
.arow__note { margin-top: 9px; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; max-width: 66ch; }

.arow__kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px,1fr)); gap: 10px 18px; margin-top: 14px; }
.arow__k { font-size: 0.625rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.arow__v { margin-top: 2px; font-size: 0.875rem; font-weight: 700; overflow-wrap: anywhere; }

.arow__legs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.arow__leg {
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
  font-size: 0.75rem; font-weight: 700; color: var(--ink-2);
}

.arow__contribs { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.arow__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.pill--pending { background: var(--ember-soft); color: var(--ember-hover); }
.pill--live { background: var(--green-soft); color: var(--green); }
.pill--suspended { background: #fdecec; color: #c62828; }
.pill--closed { background: var(--surface-2); color: var(--muted); }
.pill--removed { background: var(--surface-2); color: var(--faint); }

/* Chain choice ------------------------------------------------------------- */

.seg__btn.is-off { opacity: .45; cursor: not-allowed; }
.seg__btn.is-off::after { content: " · soon"; font-size: .75em; }

.otherchain {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 13px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  font-size: 0.8125rem; color: var(--ink-2); line-height: 1.45;
}
