* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  background: #170707;
}
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;
  gap: 12px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  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: min(94%, 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: 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;
  inset: 0;
  margin: auto;
  width: min(90%, 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; cqw keeps the layers aligned at every width. */
.page-wrapper {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 390px, calc((100svh - var(--safe-area-top) - var(--safe-area-bottom)) * 0.51405));
  min-height: 100svh;
  margin: auto;
  overflow: hidden;
  background: #220708;
}
.page-bg {
  position: absolute;
  inset: var(--safe-area-top) 0 0;
  z-index: -1;
  background: #220708 url("../assets/figma-439/background.webp") center top / 100% auto no-repeat;
}
.header {
  position: absolute;
  z-index: 4;
  top: calc(var(--safe-area-top) + 2.133cqw);
  left: 4.533cqw;
  right: 3.2cqw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.logo img {
  display: block;
  width: 26.4cqw;
  height: auto;
}
.nav-links {
  gap: 2.667cqw;
}
.nav-item {
  min-width: 10.133cqw;
  min-height: 11.733cqw;
  gap: 0.8cqw;
  font-size: clamp(8px, 2.4cqw, 10px);
  line-height: 1.1;
  font-weight: 500;
}
.nav-symbol {
  width: 5.911cqw;
  height: 5.911cqw;
}
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  top: calc(var(--safe-area-top) + 13cqw);
  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) + 12.667cqw);
  left: 13.6cqw;
  display: block;
  width: 76.267cqw;
  height: 103.867cqw;
  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: 21.6cqw;
  height: 6.8cqw;
  overflow: hidden;
  background: url("../assets/figma-439/story-label.webp") center / 104% 165% no-repeat;
  color: #fff5ba;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(9px, 3.733cqw, 15px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px #3f0d06;
}
.story-label-left-top {
  left: 2.8cqw;
  top: calc(var(--safe-area-top) + 56cqw);
}
.story-label-right-top {
  right: 0.933cqw;
  top: calc(var(--safe-area-top) + 58cqw);
}
.story-label-left-bottom {
  left: 4.533cqw;
  top: calc(var(--safe-area-top) + 66.533cqw);
}
.story-label-right-bottom {
  right: 1.867cqw;
  top: calc(var(--safe-area-top) + 68.267cqw);
}
.recommendations {
  position: absolute;
  z-index: 2;
  top: calc(var(--safe-area-top) + 77.2cqw);
  left: 7.6cqw;
  width: 84.8cqw;
  height: 106.667cqw;
  background: url("../assets/figma-439/film-board.webp") center / 100% 100% no-repeat;
}
.section-title {
  position: absolute;
  top: 1.45cqw;
  left: 17.65cqw;
  display: flex;
  align-items: center;
  width: 49cqw;
  height: 7.5cqw;
  color: #f9e5c3;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(15px, 5.067cqw, 20px);
  font-weight: 900;
  white-space: nowrap;
  text-shadow:
    0 0 4px #ffd89a,
    0 2px 2px #5a1c09;
}
.film-art {
  flex: none;
  width: 10.76cqw;
  height: 7.05cqw;
  object-fit: contain;
  transform: rotate(5deg);
  margin-right: 0.5cqw;
}
.scroll-gallery {
  position: absolute;
  left: 3.333cqw;
  top: 12.871cqw;
  width: 78.133cqw;
  height: 35.113cqw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.scroll-gallery + .scroll-gallery {
  top: 49.728cqw;
}
.scroll-gallery::-webkit-scrollbar {
  display: none;
}
.scroll-track {
  position: relative;
  display: flex;
  width: max-content;
  height: 100%;
  gap: 2.093cqw;
}
.gallery-item {
  position: relative;
  flex: 0 0 24.649cqw;
  width: 24.649cqw;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e59f8b;
  border-radius: 1.6cqw;
  background: #260b08;
}
.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: min(87.351cqw, calc(106.667cqw - 40px - 0.5cqw));
  left: 6.395cqw;
  display: flex;
  gap: 2.281cqw;
  width: 72cqw;
}
.download-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.9cqw;
  min-width: 0;
  min-height: 40px;
  height: 9.657cqw;
  border: 1px solid #fff3cf;
  border-radius: 1.6cqw;
  background: linear-gradient(180deg, #fdda9a, #eaaf33);
  box-shadow: 0 1px 7px 1px #d78011;
  color: #843700;
}
.btn-icon {
  display: block;
  flex: none;
  width: 5.815cqw;
  height: 5.815cqw;
  object-fit: contain;
}
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
}
.btn-main {
  font-size: clamp(10px, 3.067cqw, 12px);
  font-weight: 700;
  line-height: 1.2;
}
.btn-sub {
  font-size: clamp(5px, 1.733cqw, 7px);
  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) + 186.667cqw);
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(12px, 4.667cqw, 19px);
  font-weight: 900;
  letter-spacing: 1cqw;
  line-height: 1.2;
  white-space: nowrap;
}
.slogan span {
  color: #f0bd55;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
