/* DUELFI — Shadow Realm reserve-currency aesthetic.
   Egyptian gold + holo foil over a deep violet duel field. */

:root {
  --void: #06040d;
  --shadow: #0c0818;
  --deep: #130d24;
  --panel: #171030;
  --line: #2c1f52;
  --line2: #3c2a72;
  --gold: #e8b33a;
  --gold-hi: #ffd977;
  --holo: #45e2ff;
  --violet: #a06bff;
  --duel: #ff3b4e;
  --jade: #46e39b;
  --parch: #f3e7c9;
  --txt: #e9e2ff;
  --dim: #9b8fc4;
  --dimmer: #6d6392;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --disp: "Cinzel", "Trajan Pro", Georgia, serif;
  --tech: "Rajdhani", "DIN Alternate", system-ui, sans-serif;
  --maxw: 1220px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--txt);
  font: 16px/1.65 var(--tech), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--holo); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--gold); color: #150c02; }

/* ── page-wide atmosphere ─────────────────────────────────────────────── */
.field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(160,107,255,.28), transparent 62%),
    radial-gradient(900px 520px at 6% 8%, rgba(69,226,255,.14), transparent 60%),
    radial-gradient(760px 760px at 50% 120%, rgba(232,179,58,.12), transparent 62%);
}
.grid-floor {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(160,107,255,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(160,107,255,.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 0%, transparent 82%);
  opacity: .65;
}
.scan {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 22px; }

/* ── nav ──────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(6,4,13,.94), rgba(6,4,13,.74));
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 700; letter-spacing: .1em; font-size: 19px; }
.brand .eye { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(232,179,58,.65)); }
.brand b { color: var(--gold); }
.nav-links { display: flex; gap: 22px; margin-left: 14px; }
.nav-links a {
  color: var(--dim); font-family: var(--tech); font-weight: 600; font-size: 13.5px;
  letter-spacing: .16em; text-transform: uppercase; transition: color .18s;
}
.nav-links a:hover { color: var(--gold); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--dim);
  background: rgba(23,16,48,.6); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 9px var(--jade); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .32 } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 6px; cursor: pointer;
  font-family: var(--tech); font-weight: 700; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line2); background: rgba(23,16,48,.7); color: var(--txt);
  transition: transform .14s, box-shadow .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 26px rgba(232,179,58,.2); }
.btn.gold {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, #a97c17);
  color: #180d01; border-color: #ffe9ae; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 10px 30px rgba(232,179,58,.3);
}
.btn.gold:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 14px 40px rgba(232,179,58,.45); }
.btn.sm { padding: 7px 13px; font-size: 12px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px;
  border: 1px solid var(--line2); background: rgba(23,16,48,.7); color: var(--dim); cursor: pointer;
  transition: color .18s, border-color .18s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.burger { display: none; font-size: 17px; }
/* full-screen menu, only reachable at the width where .nav-links is hidden */
.mobnav {
  position: fixed; inset: 66px 0 0; z-index: 49; display: none; flex-direction: column;
  gap: 2px; padding: 18px 22px 40px; background: rgba(6,4,13,.985); backdrop-filter: blur(16px);
  overflow: auto;
}
.mobnav.on { display: flex; }
.mobnav a {
  color: var(--txt); font-family: var(--disp); font-size: 22px; letter-spacing: .06em;
  padding: 17px 4px; border-bottom: 1px solid var(--line);
}
.mobnav a:active { color: var(--gold); }

/* ── section furniture ────────────────────────────────────────────────── */
section { padding: 92px 0; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--line2), transparent); }
h2.sec {
  font-family: var(--disp); font-weight: 700; font-size: clamp(30px, 4.6vw, 50px);
  letter-spacing: .04em; margin: 0 0 14px; line-height: 1.08;
}
.lede { color: var(--dim); max-width: 64ch; font-size: 17px; margin: 0 0 40px; }
.gold { color: var(--gold); }
.holo-t { color: var(--holo); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 74px 0 54px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 {
  font-family: var(--disp); font-weight: 900; line-height: 1.03; margin: 0 0 20px;
  font-size: clamp(38px, 5.6vw, 70px); letter-spacing: .01em;
}
.hero h1 .lit {
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 40%, #fff3cf 55%, var(--gold) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% 100%; animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -220% 0 } }
.hero p.sub { color: var(--dim); font-size: 17.5px; max-width: 56ch; margin: 0 0 26px; }
.ca-pill {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  border: 1px dashed var(--line2); border-radius: 8px; padding: 11px 14px;
  background: rgba(12,8,24,.75); max-width: 560px;
}
.ca-pill code { font-family: var(--mono); font-size: 12.5px; color: var(--parch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ca-pill button { flex: none; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── the holo card (hero art) ─────────────────────────────────────────── */
.card-stage { perspective: 1200px; display: grid; place-items: center; min-height: 460px; }
.duel-card {
  position: relative; width: 300px; aspect-ratio: 59/86; border-radius: 12px;
  display: flex; flex-direction: column; padding-bottom: 34px;
  transform-style: preserve-3d; transition: transform .18s ease-out;
  background: linear-gradient(155deg, #1a1136, #0b0718 60%, #170f2e);
  border: 3px solid; border-image: linear-gradient(150deg, var(--gold-hi), #8a6413 45%, var(--gold-hi)) 1;
  box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 70px rgba(160,107,255,.3);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { translate: 0 -8px } 50% { translate: 0 8px } }
.duel-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 9px; pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.5) 46%, rgba(69,226,255,.35) 52%, transparent 66%);
  background-size: 260% 260%; mix-blend-mode: overlay; animation: foil 5.5s linear infinite;
}
@keyframes foil { to { background-position: -260% 0 } }
.dc-name {
  font-family: var(--disp); font-size: 15px; letter-spacing: .06em; color: var(--gold-hi);
  padding: 12px 14px 6px; display: flex; justify-content: space-between; align-items: center;
}
.dc-art {
  margin: 0 14px; aspect-ratio: 1.1; flex: none; border: 2px solid #6d4f12; border-radius: 3px;
  background: radial-gradient(circle at 50% 42%, #3b2470, #120a26 70%);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.dc-art .eye-big { width: 68%; filter: drop-shadow(0 0 22px rgba(232,179,58,.85)); animation: hover-eye 5s ease-in-out infinite; }
@keyframes hover-eye { 0%,100% { transform: scale(1) } 50% { transform: scale(1.06) } }
.dc-art .ring {
  position: absolute; width: 120%; aspect-ratio: 1; border: 1px solid rgba(69,226,255,.35);
  border-radius: 50%; animation: spin 22s linear infinite;
}
.dc-art .ring:nth-child(3) { width: 92%; border-style: dashed; border-color: rgba(232,179,58,.4); animation-duration: 15s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg) } }
.dc-type {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--parch);
  margin: 10px 14px 0; padding-bottom: 6px; border-bottom: 1px solid #513a0f; text-transform: uppercase;
}
.dc-text {
  margin: 8px 14px 0; font-size: 10.5px; line-height: 1.42; color: #cbbe97; font-family: var(--mono);
  flex: 1; min-height: 0; overflow: hidden;
}
.dc-foot {
  position: absolute; bottom: 11px; right: 14px; left: 14px; display: flex; justify-content: space-between;
  font-family: var(--disp); font-size: 13px; color: var(--gold-hi); letter-spacing: .05em;
}

/* ── marquee ──────────────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(232,179,58,.07), rgba(160,107,255,.07));
  overflow: hidden; padding: 13px 0; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 0; animation: slide 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%) } }
.marquee span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); padding: 0 26px; display: inline-flex; align-items: center; gap: 26px;
}
.marquee span i { width: 6px; height: 6px; background: var(--gold); display: inline-block; rotate: 45deg; }

/* ── duel terminal ────────────────────────────────────────────────────── */
.terminal {
  border: 1px solid var(--line2); border-radius: 14px; overflow: hidden;
  background: linear-gradient(170deg, rgba(23,16,48,.94), rgba(9,6,20,.94));
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.term-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); background: rgba(232,179,58,.05);
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.term-bar .sp { flex: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(4n) { border-right: none; }
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }
.stat .v { font-family: var(--disp); font-size: clamp(22px, 2.6vw, 33px); font-weight: 700; margin-top: 8px; color: var(--gold-hi); letter-spacing: .02em; }
.stat .v.holo { color: var(--holo); }
.stat .v.jade { color: var(--jade); }
.stat .n { font-size: 12.5px; color: var(--dimmer); margin-top: 4px; }

.phases { display: flex; gap: 0; padding: 0; }
.phase {
  flex: 1; padding: 15px 10px; text-align: center; border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dimmer); position: relative; transition: color .3s, background .3s;
}
.phase:last-child { border-right: none; }
.phase.on { color: var(--void); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); font-weight: 700; }
.phase.on::after {
  content: ""; position: absolute; inset: 0; box-shadow: 0 0 26px rgba(232,179,58,.6); pointer-events: none;
}

/* ── three moves ──────────────────────────────────────────────────────── */
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.move {
  border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px 30px;
  background: linear-gradient(170deg, rgba(23,16,48,.8), rgba(9,6,20,.8));
  position: relative; overflow: hidden; transition: transform .2s, border-color .2s;
}
.move:hover { transform: translateY(-4px); border-color: var(--line2); }
.move .num {
  font-family: var(--disp); font-size: 52px; font-weight: 900; color: transparent;
  -webkit-text-stroke: 1px var(--line2); line-height: 1; margin-bottom: 10px;
}
.move h3 { font-family: var(--disp); font-size: 24px; letter-spacing: .08em; margin: 0 0 10px; color: var(--gold); }
.move p { color: var(--dim); font-size: 15px; margin: 0; }
.move .tag {
  margin-top: 18px; display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--holo);
  border: 1px solid rgba(69,226,255,.3); border-radius: 4px; padding: 4px 9px;
}

