/* ============================================================================
   来福  ·  folk-comic lantern alley
   A woodblock-print / manhua spread — not a card-grid landing page.
   ============================================================================ */

:root {
  --ink: #1a1208;
  --ink-soft: #3a2a18;
  --paper: #f3e4c4;
  --paper-deep: #e8d4a8;
  --cream: #faf1dc;
  --orange: #e85d04;
  --orange-hot: #ff7a18;
  --lantern: #ffb347;
  --gold: #f4c430;
  --night: #132038;
  --night-deep: #0b1524;
  --seal: #c41e3a;
  --wood: #6b3a1f;
  --wood-dark: #3d2112;
  --stroke: 3px solid var(--ink);
  --shadow-ink: 6px 8px 0 var(--ink);
  --font-brush: "Ma Shan Zheng", "KaiTi", serif;
  --font-comic: "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 179, 71, 0.18), transparent 55%),
    #0d1828;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- grain + paper wash over the whole alley ---- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================================
   NORIEN  ·  hanging shop-curtain nav (not a sticky glass bar)
   ============================================================================ */
.noren {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 0 28px;
  height: 86px;
  background:
    linear-gradient(180deg, rgba(61, 33, 18, 0.92) 0%, rgba(61, 33, 18, 0.78) 70%, transparent 100%);
}

.noren::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -10px;
  height: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      #c41e3a 0 42px,
      #f3e4c4 42px 46px,
      #1a1208 46px 90px,
      #f3e4c4 90px 94px
    );
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
  opacity: 0.95;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  color: var(--cream);
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--ink), 3px 4px 0 var(--ink);
  background: var(--paper);
}

.brand-name {
  font-family: var(--font-brush);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand-tick {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  opacity: 0.7;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.nav a {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav a:hover {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-2deg);
}

.noren-cta {
  z-index: 1;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-comic);
  font-size: 1.05rem;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(1.5deg);
  transition: transform 0.15s, box-shadow 0.15s;
}

.noren-cta:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.menu-btn {
  display: none;
  z-index: 1;
  width: 46px;
  height: 46px;
  border: 3px solid var(--gold);
  color: var(--gold);
  font-size: 1.4rem;
}

/* ============================================================================
   HERO  ·  cinematic splash page  (1.png — never banner.png)
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(11, 21, 36, 0.78) 0%, rgba(11, 21, 36, 0.35) 46%, rgba(11, 21, 36, 0.15) 100%),
    url("1.png") center 42% / cover no-repeat;
}

.hero-speed {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg at 72% 48%,
    transparent 0 8deg,
    rgba(255, 243, 210, 0.04) 8deg 9deg
  );
  mix-blend-mode: screen;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 24px;
  padding: 130px 7vw 90px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.chapter-chip {
  display: inline-block;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  padding: 6px 14px 6px 16px;
  transform: rotate(-2deg);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-brush);
  font-size: clamp(5.4rem, 14vw, 11rem);
  line-height: 0.82;
  color: #fff8e7;
  text-shadow:
    4px 5px 0 var(--ink),
    0 0 40px rgba(232, 93, 4, 0.45);
  letter-spacing: 0.06em;
}

.hero-title em {
  font-style: normal;
  display: block;
  font-size: 0.28em;
  letter-spacing: 0.42em;
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0.8;
  margin-top: 8px;
  text-shadow: none;
}

.hero-bio {
  max-width: 34rem;
  margin: 22px 0 28px;
  color: #f6e7c4;
  font-size: 1.08rem;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.bubble-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff8e7;
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 14px 22px 16px;
  font-family: var(--font-comic);
  font-size: 1.2rem;
  box-shadow: var(--shadow-ink);
  border-radius: 22px 28px 28px 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.bubble-btn i { font-size: 1.25rem; }

.bubble-btn:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 9px 11px 0 var(--ink);
}

.bubble-btn.buy {
  background: var(--orange-hot);
  color: #fff;
}

.bubble-btn.chart {
  background: var(--night);
  color: var(--gold);
}

.bubble-btn.x {
  background: #fff;
}

.hero-stamp {
  justify-self: end;
  align-self: center;
  position: relative;
  width: min(340px, 38vw);
}

.stamp-burst {
  position: absolute;
  inset: -18%;
  background: repeating-conic-gradient(
    from 8deg,
    var(--gold) 0 6deg,
    transparent 6deg 18deg
  );
  opacity: 0.55;
  animation: spin-slow 28s linear infinite;
  clip-path: circle(50% at 50% 50%);
}

.stamp-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #fff8e7;
  box-shadow:
    0 0 0 6px var(--ink),
    12px 16px 0 var(--ink);
  object-fit: cover;
  transform: rotate(4deg);
  background: var(--paper);
}

.stamp-seal {
  position: absolute;
  right: -8px;
  bottom: 18px;
  width: 78px;
  height: 78px;
  background: var(--seal);
  color: var(--gold);
  font-family: var(--font-brush);
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(12deg);
  letter-spacing: 0.1em;
}

.sfx {
  position: absolute;
  font-family: var(--font-comic);
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
  letter-spacing: 0.08em;
}

.sfx-fu { top: 22%; right: 8%; font-size: clamp(2rem, 5vw, 4rem); transform: rotate(12deg); }
.sfx-lai { bottom: 18%; left: 42%; font-size: clamp(1.6rem, 3vw, 2.6rem); transform: rotate(-8deg); color: #fff; }

.torn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 64px;
  z-index: 3;
  background: var(--paper);
  clip-path: polygon(
    0 42%, 4% 70%, 8% 38%, 13% 78%, 18% 44%, 24% 82%, 31% 40%,
    38% 74%, 46% 36%, 54% 80%, 62% 42%, 70% 76%, 78% 38%, 86% 72%,
    93% 40%, 100% 68%, 100% 100%, 0 100%
  );
}

/* ============================================================================
   ABOUT  ·  hanging woodblock scroll over banner.png
   ============================================================================ */
.about {
  position: relative;
  min-height: 100vh;
  padding: 90px 6vw 110px;
  background:
    linear-gradient(90deg, rgba(243, 228, 196, 0.22) 0%, rgba(19, 32, 56, 0.55) 100%),
    url("banner.png") center / cover no-repeat;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 80px,
      rgba(26, 18, 8, 0.04) 80px 81px
    );
  pointer-events: none;
}

