* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  --safe-area-top: 0px;
  --safe-area-bottom: 0px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: #170707;
}
@supports (padding-top: env(safe-area-inset-top)) {
  html {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ffda95;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.nav-links {
  display: flex;
}
.nav-item + .nav-item {
  margin-left: 12px;
}
.nav-item > span {
  margin-top: 4px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  font-size: 10px;
  line-height: 16px;
  color: white;
  white-space: nowrap;
}
.nav-symbol {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.nav-item:hover {
  filter: brightness(1.2);
}
.distribution-error {
  position: fixed;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  z-index: 90;
  width: 94%;
  max-width: 380px;
  padding: 8px 12px;
  border: 1px solid #bd8746;
  border-radius: 10px;
  background: #2a170ff5;
  color: #ffe1b0;
  font-size: 12px;
  text-align: center;
}
.distribution-error button {
  min-height: 32px;
  border: 0;
  background: none;
  color: #ffda95;
  text-decoration: underline;
  margin-left: 8px;
}
.distribution-toast {
  position: fixed;
  bottom: 40px;
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: max-content;
  max-width: 90%;
  padding: 12px 20px;
  border-radius: 12px;
  background: #211810ed;
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.distribution-browser-guide {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 90%;
  max-width: 380px;
  padding: 24px;
  border: 1px solid #c89752;
  border-radius: 16px;
  background: #321b12;
  color: #ffdda1;
  line-height: 1.7;
}
.distribution-browser-guide::backdrop {
  background: #0009;
}
.distribution-browser-guide h2 {
  font-size: 20px;
}
.distribution-close {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 28px;
  min-width: 40px;
  min-height: 40px;
}

body {
  color: #fff;
  background: #220708;
}
/* Figma 439:994 is flattened into one backdrop. All coordinates below follow
   the 750 × 1459 artboard. Older engines receive pixel units from layout.js;
   capable engines keep native container sizing without JavaScript. */
.page-wrapper {
  position: relative;
  isolation: isolate;
  --layout-unit: var(--legacy-layout-unit, 1vw);
  container-type: inline-size;
  width: var(--legacy-page-width, 100%);
  max-width: 390px;
  min-height: var(--legacy-page-height, 100vh);
  margin: auto;
  overflow: hidden;
  background: #220708;
}
@media (min-width: 390px) {
  .page-wrapper {
    --layout-unit: var(--legacy-layout-unit, 3.9px);
  }
}
@supports (width: 1cqw) {
  .page-wrapper {
    --layout-unit: 1cqw;
  }
}
@supports (width: 1cqw) and (height: 100svh) {
  .page-wrapper {
    width: min(100%, 390px, calc((100svh - var(--safe-area-top) - var(--safe-area-bottom)) * 0.51405));
    min-height: 100svh;
  }
}
.page-bg {
  position: absolute;
  top: var(--safe-area-top);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: #220708 url("../assets/figma-439/background.webp?v=20261021-opt1") center top / 100% auto
    no-repeat;
}
.header {
  position: absolute;
  z-index: 4;
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 2.133));
  left: calc(var(--layout-unit) * 4.533);
  right: calc(var(--layout-unit) * 3.2);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.logo img {
  display: block;
  width: calc(var(--layout-unit) * 26.4);
  height: auto;
}
.nav-item + .nav-item {
  margin-left: calc(var(--layout-unit) * 2.667);
}
.nav-item > span {
  margin-top: calc(var(--layout-unit) * 0.8);
}
.nav-item {
  min-width: calc(var(--layout-unit) * 10.133);
  min-height: calc(var(--layout-unit) * 11.733);
  font-size: 8px;
  line-height: 1.1;
  font-weight: 500;
}
.nav-symbol {
  width: calc(var(--layout-unit) * 5.911);
  height: calc(var(--layout-unit) * 5.911);
}
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 13));
  left: 50%;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-scene {
  position: static;
}
.hero-cast {
  position: absolute;
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 12.667));
  left: calc(var(--layout-unit) * 13.6);
  display: block;
  width: calc(var(--layout-unit) * 76.267);
  height: calc(var(--layout-unit) * 103.867);
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask: url("../assets/figma-439/hero-mask.svg") center / 100% 100% no-repeat;
  mask: url("../assets/figma-439/hero-mask.svg") center / 100% 100% no-repeat;
}
.story-label {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--layout-unit) * 34);
  height: calc(var(--layout-unit) * 9);
  overflow: hidden;
  background: url("../assets/figma-439/story-label.webp?v=20261021-opt1") center / 104% 165% no-repeat;
  color: #fff5ba;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px #3f0d06;
}
.story-label-left-top {
  left: calc(var(--layout-unit) * 1.8);
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 38.5));
}
.story-label-right-top {
  right: calc(var(--layout-unit) * 0.6);
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 38.7));
}
.story-label-left-bottom {
  left: calc(var(--layout-unit) * 3.6);
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 60.8));
}
.story-label-right-bottom {
  right: calc(var(--layout-unit) * 3.2);
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 62.3));
}
.recommendations {
  position: absolute;
  z-index: 2;
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 72.8));
  left: calc(var(--layout-unit) * 5.8);
  width: calc(var(--layout-unit) * 88.4);
  height: calc(var(--layout-unit) * 111);
  background: url("../assets/figma-439/film-board.webp") center / 100% 100% no-repeat;
}
.section-title {
  position: absolute;
  top: calc(var(--layout-unit) * 1.45);
  left: calc(var(--layout-unit) * 17.65);
  display: flex;
  align-items: center;
  width: calc(var(--layout-unit) * 49);
  height: calc(var(--layout-unit) * 7.5);
  color: #f9e5c3;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow:
    0 0 4px #ffd89a,
    0 2px 2px #5a1c09;
}
.film-art {
  flex: none;
  width: calc(var(--layout-unit) * 10.76);
  height: calc(var(--layout-unit) * 7.05);
  object-fit: contain;
  transform: rotate(5deg);
  margin-right: calc(var(--layout-unit) * 0.5);
}
.scroll-gallery {
  position: absolute;
  left: calc(var(--layout-unit) * 3.333);
  top: calc(var(--layout-unit) * 15);
  width: calc(var(--layout-unit) * 82);
  height: calc(var(--layout-unit) * 36.6);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.scroll-gallery + .scroll-gallery {
  top: calc(var(--layout-unit) * 53.2);
}
.scroll-gallery::-webkit-scrollbar {
  display: none;
}
.scroll-track {
  position: relative;
  display: flex;
  width: max-content;
  height: 100%;
}
.gallery-item {
  position: relative;
  flex: 0 0 calc(var(--layout-unit) * 25.6);
  width: calc(var(--layout-unit) * 25.6);
  height: 100%;
  overflow: hidden;
  border: 1px solid #e59f8b;
  border-radius: calc(var(--layout-unit) * 1.6);
  background: #260b08;
}
.gallery-item + .gallery-item {
  margin-left: calc(var(--layout-unit) * 2.65);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item figcaption,
.distribution-version {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gallery-item[data-loop-clone="true"] {
  pointer-events: none;
}
.download-section {
  position: absolute;
  top: var(--legacy-download-top, 91.8vw);
  left: calc(var(--layout-unit) * 6.4);
  display: flex;
  width: calc(var(--layout-unit) * 75.3);
}
.download-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  height: calc(var(--layout-unit) * 9.657);
  border: 1px solid #fff3cf;
  border-radius: calc(var(--layout-unit) * 1.6);
  background: linear-gradient(180deg, #fdda9a, #eaaf33);
  box-shadow: 0 1px 7px 1px #d78011;
  color: #843700;
}
.download-btn + .download-btn {
  margin-left: calc(var(--layout-unit) * 2.281);
}
.btn-icon {
  margin-right: calc(var(--layout-unit) * 0.9);
  display: block;
  flex: none;
  width: calc(var(--layout-unit) * 5.815);
  height: calc(var(--layout-unit) * 5.815);
  object-fit: contain;
}
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
}
.btn-main {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.btn-sub {
  font-size: 5px;
  line-height: 1.3;
}
.download-btn:disabled {
  cursor: not-allowed;
  filter: saturate(0.7);
}
.download-btn:not(:disabled):active {
  transform: translateY(1px);
}
.slogan {
  position: absolute;
  top: calc(var(--safe-area-top) + calc(var(--layout-unit) * 186.667));
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: calc(var(--layout-unit) * 1);
  line-height: 1.2;
  white-space: nowrap;
}
.slogan span {
  color: #f0bd55;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

@supports (font-size: clamp(1px, 2px, 3px)) {
  .nav-item {
    font-size: clamp(8px, calc(var(--layout-unit) * 2.4), 10px);
  }
  .story-label {
    font-size: clamp(14px, calc(var(--layout-unit) * 5.2), 22px);
  }
  .section-title {
    font-size: clamp(15px, calc(var(--layout-unit) * 5.067), 20px);
  }
  .btn-main {
    font-size: clamp(10px, calc(var(--layout-unit) * 3.067), 12px);
  }
  .btn-sub {
    font-size: clamp(5px, calc(var(--layout-unit) * 1.733), 7px);
  }
  .slogan {
    font-size: clamp(12px, calc(var(--layout-unit) * 4.667), 19px);
  }
  .download-section {
    top: min(
      calc(var(--layout-unit) * 91.8),
      calc(calc(var(--layout-unit) * 111) - 40px - calc(var(--layout-unit) * 0.5))
    );
  }
}