/* ── exodia assembly ──────────────────────────────────────────────────── */
.exodia-shell { border: 1px solid var(--line2); border-radius: 16px; padding: 34px; background: rgba(9,6,20,.66); position: relative; overflow: hidden; }
.pieces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 26px 0 28px; }
.piece {
  border: 2px solid var(--line2); border-radius: 9px; aspect-ratio: 59/86;
  background: linear-gradient(165deg, #140d2a, #090615);
  display: flex; flex-direction: column; justify-content: space-between; padding: 12px 11px;
  position: relative; overflow: hidden; transition: border-color .45s, box-shadow .45s, transform .3s;
  cursor: pointer;
}
.piece:hover { transform: translateY(-5px); }
.piece .fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(to top, rgba(232,179,58,.42), rgba(232,179,58,.06));
  transition: height 1.1s cubic-bezier(.22,.9,.3,1);
}
.piece.lit { border-color: var(--gold); box-shadow: 0 0 30px rgba(232,179,58,.45), inset 0 0 40px rgba(232,179,58,.14); }
.piece.lit .glyph { color: var(--gold-hi); text-shadow: 0 0 16px rgba(232,179,58,.9); }
.piece .phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; position: relative; }
.piece .glyph { font-size: 15px; line-height: 1; color: var(--dimmer); transition: color .5s, text-shadow .5s; flex: none; }
.piece .pn { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
/* the equity mark is the card art — a gold medallion unifies logos that ship
   with wildly different backgrounds (NVIDIA dark, SPDR white, …) */
.piece .pmid { display: grid; place-items: center; position: relative; flex: 1; min-height: 0; }
.piece .logo, .piece .logo-fallback {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(232,179,58,.42); background: #0a0618;
  transition: border-color .45s, box-shadow .45s, transform .3s;
}
.piece .logo-fallback {
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px;
  font-weight: 700; color: var(--gold); letter-spacing: .04em;
}
.piece:hover .logo { transform: scale(1.07); }
.piece.lit .logo, .piece.lit .logo-fallback {
  border-color: var(--gold); box-shadow: 0 0 22px rgba(232,179,58,.6);
}
.piece .pv { font-family: var(--disp); font-size: 15px; color: var(--parch); position: relative; }
.piece .pct { font-family: var(--mono); font-size: 10px; color: var(--gold); position: relative; }

.assembly-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; border: 1px solid var(--line); }
.assembly-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--violet), var(--gold), var(--gold-hi)); transition: width 1.1s cubic-bezier(.22,.9,.3,1); box-shadow: 0 0 20px rgba(232,179,58,.7); }
.assembly-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 18px; flex-wrap: wrap; }

