/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #1a1a1a;
  background: #eeeeee; /* darker neutral */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.4;
}

/* Decorative floating coins */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Yellow-tinted darkening over the background image */
  background:
    linear-gradient(0deg, rgba(255, 220, 90, 0.16), rgba(255, 220, 90, 0.16)),
    url("2.png") center/cover no-repeat fixed;
  opacity: 0.32; /* stronger presence */
  filter: brightness(1.12) contrast(1.08) saturate(1.08);
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6), transparent);
  backdrop-filter: blur(6px);
  z-index: 10;
  filter: url(#wobble);
}
.top-photo {
  margin-top: 74px; /* below fixed header */
  display: grid;
  place-items: center;
  padding: 10px 16px 0;
}

.top-banner {
  max-width: min(980px, 92vw);
  height: auto;
  border: 3px solid #111;
  border-radius: 14px;
  background: #fff7cc;
  box-shadow: 0 4px 0 #111, 0 10px 22px rgba(0,0,0,.12);
  filter: url(#wobble);
}


.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-name {
  font-weight: 800;
  letter-spacing: 1px;
  color: #111;
  font-size: clamp(20px, 2.8vw, 30px);
}
.brand-sub {
  font-size: 18px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #111;
  color: #ffd43b;
}

.social { display: flex; gap: 10px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  color: #111;
  background: #ffec99;
  border: 4px solid #111;
  box-shadow: 0 3px 0 #111, 0 10px 24px rgba(0,0,0,.14);
  transition: transform .15s ease, background .2s ease, color .2s ease;
  filter: url(#wobble);
}
.social-link svg { width: 36px; height: 36px; }
.social-link:hover { transform: translateY(-2px) scale(1.05); background: #111; color: #ffda3a; }
.social-link:active { transform: translateY(0) scale(.98); }

/* Hero */
.hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 120px 24px 64px;
}

.center { text-align: center; }
.ticker {
  display: inline-block;
  padding: 8px 16px;
  border: 3px solid #111;
  border-radius: 999px;
  background: rgba(255, 230, 92, 0.95);
  color: #111;
  font-weight: 800;
  font-size: clamp(24px, 6vw, 64px);
  letter-spacing: 1px;
  filter: url(#wobble);
  box-shadow: 0 3px 0 #111, 0 10px 24px rgba(0,0,0,.15);
}
.project-name {
  margin: 16px 0 8px;
  font-size: clamp(28px, 4.8vw, 56px);
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.contract { margin: 0; font-size: clamp(14px, 2vw, 18px); color: #2b2b2b; }
.contract .addr { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.hero-art, .hero-card, .hero-mouse { display: none; }

/* About card */
.about-card { display: none; }


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

/* Red seal: 福/鼠 */
.seal {
  position: absolute;
  top: -18px; left: -12px;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #d81e06;
  color: #fff9e6;
  font-weight: 800;
  display: grid; place-items: center;
  line-height: 1.05;
  text-align: center;
  border: 3px solid #8b0a02;
  box-shadow: 0 4px 0 rgba(0,0,0,.18);
  transform: rotate(-10deg);
}

/* Footer */
.footnote { text-align: center; padding: 24px; color: #4d4d4d; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
  .seal { left: 50%; transform: translateX(-180%) rotate(-10deg); }
}

/* Non-destructive white background knockout using blend/filters */
.no-bg {
  /* First try CSS blend to ignore white backgrounds over light card */
  mix-blend-mode: multiply;
}

/* As a fallback, nudge whites towards transparency via filter chain */
@supports not (mix-blend-mode: multiply) {
  .no-bg { filter: url(#remove-white); }
}

/* Audio stop button */
.audio-stop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 12px;
  border: 3px solid #111;
  background: #ffec99;
  color: #111;
  font-weight: 800;
  box-shadow: 0 3px 0 #111, 0 10px 24px rgba(0,0,0,.15);
  filter: url(#wobble);
  cursor: pointer;
}
.audio-stop:hover { transform: translateY(-2px); background: #111; color: #ffda3a; }
.audio-stop:active { transform: translateY(0); }

/* Contract address card */
.contract-card {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  border: 3px solid #111;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 0 #111, 0 10px 24px rgba(0,0,0,.12);
  filter: url(#wobble);
}
.contract-card .label {
  font-weight: 800;
  color: #111;
}
.contract-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(13px, 2vw, 16px);
  color: #1a1a1a;
}
.copy-btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 3px solid #111;
  background: #ffec99;
  color: #111;
  font-weight: 800;
  cursor: pointer;
}
.copy-btn:hover { transform: translateY(-1px); background: #111; color: #ffda3a; }
.copy-btn:active { transform: translateY(0); }

.project-desc {
  margin: 18px 0 0;
  max-width: 720px;
  color: #2c2c2c;
  font-size: clamp(14px, 2.2vw, 18px);
}


