/* Mythora reconstruction — original CSS, no external assets. */
:root {
  --bg: #0d0a18;
  --bg2: #171226;
  --card: #1e1832;
  --card2: #251d3d;
  --ink: #f5f0ff;
  --muted: #c9bfe6;
  --dim: #9d92c2;
  --gold: #f2c14e;
  --teal: #5eead4;
  --violet: #a78bfa;
  --rose: #f472b6;
  --line: #3a2f5e;
  --danger: #fb7185;
  --ok: #6ee7b7;
  --radius: 16px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(900px 500px at 85% -5%, #2b1f56 0%, transparent 60%),
    radial-gradient(700px 420px at 0% 10%, #14343a 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold);
  color: #111; padding: .6rem 1rem; z-index: 50; font-weight: 700;
}
.skip-link:focus { left: .5rem; top: .5rem; }
.banner {
  background: #241a08; color: var(--gold); text-align: center;
  padding: .55rem 1rem; font-size: .85rem; letter-spacing: .12em; font-weight: 700;
}
.banner p { margin: .15rem 0 0; letter-spacing: 0; font-weight: 400; color: var(--ink); font-size: .9rem; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 10, 24, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.logo { font-weight: 800; letter-spacing: .14em; text-decoration: none; color: var(--ink); font-size: 1.15rem; }
.logo small { display: block; font-size: .62rem; letter-spacing: .28em; color: var(--gold); }
.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-radius: 999px;
}
.main-nav a[aria-current="page"] { background: var(--card2); color: var(--gold); }
.main-nav a:hover { background: var(--card2); }
.wallet-box { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.demo-badge {
  background: #123b35; color: var(--teal); border: 1px solid #2dd4bf;
  padding: .2rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
}
button, .button {
  font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid transparent;
  padding: .6rem 1.05rem; font-weight: 700; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--gold); color: #1a1405; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card2); }
button:disabled { opacity: .45; cursor: not-allowed; }
main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.hero { text-align: center; padding: 2.2rem 0 1rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; margin: .4rem 0; letter-spacing: .02em; }
.eyebrow { color: var(--gold); letter-spacing: .22em; font-size: .8rem; font-weight: 700; margin: 0; }
.lede { color: var(--muted); max-width: 42rem; margin: 0 auto 1.2rem; }
.hero-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero-art { max-width: 520px; margin: 1.4rem auto 0; }
.counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1.6rem 0;
}
.counter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.counter strong { display: block; font-size: 1.6rem; }
.counter span { color: var(--dim); font-size: .85rem; letter-spacing: .06em; }
section { margin-top: 2.2rem; }
h2 { font-size: 1.6rem; margin-bottom: .4rem; }
h3 { margin-bottom: .3rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.notice {
  background: #2a2110; border: 1px solid #7a5c14; border-radius: var(--radius);
  padding: .9rem 1rem; margin: 1rem 0;
}
.notice strong { color: var(--gold); }
.callout {
  background: #132a26; border: 1px solid #2dd4bf; border-radius: var(--radius); padding: .9rem 1rem;
}
.warning { background: #2b1420; border: 1px solid var(--rose); border-radius: var(--radius); padding: .9rem 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-size: .85rem; letter-spacing: .06em; }
.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.token-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.token-card a { color: inherit; text-decoration: none; display: block; }
.token-card a:hover .token-name { color: var(--gold); }
.token-body { padding: .8rem .9rem 1rem; }
.token-name { margin: .2rem 0; font-size: 1.05rem; }
.token-meta { color: var(--dim); font-size: .88rem; margin: 0; }
.pill {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line);
}
.pill-legendary { color: #ffd166; border-color: #ffd166; }
.pill-epic { color: var(--violet); border-color: var(--violet); }
.pill-rare { color: var(--teal); border-color: var(--teal); }
.pill-common { color: var(--muted); }
.pill-minted { color: var(--ok); border-color: var(--ok); }
.art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.art-img { object-fit: contain; object-position: center; background: #151027; }
.art-img.art-lg { object-fit: cover; object-position: center 28%; }
.art-lg { aspect-ratio: 16 / 9; }
.filters {
  display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; margin: 1rem 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.filters label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.filters select, .filters input {
  font: inherit; color: var(--ink); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; min-width: 10rem;
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.mint-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.mint-tabs button[aria-selected="true"] { background: var(--gold); color: #1a1405; }
.qty-row { display: flex; align-items: center; gap: .6rem; margin: .8rem 0; flex-wrap: wrap; }
.qty-row button { width: 2.6rem; height: 2.6rem; padding: 0; font-size: 1.3rem; }
.qty-row output { font-size: 1.3rem; font-weight: 800; min-width: 2rem; text-align: center; }
.price-line { font-size: 1.1rem; }
.price-line strong { font-size: 1.4rem; }
dialog {
  border: 1px solid var(--line); border-radius: 18px; background: var(--card2);
  color: var(--ink); max-width: min(34rem, 92vw); padding: 0; width: 100%;
}
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog-body { padding: 1.3rem; }
.dialog-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.trait-list { list-style: none; padding: 0; margin: .6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.trait-list li { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; }
.trait-list span { display: block; color: var(--dim); font-size: .78rem; letter-spacing: .06em; }
code { background: var(--bg2); padding: .15rem .4rem; border-radius: 6px; word-break: break-all; }
.address { word-break: break-all; }
footer {
  border-top: 1px solid var(--line); color: var(--muted); text-align: center;
  padding: 1.6rem 1rem 2.2rem; font-size: .92rem;
}
footer p { margin: .25rem 0; }
.vote-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.vote-count { font-size: 1.5rem; font-weight: 800; }
@media (max-width: 720px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .legend-grid, .gallery-grid, .grid-2 { grid-template-columns: 1fr; }
  .main-nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.mint-divider { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
#mint-box h3 { margin-top: 0; }
#mint-box #panel-paid h3 { margin-top: 0; }

.pill-burned{background:#3a2a2a;color:#f0b0b0}
.meter{height:12px;background:#2a2a35;border-radius:6px;overflow:hidden;margin:.5rem 0}
.meter span{display:block;height:100%;background:linear-gradient(90deg,#f5c542,#e07b39)}
.odds{margin-top:1rem}

.mint-totals{font-size:1.05rem;margin:.75rem 0}

/* Animated cover (home hero) — pure CSS motion, no new assets, no scripts.
 * Floating Legend cards, a slow Legend marquee, twinkling stars and a
 * shimmering title. Decorative only: no reveal, no interaction, no wallet. */
.cover {
  position: relative; overflow: hidden; text-align: center;
  padding: 2.6rem 1rem 1.2rem; margin-top: 1rem;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(120deg, #241640, #0f2a33 45%, #3a1530 75%, #241640);
  background-size: 220% 220%;
  animation: coverGlow 14s ease-in-out infinite alternate;
}
@keyframes coverGlow { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.cover .eyebrow, .cover .lede, .cover .hero-actions { position: relative; }
.cover-title {
  font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; margin: .4rem 0; letter-spacing: .02em;
  background: linear-gradient(90deg, #f2c14e, #fff7d6, #5eead4, #f2c14e);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: coverShimmer 6s linear infinite;
}
@keyframes coverShimmer { to { background-position: 200% center; } }
.cover-stars { position: absolute; inset: 0; pointer-events: none; }
.cover-stars span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff7d6; opacity: .7; animation: coverTwinkle 2.6s ease-in-out infinite;
}
.cover-stars span:nth-child(1) { top: 16%; left: 7%; }
.cover-stars span:nth-child(2) { top: 30%; left: 16%; animation-delay: .5s; }
.cover-stars span:nth-child(3) { top: 12%; left: 48%; animation-delay: 1s; }
.cover-stars span:nth-child(4) { top: 24%; left: 82%; animation-delay: .3s; }
.cover-stars span:nth-child(5) { top: 44%; left: 91%; animation-delay: .9s; }
.cover-stars span:nth-child(6) { top: 10%; left: 68%; animation-delay: 1.4s; }
.cover-stars span:nth-child(7) { top: 38%; left: 30%; animation-delay: .7s; }
.cover-stars span:nth-child(8) { top: 52%; left: 58%; animation-delay: 1.2s; }
@keyframes coverTwinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.25); } }
.cover-float {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  gap: 1rem; margin: 1.6rem auto 0; max-width: 860px;
}
.float-card { margin: 0; animation: coverFloat 5s ease-in-out infinite; }
.float-card a { display: block; }
.float-card img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.float-card figcaption { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.float-center { flex: 0 1 360px; animation-duration: 6s; }
.float-side { flex: 0 1 230px; }
.float-left { transform: rotate(-4deg); animation-delay: .6s; }
.float-right { transform: rotate(4deg); animation-delay: 1.1s; }
@keyframes coverFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.cover-marquee {
  overflow: hidden; margin: 1.6rem -1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cover-track { display: flex; width: max-content; animation: coverMarquee 38s linear infinite; }
.cover-marquee:hover .cover-track { animation-play-state: paused; }
.cover-cell { flex: 0 0 auto; width: 130px; padding-right: .7rem; }
.cover-cell .art { border-radius: 10px; border: 1px solid var(--line); }
@keyframes coverMarquee { to { transform: translateX(-50%); } }
@media (max-width: 720px) {
  .cover-float { gap: .6rem; }
  .float-center { flex-basis: 210px; }
  .float-side { flex-basis: 130px; }
  .cover-cell { width: 96px; }
  .cover-track { animation-duration: 30s; }
}
@media (prefers-reduced-motion: reduce) {
  .cover, .cover-title, .cover-stars span, .float-card, .cover-track { animation: none; }
}
