/* BULLFROG - design system derived from the legacy terrapin collection art:
   slate blue-grey backdrops, dark comic ink outlines, mecha-cyan (the cap)
   as the single accent, terrapin gold as the rarity color, white spotlight
   circles as a background motif.
   Shape system: cards 14px, tiles 12px, inputs/buttons 10px. */

:root {
  --bg: #262b33;
  --bg-deep: #1e232a;
  --panel: #2f353f;
  --panel-2: #38404c;
  --ink: #16181d;          /* comic outlines, matches the art's linework */
  --shadow: #121419;       /* hard offset shadows */
  --line: #434b58;         /* hairlines */
  --text: #f2f3f5;
  --muted: #9fa8b4;
  --accent: #2ec8f5;
  --accent-soft: #5cd6fa;
  --accent-deep: #1d9dc4;
  --accent-ink: #04222e;
  --danger: #e0635a;
  --gold: #f5c033;
  --pink: #f2a3b8;
  --blue: #7cc4e8;
  --purple: #c9a5f0;
  --r-card: 14px;
  --r-tile: 12px;
  --r-input: 10px;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Museum scene as a faint fixed texture behind the whole page.
   Sections keep slightly-translucent backgrounds so it shimmers through. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(color-mix(in srgb, var(--bg) 93%, transparent), color-mix(in srgb, var(--bg) 93%, transparent)),
    url("../brand/bg.png") center / cover no-repeat;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.005em;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- comic surfaces ---------- */
.comic {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 6px 0 var(--shadow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--r-input);
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--shadow);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s var(--ease-pop), background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shadow); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { background: var(--panel); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--shadow); }

/* ---------- announcement ---------- */
.announce {
  display: none;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
  border-bottom: 2px solid var(--ink);
}
.announce.show { display: block; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
}
.brand .wm em { color: var(--accent); font-style: normal; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 15.5px;
}
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--accent); }
.nav .btn { padding: 9px 22px; font-size: 15px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding: 68px 0 56px; position: relative; overflow: hidden; }
/* The museum scene shows clearly in the hero; scrims keep the copy readable
   and fade the bottom edge into the page background. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../brand/bg.png") center 24% / cover no-repeat;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(30, 35, 42, 0.95) 0%, rgba(30, 35, 42, 0.78) 40%, rgba(30, 35, 42, 0.3) 72%, rgba(30, 35, 42, 0.45) 100%),
    linear-gradient(180deg, rgba(30, 35, 42, 0.3) 0%, transparent 34%, transparent 60%, var(--bg) 100%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(40px, 4.8vw, 62px);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 44ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; height: 470px; z-index: 1; }
/* white spotlight circle, same motif as the collection's backgrounds */
.hero-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(540px, 115%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  z-index: 0;
  pointer-events: none;
}
.hero-card {
  position: absolute;
  width: 62%;
  max-width: 295px;
  border-radius: var(--r-tile);
  border: 3px solid var(--ink);
  box-shadow: 0 8px 0 var(--shadow);
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.35s var(--ease-pop), box-shadow 0.35s var(--ease-pop);
}
.hero-card img { width: 100%; aspect-ratio: 1; }
.hero-card figcaption {
  background: var(--panel);
  border-top: 2px solid var(--ink);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  padding: 9px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-card .tier { color: var(--gold); font-size: 11.5px; letter-spacing: 0.1em; }
.hero-card:nth-child(2) { left: 0; top: 40px; transform: rotate(-7deg); z-index: 1; }
.hero-card:nth-child(3) { left: 30%; top: 0; transform: rotate(2deg); z-index: 3; }
.hero-card:nth-child(4) { right: 0; top: 76px; transform: rotate(7deg); z-index: 2; }
.hero-card:hover { transform: rotate(0deg) translateY(-10px); box-shadow: 0 14px 0 var(--shadow); z-index: 5; }

@media (max-width: 900px) {
  .hero { padding: 44px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 350px; max-width: 440px; margin: 0 auto; width: 100%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(30, 35, 42, 0.94) 0%, rgba(30, 35, 42, 0.8) 42%, rgba(30, 35, 42, 0.42) 72%, var(--bg) 100%);
  }
}

