/* OBOL & ASH — Dark mode default
   Illuminated parchment against vault dark.
*/

:root {
  /* Core dark palette */
  --bg-deepest:  #0a0703;
  --bg:          #14100a;
  --bg-elev:    #1c160e;
  --line:        #3a2f22;
  --line-strong: #5c4a36;

  --text:        #ede4d2;
  --text-dim:    #b9ad95;
  --text-muted:  #847862;

  --gold:        #d4a849;
  --gold-soft:   #806023;
  --ember:       #d44829;
  --ember-soft:  #7a2a18;
  --parchment:   #e8e0d0;
  --parchment-tile: #e8e0d0;

  --card-bg:     var(--bg-elev);
  --card-border: var(--line-strong);

  --shadow:      0 0 0 1px var(--card-border), 0 2px 0 -1px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 0 0 1px var(--gold-soft), 0 10px 24px -6px rgba(0, 0, 0, 0.6);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { background: var(--bg-deepest); }

body {
  font-family: 'Iowan Old Style', 'Hoefler Text', Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 168, 73, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(212, 72, 41, 0.05) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--gold); color: var(--bg-deepest); }

/* ============ Ambient drifting motes ============ */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mote {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: drift 18s linear infinite;
  box-shadow: 0 0 4px currentColor;
}
.mote.m1 { left: 12%; animation-delay: 0s;  animation-duration: 22s; }
.mote.m2 { left: 28%; animation-delay: 4s;  animation-duration: 26s; background: var(--ember); }
.mote.m3 { left: 47%; animation-delay: 8s;  animation-duration: 20s; }
.mote.m4 { left: 63%; animation-delay: 2s;  animation-duration: 28s; background: var(--ember); }
.mote.m5 { left: 78%; animation-delay: 12s; animation-duration: 24s; }
.mote.m6 { left: 91%; animation-delay: 6s;  animation-duration: 30s; }

@keyframes drift {
  0%   { transform: translateY(110vh) translateX(0);  opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { transform: translateY(50vh) translateX(20px); opacity: 0.45; }
  90%  { opacity: 0.45; }
  100% { transform: translateY(-10vh) translateX(-10px); opacity: 0; }
}

/* ============ Topbar ============ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 16, 10, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.brand-mark {
  font-size: 22px;
  display: inline-block;
  color: var(--gold);
  animation: bob 4.5s ease-in-out infinite;
}
.brand-name { font-size: 15px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
/* OpenSea icon link in the nav */
.opensea-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 0 !important;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.opensea-link::after { display: none !important; }
.opensea-link:hover { opacity: 1; transform: translateY(-1px); }
.opensea-link svg { display: block; border-radius: 50%; }
.opensea-link.is-pending { opacity: 0.4; cursor: not-allowed; }
.opensea-link.is-pending:hover { transform: none; }
.topnav a {
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s var(--ease-out);
}
.topnav a:hover { color: var(--gold); }
.topnav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease-out);
}
.topnav a:hover::after { width: 100%; }

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 100px 40px 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 54px);
  margin: 0 0 28px;
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--parchment);
}
.hero-em {
  font-style: italic;
  color: var(--gold);
}
.lede {
  margin: 0 0 40px;
  font-style: italic;
  color: var(--text-dim);
  font-size: 17px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-hero { padding: 14px 30px; font-size: 11px; letter-spacing: 0.22em; }

/* ============ Scroll-in animations ============ */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-anim].in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ How It Works ============ */
.howit {
  position: relative;
  z-index: 1;
  padding: 70px 30px 50px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 30% at 50% 50%, rgba(212, 168, 73, 0.04), transparent 70%),
    var(--bg);
}
.howit-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.howit-title {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 40px;
  font-weight: 600;
}
.howit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.howit-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  padding: 28px 26px 26px;
  position: relative;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.howit-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}
