:root {
  --paper: #fbf5e8;
  --paper-deep: #f1dfb5;
  --ink: #24241f;
  --bronze: #b29551;
  --sage: #929e7a;
  --ochre: #bc7b43;
  --orange: #ee822f;
  --red: #b92f2f;
  --yellow: #f2ba02;
  --header-height: 76px;
  --shadow: 0 24px 70px rgba(77, 49, 18, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
}
body.dialog-open { overflow: hidden; }
@media (pointer: fine) {
  body { cursor: url("./assets/prop-cursor.png") 17 46, auto; }
  a, button, [role="button"] { cursor: url("./assets/prop-cursor.png") 17 46, pointer; }
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 68px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(60, 42, 18, .08);
  box-shadow: 0 10px 30px rgba(65, 42, 16, .05);
  backdrop-filter: blur(16px);
}
.brand { flex: 0 0 auto; margin-right: auto; }
.brand img { width: 55px; height: 55px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 30px); }
.primary-nav a,
.nav-menu-trigger {
  position: relative;
  padding: 27px 0 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav-menu-trigger { display: flex; align-items: center; gap: 7px; border: 0; color: inherit; background: none; cursor: pointer; }
.nav-menu-trigger i { font-family: Georgia, serif; font-size: 18px; font-style: normal; line-height: 1; transition: transform .3s ease; }
.nav-group { position: relative; }
.primary-nav > a::after,
.nav-menu-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 0;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width .35s ease;
}
.primary-nav > a:hover::after,
.primary-nav > a.is-active::after,
.nav-group:hover .nav-menu-trigger::after,
.nav-group.is-open .nav-menu-trigger::after,
.nav-group.is-current .nav-menu-trigger::after { width: 18px; }
.primary-nav > a.is-active,
.nav-group.is-current .nav-menu-trigger { font-weight: 900; }
.nav-group.is-open .nav-menu-trigger i { transform: rotate(180deg); }
.submenu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(112, 77, 29, .12);
  border-radius: 8px;
  background: rgba(255, 253, 247, .98);
  box-shadow: 0 18px 45px rgba(68, 43, 13, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.submenu::before { content: ""; position: absolute; left: 50%; top: -7px; width: 13px; height: 13px; border: 1px solid rgba(112,77,29,.12); border-right: 0; border-bottom: 0; background: #fffdf7; transform: translateX(-50%) rotate(45deg); }
.submenu a { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 5px; }
.submenu a::after { display: none; }
.submenu a:hover,
.submenu a.is-active { color: #8f4f23; background: #f6ead1; }
.submenu small { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #a7864d; font-family: "KaiTi", serif; font-size: 15px; }
.submenu strong { font-family: "KaiTi", "STKaiti", serif; font-size: 18px; font-weight: 600; }
@media (min-width: 961px) {
  .nav-group:hover .submenu,
  .nav-group:focus-within .submenu,
  .nav-group.is-open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.menu-toggle { display: none; }

.page-curtain { position: fixed; inset: 0; z-index: 300; pointer-events: none; visibility: hidden; }
.curtain-panel { position: absolute; inset-block: 0; width: 51%; background: #7b1e1f url("./assets/curtain.webp") center/cover no-repeat; transition: transform .42s cubic-bezier(.65,0,.35,1); }
.curtain-panel.left { left: 0; transform: translateX(-102%); }
.curtain-panel.right { right: 0; transform: translateX(102%) scaleX(-1); }
.page-curtain i { position: absolute; z-index: 2; left: 50%; top: 50%; color: #f7e9b9; font-family: "KaiTi", serif; font-size: clamp(24px, 4vw, 48px); font-style: normal; letter-spacing: .25em; opacity: 0; transform: translate(-50%,-50%); transition: opacity .2s .2s; }
.page-curtain.is-active { visibility: visible; }
.page-curtain.is-active .curtain-panel.left { transform: translateX(0); }
.page-curtain.is-active .curtain-panel.right { transform: translateX(0) scaleX(-1); }
.page-curtain.is-active i { opacity: 1; }

.floating-tools { position: fixed; z-index: 90; right: 18px; bottom: 24px; display: grid; gap: 9px; }
.floating-tools > button,
.floating-tools > a { position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 7px; min-width: 105px; min-height: 46px; padding: 7px 10px; border: 1px solid rgba(115,79,32,.22); border-radius: 8px; color: #4f3d28; background: rgba(255,250,237,.94); box-shadow: 0 10px 28px rgba(68,42,12,.14); text-decoration: none; backdrop-filter: blur(10px); }
.floating-tools span { grid-row: 1/3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: #a57c3e; font-family: "KaiTi", serif; }
.floating-tools b { font-size: 12px; }
.floating-tools small { font-size: 11px; color: #7d684a; }
.back-to-top { font-size: 20px; }
.back-to-top small { font-size: 11px; }
.puppet-egg { position: fixed; z-index: 75; left: 10px; bottom: 8px; width: 82px; border: 0; background: none; filter: drop-shadow(0 10px 10px rgba(58,40,15,.18)); transition: transform .3s; }
.puppet-egg img { width: 100%; }
.puppet-egg span { position: absolute; right: -15px; top: 4px; padding: 4px 7px; border-radius: 9px; background: #fff9e8; font-size: 10px; }
.puppet-egg.is-playing { animation: eggWave .75s ease-in-out 2; }

.hero {
  position: relative;
  min-height: 118svh;
  padding-top: var(--header-height);
  overflow: hidden;
  background: #f4dfad url("./assets/paper-gold.webp") center/cover no-repeat;
}
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,248,225,.24), rgba(255,255,255,.08)); }
.hero-copy {
  position: relative;
  z-index: 4;
  width: min(760px, 61vw);
  padding: clamp(110px, 15vh, 170px) 0 0 clamp(34px, 9vw, 150px);
  text-align: center;
}
.eyebrow { margin: 0 0 16px; color: #7f5b2b; font-family: "KaiTi", "STKaiti", serif; letter-spacing: .28em; }
.hero h1 {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: clamp(2px, 1vw, 16px);
  font-family: "LiSu", "STKaiti", "KaiTi", serif;
  font-size: clamp(76px, 10.7vw, 168px);
  line-height: .95;
  letter-spacing: -.08em;
  text-shadow: 2px 5px 0 rgba(255,255,255,.32);
}
.hero h1 span { display: inline-block; opacity: 0; animation: titleFloat .75s cubic-bezier(.2,.8,.2,1) forwards, idleFloat 4s ease-in-out infinite 1.3s; }
.hero h1 span:nth-child(1) { animation-delay: .15s, 1.3s; }
.hero h1 span:nth-child(2) { animation-delay: .28s, 1.45s; }
.hero h1 span:nth-child(3) { animation-delay: .41s, 1.6s; }
.hero h1 span:nth-child(4) { animation: titleDrop 1s cubic-bezier(.18,.84,.31,1.2) .55s forwards, idleFloat 4.5s ease-in-out infinite 1.7s; }
.hero-subtitle { margin: 24px auto 0; max-width: 590px; color: #fff; font-family: "KaiTi", "STKaiti", serif; font-size: clamp(17px, 1.7vw, 25px); letter-spacing: .15em; text-shadow: 0 2px 8px rgba(58,38,13,.25); }
.start-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 34px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.17);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform .3s, background .3s;
}
.start-button:hover { transform: translateY(-3px); background: rgba(255,255,255,.28); }
.start-button i { font-style: normal; animation: bob 1.4s ease-in-out infinite; }
.checkin-card { width: min(390px, 90%); margin: 18px auto 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; color: #fff; background: rgba(91,59,20,.16); backdrop-filter: blur(9px); }
.checkin-card button { grid-row: 1/3; padding: 9px 15px; border: 0; border-radius: 999px; color: #6b471f; background: #fff4ce; }
.checkin-card button:disabled { opacity: .65; }
.checkin-card span { font-size: 13px; }
.checkin-card small { font-size: 11px; opacity: .8; }
.hero-puppet {
  position: absolute;
  z-index: 3;
  right: clamp(16px, 7vw, 120px);
  top: 14%;
  width: clamp(260px, 31vw, 530px);
  max-height: 75vh;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(85,55,16,.14));
  animation: puppetSway 7s ease-in-out infinite;
}
.hero-ip-duo { width: clamp(330px, 34vw, 575px); max-height: 78vh; }
.hero-deco { position: absolute; z-index: 2; width: clamp(96px, 11vw, 175px); pointer-events: none; opacity: .42; filter: sepia(.15) drop-shadow(0 18px 18px rgba(83,52,17,.16)); animation: decoDrift 6s ease-in-out infinite; }
.hero-deco-a { left: 2%; top: 23%; transform: rotate(-8deg); }
.hero-deco-b { right: 1%; top: 58%; transform: rotate(8deg); animation-delay: -2s; }
.hero-deco-c { left: 39%; top: 7%; width: clamp(72px, 8vw, 130px); transform: rotate(5deg); animation-delay: -4s; }
.spark { position: absolute; z-index: 2; width: 30px; height: 30px; background: var(--yellow); clip-path: polygon(50% 0,61% 37%,100% 50%,62% 61%,50% 100%,39% 62%,0 50%,37% 39%); animation: twinkle 1.8s ease-in-out infinite; }
.spark-one { left: 7%; top: 42%; }
.spark-two { left: 47%; top: 32%; animation-delay: .65s; }

.pillar-nav {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1vw, 16px);
  transform: translateX(-50%);
}
.pillar {
  width: clamp(74px, 8vw, 118px);
  height: clamp(250px, 34vh, 370px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: white;
  text-decoration: none;
  box-shadow: 0 18px 28px rgba(59,42,20,.2);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s;
}
.pillar:nth-child(even) { height: clamp(280px, 40vh, 430px); }
.pillar.short { height: clamp(190px, 25vh, 270px); }
.pillar:hover { transform: translateY(-22px); filter: saturate(1.15); }
.pillar b { writing-mode: vertical-rl; font-family: "KaiTi", "STKaiti", serif; font-size: clamp(24px, 2.3vw, 36px); letter-spacing: .12em; }
.pillar small { opacity: .8; font-size: 15px; }
.pillar-dark { background: rgba(32,34,31,.92); }
.pillar-gold { background: rgba(168,139,73,.9); }
.pillar-sage { background: rgba(111,129,85,.9); }
.pillar-copper { background: rgba(183,111,62,.88); }

.stage-gate {
  position: relative;
  min-height: 64svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #cc8c59;
  color: rgba(255,255,255,.8);
}
.stage-gate::after {
  content: "";
  position: absolute;
  inset: 32% 0 0;
  background: repeating-radial-gradient(ellipse at 50% 115%, transparent 0 64px, rgba(255,255,255,.6) 66px 68px, transparent 70px 105px);
  opacity: .35;
}
.stage-gate p { position: relative; z-index: 4; font-family: "LiSu", "KaiTi", serif; font-size: clamp(40px, 6vw, 92px); letter-spacing: .24em; }
.gate-curtain { position: absolute; z-index: 3; top: -20%; width: 28%; height: 150%; object-fit: fill; opacity: .55; }
.gate-curtain.left { left: -5%; }
.gate-curtain.right { right: -5%; transform: scaleX(-1); }

.paper-section { position: relative; min-height: 100svh; padding: 120px 0 110px; overflow: hidden; background: var(--paper); }
.paper-section::before { content: ""; position: absolute; inset: 0; background: url("./assets/paper-light.webp") center top/cover repeat-y; opacity: .78; }
.section-shell { position: relative; z-index: 2; width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.section-heading { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 0 auto 66px; text-align: center; }
.section-heading span { color: #a45d18; font-family: "LiSu", "KaiTi", serif; font-size: clamp(42px, 5vw, 74px); }
.section-heading span::after { content: "·"; margin-left: 10px; color: var(--ink); }
.section-heading h2 { margin: 0; font-family: "LiSu", "KaiTi", serif; font-size: clamp(42px, 5.4vw, 78px); letter-spacing: .1em; }
.section-heading p { position: absolute; top: calc(100% + 6px); margin: 0; color: #7e6c51; letter-spacing: .12em; }
.section-heading.section-heading--intro-only { min-height: 2em; margin-bottom: 40px; }
.section-heading.section-heading--intro-only p { position: static; }
.virtue-heading { margin-bottom: 66px; }
.section-heading .section-heading-art {
  width: min(760px, 88vw);
  height: clamp(78px, 9vw, 124px);
  margin: 0;
  line-height: 0;
}
.section-heading .section-heading-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section-heading.inverse { color: #fff8e9; }
.section-heading.inverse span, .section-heading.inverse span::after { color: #fff8e9; }
.section-heading.inverse p { color: rgba(255,248,233,.78); }
.side-curtain { position: absolute; z-index: 1; top: 76px; bottom: 0; width: 13vw; background: url("./assets/curtain.webp") center/100% 100% no-repeat; opacity: .72; }
.side-curtain.left { left: -2vw; }
.side-curtain.right { right: -2vw; transform: scaleX(-1); }

.opera-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); justify-content: center; gap: clamp(28px, 5vw, 74px); }
.opera-card { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.opera-card:hover { transform: translateY(-10px) rotate(-1deg); }
.opera-card:nth-child(2):hover { transform: translateY(-10px) rotate(1deg); }
.media-frame { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border: 7px solid #fdf8ea; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.play-icon, .round-play, .large-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.74); transform: translate(-50%,-50%); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.play-icon::after, .round-play::after, .large-play::after { content: ""; position: absolute; left: 29px; top: 23px; border-left: 21px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; filter: drop-shadow(0 1px 2px rgba(0,0,0,.16)); }
.opera-card strong { display: block; margin: -5px auto 0; width: 92%; padding: 15px 10px; background: #fffef8; border: 1px solid #bd9b3b; font-family: "KaiTi", serif; font-size: 24px; }
.opera-card small { display: block; margin-top: 10px; color: #8c7044; }
.opera-meta { display: flex; justify-content: center; gap: 7px; padding: 10px 16px 0; }
.opera-meta em { padding: 5px 9px; border-radius: 999px; color: #7c5c32; background: #f1e3c5; font-size: 11px; font-style: normal; }
.moral-notes { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 90px auto 0; width: min(1030px, 95%); }
.paper-note { min-height: 210px; padding: 35px 42px; background: #f4dfad url("./assets/parchment.webp") center/100% 100% no-repeat; filter: drop-shadow(0 16px 18px rgba(57,40,15,.12)); }
.paper-note h3 { margin: 0 0 18px; text-align: center; font-family: "KaiTi", serif; font-size: 28px; }
.paper-note p { margin: 0; line-height: 1.9; font-family: "KaiTi", serif; font-size: 18px; }
.note-mascot { position: absolute; right: -88px; bottom: -22px; width: 150px; filter: drop-shadow(0 12px 12px rgba(0,0,0,.12)); }

.history-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.history-layout.single-mode { grid-template-columns: minmax(0, 1fr); }
.history-layout.single-mode .history-media { width: min(820px, 100%); margin: 0 auto; }
.wisdom-mode-tabs { display: flex; justify-content: center; gap: 10px; margin: -25px 0 42px; }
.wisdom-mode-tabs button { padding: 10px 22px; border: 1px solid #9f7b45; color: #725329; background: transparent; }
.wisdom-mode-tabs button.is-active { color: #fff; background: #9f7b45; }
.history-media { position: relative; margin: 0; transform: rotate(-2deg); }
.history-media > img { width: 100%; border: 8px solid #fff; box-shadow: var(--shadow); }
.history-media .round-play { border: 0; cursor: pointer; }
.history-media figcaption { margin: 12px 0 0 10px; color: #8a6b3a; font-family: "KaiTi", serif; }
.history-copy { padding: 42px 46px; background: rgba(255,255,255,.52); border-left: 2px solid rgba(168,114,45,.25); }
.history-copy h3, .moon-paper h3 { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 30px; color: #a23b32; font-family: "KaiTi", serif; font-size: 34px; }
.history-copy h3 i, .moon-paper h3 i { width: 42px; height: 20px; background: url("./assets/clouds.webp") center/contain no-repeat; }
.history-copy p { line-height: 2; text-indent: 2em; font-family: "KaiTi", serif; font-size: 18px; }
.history-copy .knowledge-motto { margin-top: 0; color: #916022; font-weight: 700; font-style: italic; text-align: center; text-indent: 0; }
.history-inline { width: 100%; max-height: 250px; margin: 24px 0 4px; border: 7px solid rgba(255,255,255,.82); object-fit: cover; box-shadow: 0 13px 30px rgba(71,43,13,.14); }
.history-stat { display: inline-flex; flex-direction: column; margin: 20px 28px 0 0; color: #866027; }
.history-stat b { font-size: 40px; font-family: Georgia, serif; }
.history-stat span { font-size: 13px; letter-spacing: .1em; }
.knowledge-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 85px; }
.knowledge-card { display: grid; grid-template-columns: 190px 1fr; min-height: 250px; overflow: hidden; background: rgba(255,255,255,.63); box-shadow: 0 18px 38px rgba(78,48,16,.09); }
.knowledge-card img { width: 100%; height: 100%; object-fit: cover; }
.knowledge-card div { padding: 34px; }
.knowledge-card h3 { margin: 0 0 15px; font-family: "KaiTi", serif; font-size: 30px; }
.knowledge-card small { display: block; margin: -9px 0 12px; color: #9a6635; font-family: "KaiTi", serif; font-size: 16px; }
.knowledge-card p { margin: 0; line-height: 1.9; color: #554a39; }
.bilingual-panel { margin-top: 48px; padding: 0 34px; border: 1px solid rgba(118,84,38,.2); background: rgba(255,255,255,.44); }
.bilingual-panel summary { padding: 20px 0; color: #774c23; font-family: Georgia, serif; font-size: 19px; cursor: pointer; }
.bilingual-panel summary span { margin-left: 8px; color: #9a8060; font-family: "Microsoft YaHei", sans-serif; font-size: 13px; }
.bilingual-panel > div { padding: 0 0 28px; color: #51483c; line-height: 1.8; }
.bilingual-panel h3 { font-family: Georgia, serif; font-size: 25px; }
.scroll-button { display: flex; flex-direction: column; align-items: center; margin: 65px auto 0; padding: 20px 54px; border: 1px solid #a43b2c; color: #8d2a21; background: rgba(255,255,255,.5); cursor: pointer; transition: .3s; }
.scroll-button:hover { color: #fff; background: #a43b2c; transform: translateY(-4px); }
.scroll-button span { font-family: "KaiTi", serif; font-size: 26px; }
.scroll-button small { margin-top: 4px; }

.paint-studio { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr); gap: clamp(24px,4vw,55px); align-items: start; }
.beauty { padding-top: 92px; }
.beauty .section-heading { margin-bottom: 42px; }
.mask-workbench { position: relative; min-height: 550px; display: grid; place-items: center; }
#maskCanvas { position: relative; z-index: 1; width: min(100%, 350px); height: auto; filter: drop-shadow(0 22px 25px rgba(57,39,13,.12)); }
.paint-layer { isolation: isolate; }
.mask-lineart { pointer-events: none; }
.paint-zone { fill: rgba(255,255,255,.001); stroke: transparent; cursor: crosshair; pointer-events: all; transition: fill .3s, opacity .3s, stroke .2s; mix-blend-mode: normal; }
.paint-zone:hover { stroke: rgba(178,149,81,.7); stroke-width: 4; }
.paint-zone.is-selected { stroke: rgba(157,107,63,.82); stroke-width: 3; stroke-dasharray: 8 7; }
.paint-zone.is-applying { animation: zoneDab .5s cubic-bezier(.2,.8,.2,1); }
.paint-zone.is-painted { opacity: .72; }
.paint-splash { --splash-color: #c52f32; position: absolute; z-index: 3; width: 82px; height: 82px; border-radius: 50%; opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.2); background: radial-gradient(circle, var(--splash-color) 0 16%, transparent 68%); filter: saturate(.9); }
.paint-splash::before,
.paint-splash::after { content: ""; position: absolute; border-radius: 50%; background: var(--splash-color); opacity: .48; }
.paint-splash::before { left: 8px; top: 24px; width: 9px; height: 9px; box-shadow: 52px -12px 0 -2px var(--splash-color), 60px 30px 0 -3px var(--splash-color); }
.paint-splash::after { right: 15px; bottom: 10px; width: 7px; height: 7px; box-shadow: -48px 8px 0 -2px var(--splash-color); }
.paint-splash.is-visible { animation: pigmentSplash .58s ease-out both; }
.paint-actions { position: absolute; left: 0; bottom: 28px; display: flex; gap: 12px; }
.paint-actions button, .share-actions button { padding: 12px 18px; border: 1px solid #9c8350; background: rgba(255,255,255,.7); cursor: pointer; }
.paint-actions button.primary { color: #fff; background: #9d6b3f; }
.pigment-panel { position: relative; min-height: 520px; display: grid; place-items: center; }
.palette-art { position: absolute; left: 50%; top: 50%; z-index: 0; width: 88%; max-height: 90%; object-fit: contain; opacity: .36; transform: translate(-50%,-50%) rotate(-2deg); filter: saturate(.84); }
.pigment-panel > p:first-child { position: absolute; top: 2%; left: 5%; font-family: "KaiTi", serif; font-size: 26px; color: #9e7044; }
.pigment-wheel { position: relative; z-index: 2; width: min(100%, 480px); aspect-ratio: 1; }
.pigment-wheel button { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; color: #694b30; font-family: "KaiTi", serif; transition: transform .25s; }
.pigment-wheel button:hover, .pigment-wheel button.is-selected { transform: scale(1.15); }
.pigment-wheel button i { width: 43px; height: 43px; border: 4px solid #fffdf5; border-radius: 50%; background: var(--pigment); box-shadow: 0 5px 12px rgba(50,35,13,.14); }
.pigment-wheel button.is-selected i { box-shadow: 0 0 0 3px rgba(157,107,63,.3), 0 7px 16px rgba(50,35,13,.2); }
.pigment-wheel button:active { transform: scale(.98); }
.pigment-wheel button:nth-child(1) { left: 45%; top: 5%; }
.pigment-wheel button:nth-child(2) { left: 17%; top: 15%; }
.pigment-wheel button:nth-child(3) { left: 4%; top: 43%; }
.pigment-wheel button:nth-child(4) { left: 20%; top: 74%; }
.pigment-wheel button:nth-child(5) { left: 46%; top: 83%; }
.pigment-wheel button:nth-child(6) { right: 16%; top: 72%; }
.pigment-wheel button:nth-child(7) { right: 2%; top: 45%; }
.pigment-wheel button:nth-child(8) { right: 13%; top: 15%; }
.pigment-wheel button:nth-child(9) { right: 34%; top: 32%; }
.pigment-wheel button:nth-child(10) { left: 35%; top: 43%; }
.paint-hint { position: absolute; left: 50%; bottom: 0; width: 94%; transform: translateX(-50%); text-align: center; color: #7f6b50; font-size: 14px; }
.pigment-meaning { position: absolute; left: 50%; bottom: 34px; width: 88%; margin: 0; padding: 9px 12px; border-radius: 8px; color: #73553a; background: rgba(255,255,255,.76); text-align: center; font-size: 13px; transform: translateX(-50%); }
.palette-presets { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px auto 0; }
.palette-presets > span { margin-right: 8px; color: #8b673d; font-family: "KaiTi", serif; font-size: 19px; }
.palette-presets button { padding: 9px 15px; border: 1px solid #a99066; border-radius: 999px; color: #71522d; background: rgba(255,255,255,.46); }
.face-meaning-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 46px; }
.face-meaning-grid article { position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 26px 22px 22px; border-top: 5px solid var(--meaning); background: rgba(255,255,255,.58); box-shadow: 0 13px 28px rgba(68,43,14,.08); }
.face-meaning-grid article::before { content: ""; position: absolute; right: 18px; top: 18px; width: 25px; height: 25px; border-radius: 50%; background: var(--meaning); box-shadow: 0 0 0 5px rgba(255,255,255,.7); }
.face-meaning-grid b { padding-right: 34px; font-family: "KaiTi", serif; font-size: 22px; }
.face-meaning-grid span { color: #594b39; line-height: 1.6; }
.face-meaning-grid small { color: #917d62; }
.meaning-red { --meaning: #b92f2f; }
.meaning-black { --meaning: #292823; }
.meaning-white { --meaning: #dfd8c8; }
.meaning-blue { --meaning: #4e7c78; }
.mask-gallery { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: center; margin-top: 120px; padding: 70px; background: rgba(255,255,255,.4); }
.gallery-copy > p { color: #9b7040; font-family: "KaiTi", serif; font-size: 24px; }
.gallery-copy h3 { font-family: "KaiTi", serif; font-size: clamp(34px, 4vw, 56px); font-weight: 400; }
.gallery-controls { display: flex; align-items: center; gap: 22px; }
.gallery-controls button { width: 44px; height: 44px; border: 1px solid #9c8350; background: transparent; cursor: pointer; }
.mask-deck { position: relative; min-height: 460px; perspective: 900px; }
.mask-deck img { position: absolute; left: 50%; top: 50%; width: min(48%, 310px); aspect-ratio: 3/4; object-fit: cover; transform: translate(-50%,-50%) scale(.82); opacity: .72; box-shadow: var(--shadow); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s, z-index .6s; }
.mask-deck img:first-child { transform: translate(-105%,-50%) rotate(-9deg) scale(.8); }
.mask-deck img:last-child { transform: translate(5%,-50%) rotate(9deg) scale(.8); }
.mask-deck img.is-active { z-index: 3; opacity: 1; transform: translate(-50%,-50%) scale(1); }

.labor-collage { position: relative; min-height: 840px; }
.labor-collage img { position: absolute; object-fit: cover; box-shadow: var(--shadow); transition: transform .6s; }
.labor-collage .materials { left: 1%; top: 18%; width: 29%; box-shadow: none; }
.fabric-lens { position: absolute; left: 22%; top: 42%; width: 240px; height: 240px; border-radius: 50%; overflow: hidden; border: 8px solid #f8f0dd; box-shadow: var(--shadow); cursor: zoom-in; z-index: 5; }
.fabric-lens > img { position: static; width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
.fabric-lens span { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.fabric-lens span img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.55); }
.fabric-lens:hover span, .fabric-lens:focus span { opacity: 1; }
.labor-collage .puppet-collage { right: 4%; top: 8%; width: 46%; transform: rotate(1deg); }
.labor-collage .red-puppet { right: 31%; top: 35%; z-index: 7; width: 19%; object-fit: contain; box-shadow: none; animation: redPuppetTravel 7.2s ease-in-out infinite alternate; }
.labor-collage .labor-monkey { right: -1%; top: 25%; z-index: 6; width: 16%; object-fit: contain; box-shadow: none; animation: monkeyTravel 7.8s ease-in-out infinite alternate; }
.labor-collage .tip { position: absolute; left: 31%; top: 4%; width: 37%; min-height: 125px; margin: 0; padding: 28px 35px; background: url("./assets/parchment.webp") center/100% 100% no-repeat; font-family: "KaiTi", serif; line-height: 1.65; }
.labor-collage .tip img { position: static; float: right; width: 74px; max-height: 84px; margin: -15px -10px 4px 12px; object-fit: contain; box-shadow: none; }
.labor-collage .tip b { display: block; margin-bottom: 8px; font-size: 24px; }
.labor-subheading { position: relative; z-index: 10; margin: 56px auto 26px; text-align: center; }
.labor-subheading p { margin: 0 0 6px; color: #9b6630; letter-spacing: .18em; }
.labor-subheading h3 { margin: 0; font-family: "KaiTi", serif; font-size: clamp(30px,4vw,48px); font-weight: 500; }
.diy-step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 20px; }
.diy-step-grid article { position: relative; overflow: hidden; padding-bottom: 18px; background: rgba(255,255,255,.58); box-shadow: 0 14px 30px rgba(73,47,19,.09); }
.diy-step-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.diy-step-grid span { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: rgba(163,66,48,.9); font-family: Georgia,serif; }
.diy-step-grid b { display: block; padding: 15px 18px 2px; font-family: "KaiTi",serif; font-size: 21px; }
.diy-step-grid p { margin: 5px 18px 0; color: #6f604c; line-height: 1.6; }
.labor-video-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 32px 0 70px; }
.labor-video-actions .inline-video { margin-top: 0; }
.craft-route { display: grid; align-items: stretch; gap: 18px; margin-top: 30px; }
.craft-five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.craft-route > i { height: 2px; border-top: 3px dashed #b58c3f; }
.craft-step { position: relative; border: 0; padding: 0 0 22px; background: rgba(255,255,255,.55); box-shadow: 0 18px 35px rgba(77,47,16,.1); text-align: left; transition: transform .35s; }
.craft-step:hover { transform: translateY(-9px); }
.craft-step img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.craft-step span { position: absolute; z-index: 2; top: -16px; left: -12px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: white; background: #b17232; font-family: Georgia, serif; }
.craft-step b { display: block; padding: 17px 18px 0; font-family: "KaiTi", serif; font-size: 23px; }
.craft-step p { margin: 8px 18px 0; color: #675844; line-height: 1.6; }
.craft-bilingual { margin: 28px 0 0; padding: 0 26px; border-block: 1px solid rgba(152,105,46,.22); background: rgba(255,255,255,.48); }
.craft-bilingual summary { padding: 18px 0; color: #774c23; font-family: Georgia, "KaiTi", serif; font-size: 18px; cursor: pointer; }
.craft-bilingual summary span { float: right; color: #a43c2f; font-family: "KaiTi", serif; font-size: 14px; }
.craft-bilingual-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 4px 0 28px; }
.craft-bilingual-list article { padding: 20px; border-left: 3px solid rgba(162,59,50,.45); background: rgba(251,247,235,.82); }
.craft-bilingual-list article:last-child { grid-column: 1/-1; }
.craft-bilingual-list h4 { margin: 0 0 10px; color: #8d4b28; font-family: "KaiTi", serif; font-size: 20px; }
.craft-bilingual-list p { margin: 8px 0 0; color: #54493c; line-height: 1.75; }
.craft-bilingual-list p[lang="en"] { color: #6e6253; font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.favorite-tutorial { display: block; margin: 36px auto 0; padding: 12px 21px; border: 1px solid #9f713d; color: #7d5229; background: rgba(255,255,255,.5); }
.favorite-tutorial.is-favorite { color: #fff; background: #9f713d; }

.village { position: relative; min-height: 112svh; padding: 125px 0 90px; overflow: hidden; color: #2a241c; background: #2d261d; }
.stage-backdrop { position: absolute; inset: 0; background: linear-gradient(rgba(27,22,17,.2), rgba(27,22,17,.28)), url("./assets/village-stage.webp") center/cover no-repeat; transform: scale(1.04); }
.village-copy { position: relative; z-index: 4; width: min(1100px, calc(100% - 48px)); margin: 0 auto; }
.lychee { position: absolute; z-index: 3; width: clamp(180px, 22vw, 340px); filter: drop-shadow(0 25px 28px rgba(0,0,0,.22)); will-change: transform; }
.lychee-a { left: -3%; top: 4%; }
.lychee-b { right: 2%; top: 8%; }
.lychee-c { left: 44%; top: -5%; width: clamp(150px, 16vw, 245px); }
.lychee-d { left: 7%; bottom: -7%; width: clamp(150px,18vw,270px); }
.lychee-e { right: 18%; bottom: -5%; width: clamp(145px,17vw,250px); }
.lychee-f { right: -4%; top: 42%; width: clamp(150px,18vw,275px); }
.village-ip { position: absolute; z-index: 3; right: 1%; bottom: -4%; width: clamp(230px, 28vw, 430px); opacity: .88; filter: drop-shadow(0 22px 25px rgba(0,0,0,.25)); }
.moon-paper { width: min(760px, 90%); margin: 90px auto 0; padding: clamp(55px, 8vw, 105px); border-radius: 50%; background: rgba(252,239,198,.82); backdrop-filter: blur(4px); box-shadow: 0 28px 80px rgba(0,0,0,.3); text-align: center; }
.moon-paper p { margin: 0; font-family: "KaiTi", serif; font-size: 19px; line-height: 2; }
.village-actions { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }
.village-actions button { padding: 13px 20px; border: 1px solid #a43b2c; color: #fff; background: #a43b2c; cursor: pointer; }
.village-actions button.ghost { color: #6e4726; background: transparent; border-color: #8d704d; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.product-card { border: 0; padding: 0 0 23px; color: #3b3124; background: rgba(255,255,255,.45); cursor: pointer; box-shadow: 0 18px 35px rgba(74,50,20,.08); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.product-card:hover { transform: translateY(-12px) rotate(-.5deg); box-shadow: 0 26px 50px rgba(74,50,20,.16); }
.product-card img { width: 100%; aspect-ratio: 1.05; object-fit: cover; background: #fff; }
.product-card span, .product-card b { display: inline-block; margin-top: 17px; font-family: "KaiTi", serif; font-size: 22px; }
.product-card span { margin-right: 18px; }
.product-card b { color: #a33e30; }
.selected-product-image { width: min(260px,82%); max-height: 300px; margin: 0 auto 18px; object-fit: contain; border: 7px solid rgba(255,255,255,.72); background: #fff; box-shadow: 0 13px 28px rgba(67,43,14,.1); }
.appointment { display: grid; grid-template-columns: minmax(260px, 450px) 1fr; gap: 60px; align-items: center; margin-top: 95px; padding: 45px; background: rgba(255,255,255,.46); }
.appointment img { width: 100%; transform: rotate(-1.5deg); box-shadow: var(--shadow); }
.appointment p { color: #a45f22; letter-spacing: .25em; }
.appointment h3 { margin: 8px 0 14px; font-family: "KaiTi", serif; font-size: clamp(36px, 4vw, 58px); }
.appointment span { display: block; color: #6e604d; line-height: 1.8; }
.appointment button { margin-top: 28px; padding: 14px 26px; border: 1px solid #a33e30; color: #fff; background: #a33e30; cursor: pointer; }

.site-footer { min-height: 180px; display: flex; align-items: center; gap: 20px; padding: 45px clamp(24px, 7vw, 110px); color: #f7efdc; background: #28251f; }
.site-footer img { width: 64px; }
.site-footer div { display: flex; flex-direction: column; gap: 6px; }
.site-footer div b { font-family: "KaiTi", serif; font-size: 24px; }
.site-footer div span { color: rgba(255,255,255,.58); font-size: 13px; }
.site-footer div small { color: rgba(255,255,255,.46); font-size: 11px; }
.site-footer > a { margin-left: auto; color: #f7efdc; text-decoration: none; }

dialog { max-width: calc(100vw - 32px); color: var(--ink); border: 0; padding: 0; background: transparent; overflow: visible; }
dialog::backdrop { background: rgba(36,32,26,.68); backdrop-filter: blur(4px); }
dialog[open] { animation: dialogIn .48s cubic-bezier(.18,.8,.2,1); }
.paper-dialog, .share-dialog, .media-dialog, .qr-dialog, .map-dialog, .appointment-dialog, .cart-dialog, .stamp-dialog { width: min(760px, calc(100vw - 32px)); padding: 52px; background: #fbf0d1 url("./assets/parchment.webp") center/100% 100% no-repeat; box-shadow: 0 35px 90px rgba(0,0,0,.34); }
.dialog-close { position: absolute; right: 18px; top: 12px; width: 42px; height: 42px; border: 0; background: transparent; font-size: 34px; cursor: pointer; }
.dialog-kicker { margin: 0 0 8px; color: #a43c2f; font-family: "KaiTi", serif; letter-spacing: .22em; }
dialog h2 { margin: 0 0 20px; font-family: "KaiTi", serif; font-size: clamp(30px, 4vw, 48px); }
.story-dialog-layout { display: grid; grid-template-columns: 210px 1fr; gap: 32px; align-items: end; }
.story-dialog-layout > img { max-height: 330px; }
.story-dialog-layout p { line-height: 1.85; }
.story-dialog-layout h3 { margin: 18px 0 5px; color: #8c4a26; font-family: "KaiTi",serif; font-size: 23px; }
.inline-video { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 18px 12px 12px; border: 1px solid #a43c2f; background: transparent; cursor: pointer; }
.inline-video .play-icon { position: relative; left: auto; top: auto; width: 35px; height: 35px; background: #a43c2f; transform: none; }
.inline-video .play-icon::after { left: 14px; top: 11px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-options button { padding: 16px; border: 1px solid #b79a67; background: rgba(255,255,255,.5); cursor: pointer; transition: .25s; }
.quiz-options button:hover { transform: translateY(-3px); }
.quiz-options button.correct { color: #fff; background: #728a5b; }
.quiz-options button.wrong { color: #fff; background: #a64d42; }
.quiz-options button:disabled { cursor: default; opacity: .82; transform: none; }
.quiz-progress { margin: 0 0 8px; color: #9a6731; font-size: 13px; letter-spacing: .15em; }
.quiz-next { display: block; margin: 18px auto 0; padding: 11px 24px; border: 1px solid #a43c2f; color: #fff; background: #a43c2f; }
.quiz-next[hidden] { display: none; }
.quiz-result { min-height: 74px; margin-top: 22px; padding: 17px 20px; line-height: 1.6; opacity: 0; transform: translateY(8px); transition: .5s; }
.quiz-result.show { opacity: 1; transform: translateY(0); background: rgba(255,255,255,.52); }
.quiz-mascot { float: right; width: 105px; max-height: 150px; object-fit: contain; margin: -20px 15px 0 25px; transform-origin: bottom center; }
.quiz-mascot.is-clapping { animation: mascotClap .5s ease-in-out 3; }
.quiz-mascot.is-shaking { animation: mascotShake .35s ease-in-out 3; }
.share-dialog { width: min(550px, calc(100vw - 32px)); text-align: center; }
.share-preview-stage { position: relative; display: grid; place-items: center; min-height: 330px; margin-bottom: 20px; }
#sharePreview { width: 260px; max-height: 330px; object-fit: contain; background: #fff; box-shadow: 0 16px 38px rgba(76,49,19,.16); }
.share-mascot { position: absolute; left: -5px; bottom: -10px; z-index: 2; width: 118px; max-height: 180px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(63,40,13,.18)); animation: idleFloat 3.2s ease-in-out infinite; }
.share-actions { display: flex; justify-content: center; gap: 12px; }
.media-dialog { width: min(800px, calc(100vw - 32px)); }
.video-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #28251f; }
.video-stage video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; background: #111; object-fit: contain; }
.video-placeholder { position: absolute; inset: 0; z-index: 1; }
.video-placeholder[hidden] { display: none; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.large-play { width: 96px; height: 96px; }
.large-play::after { left: 40px; top: 31px; border-left-width: 28px; border-top-width: 17px; border-bottom-width: 17px; }
.media-dialog h2 { margin-top: 24px; }
.media-dialog > p { margin-bottom: 0; color: #685b49; }
.qr-dialog { width: min(470px, calc(100vw - 32px)); text-align: center; }
.qr-dialog img { max-width: 270px; max-height: 360px; margin: 0 auto 18px; object-fit: contain; }
.quantity-field { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0; }
.quantity-field input { width: 85px; padding: 9px; border: 1px solid #bca67d; background: rgba(255,255,255,.55); }
.shop-dialog-actions { display: flex; justify-content: center; gap: 10px; }
.shop-dialog-actions button, .cart-dialog form > button { padding: 12px 18px; border: 1px solid #a43c2f; color: #fff; background: #a43c2f; }
.shop-dialog-actions .ghost { color: #7b4c28; background: transparent; border-color: #9c7b52; }
.direct-contact { margin-top: 22px; }
.direct-contact img, .cart-contact img { width: 185px; margin: 0 auto; }
.cart-dialog { width: min(720px, calc(100vw - 32px)); }
.cart-items { max-height: 230px; overflow: auto; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(115,79,32,.15); }
.cart-row button { width: 30px; height: 30px; border: 0; color: #a43c2f; background: rgba(255,255,255,.5); }
.cart-empty { color: #76644d; text-align: center; }
.cart-total { text-align: right; }
.cart-dialog form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cart-dialog form label { display: flex; flex-direction: column; gap: 6px; color: #66533b; }
.cart-dialog form .wide { grid-column: 1/-1; }
.cart-dialog input, .cart-dialog textarea { width: 100%; padding: 10px; border: 1px solid #bca67d; background: rgba(255,255,255,.5); }
.cart-contact { margin-top: 22px; text-align: center; }
.stamp-dialog { width: min(650px, calc(100vw - 32px)); }
.stamp-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stamp-grid article { display: grid; justify-items: center; gap: 7px; padding: 18px 8px; border: 1px dashed #a7926e; opacity: .48; text-align: center; }
.stamp-grid article span { display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid #9c713e; border-radius: 50%; color: #8a5e2f; font-family: "KaiTi", serif; font-size: 30px; }
.stamp-grid article.is-earned { opacity: 1; background: rgba(255,255,255,.45); }
.stamp-grid article.is-earned span { color: #fff; background: #a43c2f; transform: rotate(-6deg); }
.stamp-grid article small { font-size: 11px; }
.map-dialog { width: min(780px, calc(100vw - 32px)); }
.map-dialog img { width: 100%; }
.appointment-dialog form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.appointment-dialog label { display: flex; flex-direction: column; gap: 8px; color: #64533e; }
.appointment-dialog label:last-of-type { grid-column: 1/-1; }
.appointment-dialog input, .appointment-dialog select, .appointment-dialog textarea { width: 100%; padding: 12px; border: 1px solid #bca67d; background: rgba(255,255,255,.5); }
.appointment-dialog form > button { grid-column: 1/-1; padding: 14px; border: 0; color: #fff; background: #a43c2f; cursor: pointer; }
.form-status { grid-column: 1/-1; margin: 0; text-align: center; color: #597448; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes titleFloat { from { opacity: 0; transform: translateY(35px) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes titleDrop { 0% { opacity: 0; transform: translateY(-90px) scaleY(.7); } 62% { opacity: 1; transform: translateY(12px) scaleY(1.1); } 78% { transform: translateY(-6px) scaleY(.94); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes idleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bob { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes puppetSway { 0%,100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
@keyframes redPuppetTravel { 0% { transform: translate3d(0,0,0) rotate(-2deg); } 55% { transform: translate3d(-28px,-34px,0) rotate(2deg); } 100% { transform: translate3d(-52px,16px,0) rotate(-1deg); } }
@keyframes monkeyTravel { 0% { transform: translate3d(0,0,0) rotate(1deg); } 52% { transform: translate3d(24px,42px,0) rotate(5deg); } 100% { transform: translate3d(48px,-18px,0) rotate(-2deg); } }
@keyframes decoDrift { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes twinkle { 0%,100% { transform: rotate(0) scale(.72); opacity: .55; } 50% { transform: rotate(45deg) scale(1.12); opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mascotClap { 0%,100% { transform: rotate(0) translateY(0); } 35% { transform: rotate(-7deg) translateY(-8px); } 70% { transform: rotate(7deg) translateY(-5px); } }
@keyframes mascotShake { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-10px) rotate(-4deg); } 70% { transform: translateX(10px) rotate(4deg); } }
@keyframes eggWave { 0%,100% { transform: rotate(0) scale(1); } 35% { transform: rotate(-10deg) scale(1.05); } 70% { transform: rotate(9deg) scale(1.08); } }

@media (max-width: 960px) {
  :root { --header-height: 66px; }
  .site-header { padding: 0 18px; }
  .brand img { width: 48px; height: 48px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; margin-left: auto; border: 0; background: none; padding: 10px; }
  .menu-toggle span { width: 26px; height: 2px; background: var(--ink); }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .primary-nav { position: fixed; inset: var(--header-height) 0 auto; display: grid; grid-template-columns: 1fr; gap: 4px; max-height: calc(100svh - var(--header-height)); overflow-y: auto; padding: 16px 22px 24px; background: rgba(255,255,255,.98); box-shadow: 0 18px 36px rgba(57,39,13,.12); transform: translateY(-130%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav > a,
  .nav-menu-trigger { width: 100%; padding: 14px 12px; text-align: left; }
  .primary-nav > a::after,
  .nav-menu-trigger::after { left: 12px; bottom: 7px; transform: none; }
  .nav-menu-trigger { justify-content: space-between; }
  .nav-group { border-top: 1px solid rgba(112,77,29,.1); }
  .submenu { position: static; min-width: 0; max-height: 0; padding: 0 8px; border: 0; border-radius: 0; box-shadow: none; background: #faf3e3; opacity: 0; visibility: hidden; overflow: hidden; transform: none; transition: max-height .35s ease, opacity .25s ease, padding .35s ease, visibility .25s; }
  .submenu::before { display: none; }
  .nav-group.is-open .submenu { max-height: 180px; padding: 7px 8px; opacity: 1; visibility: visible; }
  .submenu a { padding: 10px 12px; text-align: left; }
  .submenu small { width: 32px; height: 32px; }
  .hero { min-height: 145svh; }
  .hero-copy { width: 100%; padding: 98px 20px 0; }
  .hero h1 { font-size: clamp(68px, 18vw, 110px); }
  .hero-puppet { top: 30%; right: -3%; width: min(64vw, 420px); opacity: .9; }
  .hero-deco-a { left: -3%; top: 28%; }
  .hero-deco-b { right: -2%; top: 64%; }
  .hero-deco-c { display: none; }
  .pillar-nav { width: calc(100% - 28px); justify-content: center; gap: 5px; }
  .pillar { width: 15%; min-width: 48px; height: 280px; }
  .pillar:nth-child(even) { height: 320px; }
  .pillar.short { height: 220px; }
  .pillar b { font-size: clamp(18px, 3.3vw, 27px); }
  .stage-gate { min-height: 45svh; }
  .paper-section { padding: 100px 0 80px; }
  .section-shell { width: min(100% - 30px, 760px); }
  .section-heading { margin-bottom: 58px; }
  .side-curtain { display: none; }
  .history-layout, .knowledge-panels, .paint-studio, .mask-gallery, .appointment { grid-template-columns: 1fr; }
  .history-layout { gap: 40px; }
  .knowledge-card { grid-template-columns: 150px 1fr; }
  .face-meaning-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .paint-studio { gap: 10px; }
  .paint-actions { position: static; justify-content: center; margin-top: 12px; }
  .pigment-panel { min-height: 530px; }
  .mask-gallery { padding: 45px 28px; }
  .mask-deck { min-height: 430px; }
  .labor-collage { min-height: 900px; }
  .labor-collage .materials { width: 38%; }
  .labor-collage .puppet-collage { top: 32%; width: 60%; }
  .labor-collage .red-puppet { right: 35%; top: 53%; width: 28%; }
  .labor-collage .labor-monkey { right: 1%; top: 50%; width: 23%; }
  .labor-collage .tip { left: 34%; width: 62%; }
  .fabric-lens { left: 5%; top: 42%; width: 210px; height: 210px; }
  .diy-step-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .craft-route { grid-template-columns: 1fr; gap: 26px; }
  .craft-five { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .craft-route > i { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .appointment { gap: 30px; }
}

@media (max-width: 620px) {
  .hero { min-height: 133svh; }
  .hero-copy { padding-top: 78px; }
  .hero-subtitle { width: 84%; line-height: 1.8; }
  .start-button { font-size: 13px; }
  .hero-puppet { top: 36%; right: -15%; width: 79vw; opacity: .72; }
  .hero-ip-duo { top: 38%; right: -20%; width: 92vw; }
  .hero-deco { width: 94px; opacity: .3; }
  .hero-deco-a { left: -22px; top: 28%; }
  .hero-deco-b { right: -28px; top: 62%; }
  .checkin-card { width: 92%; }
  .pillar-nav { align-items: end; overflow: hidden; }
  .pillar { height: 250px; }
  .pillar:nth-child(even) { height: 285px; }
  .pillar.short { height: 205px; }
  .pillar small { display: none; }
  .stage-gate p { letter-spacing: .1em; }
  .section-heading { flex-wrap: wrap; gap: 7px; }
  .section-heading p { position: static; width: 100%; line-height: 1.7; }
  .opera-grid, .moral-notes { grid-template-columns: 1fr; }
  .opera-grid { width: min(330px, 90%); margin: auto; }
  .moral-notes { margin-top: 65px; }
  .note-mascot { right: -18px; width: 110px; }
  .paper-note { padding: 34px 28px; }
  .history-copy { padding: 30px 24px; }
  .knowledge-card { grid-template-columns: 1fr; }
  .knowledge-card img { aspect-ratio: 16/9; }
  .face-meaning-grid { grid-template-columns: 1fr; }
  .mask-workbench { min-height: auto; }
  #maskCanvas { width: min(100%, 360px); }
  .pigment-panel { min-height: 430px; }
  .pigment-wheel { width: 390px; max-width: 100%; }
  .pigment-wheel button { font-size: 12px; }
  .pigment-wheel button i { width: 34px; height: 34px; }
  .mask-gallery { margin-top: 80px; }
  .mask-deck { min-height: 340px; }
  .labor-collage { min-height: 650px; }
  .labor-collage .materials { left: 0; width: 52%; }
  .fabric-lens { width: 160px; height: 160px; top: 41%; }
  .labor-collage .tip { left: 24%; top: 4%; width: 76%; font-size: 14px; }
  .labor-collage .puppet-collage { right: 0; width: 72%; }
  .labor-collage .red-puppet { right: 40%; width: 35%; }
  .labor-collage .labor-monkey { right: -4%; top: 54%; width: 30%; opacity: .88; }
  .craft-bilingual-list { grid-template-columns: 1fr; }
  .craft-bilingual-list article:last-child { grid-column: auto; }
  .craft-bilingual summary span { float: none; display: block; margin-top: 4px; }
  .diy-step-grid, .craft-five { grid-template-columns: 1fr; }
  .moon-paper { width: 100%; padding: 62px 32px; border-radius: 42%; }
  .lychee { width: 170px; opacity: .82; }
  .village-actions { flex-direction: column; }
  .village-ip { right: -30%; width: 78vw; opacity: .62; }
  .lychee-d, .lychee-e { bottom: -3%; }
  .lychee-f { right: -70px; }
  .product-grid { grid-template-columns: 1fr; width: min(360px, 100%); margin: auto; }
  .appointment { padding: 24px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .site-footer > a { width: 100%; margin: 20px 0 0; }
  .floating-tools { right: 8px; bottom: 10px; gap: 5px; }
  .floating-tools > button, .floating-tools > a { grid-template-columns: 24px 1fr; min-width: 82px; min-height: 40px; padding: 5px 7px; }
  .floating-tools span { width: 24px; height: 24px; }
  .puppet-egg { width: 62px; left: 2px; }
  .paper-dialog, .share-dialog, .media-dialog, .qr-dialog, .map-dialog, .appointment-dialog, .cart-dialog, .stamp-dialog { padding: 42px 24px 30px; }
  .story-dialog-layout { grid-template-columns: 1fr; }
  .story-dialog-layout > img { width: 150px; margin: auto; }
  .quiz-options, .appointment-dialog form { grid-template-columns: 1fr; }
  .appointment-dialog label:last-of-type, .appointment-dialog form > button, .form-status { grid-column: auto; }
  .share-actions { flex-wrap: wrap; }
  .stamp-grid { grid-template-columns: repeat(2,1fr); }
  .cart-dialog form { grid-template-columns: 1fr; }
  .cart-dialog form .wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 栏目路由：导览页与六个栏目分别呈现，避免整站内容纵向堆叠。 */
[hidden] { display: none !important; }
.js .route-panel:not(.is-active-panel) { display: none !important; }
.route-panel.is-active-panel { animation: panelReveal .62s cubic-bezier(.2,.8,.2,1) both; }
.stage-gate { display: none !important; }
body[data-active="guide"] .floating-tools,
body[data-active="guide"] .puppet-egg { opacity: 0; pointer-events: none; }
.paper-section,
.village { min-height: 100svh; padding-top: calc(var(--header-height) + 58px); }
.section-back {
  position: absolute;
  z-index: 18;
  top: calc(var(--header-height) + 18px);
  left: clamp(20px, 4vw, 62px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(126, 87, 36, .25);
  border-radius: 999px;
  color: #74502c;
  background: rgba(255, 251, 239, .82);
  box-shadow: 0 10px 28px rgba(70, 44, 14, .08);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.section-back:hover { transform: translateX(-4px); }
.section-back.inverse { color: #fff8e7; border-color: rgba(255,255,255,.35); background: rgba(50,35,20,.34); }
.hero { min-height: 124svh; }
.pillar-nav.reveal { transform: translate(-50%, 36px); }
.pillar-nav.reveal.is-visible { transform: translate(-50%, 0); }
.pillar-nav.is-emphasized .pillar { animation: pillarCall .72s cubic-bezier(.2,.8,.2,1) both; }
.pillar-nav.is-emphasized .pillar:nth-child(2) { animation-delay: .06s; }
.pillar-nav.is-emphasized .pillar:nth-child(3) { animation-delay: .12s; }
.pillar-nav.is-emphasized .pillar:nth-child(4) { animation-delay: .18s; }
.pillar-nav.is-emphasized .pillar:nth-child(5) { animation-delay: .24s; }
.pillar-nav.is-emphasized .pillar:nth-child(6) { animation-delay: .3s; }

/* 偶识百科沿用PPT的“一个主题一屏”结构，并在各主题内提供完整英文。 */
.wisdom-topic-tabs { display: flex; justify-content: center; gap: 12px; margin: -22px 0 44px; }
.wisdom-topic-tabs button { min-width: 128px; padding: 12px 22px; border: 1px solid #9f7b45; color: #725329; background: rgba(255,255,255,.42); }
.wisdom-topic-tabs button.is-active { color: #fff; background: #9f7b45; box-shadow: 0 11px 24px rgba(101,68,27,.16); }
.wisdom-topic { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); gap: clamp(38px,6vw,90px); align-items: start; }
.wisdom-topic.is-active { animation: topicIn .58s cubic-bezier(.2,.8,.2,1) both; }
.topic-visual { position: sticky; top: calc(var(--header-height) + 50px); margin: 0; transform: rotate(-1.2deg); }
.topic-visual > img { width: 100%; max-height: 520px; aspect-ratio: 4/3; border: 8px solid #fff; object-fit: cover; box-shadow: var(--shadow); }
.topic-visual .round-play { border: 0; }
.topic-visual figcaption { margin: 13px 8px 0; color: #8a6b3a; font-family: "KaiTi", serif; font-size: 18px; }
.topic-copy { padding: 36px 42px; border-left: 2px solid rgba(168,114,45,.25); background: rgba(255,255,255,.56); }
.topic-copy h3 { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 25px; color: #a23b32; font-family: "KaiTi", serif; font-size: 34px; }
.topic-copy h3 i { width: 42px; height: 20px; background: url("./assets/clouds.webp") center/contain no-repeat; }
.topic-copy > p { margin: 0 0 18px; color: #4e4436; font-family: "KaiTi", serif; font-size: 18px; line-height: 2; text-indent: 2em; }
.topic-copy .knowledge-motto { color: #916022; font-weight: 700; font-style: italic; text-align: center; text-indent: 0; }
.topic-copy .bilingual-panel { margin-top: 28px; padding: 0 24px; background: rgba(251,247,235,.82); }
.topic-copy .bilingual-panel p { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.85; }

/* 上色区域集中在脸部：完整面部为底色，五官区域可继续叠色。 */
.paint-zone.face-base { opacity: 1; }
.paint-zone.face-base.is-painted,
.paint-zone:not(.face-base).is-painted { opacity: 1; }
.paint-zone:focus-visible { outline: none; stroke: rgba(160,90,36,.95); stroke-width: 5; }
.mask-workbench { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.paint-region-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.paint-region-controls button { padding: 7px 11px; border: 1px solid rgba(137,94,44,.35); border-radius: 999px; color: #6f4e2d; background: rgba(255,251,239,.76); }
.paint-region-controls button:hover,
.paint-region-controls button.is-active { color: #fff; background: #9d6b3f; }
.paint-region-controls button:active { transform: scale(.94); }
.mask-workbench .paint-actions { position: static; justify-content: center; margin-top: 12px; }
.paint-status { margin: 9px 0 0; color: #786247; font-size: 13px; text-align: center; }
.paint-status b { color: #9d6b3f; }

/* 地图按原始像素展示，只缩小不放大。 */
.map-dialog { width: min(1920px, calc(100vw - 40px)); max-height: calc(100svh - 40px); }
.map-dialog img { width: auto; height: auto; max-width: 100%; max-height: 76svh; margin: 0 auto; object-fit: contain; }

@keyframes panelReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes topicIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pillarCall { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-24px); } }
@keyframes zoneDab { 0% { opacity: .25; } 45% { opacity: .96; } 100% { opacity: .82; } }
@keyframes pigmentSplash { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.18) rotate(-8deg); } 34% { opacity: .46; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.55) rotate(8deg); } }

@media (max-width: 960px) {
  .hero { min-height: 118svh; }
  .wisdom-topic { grid-template-columns: 1fr; }
  .topic-visual { position: relative; top: auto; width: min(620px,100%); margin: 0 auto; }
}

@media (max-width: 620px) {
  .hero { min-height: 116svh; }
  .section-back { top: calc(var(--header-height) + 12px); left: 12px; padding: 7px 11px; font-size: 13px; }
  .wisdom-topic-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: -10px; }
  .wisdom-topic-tabs button { min-width: 0; padding: 10px 5px; font-size: 13px; }
  .topic-copy { padding: 28px 20px; }
  .topic-copy > p { font-size: 16px; }
  .topic-copy .bilingual-panel { padding: 0 15px; }
  .topic-visual > img { max-height: 360px; }
  .map-dialog { width: calc(100vw - 18px); padding-inline: 12px; }
}

/* 导览首页：依照终版视觉稿重构为上金下灰、五列错落竖牌与黄衣木偶的构图。 */
body[data-active="guide"] .site-header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
#guide .guide-title {
  position: absolute;
  z-index: 6;
  top: calc(var(--header-height) + 110px);
  left: 50%;
  width: min(920px, 66vw);
  display: block;
  padding: 0;
  margin: 0;
  line-height: 0;
  transform: translateX(-50%) rotate(-0.6deg);
  pointer-events: none;
}
#guide .guide-title img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-subtitle {
  position: absolute;
  z-index: 7;
  top: calc(var(--header-height) + 400px);
  left: 50%;
  width: min(760px, 72vw);
  color: #fff;
  font-family: "KaiTi", "STKaiti", serif;
  font-size: clamp(22px, 2.35vw, 32px);
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(69,45,14,.55);
  transform: translateX(-50%);
  transition: transform .3s ease, text-shadow .3s ease;
}
.guide-subtitle:hover,
.guide-subtitle:focus-visible { transform: translateX(-50%) translateY(-4px); text-shadow: 0 4px 9px rgba(69,45,14,.7); }
#guide.hero {
  min-height: max(1050px, 155svh);
  padding-top: var(--header-height);
  isolation: isolate;
  background: #f4dfad url("./assets/paper-gold.webp") center top / cover no-repeat;
}
#guide .hero-wash {
  z-index: 0;
  background: rgba(255,252,241,.56);
}
.guide-stage-figure {
  position: absolute;
  z-index: 1;
  top: clamp(410px, 44svh, 455px);
  right: clamp(-310px, -20vw, -150px);
  width: auto;
  max-width: none;
  height: clamp(820px, 150svh, 1180px);
  object-fit: contain;
  object-position: right center;
  transform: translateY(-50%);
  pointer-events: none;
  filter: saturate(1.04) drop-shadow(0 18px 22px rgba(104,72,24,.09));
}
#guide .spark-one { z-index: 3; left: 8%; top: 46%; width: 50px; height: 50px; transform: rotate(16deg); }
#guide .spark-two { display: none; }
#guide .hero-deco { z-index: 9; opacity: 1; filter: drop-shadow(0 12px 10px rgba(80,51,16,.13)); }
#guide .hero-deco-a { left: calc(50% - 625px); top: 860px; bottom: auto; width: 210px; transform: rotate(-7deg); }
#guide .hero-deco-b { display: none; }
#guide .hero-deco-c { left: auto; right: calc(50% - 450px); top: 690px; width: 105px; transform: rotate(3deg); }
#guide .pillar-nav {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: clamp(520px, 82vh, 620px);
  bottom: auto;
  width: min(790px, calc(100% - 250px));
  height: 500px;
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 130px));
  grid-template-rows: 235px 235px;
  justify-content: center;
  align-content: start;
  gap: 14px 30px;
  transform: translateX(-50%);
}
#guide .pillar-nav.reveal,
#guide .pillar-nav.reveal.is-visible { transform: translateX(-50%); }
#guide .pillar {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 362px;
  align-self: start;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(1px);
}
#guide .pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  opacity: .98;
}
#guide .pillar:hover,
#guide .pillar:focus-visible { transform: translateY(-14px); filter: saturate(1.1) brightness(1.03); }
#guide .pillar b {
  display: block;
  position: relative;
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(30px, 2.7vw, 43px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  white-space: nowrap;
  text-shadow: 0 2px 3px rgba(66,40,15,.08);
}
#guide .pillar small { display: none; }
#guide .pillar:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; height: 405px; margin-top: 44px; }
#guide .pillar:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; height: 405px; }
#guide .pillar:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; height: 407px; margin-top: 44px; }
#guide .pillar:nth-child(4) { grid-column: 4; grid-row: 1 / span 2; height: 405px; }
#guide .pillar:nth-child(5) { grid-column: 5; grid-row: 1; height: 220px; margin-top: 44px; }
#guide .pillar:nth-child(6) { grid-column: 5; grid-row: 2; height: 220px; margin-top: 20px; }
#guide .pillar-dark { background: rgba(37,38,35,.94); }
#guide .pillar-gold { background: rgba(158,131,66,.76); }
#guide .pillar-sage { background: rgba(132,149,104,.82); }
#guide .pillar-copper { background: rgba(188,121,73,.8); }
#guide .pillar:nth-child(2)::after,
#guide .pillar:nth-child(3)::after,
#guide .pillar:nth-child(4)::after,
#guide .pillar:nth-child(6)::after {
  content: "";
  position: absolute;
  inset: 16% 0 0;
  z-index: 0;
  opacity: .24;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 92% auto;
  pointer-events: none;
}
#guide .pillar:nth-child(2)::after {
  inset: 0;
  opacity: .17;
  background-image: url("./assets/hero-puppet.webp");
  background-position: center 38%;
  background-size: 205% auto;
  filter: grayscale(.92) sepia(.8) contrast(.82);
}
#guide .pillar:nth-child(3)::after {
  inset: 68% 19% 2%;
  opacity: 1;
  background-image: url("./assets/hero-puppet-b.webp");
  background-size: contain;
}
#guide .pillar:nth-child(4)::after { background-image: url("./assets/labor-turntable.webp"); background-size: 72% auto; }
#guide .pillar:nth-child(6)::after { background-image: url("./assets/product-holder.webp"); opacity: .3; }

/* 上色始终限制在各自轮廓内部，不再显示跨出脸框的飞溅或虚线描边。 */
#maskCanvas { overflow: hidden; }
.paint-layer { clip-path: url(#faceFrame); }
.paint-zone { stroke: transparent !important; filter: none !important; shape-rendering: geometricPrecision; }
.paint-zone.is-selected,
.paint-zone:focus-visible { stroke: transparent !important; outline: none; }
.paint-splash { display: none !important; }

@media (max-width: 1100px) {
  #guide .pillar-nav { width: min(720px, calc(100% - 120px)); gap: 28px 20px; }
  #guide .hero-deco-a { left: -8%; width: 190px; }
  #guide .hero-deco-c { right: 3%; }
}

@media (max-width: 760px) {
  #guide .guide-title {
    top: calc(var(--header-height) + 20px);
    left: 50%;
    width: calc(100% - 16px);
    transform: translateX(-50%) rotate(-0.4deg);
  }
  .guide-subtitle {
    top: calc(var(--header-height) + 260px);
    width: calc(100% - 36px);
    font-size: clamp(16px, 4.6vw, 20px);
    letter-spacing: .02em;
    white-space: normal;
  }
  #guide.hero {
    min-height: 1080px;
    background: #f4dfad url("./assets/paper-gold.webp") center top / cover no-repeat;
  }
  .guide-stage-figure {
    top: 35%;
    right: -260px;
    width: auto;
    height: clamp(760px, 102svh, 900px);
    transform: translateY(-50%);
    opacity: .48;
  }
  #guide .spark-one { left: 6%; top: 20%; width: 34px; height: 34px; }
  #guide .hero-deco-a { left: -28%; top: auto; bottom: -115px; width: 155px; opacity: .78; }
  #guide .hero-deco-b { display: none; }
  #guide .hero-deco-c { right: 2%; top: 55%; width: 84px; }
  #guide .pillar-nav {
    top: 380px;
    width: calc(100% - 34px);
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 214px);
    gap: 14px;
  }
  #guide .pillar { height: 214px !important; margin: 0 !important; }
  #guide .pillar:nth-child(1) { grid-column: 1; grid-row: 1; }
  #guide .pillar:nth-child(2) { grid-column: 2; grid-row: 1; }
  #guide .pillar:nth-child(3) { grid-column: 1; grid-row: 2; }
  #guide .pillar:nth-child(4) { grid-column: 2; grid-row: 2; }
  #guide .pillar:nth-child(5) { grid-column: 1; grid-row: 3; }
  #guide .pillar:nth-child(6) { grid-column: 2; grid-row: 3; }
  #guide .pillar b { font-size: clamp(27px, 8vw, 36px); letter-spacing: .12em; }
}
