/* ==========================================================================
   Xeeters design system
   One stylesheet for every page. Depth comes from light, not decoration:
   surfaces are lit from above (a bright top edge, a shadow that falls
   below), buttons press down like keys, and the only showpiece is the 3D
   X mark on the home page.
   ========================================================================== */

:root {
  /* Colour */
  --black: #000000;
  --graphite: #141417;        /* panels */
  --graphite-up: #1c1c21;     /* raised panels, inputs */
  --graphite-line: #2a2a31;   /* hairlines on graphite */
  --ember: #ff7a1a;           /* brand */
  --ember-hi: #ffb347;        /* brand highlight */
  --ember-deep: #b8480a;      /* brand shadow side */
  --bone: #f3efe6;            /* text */
  --muted: #8e8a83;
  --dim: #5d5a55;
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #facc15;

  /* Light: a soft top-edge highlight + a falling shadow = "lit from above" */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --lift-1: 0 1px 1px rgba(0, 0, 0, 0.6), 0 6px 14px -6px rgba(0, 0, 0, 0.8);
  --lift-2: 0 2px 2px rgba(0, 0, 0, 0.6), 0 18px 40px -16px rgba(0, 0, 0, 0.9);

  /* Type (Space Grotesk only; mono strictly for wallet/amount data) */
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.85rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-4: clamp(3rem, 2rem + 5vw, 6.2rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ember); color: var(--black); }

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

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.045em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.2; }
p { max-width: var(--measure); text-wrap: pretty; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.45; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.data { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; word-break: break-all; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(255, 122, 26, 0.25)); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.95rem; transition: color .15s, background .15s; }
.nav a:hover { color: var(--bone); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--bone); }
.nav a.key { color: var(--ink); margin-left: 8px; }
.nav a.key:hover { background: var(--face); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: var(--r-sm); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--bone); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav .nav-m, .nav-group { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--graphite-line);
    padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s; overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--graphite); }
  .nav a.key { margin-top: 14px; margin-left: 0; justify-content: center; border-bottom: 0; }
  .nav .nav-m { display: block; }
  .nav-group { display: block; margin-top: 22px; padding: 0 4px 6px; color: var(--dim); font-size: var(--step--1); font-weight: 600; }
}

/* --------------------------------------------------------------------------
   Keys (buttons). Physical: a lit face, a darker base, they press down.
   -------------------------------------------------------------------------- */
.key {
  --face: var(--graphite-up); --base: #0a0a0c; --ink: var(--bone);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--r-md);
  background: var(--face); color: var(--ink); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; user-select: none;
  box-shadow: var(--edge), 0 4px 0 var(--base), 0 10px 18px -6px rgba(0, 0, 0, 0.8);
  transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.key:hover { filter: brightness(1.08); }
.key:active { transform: translateY(3px); box-shadow: var(--edge), 0 1px 0 var(--base), 0 4px 8px -4px rgba(0, 0, 0, 0.8); }
.key[disabled], .key[aria-disabled="true"] { filter: saturate(0.2) brightness(0.6); cursor: not-allowed; transform: none; }
.key--ember { --face: linear-gradient(180deg, var(--ember-hi) 0%, var(--ember) 60%); --base: var(--ember-deep); --ink: #1a0b00; }
.key--ghost { --face: transparent; --base: transparent; box-shadow: inset 0 0 0 1px var(--graphite-line); }
.key--ghost:active { box-shadow: inset 0 0 0 1px var(--graphite-line); }
.key--small { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; border-radius: var(--r-sm); }
.key--block { width: 100%; }
.key svg { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   Panels (lit from above)
   -------------------------------------------------------------------------- */
.panel {
  background: var(--graphite); border-radius: var(--r-lg);
  box-shadow: var(--edge), var(--lift-2);
  padding: clamp(20px, 3.5vw, 32px);
}
.panel--flat { box-shadow: var(--edge); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: var(--step-2); margin-bottom: 8px; }
.panel .lede { font-size: var(--step-0); margin-bottom: 20px; }
.panel.is-locked .panel-body { opacity: 0.35; pointer-events: none; filter: saturate(0.3); }
.lock-note { display: none; color: var(--ember-hi); font-size: var(--step--1); margin-bottom: 14px; }
.panel.is-locked .lock-note { display: block; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.step-no { color: var(--ember); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.02em; }

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--graphite-up); color: var(--muted); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok); background: rgba(74, 222, 128, 0.08); }
.pill--bad { color: var(--bad); background: rgba(248, 113, 113, 0.08); }
.pill--warn { color: var(--warn); background: rgba(250, 204, 21, 0.08); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 20px; }
.field label, .label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.field .hint { color: var(--muted); font-size: var(--step--1); margin-top: 6px; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--black); border: 1px solid var(--graphite-line); color: var(--bone);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6); transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember); }
.req { color: var(--ember-hi); font-weight: 500; font-size: 0.85em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--graphite-up); color: var(--muted); font-size: 0.92rem;
  box-shadow: var(--edge), 0 2px 0 #0a0a0c; transition: color .15s, transform .08s;
}
.chip:hover { color: var(--bone); }
.chip:active { transform: translateY(2px); box-shadow: var(--edge); }
.chip.selected { color: #1a0b00; background: linear-gradient(180deg, var(--ember-hi), var(--ember)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 var(--ember-deep); }

.check {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--graphite-up); box-shadow: var(--edge); cursor: pointer;
}
.check .box { width: 22px; height: 22px; border-radius: 6px; flex: none; background: var(--black); box-shadow: inset 0 0 0 1px var(--graphite-line); display: grid; place-items: center; }
.check.checked .box { background: var(--ember); box-shadow: none; }
.check.checked .box::after { content: ''; width: 10px; height: 6px; border: 2.5px solid #1a0b00; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check-left { display: flex; align-items: center; gap: 12px; }
.check a { color: var(--muted); font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.check a:hover { color: var(--ember-hi); }

.notice { font-size: var(--step--1); line-height: 1.5; margin-top: 12px; color: var(--muted); }
.notice:empty { display: none; }
.notice.ok { color: var(--ok); }
.notice.error { color: var(--bad); }

/* connected row (Discord / wallet) */
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--graphite-up); box-shadow: var(--edge); flex-wrap: wrap; }
.link-row .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.link-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.link-row.linked .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: clamp(60px, 10vw, 120px); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 32px; flex-wrap: wrap; color: var(--muted); font-size: var(--step--1); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bone); }

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-top { padding: clamp(40px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-top h1 { font-size: var(--step-3); margin-bottom: 14px; }
.page-top .lede { max-width: 52ch; }

/* --------------------------------------------------------------------------
   Share card
   -------------------------------------------------------------------------- */
.share-card { margin-top: 18px; }
.share-preview {
  aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--black);
  display: grid; place-items: center; box-shadow: var(--edge), var(--lift-2);
}
.share-preview img { width: 100%; height: 100%; object-fit: cover; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 520px) { .share-actions .key { flex: 1 1 100%; } }

/* --------------------------------------------------------------------------
   Inner page layout
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: 18px; }
.notice.success { color: var(--ok); }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.signed-out { text-align: center; padding: clamp(28px, 6vw, 48px); }
.signed-out p { margin: 0 auto 20px; color: var(--muted); }

/* Discord / wallet linked states */
.key.linked { --face: rgba(74, 222, 128, 0.1); --base: transparent; --ink: var(--ok); cursor: default; box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35); }
.key.linked:active { transform: none; }

