:root {
  color-scheme: light;
  --ink: #342a42;
  --muted: #6d5e74;
  --plum: #554269;
  --paper: #fffaf4;
  --rule: #e5d9e9;
  --shadow: 0 22px 55px #5145631e;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid #74598f; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", Georgia, serif; }
h2 { font-size: clamp(35px, 4.8vw, 62px); font-weight: 600; line-height: 1.18; letter-spacing: -.035em; }
section[id] { scroll-margin-top: 92px; }
#top { scroll-margin-top: 90px; }
.page-width { width: min(100% - 96px, 1200px); margin-inline: auto; }
.site-header { position: sticky; z-index: 2; top: 0; min-height: 73px; padding-inline: max(48px, calc((100% - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e8dde7; background: #fffaf5f5; }
.brand { display: inline-block; color: var(--ink); font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; font-weight: 700; font-size: 23px; letter-spacing: .06em; white-space: nowrap; }
.brand small { display: block; font-family: "DM Sans", sans-serif; color: var(--muted); margin-top: 4px; font-size: 9px; letter-spacing: .18em; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); font-size: 14px; white-space: nowrap; }
nav > a { padding-block: 8px; }
nav > a:hover { color: #73568d; }
nav .nav-contact { padding: 8px 15px; border: 1px solid #d9c9e2; background: #f4eaf7; border-radius: 999px; }

.hero-scene {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 16% 75%, #ffeadc 0, transparent 60%),
              radial-gradient(ellipse at 85% 5%, #d9d1f1 0, transparent 67%), #f8ebf3;
}
.hero-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.star-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.cloud-bank { position: absolute; width: 100%; height: clamp(58px, 9vw, 124px); bottom: -20px; left: 0; }
.dream-star { position: absolute; width: var(--size); aspect-ratio: 1; color: var(--star-color); opacity: .85; }
.dream-star::before {
  content: "";
  display: block;
  height: 100%;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.dream-star--amber { --size: 21px; --star-color: #b48449; left: 26%; top: 17%; }
.dream-star--lilac { --size: 24px; --star-color: #a282ba; left: 37%; bottom: 23%; }
.dream-star--pearl { --size: 34px; --star-color: #fffaf3; right: 9%; top: 9%; }
.shooting-star {
  position: absolute;
  top: 7%;
  left: 43%;
  width: clamp(56px, 7vw, 100px);
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #d39b6a 83%, #fff5d9);
  border-radius: 50%;
}
.shooting-star::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff7e2;
  box-shadow: 0 0 9px 2px #f5b77f;
}
@media (prefers-reduced-motion: no-preference) {
  .dream-star { animation: starlight 3.6s ease-in-out infinite alternate; }
  .dream-star--lilac { animation-duration: 4.3s; animation-delay: -1.5s; }
  .dream-star--pearl { animation-duration: 4.8s; animation-delay: -3s; }
  .cloud-bank { animation: cloud-drift 8s ease-in-out infinite alternate; }
  .shooting-star { animation: shooting-star 16s linear .15s infinite; }
  .hero-scene[data-offscreen] :is(.dream-star, .cloud-bank, .shooting-star) {
    animation-play-state: paused;
  }
}
@keyframes starlight {
  from { opacity: .32; transform: translateY(0) scale(.7); }
  to { opacity: 1; transform: translateY(-9px) scale(1.16); }
}
@keyframes cloud-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}
@keyframes shooting-star {
  0% { opacity: 0; transform: translate(0, 0) rotate(12deg) scaleX(.38); }
  2% { opacity: 1; }
  7%, 100% { opacity: 0; transform: translate(clamp(85px, 14vw, 200px), 27px) rotate(12deg) scaleX(1); }
}
.hero { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(30px, 5.7vw, 81px); padding-block: clamp(66px, 8.5vw, 115px); }
.hero h1 { font-size: clamp(45px, 7vw, 96px); font-weight: 600; letter-spacing: -.055em; line-height: 1.07; white-space: nowrap; }
.hero-line { margin-top: 20px; color: #624d72; font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; font-size: clamp(21px, 2.6vw, 32px); }
.hero-description { max-width: 23em; margin-top: 15px; color: var(--muted); line-height: 1.85; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 19px; border-radius: 999px; font-weight: 650; font-size: 14px; transition: background-color .2s; }
.button-primary, .button-dark { color: #fff9f7; background: var(--plum); }
.button-primary:hover, .button-dark:hover { background: #433253; }
.button-primary { margin-top: 26px; }
.film-frame { padding: 8px; border: 1px solid #fffbff; background: #fffaf6a8; border-radius: 21px; box-shadow: var(--shadow); }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 14px; background: #262244; }
.film figcaption, .feature-art figcaption { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding-top: 12px; }

.cast {
  padding-block: 78px 84px;
  background: radial-gradient(ellipse at 76% 26%, #f3e9f7, transparent 62%),
              linear-gradient(var(--paper), #fdf5f9 60%, #f9edf4);
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading > p { max-width: 28em; color: var(--muted); line-height: 1.8; }
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #70587d;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
}
.section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 2px;
  border-radius: 2px;
  background: #b48eab;
  transform: rotate(45deg);
}
.character-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(12px, 2vw, 26px);
}
.character-card {
  overflow: hidden;
  border: 1px solid #ebdfe7;
  background: #fffcf9;
  border-radius: 24px;
  box-shadow: 0 7px 22px #4f3d510e;
}
.character-art { display: grid; place-items: center; aspect-ratio: 1.32; }
.character-art img { width: 73%; max-width: 230px; height: auto; }
.mian {
  background: radial-gradient(ellipse at 50% 48%, #fffaf0 14%, #f9e6ee 57%, #efd8ed);
}
.cookie { background: radial-gradient(ellipse at 48% 45%, #fff8ea, #f1dfcb); }
.star { background: radial-gradient(ellipse at 52% 44%, #f8f4ff, #e1def2); }
.pig { background: radial-gradient(ellipse, #fff0f4, #f1dce9); }
.character-lead {
  border-color: #e2c8dd;
  background: #fff9fc;
  box-shadow: 0 13px 34px #a0759a29;
}
.character-lead .character-art { aspect-ratio: 1.22; }
.character-lead .character-art img { width: 79%; max-width: 270px; }
.pig-card {
  display: grid;
  grid-template-columns: clamp(100px, 15vw, 160px) minmax(0, 1fr);
  width: min(100%, 520px);
  margin: clamp(16px, 3vw, 32px) auto 0;
}
.pig-card .character-art { aspect-ratio: auto; min-height: 132px; }
.pig-card .character-art img { width: min(82%, 118px); }
.pig-card .character-copy { align-self: center; padding-inline: clamp(16px, 2.2vw, 26px); }
.character-copy { padding: 19px 17px 22px; }
.character-copy h3 { margin-block: 5px 8px; font-size: 25px; letter-spacing: .045em; }
.character-copy p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; }
.collection { color: #755b80; font-size: 12px; }

.sticker-section {
  background: radial-gradient(ellipse at 16% 45%, #f0e1f1, transparent 61%),
              linear-gradient(#f9edf4, #fff7ef 56%, #f4eaf5);
}
.stickers { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6.5vw, 90px); padding-block: clamp(52px, 7vw, 96px); }
.sticker-art { overflow: hidden; border: 1px solid #e9dce9; border-radius: 24px; padding: 7px; background: #fffbf8; box-shadow: 0 14px 38px #5145631c; }
.sticker-art img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 17px; }
.sticker-copy > p:not(.section-label) { color: var(--muted); margin-top: 14px; line-height: 1.7; }
.sticker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.sticker-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; color: var(--ink); background: #faf3f5; border: 1px solid #eaddea; border-radius: 15px; text-align: left; cursor: pointer; }
.sticker-list button:hover { background: #f0e5f3; border-color: #d6c3df; }
.sticker-thumb { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; position: relative; }
.sticker-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sticker-thumb:has(img + img) { display: block; }
.sticker-thumb:has(img + img) img { position: absolute; width: 65%; height: 86%; left: 0; top: 7%; }
.sticker-thumb img + img { margin-left: 35%; }
.sticker-upcoming { border-top: 1px solid var(--rule); padding-top: 15px; }
.sticker-upcoming h3 { font-size: 19px; }
.sticker-upcoming p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.55; }
.sticker-name { font-weight: 650; font-size: 14px; }
.sticker-name small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.copy-status { min-height: 1.7em; font-size: 13px; }

.collab {
  padding-block: 76px;
  background: radial-gradient(ellipse at 90% 0, #e5dcf3, transparent 56%) top / 100% 650px no-repeat,
              linear-gradient(#f4eaf5, #f8f0f6 45%, #fff7ef);
}
.collab-intro > p:not(.section-label) { color: var(--muted); max-width: 35em; line-height: 1.8; margin-top: 15px; }
.collab-contact { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding: 18px clamp(14px, 2.8vw, 30px); border: 1px solid #e5d7e5; border-radius: 16px; background: #fffbf7; }
.collab-contact h3 { font-size: 24px; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; flex: 0 1 540px; }
.contact-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: baseline; gap: 3px 8px; min-height: 44px; padding: 10px 13px; border: 1px solid #e6d9e8; border-radius: 9px; background: #f8f1f7; color: var(--plum); font-size: 14px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.contact-action:hover { background: #f1e8f4; }
.contact-action > span { grid-column: 1 / -1; }
.contact-action span, .contact-action small { color: var(--muted); font-size: 12px; }
.collab-contact .copy-status { position: absolute; inset: 100% 0 auto; text-align: end; color: var(--plum); }
.collab-jumps { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 34px 25px; }
.collab-jumps a { padding: 8px 15px; border: 1px solid #dfcfe3; background: #fffbf7; border-radius: 999px; }
.collab-jumps a:hover { background: #f3e7f2; }
.gallery-group {
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid #ede0e7;
  border-radius: clamp(20px, 3vw, 32px);
}
.gallery-spaces { background: linear-gradient(145deg, #f2e9f8, #faf4f8); }
.gallery-family { background: linear-gradient(135deg, #fff6ed, #fcf7f4 60%, #f2eff8); }
.gallery-lifestyle { background: linear-gradient(140deg, #fbf3e9, #fbf5f8); }
.gallery-group + .gallery-group { margin-top: clamp(24px, 5vw, 64px); }
.gallery-heading { margin-bottom: clamp(18px, 2.5vw, 30px); }
.gallery-heading h3 { font-size: clamp(26px, 3.5vw, 42px); }
.gallery-heading p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 2.1vw, 25px);
}
.gallery-spaces .feature-art { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(18px, 3vw, 34px); }
.gallery-spaces .feature-art > figure { grid-column: span 3; }
.gallery-spaces .feature-art > .gallery-lead { grid-column: span 7; }
.gallery-spaces .feature-art > .gallery-companion { grid-column: span 5; align-self: center; }
.gallery-family .feature-art { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
.gallery-family .gallery-lead { grid-row: span 2; align-self: center; }
.gallery-family .feature-art > :not(.gallery-lead) img { aspect-ratio: 16 / 10; }
.feature-drinks { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; }
.gallery-subheading { margin: 0 0 14px; color: var(--ink); font-size: 16px; }
.feature-drinks + .gallery-subheading { margin-top: clamp(25px, 4vw, 46px); }
.feature-art figure {
  background: #fffcf8;
  border: 1px solid #fff;
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 6px 24px #51456310;
}
.feature-art .gallery-lead {
  padding: clamp(6px, 1vw, 12px);
  border-radius: 23px;
  box-shadow: 0 11px 30px #5145631a;
}
.gallery-preview { display: block; overflow: hidden; border-radius: 11px; cursor: zoom-in; }
.gallery-preview:hover img { transform: scale(1.025); }
.gallery-preview img { transition: transform .22s ease; }
.gallery-dialog { width: fit-content; max-width: min(94vw, 980px); padding: 14px; border: 1px solid var(--rule); border-radius: 16px; background: #fffcf8; color: var(--ink); }
.gallery-dialog::backdrop { background: #251a31bd; }
.gallery-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.gallery-dialog h2 { font-size: 18px; }
.gallery-dialog button { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; }
.gallery-dialog img { width: auto; max-height: 78vh; object-fit: contain; border-radius: 9px; }
.feature-art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-spaces .feature-art img { aspect-ratio: 3 / 2; object-position: center; }
.feature-art figcaption { display: grid; gap: 5px; padding: 13px 12px 16px; }
.feature-art figcaption strong { color: var(--ink); font-size: 15px; }
.feature-art figcaption span { line-height: 1.65; }
.gallery-lead figcaption { padding: 15px clamp(10px, 1.8vw, 22px) 18px; }
.gallery-lead figcaption strong {
  font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(18px, 2.2vw, 30px);
}
.site-footer { padding-block: 30px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.site-footer .brand { font-size: 17px; }
.footer-links a:last-child:hover { text-decoration: underline; }
.footer-copyright {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  text-align: center;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .character-art img { transition: transform .35s ease; }
  .character-card:hover .character-art img { transform: translateY(-5px); }
}

@media (max-width: 920px) {
  .page-width { width: calc(100% - 48px); }
  .site-header { padding-inline: 24px; }
  .hero { gap: 27px; }
  .character-art img { max-width: 210px; }
  .gallery-spaces .feature-art { column-gap: 12px; }
}
@media (max-width: 660px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; min-height: 60px; gap: 8px; }
  .brand { font-size: 19px; }
  .brand small { display: none; }
  nav { font-size: 12px; gap: 11px; }
  nav .nav-contact { padding: 7px 9px; }
  section[id], #top { scroll-margin-top: 73px; }
  .hero, .stickers { grid-template-columns: 1fr; }
  .hero { gap: 25px; padding-block: 42px 35px; }
  .star-trail { opacity: .68; }
  .dream-star--amber { left: 66%; top: 9%; }
  .dream-star--lilac { display: none; }
  .shooting-star { left: 48%; top: 4%; }
  .dream-star--pearl { --size: 25px; right: 7%; top: 31%; }
  .hero-line { margin-top: 12px; }
  .hero-description { margin-top: 10px; }
  .button-primary { margin-top: 18px; }
  .film-frame { padding: 5px; border-radius: 15px; }
  .film video { border-radius: 10px; }
  .cast, .stickers, .collab { padding-block: 44px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 11px; }
  .character-grid { gap: 10px; }
  .character-copy { padding: 9px; }
  .character-copy h3 { font-size: clamp(17px, 4.2vw, 22px); }
  .character-copy p:last-child, .character-copy .collection { font-size: 11px; }
  .pig-card .character-art { min-height: 112px; }
  .stickers .sticker-art { order: 1; }
  .feature-art, .gallery-spaces .feature-art, .gallery-family .feature-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gallery-spaces .feature-art > figure { grid-column: auto; }
  .gallery-spaces .feature-art > .gallery-lead,
  .gallery-family .gallery-lead { grid-column: 1 / -1; grid-row: auto; }
  .gallery-spaces .feature-art > .gallery-companion { grid-column: auto; align-self: stretch; }
  .feature-drinks { grid-template-columns: 1fr; }
  .collab-jumps { margin-block: 24px 20px; }
  .contact-actions { grid-template-columns: 1fr; }
  .sticker-list button { gap: 6px; }
  .sticker-thumb { width: 35px; height: 35px; }
  .footer-links { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .site-header { padding-inline: 12px; }
  .site-header nav { gap: 8px; }
  .site-header nav > a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero h1 { white-space: normal; }
  .hero { padding-top: 30px; }
  .character-grid { grid-template-columns: 1fr; }
  .character-card { display: grid; grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); align-items: stretch; }
  .character-card .character-art { aspect-ratio: auto; min-height: 108px; }
  .character-lead { grid-template-columns: minmax(108px, 39%) minmax(0, 1fr); order: -1; }
  .character-lead .character-art { min-height: 130px; }
  .character-lead .character-copy { align-self: center; }
  .character-lead .character-copy h3 { font-size: 24px; }
  .feature-art, .gallery-spaces .feature-art, .gallery-family .feature-art { grid-template-columns: 1fr; }
  .character-copy { padding: 12px; }
  .character-copy p:last-child { font-size: 13px; }
  .character-copy .collection { font-size: 12px; }
  .sticker-name { font-size: 13px; overflow-wrap: anywhere; }
  .sticker-list button { min-height: 44px; padding-inline: 7px; }
  .sticker-thumb { width: 30px; height: 30px; }
  .collab-jumps a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; }
  .gallery-dialog { max-width: calc(100vw - 20px); padding: 10px; }
  .gallery-dialog button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