.obliterate {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  background: radial-gradient(circle, rgba(232,179,58,.24), rgba(6,4,13,.96) 62%);
  backdrop-filter: blur(3px);
}
.obliterate.on { display: grid; opacity: 1; animation: flashin .5s; }
@keyframes flashin { 0% { filter: brightness(3.4) } 100% { filter: brightness(1) } }
.obliterate .word {
  font-family: var(--disp); font-weight: 900; font-size: clamp(34px, 9vw, 118px);
  letter-spacing: .12em; color: var(--gold-hi); text-align: center; line-height: 1;
  text-shadow: 0 0 40px rgba(232,179,58,.9), 0 0 100px rgba(255,90,60,.55);
  animation: slam .6s cubic-bezier(.2,1.4,.4,1);
}
@keyframes slam { 0% { transform: scale(2.6) } 60% { transform: scale(.94) } 100% { transform: scale(1) } }
.obliterate .sub2 { text-align: center; color: var(--parch); font-family: var(--mono); font-size: 13px; letter-spacing: .2em; margin-top: 18px; }
.shake { animation: shake .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%,90% { transform: translate(-2px,1px) } 20%,80% { transform: translate(4px,-2px) } 30%,50%,70% { transform: translate(-7px,2px) } 40%,60% { transform: translate(7px,-1px) } }