/* ---------- CA strip ---------- */
.ca-strip {
  background: var(--bg-deep);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 18px 0;
}
.ca-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ca-brand {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
  flex: none;
}
.ca-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.ca-address {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 14.5px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  border-radius: var(--r-input);
  padding: 10px 18px;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 220px;
  transition: border-color 0.3s, color 0.3s;
}
.ca-address.flash { border-color: var(--accent); color: var(--accent); }
.ca-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  color: var(--accent-ink);
  border-radius: var(--r-input);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s var(--ease-pop);
}
.ca-copy:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--shadow); }
.ca-copy:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--shadow); }
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.live-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.live-tag.on { color: var(--accent); }
.live-tag.on .dot { background: var(--accent); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--line);
  white-space: nowrap;
}
.marquee-track .lit { color: var(--accent); }
.marquee-track img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
  opacity: 0.9;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- section bgs ---------- */
.bg-deep {
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* ---------- sections ---------- */
section { padding: 92px 0; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-collage img {
  border-radius: var(--r-tile);
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--shadow);
  aspect-ratio: 1;
}
.about-collage img:nth-child(1) { transform: rotate(-2deg); }
.about-collage img:nth-child(2) { transform: translateY(20px) rotate(1.5deg); }
.about-collage img:nth-child(3) { transform: translateY(-14px) rotate(1deg); }
.about-collage img:nth-child(4) { transform: rotate(-1.5deg); }
.about-copy h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.about-facts {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.fact {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--shadow);
  border-radius: var(--r-tile);
  padding: 14px 22px;
}
.fact b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: var(--accent);
}
.fact span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- tokenomics bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.bento-cell {
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 6px 0 var(--shadow);
  padding: 32px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.bento-cell h3 { font-size: 34px; margin-bottom: 6px; }
.bento-cell p { color: var(--muted); font-size: 15.5px; }
.bento-hero {
  grid-row: 1 / 3;
  background: linear-gradient(155deg, #1e3d4c, #232932 68%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
}
.bento-hero h3 { font-size: clamp(34px, 3.4vw, 46px); color: var(--accent); }
.bento-hero .bento-frogs {
  position: absolute;
  top: -12px;
  right: -18px;
  display: flex;
  gap: 12px;
}
.bento-hero .bento-frogs img {
  width: 110px;
  border-radius: var(--r-tile);
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 rgba(18, 20, 25, 0.5);
  transform: rotate(-3deg);
}
.bento-hero .bento-frogs img:nth-child(2) { transform: translateY(28px) rotate(5deg); }
.bento-wide { grid-column: 2 / 4; }
.bento-tinted { background: linear-gradient(145deg, #2a3b4a, var(--panel)); }
.bento-gold { background: linear-gradient(145deg, #41381f, var(--panel)); }
.bento-gold h3 { color: var(--gold); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-hero { grid-row: auto; grid-column: 1 / 3; min-height: 250px; }
  .bento-wide { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-hero, .bento-wide { grid-column: auto; }
}

/* ---------- forge ---------- */
.forge {
  position: relative;
  background:
    radial-gradient(820px 400px at 88% 0%, rgba(46, 200, 245, 0.07), transparent 62%),
    color-mix(in srgb, var(--bg) 55%, transparent);
}
.forge-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}
.forge-copy h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 16px; }
.forge-copy h2 em { font-style: normal; color: var(--danger); }
.forge-copy > p { color: var(--muted); margin-bottom: 24px; max-width: 52ch; }
.forge-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 5px 0 var(--shadow);
  border-radius: var(--r-tile);
  padding: 16px 26px;
  margin-bottom: 24px;
}
.forge-price b { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); }
.forge-price span { color: var(--muted); font-size: 15px; }
.forge-note {
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--accent-deep);
  padding-left: 14px;
  max-width: 48ch;
}
.forge-note .mono { font-family: ui-monospace, Consolas, monospace; }

.forge-widget {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 8px 0 var(--shadow);
  padding: 30px;
}
.forge-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}
.forge-step + .forge-step { border-top: 2px solid var(--bg-deep); }
.forge-step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--bg-deep);
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.forge-step.active .num { background: var(--accent); color: var(--accent-ink); }
.forge-step.done .num { background: var(--accent-deep); color: var(--accent-ink); }
.forge-step-body { flex: 1; min-width: 0; }
.forge-step-body b { display: block; font-size: 16.5px; }
.forge-step-body span { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.forge-step .btn { padding: 9px 20px; font-size: 14.5px; }
.forge-pick { display: flex; align-items: center; gap: 12px; }
.forge-pick[hidden] { display: none; }
.forge-pick img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
}
.forge-burn-btn { width: 100%; margin-top: 20px; font-size: 17.5px; padding: 16px; }
.forge-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  min-height: 20px;
}
.forge-paused {
  border: 2px dashed var(--line);
  border-radius: var(--r-tile);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
  display: none;
}
.forge-paused.show { display: block; }
@media (max-width: 900px) {
  .forge-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- gallery ---------- */
.gallery-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 34px;
}
.chip {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 17px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s var(--ease-pop), background 0.15s, color 0.15s;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--shadow); color: var(--text); }
.chip:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--shadow); }
.chip.on { background: var(--accent); color: var(--accent-ink); }
.gallery-search {
  margin-left: auto;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  border-radius: var(--r-input);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  width: 230px;
}
.gallery-search::placeholder { color: var(--muted); }
.gallery-search:focus { outline: none; border-color: var(--accent); }

