/* MAObape festive meme theme — red & gold. No external fonts (CSP: self only). */
:root {
  --red: #c8161d;
  --red-2: #e0281f;
  --red-deep: #8e0e0e;
  --red-ink: #5a0606;
  --gold: #ffd25a;
  --gold-2: #f5b82e;
  --gold-deep: #9a6200;
  --cream: #fff4da;
  --cream-2: #ffe8b8;
  --ink: #3a0a06;
  --ok: #1f8f4e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 0, 0, .35);
  --kai: "STKaiti", "KaiTi", "Kaiti SC", "BiauKai", "AR PL UKai CN", "Noto Serif SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--red);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='none' stroke='%23ffd25a' stroke-opacity='.13' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 70c0-14 12-24 25-20 3-12 20-16 28-6 10-6 24 2 22 14 12 0 18 14 8 22H24c-8-1-10-8-6-10z'/%3E%3Cpath d='M42 64c4-6 12-6 15 0'/%3E%3Cpath d='M70 58c5-5 13-3 14 4'/%3E%3Cpath d='M118 22c0-7 6-12 12-10 2-6 10-8 14-3 5-3 12 1 11 7 6 0 9 7 4 11h-34c-4 0-6-3-7-5z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1200px 700px at 50% -10%, #ff5a3c 0%, rgba(255, 90, 60, 0) 60%),
    radial-gradient(900px 600px at 100% 100%, #7d0a0a 0%, rgba(125, 10, 10, 0) 70%),
    linear-gradient(180deg, #d81e1e 0%, #c8161d 40%, #a90f14 100%);
}
a { color: var(--gold); }
img, svg { max-width: 100%; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- decorations ---------- */
.coin-rain { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.coin-rain svg { position: absolute; top: -60px; width: 28px; height: 28px; opacity: .55; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(115vh) rotate(540deg); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(120, 6, 6, .92), rgba(150, 10, 12, .82));
  backdrop-filter: blur(8px); border-bottom: 2px solid rgba(255, 210, 90, .45);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-coin { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font: 900 22px/1.1 var(--kai); color: var(--gold); letter-spacing: 2px; }
.brand-text small { font-size: 11px; opacity: .8; letter-spacing: 1px; }
.mainnav { display: flex; gap: 6px; margin-left: auto; }
.mainnav a { color: var(--cream); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.mainnav a:hover { background: rgba(255, 210, 90, .16); color: var(--gold); }
.account { display: flex; align-items: center; gap: 10px; }
.chip {
  font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 210, 90, .4); color: var(--cream-2);
}

/* ---------- buttons & form ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: 800 15px/1 var(--sans); letter-spacing: .5px;
  padding: 12px 18px; border-radius: 12px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-gold { color: var(--red-ink); background: linear-gradient(180deg, #ffe58a, var(--gold) 45%, var(--gold-2)); box-shadow: 0 4px 0 var(--gold-deep), 0 8px 18px rgba(60, 0, 0, .3); }
.btn-red { color: var(--gold); background: linear-gradient(180deg, #ef3a2c, var(--red) 60%, #a50f15); box-shadow: 0 4px 0 #6b0000, 0 8px 18px rgba(60, 0, 0, .3); }
.btn-ghost { color: var(--gold); background: rgba(0, 0, 0, .18); border: 2px solid rgba(255, 210, 90, .7); }
.btn-danger { color: #fff; background: #7a0000; border: 2px solid #ff8a7a; }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 10px; }
label { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: inherit; opacity: .95; }
input, select {
  width: 100%; font: 600 15px/1.2 var(--sans); padding: 11px 12px; border-radius: 10px; outline: none;
  border: 2px solid rgba(154, 98, 0, .45); background: #fffaf0; color: var(--ink);
}
input:focus, select:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(255, 210, 90, .45); }

/* ---------- HERO v0.12: video left-top, project copy left-bottom, large coin right ---------- */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5.6vw, 72px); align-items: center;
  padding: 38px 0 52px;
}
.hero-left { min-width: 0; display: flex; flex-direction: column; gap: 25px; }
.hero-copy { text-align: left; min-width: 0; }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 900; letter-spacing: 3px; color: var(--gold); }
.hero h1 { margin: 0; display: grid; justify-items: start; line-height: 1.08; }
.h1-cn {
  font: 900 clamp(49px, 5.4vw, 80px)/1 var(--kai); letter-spacing: 5px;
  color: var(--gold); text-shadow: 0 4px 0 var(--red-ink), 0 8px 0 rgba(0, 0, 0, .18), 0 0 40px rgba(255, 210, 90, .35);
  -webkit-text-stroke: 1px #fff1b8;
}
.h1-en { font-size: clamp(24px, 2.7vw, 31px); font-weight: 900; color: var(--cream); margin-top: 10px; }
.h1-en em { font-style: normal; color: var(--gold); }
.hero-lead { max-width: 38em; margin: 20px 0 0; font-size: clamp(14px, 1.38vw, 17px); line-height: 1.85; color: var(--cream); text-wrap: pretty; }
.hero-lead strong { color: var(--gold); font-weight: 900; }
.hero-mint-rule { margin-top: 10px; }
.hero-media { width: 100%; min-width: 0; }
.hero-video-frame {
  padding: 6px; border-radius: 18px; border: 2px solid rgba(255, 210, 90, .85);
  background: linear-gradient(130deg, #ffe68b, #bd7814 42%, #ffe68b 80%, #ae6d08);
  box-shadow: 0 14px 42px rgba(56, 0, 0, .46), 0 0 28px rgba(255, 210, 90, .12);
  overflow: hidden;
}
.hero-video-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 10px; background: #000; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.hero-video-start {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px;
  background: #000; color: #fff; cursor: pointer; border: 0;
  font: 700 14px/1.45 var(--sans); text-align: center;
}
.hero-video-start[hidden] { display: none; }
.hero-video-start:hover .hero-play-circle, .hero-video-start:focus-visible .hero-play-circle { transform: scale(1.08); box-shadow: 0 0 24px rgba(255,210,90,.42); }
.hero-video-start:focus-visible { outline: 3px solid #ffd25a; outline-offset: -6px; }
.hero-play-circle { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(255,210,90,.9); background: rgba(255,210,90,.12); transition: transform .2s, box-shadow .2s; }
.hero-play-triangle { width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid var(--gold); margin-left: 5px; }
.hero-video-start-title { font-size: 14px; color: var(--cream); letter-spacing: .5px; }
.hero-video-start-sub { font-size: 11px; color: #bfbfbf; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 17px; }
.banner { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-top: 18px; }
.banner strong { font-weight: 900; }
.banner-preview { background: rgba(0, 0, 0, .25); border: 1px dashed rgba(255, 210, 90, .7); color: var(--cream-2); }
.banner-preview strong { color: var(--gold); }
.banner-live { background: rgba(31, 143, 78, .25); border: 1px solid #7be3a6; color: #eafff2; }
.banner-live strong { color: #9cf5c0; }
.banner-test { background: rgba(255, 210, 90, .18); border: 1px solid var(--gold); color: var(--cream); }
.banner-test strong { color: var(--gold); }
.hero-coin { position: relative; min-width: 0; display: grid; justify-items: center; align-content: center; perspective: 900px; }
.coin-glow { position: absolute; inset: 8% 3% 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 110, .75), rgba(255, 160, 40, 0) 65%); filter: blur(12px); animation: pulse 3.2s ease-in-out infinite; }
.coin-spin { position: relative; width: min(100%, 400px); aspect-ratio: 1; animation: coinflip 7s ease-in-out infinite; filter: drop-shadow(0 12px 17px rgba(60, 0, 0, .5)); }
.coin-spin svg { width: 100%; height: 100%; display: block; }
.coin-plinth { position: relative; margin-top: 18px; padding: 8px 19px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 210, 90, .6); color: var(--gold); font-weight: 900; font-size: 15px; letter-spacing: .6px; white-space: nowrap; }
@keyframes coinflip {
  0%, 62% { transform: translateY(0) rotateY(0deg); }
  31% { transform: translateY(-8px) rotateY(0deg); }
  80% { transform: translateY(-6px) rotateY(180deg); }
  100% { transform: translateY(0) rotateY(360deg); }
}
@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- mint progress bar ---------- */
.mintbar {
  position: relative; z-index: 1; margin-top: 10px; padding: 20px 22px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(90, 6, 6, .55), rgba(60, 4, 4, .55)); border: 2px solid rgba(255, 210, 90, .5); box-shadow: var(--shadow);
}
.mintbar-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mintbar-head .label, .price-now .label { display: block; font-size: 12px; letter-spacing: 1px; opacity: .85; }
.mintbar-head strong { font-size: 20px; color: var(--gold); font-variant-numeric: tabular-nums; }
.track { position: relative; height: 18px; margin: 18px 0 58px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 210, 90, .45); }
.track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffe58a, var(--gold) 50%, #ff9b2f); box-shadow: 0 0 16px rgba(255, 210, 90, .7); transition: width .8s ease; }
.track-mark { position: absolute; top: 22px; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--cream-2); text-align: center; line-height: 1.2; white-space: nowrap; }
.track-mark::before { content: ""; position: absolute; left: 50%; top: -26px; width: 2px; height: 22px; background: var(--gold); }
.track-mark small { font-weight: 600; opacity: .8; }
.m10k { left: 10%; } .m50k { left: 50%; } .m100k { left: 100%; transform: translateX(-100%); text-align: right; }
.m100k::before { left: auto; right: 0; }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: 64px 0 10px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { margin: 0; font: 900 clamp(40px, 6vw, 58px)/1.1 var(--kai); color: var(--gold); letter-spacing: 4px; text-shadow: 0 3px 0 var(--red-ink); }
.section-head .sub { margin: 8px auto 0; max-width: 46em; color: var(--cream-2); }
.fine { font-size: 12.5px; opacity: .85; margin: 10px 0 0; }