/* --------------------------------------------------------------------------
   Wallet check (apply + re-verify)
   -------------------------------------------------------------------------- */
.req-list { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.req-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--black); box-shadow: inset 0 0 0 1px var(--graphite-line); font-weight: 600; }
.req-list li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--ember); flex: none; }
.req-any { color: var(--muted); font-size: var(--step--1); margin: -12px 0 18px; }
.wallet-status { font-size: var(--step--1); line-height: 1.5; margin-top: 14px; color: var(--muted); }
.wallet-status:empty { display: none; }
.wallet-status.ok { color: var(--ok); }
.wallet-status.error { color: var(--bad); }
.wallet-counter { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--graphite-up); color: var(--muted); }
.wallet-counter::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wallet-counter.done { color: var(--ok); background: rgba(74, 222, 128, 0.08); }
.send-box { border-radius: var(--r-md); padding: 18px; margin-bottom: 18px; background: var(--black); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.45), 0 0 0 4px rgba(255, 122, 26, 0.06); }
.send-line + .send-line { margin-top: 14px; }
.send-label { color: var(--muted); font-size: var(--step--1); margin-bottom: 4px; }
.send-value { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.send-amount { font-family: var(--mono); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 500; color: var(--ember-hi); letter-spacing: -0.02em; }
.send-addr { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.send-timer { color: var(--muted); font-size: var(--step--1); margin-top: 14px; }
.send-timer.expired { color: var(--bad); }
.copy-btn { min-height: 32px; padding: 4px 12px; border-radius: 8px; border: 0; cursor: pointer; background: var(--graphite-up); color: var(--muted); font-size: 0.8rem; font-weight: 600; box-shadow: var(--edge), 0 2px 0 #0a0a0c; }
.copy-btn:hover { color: var(--bone); }
.copy-btn:active { transform: translateY(2px); box-shadow: var(--edge); }
.send-steps { margin: 0 0 20px 1.2em; color: var(--muted); }
.send-steps li + li { margin-top: 4px; }
.send-steps b { color: var(--bone); font-weight: 600; }
.send-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.text-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 0.92rem; padding: 6px 0; }
.text-btn:hover { color: var(--bone); }
details.more { border-top: 1px solid var(--graphite-line); padding: 14px 0 0; margin-top: 14px; }
details.more summary { cursor: pointer; color: var(--muted); font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; font-size: 1.2rem; color: var(--dim); }
details.more[open] summary::after { content: '–'; }
details.more summary:hover { color: var(--bone); }
details.more > *:not(summary) { margin-top: 12px; }
.net-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.9rem; }
.net-list dt { color: var(--muted); }
.net-list dd { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }
.wallet-done { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(74, 222, 128, 0.06); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.3); flex-wrap: wrap; }
.wallet-done a { color: var(--ok); font-weight: 600; text-decoration: none; }
.wallet-done a[href]:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   FAQ, team, archive
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--graphite); box-shadow: var(--edge), var(--lift-1); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }
.faq a { color: var(--ember-hi); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.person { text-align: center; padding: 26px 18px; }
.person .avatar { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 16px; object-fit: cover; background: linear-gradient(180deg, var(--ember-hi), var(--ember-deep)); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255,255,255,.2); display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #1a0b00; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--ember-hi); font-size: 0.92rem; }
.person .socials { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.entry { overflow: hidden; padding: 0; }
.entry img.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.entry .body { padding: 20px; }
.entry time { color: var(--muted); font-size: var(--step--1); }
.entry h3 { margin: 4px 0 8px; }
.entry p { color: var(--muted); font-size: 0.95rem; }
.entry .twitter-tweet { margin: 12px 0 0 !important; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--graphite-line); }

/* --------------------------------------------------------------------------
   Member card (My card)
   -------------------------------------------------------------------------- */
.member { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.member .avatar { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; background: linear-gradient(180deg, var(--ember-hi), var(--ember-deep)); display: grid; place-items: center; font-weight: 700; font-size: 1.8rem; color: #1a0b00; box-shadow: 0 10px 24px -10px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.member h2 { font-size: var(--step-2); margin: 0; }
.member .handle { color: var(--muted); }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 22px; }
.fact { padding: 14px 16px; border-radius: var(--r-md); background: var(--black); box-shadow: inset 0 0 0 1px var(--graphite-line); }
.fact dt { color: var(--muted); font-size: var(--step--1); }
.fact dd { font-weight: 600; margin-top: 2px; word-break: break-word; }
.quote { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--graphite-up); box-shadow: var(--edge); }
.quote dt { color: var(--muted); font-size: var(--step--1); margin-bottom: 4px; }
.next { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.next p { color: var(--muted); }
@media (max-width: 560px) {
  .member { grid-template-columns: auto 1fr; }
  .member .pill { grid-column: 1 / -1; justify-self: start; }
  .member .avatar { width: 64px; height: 64px; border-radius: 18px; }
}

/* --------------------------------------------------------------------------
   My card: the ID card + progress track
   -------------------------------------------------------------------------- */
.idcard {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 122, 26, 0.16), transparent 55%),
    linear-gradient(180deg, #1b1b20, #111114);
  box-shadow: var(--edge), var(--lift-2), inset 0 0 0 1px rgba(255, 179, 71, 0.08);
}
.idcard::after { /* faint X watermark */
  content: ''; position: absolute; right: -40px; bottom: -50px; width: 240px; height: 240px; opacity: 0.07; pointer-events: none;
  background: url(/assets/x-mark-256.png) center / contain no-repeat; transform: rotate(-12deg);
}
.idcard .member { position: relative; z-index: 1; }
.idcard .facts-list { position: relative; z-index: 1; }
.idcard .fact { background: rgba(0, 0, 0, 0.45); }
.idcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: var(--muted); font-size: var(--step--1); position: relative; z-index: 1; }
.idcard-top .brandline { display: flex; align-items: center; gap: 8px; color: var(--bone); font-weight: 700; }
.idcard-top .brandline img { width: 22px; height: 22px; }