/* ── flywheel ─────────────────────────────────────────────────────────── */
.wheel-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wheel { position: relative; aspect-ratio: 1; max-width: 470px; margin: 0 auto; width: 100%; }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel .core {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
}
.wheel .core b { font-family: var(--disp); font-size: 42px; color: var(--gold); display: block; line-height: 1; }
.wheel .core span { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--dim); }
.node-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; fill: var(--dim); text-transform: uppercase; }
.node-label.on { fill: var(--gold-hi); }
.steps li {
  list-style: none; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--line); position: relative;
  transition: color .3s; color: var(--dim); cursor: default;
}
.steps li::before {
  content: attr(data-n); position: absolute; left: 0; top: 14px;
  width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--dimmer);
  transition: all .3s;
}
.steps li.on { color: var(--txt); }
.steps li.on::before { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 18px rgba(232,179,58,.5); }
.steps li b { color: var(--gold); font-family: var(--disp); letter-spacing: .06em; font-weight: 700; display: block; font-size: 17px; }

/* ── tribute market ───────────────────────────────────────────────────── */
.table-shell { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: rgba(9,6,20,.7); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.tbl th {
  text-align: left; padding: 14px 18px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dimmer);
  border-bottom: 1px solid var(--line); background: rgba(232,179,58,.04);
}
.tbl td { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .18s; cursor: pointer; }
.tbl tbody tr:hover { background: rgba(232,179,58,.06); }
.scrollx { overflow-x: auto; }
.pair { display: flex; align-items: center; gap: 11px; }
.pair .sym {
  width: 34px; height: 34px; border-radius: 8px; flex: none; object-fit: cover;
  background: #0a0618; border: 1px solid rgba(232,179,58,.35);
}
.pair .sym-text {
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--void);
  background: linear-gradient(150deg, var(--gold-hi), var(--gold)); border: none;
}
.pair b { font-family: var(--tech); font-weight: 700; letter-spacing: .04em; }
.pair small { display: block; color: var(--dimmer); font-size: 11.5px; }
.disc { color: var(--jade); font-family: var(--mono); font-weight: 700; }
.disc.neg { color: var(--duel); }
.badge-live { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--jade); border: 1px solid rgba(70,227,155,.34); border-radius: 4px; padding: 3px 7px; }
.badge-soon { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--dimmer); border: 1px solid var(--line2); border-radius: 4px; padding: 3px 7px; }

