/* HoodCats - premium dark aesthetic. Original design. */

:root {
  --bg: #08080b;
  --bg-2: #0b0b11;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.058);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);
  --text: #ece9e2;
  --dim: #a29fab;
  --faint: #6d6a76;
  --gold: #d9b06c;
  --gold-bright: #efd8a6;
  --gold-deep: #8f6f33;
  --gold-glow: rgba(217, 176, 108, 0.16);
  --cool: #9aa4d6;
  --cool-deep: #5b64a0;
  --cool-glow: rgba(122, 132, 190, 0.14);
  --good: #6fdc9a;
  --bad: #ff7d7d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 34px rgba(0, 0, 0, 0.45);
  --shadow-deep: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 70px rgba(0, 0, 0, 0.55);
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse 70% 44% at 78% -8%, rgba(217, 176, 108, 0.07), transparent),
    radial-gradient(ellipse 56% 40% at 8% 12%, rgba(108, 118, 182, 0.06), transparent),
    radial-gradient(ellipse 80% 50% at 50% 115%, rgba(108, 118, 182, 0.045), transparent);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--cool); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--gold-bright); }

::selection { background: rgba(217, 176, 108, 0.85); color: #14100a; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------ primitives */

.px-box {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.px-title {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.px-title .accent { color: var(--gold); }
.px-title .accent-t { color: var(--cool); }

.kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}

.lead { color: var(--dim); max-width: 720px; font-size: 1.02rem; }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 620;
  letter-spacing: 0.012em;
  font-size: 0.92rem;
  color: #171107;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 48%, #b98f4b);
  border: 1px solid rgba(239, 216, 166, 0.55);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 26px rgba(217, 176, 108, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 12px 24px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 38px rgba(217, 176, 108, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:hover::after { left: 125%; }
.btn:active { transform: translateY(0) scale(0.98); filter: brightness(0.94); }

.btn.primary { /* alias of the default gold button */ }

.btn.alt {
  background: linear-gradient(160deg, rgba(154, 164, 214, 0.22), rgba(91, 100, 160, 0.16));
  border-color: rgba(154, 164, 214, 0.35);
  color: #dfe3f5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(91, 100, 160, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn.alt:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(91, 100, 160, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn.alt::after { background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn.ghost::after { display: none; }
.btn.ghost:hover { border-color: rgba(217, 176, 108, 0.5); color: var(--gold-bright); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }

.btn.small { padding: 8px 15px; font-size: 0.8rem; border-radius: 10px; }

.btn:disabled, .btn.disabled {
  background: rgba(255, 255, 255, 0.045);
  color: var(--faint);
  border-color: var(--border-soft);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled::after, .btn.disabled::after { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.on { color: var(--good); border-color: rgba(111, 220, 154, 0.35); background: rgba(111, 220, 154, 0.08); }
.tag.off { color: var(--dim); border-color: var(--border); background: rgba(255, 255, 255, 0.035); }
.tag.warn { color: var(--gold); border-color: rgba(217, 176, 108, 0.4); background: rgba(217, 176, 108, 0.08); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.small { font-size: 0.85rem; }
.ember { color: var(--gold); }
.teal { color: var(--cool); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.center { text-align: center; }

/* ------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 11, 0.88);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  box-shadow: 0 1px 0 rgba(217, 176, 108, 0.16), 0 14px 34px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  transition: padding 0.25s ease;
}

.nav.scrolled .nav-inner { padding-top: 9px; padding-bottom: 9px; }

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 680;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.logo:hover { color: #fff; }

.logo .cat-glyph {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background-image: url("../art/507.jpg");
  background-size: 165%;
  background-position: 50% 26%;
  border: 1px solid rgba(217, 176, 108, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 176, 108, 0.12), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.logo .hood { color: #fff; }
.logo .cats {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 480;
  letter-spacing: 0.01em;
  color: var(--dim);
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a.active { color: var(--gold); }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}
.nav-burger span { top: 19px; }
.nav-burger span::before { left: 0; top: -6px; }
.nav-burger span::after { left: 0; top: 6px; }

/* ------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 110px 0 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.hero-art {
  position: absolute;
  top: -40px;
  right: -6%;
  bottom: 0;
  width: 64%;
  background-image: url("../art/507.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(105% 92% at 68% 36%, #000 34%, transparent 73%);
  mask-image: radial-gradient(105% 92% at 68% 36%, #000 34%, transparent 73%);
  opacity: 0.92;
  pointer-events: none;
  will-change: transform;
}

.hero-inner { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  padding: 7px 16px;
  border: 1px solid rgba(217, 176, 108, 0.28);
  border-radius: 999px;
  background: rgba(217, 176, 108, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(217, 176, 108, 0.7);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 700px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.hero h1 .gold {
  background: linear-gradient(115deg, var(--gold-bright) 10%, var(--gold) 50%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.hero .sub {
  margin-top: 22px;
  max-width: 560px;
  color: var(--dim);
  font-size: 1.08rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}

.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* stats strip */

.stats-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 66px 0 8px;
  background: rgba(14, 14, 19, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.stat {
  padding: 18px 20px;
  border-left: 1px solid var(--border-soft);
}
.stat:first-child { border-left: 0; }

.stat .label {
  font-size: 0.64rem;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.stat .value {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 1.32rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 5px;
}

.stat.hot .value { color: var(--gold); }

/* ------------------------------------------------ cat imagery */

.cat-frame {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.cat-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.cat-frame:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 176, 108, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 22px 54px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(217, 176, 108, 0.25), 0 0 34px rgba(217, 176, 108, 0.12);
}
.cat-frame:hover img { transform: scale(1.045); }

/* sealed placeholder (pre-reveal / missing art) */

.px-cat-holder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1;
  background:
    radial-gradient(80% 65% at 50% 32%, rgba(217, 176, 108, 0.1), transparent 70%),
    radial-gradient(90% 80% at 50% 110%, rgba(91, 100, 160, 0.12), transparent 65%),
    linear-gradient(180deg, #0d0d13, #08080b);
}

.px-cat {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(217, 176, 108, 0.6);
  border-radius: 10px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(217, 176, 108, 0.07), 0 0 28px rgba(217, 176, 108, 0.15);
  background: linear-gradient(160deg, rgba(217, 176, 108, 0.12), rgba(217, 176, 108, 0.02));
}
.px-cat::after {
  content: "HC";
  transform: rotate(-45deg);
  font-family: var(--display);
  font-weight: 680;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.sealed-label {
  font-size: 0.62rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--faint);
}

/* ------------------------------------------------ sections */

section { padding: 84px 0; }
section.tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.004));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.step {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 176, 108, 0.28);
  background: var(--surface-2);
}

.step .num {
  font-family: var(--display);
  font-weight: 660;
  font-size: 0.78rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(217, 176, 108, 0.4);
  border-radius: 50%;
  background: rgba(217, 176, 108, 0.07);
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 7px;
}

.step p { color: var(--dim); font-size: 0.9rem; }

/* the five How-it-works steps: never an orphan card.
   Default (middle widths): centered 3+2 on a 6-track grid. */
#how .steps { grid-template-columns: repeat(6, 1fr); }
#how .step { grid-column: span 2; }
#how .step:nth-child(4) { grid-column: 2 / span 2; }

@media (min-width: 1100px) {
  /* wide desktop: all five in one row */
  #how .steps { grid-template-columns: repeat(5, 1fr); }
  #how .step, #how .step:nth-child(4) { grid-column: auto; }
}

@media (max-width: 760px) {
  /* narrow: 2+2 with the fifth centered */
  #how .steps { grid-template-columns: repeat(4, 1fr); }
  #how .step { grid-column: span 2; }
  #how .step:nth-child(4) { grid-column: span 2; }
  #how .step:nth-child(5) { grid-column: 2 / span 2; }
}

@media (max-width: 560px) {
  /* phones: single column */
  #how .steps { grid-template-columns: 1fr; }
  #how .step, #how .step:nth-child(4), #how .step:nth-child(5) { grid-column: auto; }
}

/* ------------------------------------------------ showcase */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.showcase-grid .cat-frame { aspect-ratio: 1; }

/* ------------------------------------------------ tiers */

.tier-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.tier-card {
  position: relative;
  padding: 24px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tier-card:hover { transform: translateY(-4px); border-color: rgba(217, 176, 108, 0.3); }

.tier-card .tier-name {
  font-size: 0.68rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.tier-card .tier-mult {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 10px 0 4px;
}

.tier-card .tier-burn {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--cool);
}

.tier-card .tier-note {
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 4px;
}

.tier-card.top {
  border-color: rgba(217, 176, 108, 0.55);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(217, 176, 108, 0.12), transparent 70%),
    var(--surface-2);
  box-shadow: var(--shadow-soft), 0 0 40px rgba(217, 176, 108, 0.1);
}
.tier-card.top .tier-mult {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 65%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}
.tier-card.top .tier-name { color: var(--gold); }

/* ------------------------------------------------ fusion */

.fusion-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin-top: 36px;
}

/* mid widths: 2+1 with the gold finale centered, never an orphan */
@media (max-width: 900px) {
  .fusion-trio { grid-template-columns: repeat(4, 1fr); }
  .fusion-trio .fusion-art { grid-column: span 2; }
  .fusion-trio .fusion-art:nth-child(3) { grid-column: 2 / span 2; }
}

.fusion-art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-deep);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fusion-art img { display: block; width: 100%; }
.fusion-art figcaption {
  padding: 12px 18px;
  font-size: 0.8rem;
  color: var(--faint);
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.fusion-art figcaption strong {
  display: inline-block;
  margin-right: 8px;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* the original wears a quiet neutral frame so the metals pop */
.fusion-art.original { border-color: var(--border-soft); }
.fusion-art.original figcaption strong { color: var(--dim); }
.fusion-art.original:hover { border-color: rgba(255, 255, 255, 0.22); }

/* the silver two-part frame and the gold three-part frame */
.fusion-art.silver {
  border-color: rgba(205, 213, 224, 0.32);
  box-shadow: var(--shadow-deep), 0 0 54px rgba(205, 213, 224, 0.07);
}
.fusion-art.silver figcaption strong { color: #cdd5e0; }
.fusion-art.silver:hover {
  border-color: rgba(228, 234, 242, 0.65);
  box-shadow: var(--shadow-deep), 0 0 72px rgba(205, 213, 224, 0.16);
}

.fusion-art.gold {
  border-color: rgba(217, 176, 108, 0.38);
  box-shadow: var(--shadow-deep), 0 0 54px rgba(217, 176, 108, 0.09);
}
.fusion-art.gold figcaption strong { color: var(--gold-bright); }
.fusion-art.gold:hover {
  border-color: rgba(239, 216, 166, 0.7);
  box-shadow: var(--shadow-deep), 0 0 72px rgba(217, 176, 108, 0.2);
}

.fusion-points {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
}

/* ------------------------------------------------ tables */

.px-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.px-table th, .px-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.px-table tr:last-child td { border-bottom: 0; }

.px-table th {
  font-size: 0.66rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
}

.px-table td.mono { color: var(--cool); font-variant-numeric: tabular-nums; }
.px-table tbody tr { transition: background 0.15s ease; }
.px-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }

/* ------------------------------------------------ assets grid */

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.asset-tile {
  padding: 20px 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.asset-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 176, 108, 0.35);
  background: var(--surface-2);
}

.asset-tile .sym {
  font-family: var(--display);
  font-weight: 660;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.asset-tile.stable .sym { color: var(--cool); }
.asset-tile .kind {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-top: 5px;
}

/* ------------------------------------------------ mint widget */

.mint-panel {
  max-width: 540px;
  margin: 34px auto 0;
  padding: 34px 34px 28px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(217, 176, 108, 0.08), transparent 60%),
    var(--surface);
  border: 1px solid rgba(217, 176, 108, 0.25);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-deep);
}

.mint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.mint-row + .mint-row { border-top: 1px solid var(--border-soft); padding-top: 16px; }

.qty-picker {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.qty-btn {
  width: 46px;
  height: 42px;
  font-family: var(--display);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  background: transparent;
  color: var(--dim);
  border: 0;
  border-left: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.qty-btn:first-child { border-left: 0; }
.qty-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.qty-btn.sel {
  background: linear-gradient(160deg, rgba(217, 176, 108, 0.28), rgba(217, 176, 108, 0.14));
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(217, 176, 108, 0.5);
}

.mint-status {
  font-size: 0.85rem;
  margin-top: 14px;
  color: var(--dim);
  min-height: 1.4em;
  word-break: break-word;
}

/* ------------------------------------------------ FAQ */

.faq { margin-top: 30px; }

.faq details {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}
.faq details:hover { border-color: rgba(217, 176, 108, 0.25); }
.faq details[open] { background: var(--surface-2); border-color: rgba(217, 176, 108, 0.3); }

.faq summary {
  cursor: pointer;
  padding: 17px 48px 17px 22px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  color: #fff;
  list-style: none;
  position: relative;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq .a { padding: 0 22px 18px; color: var(--dim); font-size: 0.93rem; }
.faq .a p + p { margin-top: 8px; }

/* ------------------------------------------------ risk box */

.risk-box {
  border: 1px solid rgba(255, 125, 125, 0.3);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 125, 125, 0.06), transparent 65%),
    var(--surface);
  border-radius: var(--radius);
  padding: 28px 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.risk-box h3 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--bad);
  margin-bottom: 12px;
  font-size: 1.08rem;
}
.risk-box ul { margin-left: 20px; color: var(--dim); font-size: 0.93rem; }
.risk-box li { margin-bottom: 7px; }
.risk-box li::marker { color: rgba(255, 125, 125, 0.6); }

/* ------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 0 54px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012));
}

.foot-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a {
  font-size: 0.84rem;
  color: var(--dim);
}
.foot-links a:hover { color: var(--gold-bright); }

.foot-note { color: var(--faint); font-size: 0.8rem; max-width: 600px; margin-top: 18px; }

/* ------------------------------------------------ dashboard (my.html) */

.dash-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 44px 0 10px;
}

.dash-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

.wallet-chip {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--cool);
  border: 1px solid rgba(154, 164, 214, 0.35);
  border-radius: 999px;
  padding: 7px 15px;
  background: rgba(154, 164, 214, 0.07);
}

.dash-note {
  font-size: 0.9rem;
  color: var(--dim);
  margin: 10px 0 28px;
  min-height: 1.3em;
  word-break: break-word;
}

.cats-list { display: flex; flex-direction: column; gap: 24px; padding-bottom: 80px; }

.cat-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease;
}
.cat-card:hover { border-color: rgba(217, 176, 108, 0.22); }

.cat-card .art { width: 200px; }
.cat-card .art .cat-frame { aspect-ratio: 1; }

.cat-card h2 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 660;
  letter-spacing: -0.015em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.cat-meta .kv .k {
  color: var(--faint);
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 620;
  letter-spacing: 0.18em;
}
.cat-meta .kv .v {
  color: var(--text);
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-weight: 640;
  font-size: 0.98rem;
  margin-top: 2px;
}

.vault-list {
  margin: 10px 0;
  font-size: 0.86rem;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.vault-list .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.mini-icon {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  background: #0d0d12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mini-mark {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink, #fff);
  background: linear-gradient(150deg, var(--brand, #555), color-mix(in srgb, var(--brand, #555) 60%, #000));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.vault-list .row:last-child { border-bottom: 0; }
.vault-list .sym { color: var(--gold); width: 68px; font-weight: 600; }
.vault-list .amt { color: var(--text); }

.cat-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }

.action-pane {
  margin-top: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.action-pane h4 {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--gold);
  margin-bottom: 10px;
}
.action-pane .hint { color: var(--dim); font-size: 0.84rem; margin: 6px 0; }
.action-pane label { font-size: 0.8rem; color: var(--dim); }

.action-pane select, .action-pane input[type="number"] {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  padding: 8px 11px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.action-pane select:focus, .action-pane input[type="number"]:focus {
  border-color: rgba(217, 176, 108, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 176, 108, 0.12);
}
.action-pane select option { background: #131318; color: var(--text); }
.action-pane input[type="number"] { width: 88px; }

.split-row { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }

.card-status {
  font-size: 0.82rem;
  color: var(--dim);
  margin-top: 12px;
  min-height: 1.2em;
  word-break: break-word;
}

.fuse-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid rgba(217, 176, 108, 0.35);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.5);
  padding: 16px 0;
}
.fuse-bar .wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.fuse-bar .info { font-size: 0.85rem; color: var(--dim); }
.fuse-bar .info b { color: var(--gold); font-weight: 640; }

.fuse-check { accent-color: var(--gold); width: 17px; height: 17px; cursor: pointer; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--dim);
  font-size: 0.95rem;
}

/* ------------------------------------------------ docs */

.docs-body { display: grid; grid-template-columns: 230px 1fr; gap: 52px; padding: 48px 0 90px; }

.docs-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 18px 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.docs-toc a {
  display: block;
  font-size: 0.82rem;
  color: var(--dim);
  padding: 6px 20px;
  border-left: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.docs-toc a:hover { color: var(--gold-bright); border-left-color: var(--gold); }

.docs-content h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 10px; }
.docs-content h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 48px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.docs-content h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  margin-right: 11px;
  transform: rotate(45deg) translateY(-1px);
}
.docs-content h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 640;
  color: var(--cool);
  margin: 26px 0 8px;
  letter-spacing: -0.005em;
}
.docs-content p { color: var(--text); margin: 10px 0; }
.docs-content p.note { color: var(--dim); font-size: 0.9rem; }
.docs-content ul, .docs-content ol { margin: 10px 0 10px 24px; color: var(--text); }
.docs-content li { margin-bottom: 7px; }
.docs-content li::marker { color: var(--gold); }
.docs-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(217, 176, 108, 0.08);
  border: 1px solid rgba(217, 176, 108, 0.2);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--gold-bright);
}
.docs-content .px-table { margin: 16px 0; }

/* ------------------------------------------------ responsive */

@media (max-width: 980px) {
  .hero-art { width: 78%; opacity: 0.55; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n + 1) { border-left: 0; }
  .stat { border-top: 1px solid var(--border-soft); }
  .stat:nth-child(-n + 3) { border-top: 0; }
  .showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .tier-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .fusion-points { grid-template-columns: repeat(2, 1fr); }
  .docs-body { grid-template-columns: 1fr; gap: 26px; }
  /* TOC becomes a horizontally scrollable pill row */
  .docs-toc {
    position: sticky;
    top: 62px;
    z-index: 30;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 9px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 10, 14, 0.96);
  }
  .docs-toc::-webkit-scrollbar { display: none; }
  .docs-toc a {
    flex: none;
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  /* anchors must clear nav + sticky TOC pills */
  .docs-content h2 { scroll-margin-top: 130px; }
}

@media (max-width: 760px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 0 14px;
  }
  .nav-links a { padding: 13px 26px; font-size: 0.98rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after { top: 0; transform: rotate(-45deg); }

  /* phone hero: art on top, gradient falloff, headline below */
  .hero { padding: 0 0 44px; }
  .hero-art {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: clamp(250px, 46vh, 440px);
    opacity: 0.95;
    background-position: center 12%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 97%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 97%);
  }
  .hero-inner { padding-top: clamp(195px, 37vh, 355px); }
  @supports (height: 1svh) {
    .hero-art { height: clamp(250px, 46svh, 440px); }
    .hero-inner { padding-top: clamp(195px, 37svh, 355px); }
  }
  .hero .eyebrow { letter-spacing: 0.18em; font-size: 0.68rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .hero .sub { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stats-strip { margin-top: 40px; }

  /* tighter chrome on phones */
  .nav-inner { padding-top: 10px; padding-bottom: 10px; }
  .nav.scrolled .nav-inner { padding-top: 7px; padding-bottom: 7px; }
  .logo { font-size: 1rem; }
  .logo .cat-glyph { width: 30px; height: 30px; }
  [id] { scroll-margin-top: 66px; }

  section { padding: 56px 0; }

  /* dashboard controls: full width, no iOS input zoom (16px min) */
  .action-pane select, .action-pane input[type="number"] { font-size: 16px; }
  .split-row select { flex: 1 1 auto; min-width: 0; }
  .action-pane input[type="number"] { width: 96px; }
  .cat-actions .btn { flex: 1 1 auto; }
  .cats-list { padding-bottom: 110px; }
  .fuse-bar .btn { margin-left: auto; }
}

@media (max-width: 640px) {
  /* stats: 2x2 chips, the countdown spans the full row */
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-top: 1px solid var(--border-soft); border-left: 1px solid var(--border-soft); padding: 14px 16px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .stat:nth-child(5) { grid-column: 1 / -1; }
  .stat .value { font-size: clamp(1.05rem, 4.6vw, 1.32rem); }

  /* showcase: swipeable snap strip, full bleed */
  .showcase-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 4px 24px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .showcase-grid::-webkit-scrollbar { display: none; }
  .showcase-grid .cat-frame { scroll-snap-align: center; }

  /* tiers: snap strip too */
  .tier-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 46%);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: 24px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 4px 24px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tier-row::-webkit-scrollbar { display: none; }
  .tier-card { scroll-snap-align: start; }

  /* assets: fixed 2-up, never overflows */
  .assets-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* mint: full-width controls, big steppers */
  .mint-panel { padding: 26px 18px 22px; }
  .qty-picker { flex: 1 1 100%; }
  .qty-btn { flex: 1; width: auto; height: 48px; }
  .mint-row .btn { flex: 1 1 100%; }

  .cat-card { grid-template-columns: 1fr; }
  .cat-card .art { width: 100%; max-width: 280px; margin: 0 auto; }
  .cat-card .art .cat-frame { width: 100%; }
  .cat-meta { gap: 16px 22px; }
  .fuse-bar .wrap { gap: 10px 14px; }

  /* fusion figures stack in mint order; the point cards go single column */
  .fusion-trio { grid-template-columns: 1fr; max-width: 440px; }
  .fusion-trio .fusion-art, .fusion-trio .fusion-art:nth-child(3) { grid-column: auto; }
  .fusion-points { grid-template-columns: 1fr; }
}

/* ================================================ premium fx layer */

/* scrollbar */
html { scrollbar-width: thin; scrollbar-color: #26262d #0a0a0e; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0e; }
::-webkit-scrollbar-thumb { background: #26262d; border-radius: 8px; border: 2px solid #0a0a0e; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* focus rings */
:focus-visible {
  outline: 2px solid rgba(239, 216, 166, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* button + control press feel */
.qty-btn:active { transform: scale(0.93); }
.btn.ghost:active, .btn.alt:active { transform: scale(0.98); }

/* footer link underline sweep */
.foot-links a { position: relative; }
.foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  transition: right 0.28s ease;
}
.foot-links a:hover::after { right: 0; }

/* ------------------------------------------------ brand asset tiles */

.asset-tile {
  position: relative;
  background:
    radial-gradient(120% 85% at 50% 0%, color-mix(in srgb, var(--brand, #d9b06c) 9%, transparent), transparent 62%),
    var(--surface);
  border-color: color-mix(in srgb, var(--brand, #d9b06c) 26%, transparent);
}
.asset-tile:hover {
  border-color: color-mix(in srgb, var(--brand, #d9b06c) 60%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 28px color-mix(in srgb, var(--brand, #d9b06c) 20%, transparent);
  background:
    radial-gradient(120% 85% at 50% 0%, color-mix(in srgb, var(--brand, #d9b06c) 14%, transparent), transparent 62%),
    var(--surface-2);
}

.asset-tile .mark {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto 11px;
  filter: drop-shadow(0 5px 12px color-mix(in srgb, var(--brand, #d9b06c) 32%, transparent));
  transition: transform 0.25s ease;
}
.asset-tile:hover .mark { transform: translateY(-2px) scale(1.05); }

.asset-tile .sym { color: color-mix(in srgb, var(--brand, var(--gold)) 62%, #fff); }
.asset-tile.stable .sym { color: color-mix(in srgb, var(--brand, var(--cool)) 62%, #fff); }

/* the three payout assets: bigger, premium cards */
.assets-grid.trio {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
}
.asset-tile.big { padding: 32px 26px 28px; border-radius: var(--radius); }
.asset-tile.big .mark { width: 58px; height: 58px; margin-bottom: 14px; }

/* official token icons: round-cropped, no layout shift */
img.mark {
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  background: #0d0d12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
/* the USDG source is 64px: render small so it stays crisp,
   padded to keep the three cards on one baseline */
.asset-tile.big .mark.small { width: 48px; height: 48px; margin-top: 5px; margin-bottom: 19px; }
.asset-tile.big .sym { font-size: 1.35rem; letter-spacing: 0.01em; }
.asset-tile.big .kind { margin-top: 6px; }
.asset-tile.big .desc {
  font-size: 0.86rem;
  color: var(--dim);
  margin-top: 12px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .assets-grid.trio { grid-template-columns: 1fr; max-width: 440px; }
  .asset-tile.big { padding: 26px 22px 24px; }
}

/* ------------------------------------------------ motion layer */

@property --ga {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@media (prefers-reduced-motion: no-preference) {

  /* page-load fade */
  .js-fx body { animation: pageIn 0.5s ease both; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

  /* scroll reveals: hidden state is only ever applied by JS (.reveal) */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s cubic-bezier(0.22, 0.8, 0.3, 1),
      transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
    transition-delay: var(--rv, 0ms);
  }
  .reveal.in-view { opacity: 1; transform: none; }

  /* golden perimeter glint */
  .mint-panel, .cat-card, .faq details { position: relative; }

  .stats-strip::before, .mint-panel::before,
  .showcase-grid .cat-frame::before, .tier-card::before,
  .asset-tile::before, .faq details::before, .cat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
      from var(--ga),
      transparent 0turn,
      transparent 0.78turn,
      rgba(239, 216, 166, 0.95) 0.9turn,
      rgba(217, 176, 108, 0.35) 0.96turn,
      transparent 1turn
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
  }

  /* always-on, slow and quiet; JS toggles .glint-live while on screen so the
     animation never burns battery off-screen (static sheen without JS) */
  .stats-strip::before, .mint-panel::before {
    opacity: 0.45;
    animation: spinGa 14s linear infinite;
    animation-play-state: paused;
  }
  .glint-live::before { animation-play-state: running; }

  @keyframes spinGa { to { --ga: 1turn; } }

  /* diagonal shine sweep layer (triggered only on real hover, below) */
  .showcase-grid .cat-frame::after, .tier-card::after, .asset-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.13) 50%, transparent 68%);
    transform: translateX(-130%);
  }
  @keyframes cardSweep {
    from { transform: translateX(-130%); }
    to { transform: translateX(130%); }
  }

  /* heading write-in: .fx-heading is only ever added by JS */
  .fx-heading .ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
  }
  .fx-heading.in-view .ch {
    animation: chIn 0.62s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
    animation-delay: calc(var(--ci, 0) * 26ms);
  }
  @keyframes chIn {
    0% { opacity: 0; transform: translateY(0.5em); }
    55% { opacity: 1; transform: translateY(-0.04em); color: var(--gold-bright); text-shadow: 0 0 16px rgba(217, 176, 108, 0.55); }
    100% { opacity: 1; transform: none; color: inherit; text-shadow: none; }
  }

  /* the hero gradient word paints per character once split */
  .hero h1 .gold .ch {
    background: linear-gradient(115deg, var(--gold-bright) 10%, var(--gold) 50%, var(--gold-deep) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
  }

  /* floating gold sparks around headings */
  .has-sparks { position: relative; }
  .sparks {
    position: absolute;
    inset: -18px -34px;
    pointer-events: none;
  }
  .sparks i {
    position: absolute;
    left: var(--sx, 50%);
    bottom: var(--sy, 20%);
    width: var(--ss, 2px);
    height: var(--ss, 2px);
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 7px 1px rgba(217, 176, 108, 0.55);
    opacity: 0;
    animation: sparkFloat var(--st, 7s) linear infinite;
    animation-delay: var(--sd, 0s);
  }
  @keyframes sparkFloat {
    0% { transform: translateY(0) scale(0.7); opacity: 0; }
    12% { opacity: 0.75; }
    45% { opacity: 0.4; transform: translateY(-22px) scale(1); }
    70% { opacity: 0.55; }
    100% { transform: translateY(-50px) scale(0.6); opacity: 0; }
  }
}

/* hover-only affordances: real pointers only, so nothing sticks on touch */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .showcase-grid .cat-frame:hover::before, .tier-card:hover::before,
  .asset-tile:hover::before, .faq details:hover::before, .cat-card:hover::before {
    opacity: 1;
    animation: spinGa 2.4s linear infinite;
  }
  .showcase-grid .cat-frame:hover::after, .tier-card:hover::after, .asset-tile:hover::after {
    animation: cardSweep 0.85s ease;
  }
}

/* ================================================ mobile layer */

/* anchored headings clear the sticky nav */
[id] { scroll-margin-top: 84px; }

html { -webkit-tap-highlight-color: transparent; }

/* fusion render is square: reserve the box, avoid layout shift */
.fusion-art img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* long strings (amounts, addresses, errors) always wrap */
.stat .value, .mint-status, .card-status, .dash-note,
.fuse-bar .info, .wallet-chip, .px-table td.mono, .vault-list .amt {
  overflow-wrap: anywhere;
}

/* perf: mobile GPUs pay dearly for backdrop blur and fixed backgrounds */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
  .nav, .nav.scrolled, .nav-links,
  .step, .tier-card, .asset-tile, .faq details, .cat-card,
  .docs-toc, .mint-panel, .stats-strip, .fuse-bar, .hero .eyebrow {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav { background: rgba(9, 9, 13, 0.96); }
  .nav.scrolled { background: rgba(9, 9, 13, 0.98); }
  .stats-strip { background: rgba(13, 13, 18, 0.92); }
  .fuse-bar { background: rgba(10, 10, 14, 0.97); }
}

/* touch devices: no stuck hovers, big targets, pressed feedback */
@media (hover: none), (pointer: coarse) {
  .cat-frame:hover {
    transform: none;
    border-color: var(--border-soft);
    box-shadow: var(--shadow-soft);
  }
  .cat-frame:hover img { transform: none; }
  .step:hover, .tier-card:hover, .asset-tile:hover { transform: none; }
  .step:hover { background: var(--surface); border-color: var(--border-soft); }
  .tier-card:hover { border-color: var(--border-soft); }
  .tier-card.top:hover { border-color: rgba(217, 176, 108, 0.55); }
  .asset-tile:hover {
    border-color: color-mix(in srgb, var(--brand, #d9b06c) 26%, transparent);
    box-shadow: none;
    background:
      radial-gradient(120% 85% at 50% 0%, color-mix(in srgb, var(--brand, #d9b06c) 9%, transparent), transparent 62%),
      var(--surface);
  }
  .asset-tile:hover .mark { transform: none; }

  /* no iOS/iPadOS zoom on focus: inputs never below 16px */
  .action-pane select, .action-pane input[type="number"] { font-size: 16px; }
  .btn:hover { transform: none; }
  .btn:hover::after { left: -75%; }
  .faq details:hover { border-color: var(--border-soft); }
  .faq details[open]:hover { border-color: rgba(217, 176, 108, 0.3); }
  .cat-card:hover { border-color: var(--border-soft); }

  .btn { min-height: 44px; }
  .btn.small { min-height: 44px; padding: 9px 16px; }
  .qty-btn { min-height: 48px; min-width: 48px; }
  .nav-burger { width: 44px; height: 44px; }
  .nav-burger span { left: 13px; top: 21px; }
  .foot-links a { padding: 9px 4px; }
  .docs-toc a { padding: 11px 16px; }
  .fuse-check { width: 22px; height: 22px; }

  .cat-frame:active { transform: scale(0.98); }
  .step:active, .tier-card:active, .asset-tile:active { transform: scale(0.985); }
  .faq summary:active { background: rgba(255, 255, 255, 0.035); }
  .nav-links a:active, .foot-links a:active, .docs-toc a:active { color: var(--gold-bright); }
}

/* notched phones */
@supports (padding: env(safe-area-inset-left)) {
  .nav-inner {
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
  }
  .wrap {
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
  }
  .fuse-bar { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  footer { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
}

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

