/* 老板娘 BossLady — black & gold */
:root {
  --bg: #050505;
  --bg2: #0c0c0d;
  --panel: rgba(22, 20, 16, 0.62);
  --panel-solid: #131210;
  --line: rgba(240, 200, 90, 0.16);
  --line2: rgba(255, 255, 255, 0.07);
  --gold: #f3c33b;
  --gold2: #d4af37;
  --gold3: #a8801f;
  --gold-grad: linear-gradient(135deg, #fff1b0 0%, #f3c33b 35%, #d4af37 65%, #9c7419 100%);
  --text: #f5f2ea;
  --muted: #a49d8c;
  --dim: #6f695d;
  --ok: #3ddc97;
  --bad: #ff5d5d;
  --radius: 18px;
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* subtle gold glow field */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 60%, rgba(243, 195, 59, 0.06), transparent 60%);
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.mono { font-family: var(--mono); word-break: break-all; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.hide { display: none !important; }
.center { text-align: center; }

/* ───────── nav */
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.72); border-bottom: 1px solid var(--line2);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.brand small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--gold2); font-weight: 600; line-height: 1; }
.brand b { display: block; line-height: 1.15; font-size: 16px; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-links a.small { font-size: 12px; opacity: .7; }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ───────── buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: 12px;
  padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, filter .15s ease, opacity .15s; white-space: nowrap; text-decoration: none !important;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .42; cursor: not-allowed; filter: grayscale(.4); }
.btn-gold { background: var(--gold-grad); color: #1a1405; box-shadow: 0 8px 26px rgba(212, 175, 55, .28), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover:not([disabled]) { filter: brightness(1.07); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover:not([disabled]) { border-color: var(--gold2); color: var(--gold); }
.btn-danger { background: rgba(255,93,93,.1); color: var(--bad); border: 1px solid rgba(255,93,93,.35); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }

/* ───────── hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line2); }
.hero-bg {
  position: absolute; inset: 0; background: url("../assets/hero.jpg") center right / cover no-repeat; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.82) 38%, rgba(5,5,5,.35) 70%, rgba(5,5,5,.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 64px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: 3px; color: var(--gold2); font-weight: 700; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold2); }
.hero h1 {
  margin: 14px 0 0; font-size: clamp(56px, 10vw, 104px); line-height: 1; font-weight: 900; letter-spacing: 4px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(212,175,55,.25));
}
.hero .sub { font-size: clamp(20px, 3vw, 28px); letter-spacing: 8px; font-weight: 300; color: #e9dfc4; margin-top: 6px; }
.hero .tagline { margin: 22px 0 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--text); font-weight: 600; }
.hero .tagline .n888 { font-size: 1.5em; }
.hero p.lead { color: var(--muted); max-width: 520px; margin: 12px 0 0; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: #e8dcb8; background: rgba(0,0,0,.35); }

/* shimmering 888 */
.n888 {
  font-weight: 900; background: linear-gradient(110deg, #9c7419 0%, #f3c33b 30%, #fff6c9 45%, #f3c33b 60%, #9c7419 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 3.4s linear infinite; text-shadow: 0 0 24px rgba(243,195,59,.25);
}
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* ───────── glass card */
.glass {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.card { padding: 22px; }

/* ───────── mint card */
.mint-card { padding: 22px; }
.mc-head { display: flex; align-items: center; gap: 12px; }
.mc-head img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); }
.mc-head b { font-size: 18px; display: block; line-height: 1.2; }
.mc-head .muted { font-size: 12px; }
.pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--gold); white-space: nowrap; }
.pill.live { color: var(--ok); border-color: rgba(61,220,151,.4); }
.pill.warn { color: var(--bad); border-color: rgba(255,93,93,.4); }
.sep { height: 1px; background: var(--line2); margin: 16px 0; }

/* progress */
.prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prog-top .big { font-size: 28px; font-weight: 800; }
.prog-top .big small { font-size: 15px; color: var(--muted); font-weight: 600; }
.prog-top .pct { font-size: 18px; font-weight: 800; color: var(--gold); }
.bar { position: relative; height: 14px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin: 10px 0 8px; border: 1px solid var(--line2); }
.bar > i {
  position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, #9c7419, #f3c33b, #fff1b0, #f3c33b, #9c7419); background-size: 200% 100%;
  animation: flow 2.6s linear infinite; transition: width .9s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 18px rgba(243,195,59,.55);
}
@keyframes flow { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }
.prog-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); gap: 10px; flex-wrap: wrap; }
.prog-meta b { color: var(--text); }