/* ---------- milestone tracker ---------- */
.tracker { display: grid; grid-template-columns: 330px 1fr; gap: 22px; align-items: stretch; }
.price-now {
  position: relative; padding: 24px; border-radius: 22px; color: var(--ink);
  background: radial-gradient(circle at 30% 0%, #fff7d6, var(--gold) 55%, var(--gold-2));
  border: 3px solid #fff1b8; box-shadow: 0 0 0 4px var(--gold-deep), var(--shadow);
}
.price-now .label { color: var(--red-deep); font-weight: 900; font-size: 14px; }
.price-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.price-big strong { font: 900 64px/1 var(--sans); color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.price-big span { font-weight: 800; color: var(--red-deep); }
.price-state { display: inline-block; margin: 6px 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--red); color: var(--gold); font-weight: 800; font-size: 13px; }
.price-state.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 8px #7dffb0; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.price-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.price-facts div { background: rgba(255, 255, 255, .45); border-radius: 12px; padding: 8px 10px; }
.price-facts dt { font-size: 11.5px; font-weight: 800; color: var(--red-deep); }
.price-facts dd { margin: 0; font-weight: 900; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-now .fine { color: var(--red-ink); }

.journey { display: grid; grid-template-columns: minmax(70px, .55fr) 1fr minmax(70px, .55fr) 1fr; align-items: center; gap: 0; }
.arrow { position: relative; height: 70px; display: flex; align-items: center; padding-right: 22px; }
.arrow-line { position: relative; width: 100%; height: 12px; border-radius: 999px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 210, 90, .55) 0 14px, rgba(255, 210, 90, 0) 14px 24px); background-size: 48px 100%; animation: flow 1.1s linear infinite; }
.arrow-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #fff1a8, var(--gold), #ff9b2f); box-shadow: 0 0 12px var(--gold); border-radius: 999px; transition: width 1s ease; }
.arrow-head { position: absolute; right: 2px; top: 50%; width: 0; height: 0; transform: translateY(-50%);
  border-top: 18px solid transparent; border-bottom: 18px solid transparent; border-left: 26px solid var(--gold); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.arrow-tag { position: absolute; left: 50%; top: 2px; transform: translateX(-60%); font-weight: 900; font-size: 13px; color: var(--gold); white-space: nowrap; }
.arrow-dim .arrow-line { opacity: .55; }
.arrow-dim .arrow-head { border-left-color: rgba(255, 210, 90, .55); }
@keyframes flow { to { background-position: 48px 0; } }

.ms-card {
  position: relative; text-align: center; padding: 18px 14px 16px; border-radius: 22px; color: var(--ink);
  background: linear-gradient(180deg, var(--cream), var(--cream-2)); border: 3px solid var(--gold); box-shadow: var(--shadow);
}
.ms-next { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(255, 210, 90, .35), 0 0 36px rgba(255, 210, 90, .45), var(--shadow); }
.ms-next2 { filter: saturate(.85); }
.ms-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; font-weight: 900; font-size: 13px; background: var(--red); color: var(--gold); border: 2px solid var(--gold); white-space: nowrap; }
.ms-badge-dim { background: var(--red-deep); }
.ms-badge.lit { background: var(--ok); color: #fff; }
.ms-art { width: min(150px, 80%); margin: 6px auto 4px; aspect-ratio: 1; }
.ms-art svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(90, 0, 0, .35)); }
.ms-next .ms-art svg { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.ms-target { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--red-deep); }
.ms-target strong { font-size: 26px; color: var(--red); font-variant-numeric: tabular-nums; }
.ms-card h3 { margin: 4px 0 2px; font: 900 24px/1.2 var(--kai); color: var(--red); }
.ms-desc { margin: 0; font-size: 13.5px; color: #6b2a10; }

.roadmap { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: ms; }
.roadmap li { position: relative; padding: 14px 12px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 210, 90, .4); }
.roadmap li.lit { background: rgba(255, 210, 90, .22); border-color: var(--gold); }
.roadmap li.next { border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(255, 210, 90, .4); }
.roadmap .rm-top { display: flex; align-items: center; gap: 8px; }
.roadmap svg { width: 38px; height: 38px; flex: none; }
.roadmap b { color: var(--gold); font-size: 18px; font-variant-numeric: tabular-nums; }
.roadmap small { display: block; opacity: .8; font-size: 11px; }
.roadmap p { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
.roadmap .rm-status { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 900; color: var(--gold); }
.ship-note { margin: 18px auto 0; text-align: center; color: var(--cream-2); font-weight: 700; max-width: 52em; }

/* ---------- mint cards ---------- */
.mint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.card { position: relative; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0; font: 900 24px/1.2 var(--kai); }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.card-head p { margin: 0; font-size: 13px; font-weight: 700; opacity: .85; }
.card-head-inline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.step { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 900 22px/1 var(--kai);
  background: radial-gradient(circle at 35% 30%, #fff6c8, var(--gold) 55%, var(--gold-2)); color: var(--red); border: 2px solid var(--gold-deep); }
.note { margin: 8px 0 0; font-size: 14px; }
.card-red { background: linear-gradient(180deg, #a40f12, #7f0b0b); border: 2px solid rgba(255, 210, 90, .6); }
.card-red h3 { color: var(--gold); }
.card-gold { color: var(--ink); background: radial-gradient(circle at 30% 0%, #fff7d6, var(--gold) 60%, var(--gold-2)); border: 3px solid #fff1b8; box-shadow: 0 0 0 3px var(--gold-deep), var(--shadow); }
.card-gold h3 { color: var(--red); }
.card-gold .step { background: var(--red); color: var(--gold); border-color: #6b0000; }
.card-gold .btn-ghost { color: var(--red-deep); border-color: var(--red-deep); background: rgba(255, 255, 255, .3); }
.card-cream { color: var(--ink); background: linear-gradient(180deg, var(--cream), var(--cream-2)); border: 2px solid var(--gold); }
.card-cream h3 { color: var(--red); font-size: 21px; }
.card-cream a, .application a { color: var(--red); font-weight: 700; }
.card-cream .btn-ghost { color: var(--red); border-color: var(--red); background: rgba(255, 255, 255, .5); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.tiers div { background: rgba(255, 255, 255, .45); border-radius: 12px; padding: 10px; text-align: center; }
.tiers strong { display: block; font-size: 22px; color: var(--red); }
.tiers span { font-size: 12px; font-weight: 700; }
.quote { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .5); font-weight: 800; }
.quote strong { color: var(--red); font-size: 18px; }
.codebox { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px dashed var(--gold); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.codebox span { font-size: 12px; opacity: .85; }
.codebox strong { font: 900 18px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--gold); letter-spacing: 1px; }
.claim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.claim-row .btn { margin-top: 12px; }
.claim-wide { grid-column: 1 / -1; }
.agent-panel { margin-bottom: 18px; }
.agent-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.agent-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; cursor: pointer; min-width: 240px;
  background: rgba(255, 255, 255, .6); border: 2px solid rgba(154, 98, 0, .35); color: var(--ink); font: inherit; text-align: left; }
.agent-card[aria-checked="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 22, 29, .18); background: #fff; }
.agent-card .agent-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900;
  background: radial-gradient(circle at 35% 30%, #fff6c8, var(--gold) 55%, var(--gold-2)); color: var(--red); }
.agent-card b { display: block; font-size: 16px; color: var(--red); }
.agent-card small { display: block; font-size: 12px; opacity: .85; }
.agent-card.disabled { opacity: .55; }
.manual-agent { margin-top: 10px; font-size: 13px; }
.manual-agent summary { cursor: pointer; color: var(--red-deep); font-weight: 700; }
.using-agent { margin: 12px 0 0; font-size: 14px; }
.using-agent b { color: var(--gold); }
.card-gold .using-agent b { color: var(--red); }
.price-facts .span2 { grid-column: 1 / -1; }
.applist { margin-top: 10px; display: grid; gap: 8px; }
.application { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(154, 98, 0, .35); color: var(--ink); overflow-wrap: anywhere; }
.application p { margin: 4px 0 0; font-size: 13px; }
.application .line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.application .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.empty { margin: 0; opacity: .75; font-size: 14px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 12px; }
.admin-toolbar label.inline { margin: 0; min-width: 180px; }
.application .pick { width: 20px; height: 20px; margin-right: 6px; accent-color: var(--red); }
.application .line { align-items: center; }
.rec { font-weight: 800; }
.rec-ok { color: var(--ok); } .rec-bad { color: #b00000; } .rec-warn { color: #9a5b00; }
.rec-reason { margin: 2px 0 0 4px; font-size: 13px; color: #5a2a10; }
.post-text { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--gold-2); background: rgba(255, 255, 255, .6); border-radius: 0 10px 10px 0; font-size: 13.5px; white-space: pre-wrap; }

/* ---------- tokenomics ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { padding: 18px; border-radius: 16px; text-align: center; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 210, 90, .5); }
.fact b { display: block; font-size: 28px; color: var(--gold); font-variant-numeric: tabular-nums; }
.fact span { font-size: 13.5px; color: var(--cream-2); }
.disclose { margin-top: 18px; padding: 20px 24px; border-radius: 16px; color: var(--ink); background: var(--cream); border: 2px solid var(--gold); }
.disclose h3 { margin: 0 0 6px; color: var(--red); font: 900 22px/1.2 var(--kai); }
.disclose ul { margin: 0; padding-left: 20px; }
.disclose li { margin: 6px 0; }
.disclose b { color: var(--red); }

.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 210, 90, .45); border-radius: 14px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 900; color: var(--gold); }
.faq p { margin: 8px 0 0; color: var(--cream-2); }

/* ---------- footer & toast ---------- */
.footer { position: relative; z-index: 1; margin-top: 60px; padding: 24px 0 90px; background: rgba(60, 0, 0, .45); border-top: 2px solid rgba(255, 210, 90, .45); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; font-size: 13px; color: var(--cream-2); }
.footer-admin { color: var(--cream-2); opacity: .7; }
.toast {
  position: fixed; left: 50%; bottom: 18px; z-index: 50; transform: translate(-50%, 160%); visibility: hidden; opacity: 0; max-width: min(720px, calc(100% - 30px));
  padding: 12px 18px; border-radius: 14px; background: #2b0606; color: var(--cream); border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-weight: 700; overflow-wrap: anywhere; transition: transform .25s ease, opacity .25s ease, visibility .25s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; opacity: 1; }
.toast.error { border-color: #ff8a7a; background: #4a0000; }

/* ---------- admin page ---------- */
.admin-main { position: relative; z-index: 1; padding: 30px 0 40px; display: grid; gap: 18px; }
.admin-main .card-cream h2, .admin-main .card-red h2 { margin: 0 0 6px; font: 900 26px/1.2 var(--kai); }
.admin-main .card-cream h2 { color: var(--red); }
.admin-main .card-red h2 { color: var(--gold); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tag { font-size: 12px; letter-spacing: 2px; font-weight: 900; opacity: .8; margin: 0 0 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 13px; }
.kv dt { font-weight: 800; }
.kv dd { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .tracker { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .mint-grid { grid-template-columns: 1fr 1fr; }
  .mint-grid .card-gold { grid-column: span 2; }
}
@media (max-width: 760px) {
  .mainnav { display: none; }
  .account .chip { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; padding-top: 22px; gap: 28px; }
  .hero-left { gap: 20px; }
  .hero-copy { text-align: left; }
  .hero h1 { justify-items: start; }
  .h1-cn { font-size: clamp(48px, 12.8vw, 67px); }
  .h1-en { font-size: clamp(21px, 6vw, 29px); }
  .hero-lead { font-size: 15px; line-height: 1.8; }
  .hero-coin { max-width: 390px; width: 100%; margin: 0 auto; }
  .coin-spin { width: min(82%, 320px); }
  .coin-plinth { font-size: 13px; }
  .hero-video-frame { border-radius: 14px; padding: 4px; }
  .hero-video-stage { border-radius: 8px; }
  .hero-cta { gap: 12px; }
  .mintbar-head { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr; gap: 6px; }
  .arrow { height: 64px; width: 40px; margin: 0 auto; padding: 0 0 18px; flex-direction: column; justify-content: center; }
  .arrow-line { width: 12px; height: 100%; background: repeating-linear-gradient(180deg, rgba(255, 210, 90, .55) 0 10px, rgba(255, 210, 90, 0) 10px 18px); animation: none; }
  .arrow-fill { inset: 0 0 auto 0; width: 100% !important; height: var(--fill, 0%); }
  .arrow-head { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 20px solid var(--gold); border-bottom: 0; }
  .arrow-dim .arrow-head { border-top-color: rgba(255, 210, 90, .55); border-left-color: transparent; }
  .arrow-tag { left: 34px; top: 18px; transform: none; }
  .ms-next { transform: none; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .mint-grid, .claim-row, .admin-grid { grid-template-columns: 1fr; }
  .mint-grid .card-gold { grid-column: auto; }
  .price-big strong { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .coin-rain { display: none; }
}

@media (min-width: 761px) and (max-width: 950px) {
  .hero { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 20px; }
  .coin-plinth { font-size: 12px; padding-inline: 11px; }
  .hero-lead { font-size: 14px; }
}

/* v0.14: single-page navigation + mutually exclusive free Mint stage cards */
#mint, #milestones, #howto, #faq { scroll-margin-top: 88px; }
.mint-stage-status {
  display:flex; gap:14px; align-items:center; padding:14px 18px; margin:0 0 20px;
  background:rgba(67, 0, 0, .65); color:var(--cream); border:1.5px solid rgba(255,210,90,.65); border-radius:16px;
}
.mint-stage-status > div { flex:1; }
.mint-stage-status b { color:var(--gold); font-size:17px; }
.mint-stage-status p { margin:3px 0 0; font-size:13px; color:var(--cream-2); }
.stage-pulse { width:10px; height:10px; border-radius:50%; background:var(--gold); box-shadow:0 0 12px rgba(255,210,90,.85); flex-shrink:0; }
.stage-current-tag { border:1px solid var(--gold); padding:5px 10px; border-radius:999px; color:var(--gold); font-weight:800; font-size:12px; white-space:nowrap; }
.mint-phase-card { position:relative; transition:filter .25s, opacity .25s, border-color .25s; }
.mint-phase-chip { align-self:flex-start; display:inline-flex; border:1px solid rgba(255,210,90,.7); background:rgba(0,0,0,.2); border-radius:30px; padding:4px 10px; font-size:11px; font-weight:800; color:var(--gold); margin-bottom:12px; }
.mint-phase-card.is-inactive { filter:grayscale(1); opacity:.47; background:#605a57; border-color:#999; }
.mint-phase-card.is-inactive .mint-phase-chip { color:#eee; border-color:#aaa; }
.mint-phase-card.is-inactive button, .mint-phase-card.is-inactive input, .mint-phase-card.is-inactive select { cursor:not-allowed; }
.mint-phase-card.is-inactive .btn { box-shadow:none; }
.mint-phase-card.is-active { border-color:#ffdf65; box-shadow:0 0 0 2px rgba(255,210,90,.32),var(--shadow); }
.milestone-explainer { margin:22px 0 28px; border:2px solid rgba(255,210,90,.72); border-radius:20px; background:rgba(86,7,7,.68); padding:24px 28px; }
.milestone-explainer h3 { margin:0 0 12px; color:var(--gold); font-size:23px; }
.milestone-explainer p { margin:10px 0 0; line-height:1.85; color:var(--cream); font-size:15px; }
.milestone-explainer b { color:var(--gold); }
@media(min-width:1080px){ .hero { grid-template-columns:minmax(0, 1.28fr) minmax(0,.72fr); gap:28px; } .hero-copy{ padding-left:12px; } .hero-lead{ max-width:unset; font-size:14px; line-height:1.68; } }
@media(max-width:760px){ .mint-stage-status{gap:8px;padding:12px;} .stage-current-tag{font-size:10px;padding:4px 7px;} .milestone-explainer{padding:18px;} }

/* v0.15 social post flow, desktop-first */
.social-post-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
.social-post-actions .btn { font-size:12px; padding:11px 8px; min-height:40px; }
@media (max-width:1100px) { .social-post-actions { grid-template-columns:1fr; } }

/* Small phones (≤400 px): keep everything inside the viewport. */
@media (max-width: 400px) {
  .facts { gap: 10px; }
  .fact { padding: 14px 8px; min-width: 0; }
  .fact b { font-size: 21px; overflow-wrap: anywhere; }
  .fact span { font-size: 12.5px; }
  .card, .price-now, .ms-card { padding-left: 16px; padding-right: 16px; }
  .btn-lg { padding: 13px 18px; font-size: 16px; }
  .topbar-inner { gap: 10px; }
  .brand { min-width: 0; }
  .brand-coin { width: 38px; height: 38px; }
  .brand-text small { font-size: 10px; letter-spacing: 0; white-space: nowrap; }
  #connectButton { white-space: nowrap; padding: 10px 14px; font-size: 15px; flex-shrink: 0; }
}

/* founder console: start the Mint (second click required) */
.confirm-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 2px dashed #ffd654; }
.confirm-box p { margin: 0 0 8px; color: var(--gold); font-size: 17px; }
.confirm-box ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
.confirm-box[hidden], .start-mint [hidden] { display: none; }

/* language switch (web/i18n.js) */
html.i18n-pending body { visibility: hidden; }
.lang-toggle { min-width: 48px; padding: 7px 10px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.brand { min-width: 0; }
.topbar #connectButton { white-space: nowrap; flex-shrink: 0; }
.brand-coin { flex-shrink: 0; }
.brand-text { min-width: 0; }
.brand-text strong, .brand-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) {
  .account { gap: 6px; }
  .lang-toggle { min-width: 40px; padding: 7px 8px; font-size: 13px; }
  html[lang="en"] .brand-text strong { font-size: 18px; letter-spacing: 0; }
  html[lang="en"] #connectButton { padding: 9px 11px; font-size: 14px; }
}
@media (max-width: 370px) {
  .topbar .brand-text small { display: none; }
  .topbar .brand-coin { width: 34px; height: 34px; }
}
@media (min-width: 761px) { .topbar .brand { flex-shrink: 0; } }
/* with the language button added, the network chip is hidden on tablets so the header fits */
@media (max-width: 1100px) { .account .chip { display: none; } }
@media (min-width: 761px) and (max-width: 1020px) { html[lang="en"] .mainnav a { padding: 6px 8px; } }
@media (min-width: 761px) and (max-width: 900px) { .topbar-inner { gap: 12px; } .mainnav a, html[lang="en"] .mainnav a { padding: 6px 6px; font-size: 14px; } }
/* English header on phones: "Connect wallet" is wider than 连接钱包, so the brand text gets smaller / hides */
@media (max-width: 480px) { html[lang="en"] .topbar .brand-text small { display: none; } html[lang="en"] .topbar .brand-text strong { font-size: 18px; letter-spacing: 0; } }
@media (max-width: 365px) { html[lang="en"] .topbar .brand-text { display: none; } }
@media (max-width: 440px) { .topbar .brand-text small { font-size: 10px; letter-spacing: 0; } }
/* English mode: Latin letters use a bold sans (Kai fonts have no Latin glyphs, which fell back to serif);
   Chinese characters such as the big 毛巴佩币 title still render in Kai. */
html[lang="en"] { --kai: "Arial Black", "Helvetica Neue", Arial, "STKaiti", "KaiTi", "Kaiti SC", "BiauKai", "AR PL UKai CN", "Noto Serif SC", sans-serif; }
html[lang="en"] .section-head h2 { letter-spacing: 0; }
html[lang="en"] .h1-cn { font-family: "STKaiti", "KaiTi", "Kaiti SC", "BiauKai", "AR PL UKai CN", "Noto Serif SC", "Songti SC", serif; }