.pond-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.pond-card {
  border: 2px solid var(--ink);
  border-radius: var(--r-tile);
  box-shadow: 0 5px 0 var(--shadow);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: transform 0.2s var(--ease-pop), box-shadow 0.2s var(--ease-pop);
  text-align: left;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
}
.pond-card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: 0 10px 0 var(--shadow); }
.pond-card:active { transform: translateY(0); box-shadow: 0 3px 0 var(--shadow); }
.pond-card img { aspect-ratio: 1; width: 100%; border-bottom: 2px solid var(--ink); }
.pond-card figcaption { padding: 10px 13px 12px; }
.pond-card .pc-id {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.pond-card .pc-name { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pond-card.redeemed { opacity: 0.45; }
.pond-card.redeemed:hover { transform: none; box-shadow: 0 5px 0 var(--shadow); }

.tier-badge {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  padding: 2.5px 9px;
  text-transform: uppercase;
  flex: none;
}
.tier-Common { background: #3a3e4b; color: #c3c6d1; }
.tier-Uncommon { background: #2b4a20; color: #a8e884; }
.tier-Rare { background: #1f4256; color: var(--blue); }
.tier-Epic { background: #3f2d56; color: var(--purple); }
.tier-Legendary { background: #4e3f16; color: var(--gold); }

.gallery-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--r-card);
  display: none;
}
.gallery-empty.show { display: block; }
@media (max-width: 1000px) { .pond-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 780px) { .pond-grid { grid-template-columns: repeat(3, 1fr); } .gallery-search { width: 100%; margin-left: 0; } }
@media (max-width: 540px) { .pond-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- how to buy ---------- */
.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.howto-card {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--shadow);
  border-radius: var(--r-card);
  padding: 28px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s var(--ease-pop), box-shadow 0.2s var(--ease-pop);
}
.howto-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--shadow); }
.howto-card:first-child { background: linear-gradient(150deg, #1e3d4c, var(--panel)); }
.howto-card .icon-bubble {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 15px;
  background: var(--bg-deep);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.howto-card b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.howto-card p { color: var(--muted); font-size: 15px; }
.howto-card a { color: var(--accent); font-weight: 700; text-decoration: none; }
.howto-card a:hover { text-decoration: underline; }
@media (max-width: 780px) { .howto-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer {
  background: color-mix(in srgb, var(--bg-deep) 90%, transparent);
  border-top: 2px solid var(--ink);
  padding: 56px 0 40px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-social { display: flex; gap: 12px; margin-left: auto; }
.footer-social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s var(--ease-pop), color 0.15s;
}
.footer-social a:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--shadow); color: var(--accent); }
.footer-legal { color: var(--muted); font-size: 13.5px; max-width: 82ch; line-height: 1.7; }
.footer-legal + .footer-legal { margin-top: 10px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(5px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 10px 0 var(--shadow);
  max-width: 720px;
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  background: var(--panel-2);
  color: var(--text);
  font-size: 21px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s var(--ease-pop);
}
.modal-close:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--shadow); color: var(--accent); }

.nft-modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.nft-modal-grid img { width: 100%; aspect-ratio: 1; border-right: 2px solid var(--ink); }
.nft-modal-info { padding: 30px; }
.nft-modal-info h3 { font-size: 27px; margin: 10px 0 2px; }
.nft-modal-info .sub { color: var(--muted); margin-bottom: 18px; }
.trait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0 24px; }
.trait {
  background: var(--bg-deep);
  border: 2px solid var(--ink);
  border-radius: var(--r-input);
  padding: 8px 12px;
  font-size: 13.5px;
}
.trait span { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.trait b { text-transform: capitalize; }
@media (max-width: 640px) {
  .nft-modal-grid { grid-template-columns: 1fr; }
  .nft-modal-grid img { border-right: 0; border-bottom: 2px solid var(--ink); }
}

/* picker variant */
.picker-head { padding: 28px 26px 12px; }
.picker-head h3 { font-size: 24px; }
.picker-head p { color: var(--muted); font-size: 14.5px; }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 26px;
  padding-top: 10px;
}
.picker-grid button {
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
  background: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s var(--ease-pop);
}
.picker-grid button:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--shadow); }
.picker-grid img { aspect-ratio: 1; width: 100%; }
@media (max-width: 560px) { .picker-grid { grid-template-columns: repeat(3, 1fr); } }

/* burn ceremony */
.burn-stage { padding: 46px 30px 42px; text-align: center; }
.burn-stage .burn-art { position: relative; width: 200px; margin: 0 auto 26px; }
.burn-stage .burn-art img {
  width: 200px;
  border-radius: var(--r-tile);
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--shadow);
}
.burn-stage h3 { font-size: 28px; margin-bottom: 8px; }
.burn-stage p { color: var(--muted); max-width: 44ch; margin: 0 auto 22px; }
.burn-stage .tier-badge { margin-bottom: 10px; display: inline-block; }
.burn-count {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 23px;
  color: var(--danger);
  font-weight: 700;
  margin-bottom: 18px;
}
.flame {
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 150px;
  height: 96px;
  transform: translateX(-50%);
  background:
    radial-gradient(42px 64px at 50% 100%, #f7d23c 12%, transparent 60%),
    radial-gradient(60px 86px at 32% 100%, #f0862c 10%, transparent 62%),
    radial-gradient(60px 86px at 68% 100%, #f0862c 10%, transparent 62%),
    radial-gradient(94px 104px at 50% 108%, #e0512a 16%, transparent 70%);
  filter: blur(1.5px);
  opacity: 0;
  pointer-events: none;
}
.burning .flame { opacity: 1; animation: flicker 0.42s ease-in-out infinite alternate; }
.burning .burn-art img { animation: char 2.6s ease forwards; }
@keyframes flicker {
  from { transform: translateX(-50%) scaleY(1) scaleX(1); }
  to { transform: translateX(-52%) scaleY(1.18) scaleX(0.94); }
}
@keyframes char {
  60% { filter: brightness(0.55) sepia(0.4); }
  100% { filter: brightness(0.15); transform: scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
  .burning .flame { animation: none; }
  .burning .burn-art img { animation: none; filter: brightness(0.3); }
}

.success-frog { animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .success-frog { animation: none; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-pop), transform 0.7s var(--ease-pop);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 90px);
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--shadow);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--r-input);
  z-index: 80;
  opacity: 0;
  transition: transform 0.35s var(--ease-pop), opacity 0.35s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 8px; border: 3px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--line); }