/* ── vault composition ────────────────────────────────────────────────── */
.vault-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.bar-row { margin-bottom: 20px; }
.bar-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.bar-head b { font-family: var(--tech); letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; }
.minilogo { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #0a0618; }
.bar-head span { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.3s cubic-bezier(.22,.9,.3,1); }

/* ── deck / card gallery ──────────────────────────────────────────────── */
.deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini {
  perspective: 900px; display: flex;
}
.mini-inner {
  border-radius: 10px; border: 2px solid #6d4f12; overflow: hidden; position: relative;
  background: linear-gradient(165deg, #1b1238, #0a0619);
  min-height: 100%; padding: 14px 13px; display: flex; flex-direction: column;
  transform-style: preserve-3d; transition: transform .16s ease-out, box-shadow .3s;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.mini-inner::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.42) 45%, rgba(69,226,255,.3) 51%, transparent 64%);
  background-size: 240% 240%; mix-blend-mode: overlay;
}
.mini:hover .mini-inner::before { opacity: 1; animation: foil 2.6s linear infinite; }
.mini:hover .mini-inner { box-shadow: 0 26px 60px rgba(0,0,0,.7), 0 0 40px rgba(232,179,58,.28); }
.mini h4 { font-family: var(--disp); font-size: 15px; color: var(--gold-hi); margin: 0 0 8px; letter-spacing: .04em; }
.mini .art {
  aspect-ratio: 1.15; border: 1px solid #5d420f; border-radius: 3px; margin-bottom: 10px;
  display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(circle at 50% 40%, rgba(160,107,255,.34), rgba(10,6,24,.9) 72%);
}
.mini .cat { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--parch); text-transform: uppercase; border-bottom: 1px solid #513a0f; padding-bottom: 5px; margin-bottom: 8px; }
.mini p { font-size: 12px; line-height: 1.5; color: #b6a98a; font-family: var(--mono); margin: 0; }
.mini .atk { margin-top: auto; flex: none; font-family: var(--disp); font-size: 12.5px; color: var(--gold-hi); display: flex; justify-content: space-between; padding-top: 8px; }

/* ── token details ────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.detail {
  border: 1px solid var(--line); border-radius: 11px; padding: 24px 20px;
  background: linear-gradient(170deg, rgba(23,16,48,.75), rgba(9,6,20,.75));
}
.detail .k { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }
.detail .v { font-family: var(--disp); font-size: 26px; color: var(--gold-hi); margin: 9px 0 6px; }
.detail p { font-size: 13px; color: var(--dim); margin: 0; }

/* ── faq ──────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--txt);
  padding: 22px 44px 22px 0; font-family: var(--tech); font-weight: 600; font-size: 17.5px;
  letter-spacing: .02em; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  font-family: var(--mono); font-size: 22px; color: var(--gold); transition: rotate .25s;
}
.faq-item.open .faq-q::after { rotate: 45deg; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .34s ease; color: var(--dim); }
.faq-a p { margin: 0 0 22px; max-width: 76ch; }

/* ── footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; background: rgba(6,4,13,.8); }
.foot-in { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--dim); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.foot-links a:hover { color: var(--gold); }
.disclaimer {
  margin-top: 34px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--dimmer); font-size: 12.5px; line-height: 1.7; background: rgba(0,0,0,.3);
}

/* ── modal ────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(4,2,10,.82); backdrop-filter: blur(6px); padding: 20px; }
.modal.on { display: grid; }
.modal-box {
  width: min(520px, 100%); border: 1px solid var(--line2); border-radius: 14px; padding: 28px;
  background: linear-gradient(170deg, #191134, #0a0619); box-shadow: 0 40px 90px rgba(0,0,0,.8);
  max-height: 88vh; overflow: auto;
}
.modal-box h3 { font-family: var(--disp); color: var(--gold); margin: 0 0 6px; font-size: 23px; letter-spacing: .05em; }
.modal-box .row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.modal-box .row:last-of-type { border-bottom: none; }
.modal-box .row span { color: var(--dim); }
.modal-box .row b { font-family: var(--mono); color: var(--parch); }

.toast {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 95;
  background: var(--gold); color: #180d01; font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; padding: 11px 20px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity .25s, translate .25s; text-transform: uppercase; font-weight: 700;
}
.toast.on { opacity: 1; translate: -50% -8px; }

/* ── reveal-on-scroll ─────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.rv.in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-in, .wheel-wrap, .vault-grid { grid-template-columns: 1fr; }
  .moves, .detail-grid { grid-template-columns: 1fr 1fr; }
  .deck { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: none; }
  .nav-links { display: none; }
  .burger { display: grid; }
  .card-stage { min-height: 400px; order: -1; }
}
@media (max-width: 620px) {
  section { padding: 62px 0; }
  .moves, .detail-grid, .deck { grid-template-columns: 1fr; }
  .pieces { grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .piece { padding: 7px 5px; }
  .piece .glyph { font-size: 18px; }
  .piece .pn { display: none; }
  .piece .pv { font-size: 11px; }
  .piece .logo, .piece .logo-fallback { width: 34px; height: 34px; }
  .piece .glyph { font-size: 12px; }
  .exodia-shell { padding: 20px 16px; }
  .phases { flex-wrap: wrap; }
  .phase { flex: 1 0 33%; border-bottom: 1px solid var(--line); }
  .nav-right .chip { display: none; }
  .duel-card { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