.howit-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
}
.howit-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: normal;
  color: var(--parchment);
  letter-spacing: 0.01em;
}
.howit-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}
.howit-card p strong { color: var(--text); font-weight: 600; }
.howit-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 26px 0 0;
  border-top: 1px dotted var(--line);
}
.howit-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 6px;
}
.stat-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  font-feature-settings: "tnum";
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============ Cross explainer (inside section II) ============ */
.cross-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
}
.cross-outcome {
  padding: 12px 14px;
  border-left: 3px solid var(--gold-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cross-outcome.cross-ascend { border-left-color: var(--gold); }
.cross-outcome.cross-drown  { border-left-color: var(--ember); }
.outcome-head {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.cross-ascend .outcome-head { color: var(--gold); }
.cross-drown .outcome-head  { color: var(--ember); }
.outcome-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.outcome-body strong { color: var(--text); }
.cross-instruction {
  margin: 0;
  padding: 14px 16px;
  background: rgba(212, 168, 73, 0.05);
  border: 1px solid var(--gold-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
.cross-instruction strong { color: var(--gold); }
.cross-instruction em { color: var(--text); font-style: normal; font-weight: 600; }

/* ============ Card grid ============ */
.grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 30px 10px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.card-gallery { grid-column: 1 / -1; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-soft);
}

.card-title {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-sub {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-style: italic;
  font-size: 14px;
}

/* ============ Wallet row ============ */
.wallet-row {
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  background: rgba(212, 168, 73, 0.04);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.wallet-row.state-connected {
  border-style: solid;
  border-color: var(--gold-soft);
  background: rgba(212, 168, 73, 0.08);
}
.wallet-disconnected,
.wallet-connected {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.wallet-row.state-disconnected .wallet-connected { display: none; }
.wallet-row.state-connected    .wallet-disconnected { display: none; }
.wallet-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.wallet-hint {
  font-size: 13px;
  font-style: italic;
  color: var(--text-dim);
}
.wallet-addr {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* ============ Form rows ============ */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg-deepest);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  min-height: 44px;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.field input:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--gold);
}
.field input:disabled { color: var(--text-muted); background: var(--bg-deepest); }
.hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============ Slider ============ */
/* ============ The Ferryman's rite ============ */
.rite {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(212,168,73,0.06), rgba(212,168,73,0.01));
}
.rite-charon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.rite-eyes {
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(212,168,73,0.55);
  flex: 0 0 auto;
  animation: charon-glow 3.4s ease-in-out infinite;
}
@keyframes charon-glow {
  0%, 100% { opacity: 0.7; text-shadow: 0 0 10px rgba(212,168,73,0.35); }
  50%      { opacity: 1;   text-shadow: 0 0 18px rgba(212,168,73,0.7); }
}
.rite-question {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.rite-answer {
  width: 100%;
  resize: vertical;
  min-height: 48px;
  margin-bottom: 12px;
  background: var(--bg-deepest);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.rite-answer:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,168,73,0.18);
}

/* ============ The Ferryman's verdict ============ */
.verdict {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  text-align: center;
  animation: verdict-in 0.45s var(--ease-out) both;
}
@keyframes verdict-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.verdict.is-free {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,168,73,0.12), rgba(212,168,73,0.02));
}
.verdict.is-paid {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.verdict-tag {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.verdict.is-free .verdict-tag { color: var(--gold); text-shadow: 0 0 16px rgba(212,168,73,0.5); }
.verdict.is-paid .verdict-tag { color: var(--text-dim); }
.verdict-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.cost-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.6;
}
.cost-row-2 { grid-template-columns: 1fr 1fr !important; }

/* ============ Reveal strip ============ */
.reveal { margin-top: 26px; padding-top: 22px; border-top: 1px dotted var(--line); }
.reveal-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.reveal-card {
  position: relative;
  background: var(--parchment-tile);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px;
  overflow: hidden;
}
.reveal-art { border-radius: 4px; overflow: hidden; background: var(--bg-deepest); }
.reveal-art svg { width: 100%; height: auto; display: block; }
.reveal-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 3px;
}
.reveal-badge.is-free {
  background: var(--gold);
  color: var(--bg-deepest);
  box-shadow: 0 0 10px rgba(212,168,73,0.6);
}
.reveal-badge.is-paid { background: var(--bg-deepest); color: var(--text-dim); border: 1px solid var(--line-strong); }
.reveal-cap {
  margin-top: 8px;
  font-size: 11px;
  color: var(--bg-deepest);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}
.flip-in {
  opacity: 0;
  transform: perspective(600px) rotateY(-22deg) translateY(10px);
  animation: flipIn 0.55s var(--ease-out) forwards;
}
@keyframes flipIn {
  to { opacity: 1; transform: perspective(600px) rotateY(0) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-in { animation: none; opacity: 1; transform: none; }
}

/* ============ Cost row ============ */
.cost-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px 0;
  margin-bottom: 22px;
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
}
.cost-row > div { display: flex; flex-direction: column; gap: 4px; }
.cost-row .lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cost-row .val {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  font-feature-settings: "tnum";
  transition: color 0.4s var(--ease-out);
}
.cost-row .val.flash {
  animation: val-flash 0.6s var(--ease-out);
}
@keyframes val-flash {
  0%   { color: var(--gold); transform: translateY(-1px); }
  100% { color: var(--text);  transform: translateY(0); }
}

/* ============ Reveal block ============ */
.reveal-block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 0;
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
}
.reveal-block > div { display: flex; flex-direction: column; gap: 4px; }
.reveal-block .lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.reveal-block .val {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-feature-settings: "tnum";
}

/* ============ Buttons ============ */
.btn {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 12px 22px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  transition: background 0.18s var(--ease-out),
              color 0.18s var(--ease-out),
              transform 0.1s var(--ease-out),
              border-color 0.18s var(--ease-out);
}
.btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--bg-deepest);
  border-color: var(--gold);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: var(--bg-deepest);
  border-color: var(--gold);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--parchment);
}
.btn-block {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 13px;
  letter-spacing: 0.22em;
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover:not(:disabled) { color: var(--bg-deepest); }
.btn-small { padding: 8px 14px; font-size: 10px; min-height: 36px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ Status messages ============ */
.status {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  min-height: 1em;
  transition: color 0.3s var(--ease-out);
}
.status.success { color: var(--gold); font-weight: 600; font-style: normal; }
.status.error   { color: var(--ember); font-weight: 600; font-style: normal; }
.status.warning { color: var(--gold);  font-weight: 600; font-style: normal; }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.gallery .empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 40px 0;
}
.tile {
  border: 1px solid var(--line);
  background: var(--bg-deepest);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  animation: tile-rise 0.45s var(--ease-out) both;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
}
@keyframes tile-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tile-art {
  background: var(--parchment-tile);
  padding: 6px;
  border: 1px solid var(--gold-soft);
}
.tile-art svg { width: 100%; height: auto; display: block; }
.tile-meta { display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.tile-name { font-weight: 600; font-size: 14px; color: var(--text); }
.tile-form { font-size: 12px; color: var(--text-muted); }
.tile-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--gold);
  color: var(--bg-deepest);
  align-self: flex-start;
  font-weight: 700;
}
.tile-pill.tier-legendary { background: var(--ember); color: var(--parchment); }
.tile-pill.tier-mythic    { background: var(--gold); color: var(--bg-deepest); box-shadow: 0 0 8px rgba(212, 168, 73, 0.4); }
.tile-pill.tier-common,
.tile-pill.tier-uncommon,
.tile-pill.tier-rare,
.tile-pill.tier-epic    { background: var(--text); color: var(--bg-deepest); }
.tile button { margin-top: 4px; }