.about-stage {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  perspective: 1400px;
}

.scroll {
  width: min(560px, 100%);
  transform: rotateY(-11deg) rotateZ(-1.2deg);
  transform-origin: left center;
  background:
    linear-gradient(180deg, #f7ead0 0%, #efe0c0 50%, #e6d3a8 100%);
  border-left: 18px solid var(--wood);
  border-right: 18px solid var(--wood);
  box-shadow:
    18px 22px 0 rgba(26, 18, 8, 0.35),
    0 30px 60px rgba(11, 21, 36, 0.35);
  padding: 42px 36px 48px;
}

.scroll::before,
.scroll::after {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  height: 22px;
  background: linear-gradient(90deg, #2a160c, #7a4524 20%, #c48a4a 50%, #7a4524 80%, #2a160c);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

.scroll::before { top: -14px; border-radius: 12px 12px 4px 4px; }
.scroll::after  { bottom: -14px; border-radius: 4px 4px 12px 12px; }

.scroll { position: relative; }

.caption {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  padding: 5px 12px;
  transform: rotate(-1.5deg);
  margin-bottom: 14px;
}

.scroll h2 {
  font-family: var(--font-brush);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 16px;
}

.scroll p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.fact {
  border: 2px dashed var(--ink);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.35);
}

.fact b {
  display: block;
  font-family: var(--font-comic);
  font-size: 1.15rem;
}

.fact span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

/* ============================================================================
   HOW TO BUY  ·  4-koma photographed on a table (perspective)
   ============================================================================ */
.howto {
  position: relative;
  padding: 100px 6vw 120px;
  background:
    linear-gradient(180deg, rgba(243, 228, 196, 0.92), rgba(250, 241, 220, 0.88)),
    url("logo.png") 108% 120% / 46% no-repeat;
  background-color: var(--paper);
}

.howto-head {
  max-width: 1180px;
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.howto-head h2 {
  font-family: var(--font-brush);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 0.9;
}

.howto-head p {
  max-width: 28rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.koma-page {
  max-width: 1180px;
  margin: 0 auto;
  perspective: 1600px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.koma {
  background: var(--cream);
  border: 4px solid var(--ink);
  min-height: 240px;
  padding: 28px 26px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 10px 0 rgba(26, 18, 8, 0.18);
}

.koma-1 { transform: rotateY(7deg) rotateZ(-1.1deg); }
.koma-2 { transform: rotateY(-9deg) rotateZ(1.4deg); background: #fff4d8; }
.koma-3 { transform: rotateX(5deg) rotateZ(-0.6deg); background: #ffe7c2; }
.koma-4 { transform: rotateY(6deg) rotateX(-4deg); }

.koma-num {
  font-family: var(--font-comic);
  font-size: 3.2rem;
  color: var(--orange);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--ink);
}

.koma h3 {
  font-family: var(--font-comic);
  font-size: 1.45rem;
  margin: 8px 0 10px;
}

.koma p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.98rem;
}

.koma i.big {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 4.4rem;
  color: var(--ink);
  opacity: 0.08;
}

.koma .ink-blob {
  position: absolute;
  width: 90px;
  height: 70px;
  background: var(--orange);
  opacity: 0.12;
  border-radius: 60% 40% 50% 50%;
  top: -18px;
  right: 30px;
  transform: rotate(20deg);
}

.ca-plaque {
  max-width: 1180px;
  margin: 48px auto 0;
  background: var(--wood-dark);
  color: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 10px 12px 0 var(--ink);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  transform: rotate(-0.6deg);
}

.ca-plaque .label {
  font-family: var(--font-comic);
  font-size: 1.1rem;
  color: var(--gold);
  white-space: nowrap;
}

.ca-plaque code {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 12px;
  font-family: var(--font-comic);
  white-space: nowrap;
}

.copy-btn.ok { background: #7dcf7a; }

.howto-links {
  max-width: 1180px;
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================================
   COMMUNITY  ·  hanging wooden shop signs on the lantern street
   ============================================================================ */
.community {
  position: relative;
  min-height: 92vh;
  padding: 100px 6vw 80px;
  background:
    linear-gradient(180deg, rgba(11, 21, 36, 0.55) 0%, rgba(11, 21, 36, 0.72) 100%),
    url("1.png") center 70% / cover no-repeat;
  overflow: hidden;
}

.community-head {
  text-align: center;
  color: var(--cream);
  margin-bottom: 56px;
}

.community-head h2 {
  font-family: var(--font-brush);
  font-size: clamp(3rem, 7vw, 5rem);
  color: #fff8e7;
  text-shadow: 3px 4px 0 var(--ink);
}

.community-head p {
  margin-top: 10px;
  color: #f0d9a8;
  font-size: 1.08rem;
}

.signs {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  perspective: 1200px;
  align-items: start;
}

.sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cream);
  transform-origin: top center;
  animation: sway 5.4s ease-in-out infinite;
}

.sign:nth-child(2) { animation-duration: 6.2s; animation-delay: -1.4s; }
.sign:nth-child(3) { animation-duration: 5.7s; animation-delay: -2.2s; }

.rope {
  width: 3px;
  height: 54px;
  background: linear-gradient(#f4c430, #c45c12);
  box-shadow: 2px 0 0 var(--ink);
}

.board {
  width: 100%;
  max-width: 260px;
  background: linear-gradient(180deg, #7a3f1c, #4a2412);
  border: 5px solid var(--ink);
  box-shadow: 10px 14px 0 rgba(0, 0, 0, 0.45);
  padding: 28px 18px 32px;
  text-align: center;
  transform: rotateX(8deg);
}

.board i {
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.board strong {
  display: block;
  font-family: var(--font-comic);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.board span {
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.5;
}

.sign:hover .board {
  background: linear-gradient(180deg, #c45c12, #7a3f1c);
  transform: rotateX(0deg) translateY(-6px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-foot .mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-foot img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.site-foot small { opacity: 0.65; letter-spacing: 0.08em; }

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--gold);
  border: 3px solid var(--gold);
  padding: 10px 18px;
  font-family: var(--font-comic);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes sway {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.4deg); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sign, .stamp-burst { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .noren { padding: 0 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 86px;
    left: 12px;
    right: 12px;
    background: var(--wood-dark);
    border: 3px solid var(--gold);
    padding: 12px;
    gap: 4px;
  }
  .menu-btn { display: grid; place-items: center; }
  .noren-cta { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 120px 6vw 100px;
  }
  .hero-stamp {
    justify-self: start;
    width: min(220px, 70vw);
    order: -1;
  }
  .hero-title { font-size: clamp(4.4rem, 22vw, 7rem); }

  .scroll { transform: none; width: 100%; }
  .koma-page { grid-template-columns: 1fr; perspective: none; }
  .koma { transform: none !important; }
  .ca-plaque { grid-template-columns: 1fr; transform: none; }
  .signs { grid-template-columns: 1fr; gap: 28px; max-width: 320px; }
  .howto-head { flex-direction: column; align-items: start; }
}