.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.track li { position: relative; padding-top: 16px; font-size: var(--step--1); color: var(--dim); }
.track li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px; background: var(--graphite-up); box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }
.track li.done { color: var(--bone); }
.track li.done::before { background: linear-gradient(180deg, var(--ember-hi), var(--ember)); box-shadow: 0 0 12px -2px rgba(255, 122, 26, 0.55); }
.track li.now { color: var(--ember-hi); font-weight: 600; }
.track li.now::before { background: linear-gradient(90deg, var(--ember) 0 50%, var(--graphite-up) 50%); }
.track li.stop { color: var(--bad); font-weight: 600; }
.track li.stop::before { background: var(--bad); opacity: .6; }

.answers { display: grid; gap: 0; }
.answers .quote:first-child { margin-top: 0; }
.answers dd { white-space: pre-wrap; word-break: break-word; }

/* --------------------------------------------------------------------------
   Archive "coming soon" cover
   -------------------------------------------------------------------------- */
.soon-wrap { position: relative; min-height: 320px; }
.soon-wrap > #archiveGrid { filter: blur(6px) saturate(.4); opacity: .35; pointer-events: none; user-select: none; }
.soon { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; padding: 24px; }
.soon .pill { justify-self: center; color: var(--ember-hi); background: rgba(255, 122, 26, 0.1); }
.soon p { color: var(--muted); max-width: 36ch; }

.wallet-form .field:last-of-type { margin-bottom: 24px; }