/* ============ Lore strip ============ */
.lore-strip {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 50px 30px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.lore-strip h3 {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rates th, .rates td {
  padding: 9px 10px;
  border-bottom: 1px dotted var(--line);
  text-align: left;
}
.rates th {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rates tr { transition: background 0.2s var(--ease-out); }
.rates tbody tr:hover { background: rgba(212, 168, 73, 0.05); }
.lore-text p { margin: 0 0 14px; color: var(--text-dim); }
.lore-text strong { color: var(--text); font-weight: 700; }
.inline-link {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.inline-link:hover { color: var(--ember); border-color: var(--ember); }

/* ============ Footer ============ */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  text-align: center;
  padding: 40px 20px 60px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.opensea-foot {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 1px;
  transition: opacity 0.2s var(--ease-out);
}
.opensea-foot:hover { opacity: 0.8; }
.opensea-foot.is-pending { color: var(--text-dim); border-bottom-color: transparent; opacity: 0.55; cursor: not-allowed; }

/* ============ Mobile responsive ============ */

/* Tablet — collapse 2-col grid to 1, tighten paddings */
@media (max-width: 920px) {
  .grid, .lore-strip { grid-template-columns: 1fr; }
  .hero { padding: 70px 24px 60px; }
  .topbar { padding: 16px 24px; }
}

/* Tablet — howit grid + cross-explainer 2-col stays */
@media (max-width: 920px) {
  .howit-grid, .howit-foot { grid-template-columns: 1fr; gap: 18px; }
  .howit { padding: 50px 22px 40px; }
  .howit-title { margin-bottom: 26px; }
  .stat-num { font-size: 26px; }
  .cross-explainer { grid-template-columns: 1fr; }
}

/* Mobile — full single column, larger touch targets, no clipping */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar { padding: 14px 18px; }
  .topnav { gap: 16px; font-size: 10px; letter-spacing: 0.14em; }
  .brand-name { font-size: 13px; }
  .brand-mark { font-size: 20px; }

  .hero { padding: 56px 22px 50px; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); margin-bottom: 22px; }
  .lede { font-size: 15px; margin-bottom: 30px; }
  .hero-cta { gap: 10px; }
  .btn-hero { padding: 14px 22px; font-size: 11px; width: 100%; max-width: 320px; }
  .hero-cta { flex-direction: column; align-items: center; }

  .grid { padding: 36px 18px 8px; gap: 18px; }
  .card { padding: 22px 20px; }
  .card-title { font-size: 11px; }

  .wallet-row { padding: 14px 16px; }
  .wallet-disconnected, .wallet-connected {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .wallet-disconnected > div, .wallet-connected > div { width: 100%; }
  .wallet-disconnected .btn, .wallet-connected .btn { width: 100%; }

  .row { grid-template-columns: 1fr; gap: 14px; }
  .cost-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cost-row .val { font-size: 15px; }
  .reveal-block { grid-template-columns: 1fr; gap: 14px; }

  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .tile { padding: 12px; }

  .lore-strip { padding: 36px 20px; gap: 30px; }
  .rates { font-size: 13px; }
  .rates th, .rates td { padding: 8px 6px; }

  .btn-block { font-size: 12px; padding: 14px; }
  .btn-small { font-size: 10px; padding: 8px 14px; }

  .footer { padding: 30px 16px 50px; font-size: 10px; }
}

/* Tight phone (iPhone SE / 360 width) */
@media (max-width: 380px) {
  .topnav a:last-child { display: none; }  /* "Summon" link hides — Mint is in hero CTA */
  .cost-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-anim] { opacity: 1; transform: none; }
}

/* ============ Crossing / Sacrifice controls ============ */
.cross-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 14px;
  margin: 18px 0;
}
.cross-controls .field { margin: 0; }
.cross-select {
  width: 100%;
  background: var(--bg-deepest);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}
.cross-select:focus { outline: none; border-color: var(--gold); }
.cross-arrow {
  font-size: 22px;
  color: var(--gold);
  padding-bottom: 8px;
  opacity: 0.8;
}
@media (max-width: 560px) {
  .cross-controls { grid-template-columns: 1fr; }
  .cross-arrow { transform: rotate(90deg); justify-self: center; }
}