/* units */
.units { display: flex; align-items: center; gap: 10px; }
.units button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: 20px; cursor: pointer; }
.units button:hover:not([disabled]) { border-color: var(--gold2); color: var(--gold); }
.units input { width: 70px; height: 42px; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); font: 700 18px var(--font); }
.quick { display: flex; gap: 6px; margin-left: auto; }
.quick button { width: auto; height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 14px; gap: 10px; }
.kv span:first-child { color: var(--muted); }
.kv b { font-weight: 700; }
.kv .gold-big { font-size: 20px; color: var(--gold); font-weight: 800; }
.label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: block; }
.stack { display: grid; gap: 10px; }
.note { font-size: 12.5px; color: var(--muted); }
.status-line { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line2); }
.status-line.ok { color: var(--ok); border-color: rgba(61,220,151,.3); }
.status-line.bad { color: var(--bad); border-color: rgba(255,93,93,.3); }
.status-line.warn { color: var(--gold); border-color: var(--line); }

/* ───────── sections */
section { padding: 76px 0; }
.sec-head { max-width: 720px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 8px; line-height: 1.2; font-weight: 800; }
.sec-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 20px; }
.stat .v { font-size: 30px; font-weight: 900; line-height: 1.1; }
.stat .v.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .k { font-size: 13px; color: var(--muted); margin-top: 6px; }
.feat { padding: 24px; position: relative; overflow: hidden; }
.feat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #1a1405; background: var(--gold-grad); margin-bottom: 14px; font-weight: 900; }
.feat .no { position: absolute; right: 18px; top: 14px; font-size: 12px; color: var(--dim); letter-spacing: 2px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.tax { padding: 22px; text-align: center; }
.tax .v { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }
.tax .t { font-weight: 700; margin-top: 10px; }
.tax p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* code / copy rows */
.copyrow { display: flex; gap: 8px; align-items: stretch; }
.copyrow code, .codebox {
  flex: 1; font-family: var(--mono); font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.45);
  border: 1px solid var(--line2); color: #f1e3b6; word-break: break-all; display: block; line-height: 1.5;
}
.codebox { white-space: pre-wrap; max-height: 260px; overflow: auto; }
.step { padding: 22px; }
.step .num { font-size: 13px; color: var(--gold); font-weight: 800; letter-spacing: 2px; }
.step h3 { margin: 6px 0 10px; font-size: 18px; }

/* tabs + ranking */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.tabs button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font); padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.tabs button.on { background: var(--gold-grad); color: #1a1405; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rank th, table.rank td { padding: 10px 8px; border-bottom: 1px solid var(--line2); text-align: left; }
table.rank th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.rank td.r { text-align: right; font-weight: 700; }
table.rank tr.me td { color: var(--gold); }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.06); }
.medal.m1 { background: var(--gold-grad); color: #1a1405; }
.medal.m2 { background: #cfd3d8; color: #222; }
.medal.m3 { background: #b67a43; color: #1b1007; }

/* rules / faq */
.rules ol { margin: 0; padding-left: 20px; }
.rules li { margin: 8px 0; color: #e6e0d1; }
.rules li b { color: var(--gold); }
details.faq { border-bottom: 1px solid var(--line2); padding: 14px 4px; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 10px 0 0; }
.warnbox { border: 1px solid rgba(255,93,93,.28); background: rgba(255,93,93,.06); border-radius: 14px; padding: 14px 16px; color: #f2c5c5; font-size: 13px; }

/* inputs */
input.txt, textarea.txt {
  width: 100%; background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  padding: 12px 14px; font: 14px var(--mono); outline: none;
}
input.txt:focus, textarea.txt:focus { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
textarea.txt { min-height: 200px; resize: vertical; line-height: 1.5; }

/* footer */
footer { border-top: 1px solid var(--line2); padding: 40px 0 60px; color: var(--muted); font-size: 13px; }
footer .wrap { display: grid; gap: 18px; }
.foot-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.foot-top img { width: 54px; height: 54px; border-radius: 50%; }

/* toasts */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: 8px; max-width: min(380px, calc(100% - 32px)); }
.toast { background: var(--panel-solid); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 11px 14px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .35s, transform .35s; }
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* logo placeholder fallback */
.logo-ph { display: grid; place-items: center; background: var(--gold-grad); color: #1a1405; font-weight: 900; border-radius: 50%; }

/* ───────── responsive (mobile first tweaks) */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 44px; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.9) 45%, var(--bg) 100%); }
  .hero-bg { background-position: 70% top; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .stat .v { font-size: 24px; }
  .card, .mint-card, .feat, .step { padding: 18px; }
  .brand small { display: none; }
  .nav .wrap { gap: 10px; }
  .copyrow { flex-direction: column; }
  .quick { display: none; }
  .tax .v { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .n888, .bar > i { animation: none; } }
