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

:root {
  --ink: #1e2733;
  --muted: rgba(30, 39, 51, 0.68);
  --paper: rgba(255, 255, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.55);
  --shadow: 0 22px 60px rgba(35, 48, 72, 0.2);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif SC", sans-serif;
  background: #eef7ff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: fixed;
  inset: 0;
}

img,
video {
  display: block;
  width: 100%;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.snap {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.screen {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  height: 100svh;
  padding: calc(24px + var(--safe-top)) 18px calc(28px + var(--safe-bottom));
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.screen::before {
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.92), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(255,255,255,.65), transparent 30%),
    linear-gradient(160deg, #ecf7ff 0%, #f7fff8 55%, #fff9ee 100%);
}

.screen::after {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  right: -120px;
  bottom: -120px;
  background: rgba(255, 205, 122, 0.35);
  filter: blur(5px);
}

.theme-sky::before {
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,.95), transparent 28%),
    linear-gradient(155deg, #d9f0ff 0%, #f6fbff 48%, #eef6ff 100%);
}

.theme-water::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(252,255,245,.9), transparent 26%),
    linear-gradient(155deg, #e4f8ff 0%, #eff9f0 54%, #fff4de 100%);
}

.theme-bloom::before {
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.85), transparent 24%),
    linear-gradient(155deg, #fff8d9 0%, #f1ffe9 50%, #eaf5ff 100%);
}

.theme-film::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.38), transparent 22%),
    linear-gradient(155deg, #27313f 0%, #6a6d61 50%, #d5b278 100%);
}

.theme-romance::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.88), transparent 26%),
    linear-gradient(155deg, #fff1f6 0%, #fff7ea 50%, #eff7ff 100%);
}

.theme-sport::before {
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.8), transparent 24%),
    linear-gradient(155deg, #e6f6ff 0%, #e8ffd8 48%, #fff1db 100%);
}

.theme-road::before {
  background:
    radial-gradient(circle at 15% 9%, rgba(255,255,255,.88), transparent 26%),
    linear-gradient(155deg, #f3f8ff 0%, #edf8e8 56%, #ffeccd 100%);
}

.theme-final::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(160deg, #0b1120 0%, #182237 50%, #312339 100%);
}

.layer--blue {
  position: absolute;
  width: 220px;
  height: 220px;
  left: -94px;
  top: 20%;
  border-radius: 999px;
  background: rgba(87, 168, 255, 0.22);
  filter: blur(8px);
  z-index: -1;
}

.section-head {
  flex: 0 0 auto;
  padding: 4px 4px 10px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .28em;
  font-weight: 700;
  color: rgba(49, 94, 135, .72);
  text-transform: uppercase;
}

.theme-film .eyebrow,
.theme-final .eyebrow {
  color: rgba(255, 255, 255, .72);
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  font-size: clamp(30px, 9vw, 48px);
  line-height: 1.02;
  letter-spacing: .04em;
  font-weight: 800;
}

.theme-film h2,
.theme-film .copy-card,
.theme-final h2,
.theme-final .copy-card {
  color: #fff;
}

.copy-card {
  width: min(100%, 620px);
  margin: 14px auto 0;
  padding: 16px 18px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  font-size: clamp(15px, 4vw, 19px);
  line-height: 1.72;
  letter-spacing: .03em;
}

.copy-card p + p {
  margin-top: 7px;
}

.copy-card--light,
.copy-card--cream,
.copy-card--rose,
.copy-card--green,
.copy-card--glass {
  color: rgba(26, 35, 46, .9);
}

.copy-card--light {
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(14px);
}

.copy-card--glass {
  background: rgba(255, 255, 255, .52);
  backdrop-filter: blur(16px);
}

.copy-card--cream {
  background: rgba(255, 252, 234, .82);
}

.copy-card--rose {
  background: rgba(255, 244, 248, .85);
}

.copy-card--green {
  background: rgba(244, 255, 239, .84);
}

.copy-card--dark {
  background: rgba(17, 24, 34, .58);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

.copy-card--final {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

.photo-card,
.carousel,
.mosaic figure,
.film-card,
.sports-grid figure,
.duo__card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .44);
  box-shadow: var(--shadow);
}

.photo-card img,
.carousel img,
.mosaic img,
.film-card img,
.sports-grid img,
.duo__card img {
  height: 100%;
  object-fit: cover;
}

.double-photo {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.double-photo .photo-card {
  min-height: 0;
}

.double-photo img {
  aspect-ratio: 16 / 10;
}

.carousel {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 660px;
  min-height: 0;
  margin: 0 auto;
  border-radius: 30px;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1100ms ease, transform 1600ms ease;
}

.carousel__slide.is-showing {
  opacity: 1;
  transform: scale(1);
}

.carousel__mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), transparent 38%, rgba(0,0,0,.32)),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(255,255,255,.18));
  pointer-events: none;
}

.carousel__dots {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.carousel__dots span {
  width: 26px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.48);
}

.carousel__dots span.is-on,
.carousel__dots span:first-child {
  background: rgba(255,255,255,.95);
}

.mosaic {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1.06fr .9fr .92fr;
  gap: 8px;
}

.mosaic figure {
  margin: 0;
  min-height: 0;
  border: 4px solid rgba(255,255,255,.88);
}

.mosaic figure:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 2; }
.mosaic figure:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.mosaic figure:nth-child(3) { grid-column: 1 / 3; grid-row: 2 / 4; }
.mosaic figure:nth-child(4) { grid-column: 3 / 7; grid-row: 2 / 3; }
.mosaic figure:nth-child(5) { grid-column: 3 / 7; grid-row: 3 / 4; }

.film-stack {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.film-card {
  position: absolute;
  margin: 0;
  border: 6px solid rgba(255,255,255,.82);
  background: #fff;
}

.film-card--left {
  left: 0;
  top: 0;
  width: 62%;
  height: 43%;
  transform: rotate(-3deg);
}

.film-card--right {
  right: 0;
  top: 26%;
  width: 58%;
  height: 40%;
  transform: rotate(3deg);
}

.film-card--center {
  left: 9%;
  bottom: 0;
  width: 72%;
  height: 38%;
  transform: rotate(-1.2deg);
}

.polaroids {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.polaroid {
  position: absolute;
  margin: 0;
  width: 74%;
  padding: 10px 10px 38px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 60px rgba(149, 47, 77, .22);
}

.polaroid img {
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.polaroid figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  color: #9b3958;
}

.polaroid--a {
  left: 0;
  top: 0;
  height: 58%;
  transform: rotate(-4deg);
}

.polaroid--b {
  right: 0;
  bottom: 2%;
  height: 48%;
  transform: rotate(4deg);
}

.sports-grid {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.35fr .8fr;
  gap: 10px;
}

.sports-grid figure {
  margin: 0;
  min-height: 0;
  border: 4px solid rgba(255,255,255,.86);
}

.sports-grid__main {
  grid-column: 1 / 3;
}

.duo {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.duo__card {
  position: relative;
  margin: 0;
  min-height: 0;
  border: 4px solid rgba(255,255,255,.82);
}

.duo__card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.video-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.final-video {
  max-height: 55vh;
  object-fit: contain;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0,0,0,.46);
  border: 1px solid rgba(255,255,255,.16);
}

.video-play {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255,255,255,.9);
  color: #111827;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.video-play.is-hidden {
  display: none;
}

.end-mark {
  margin: 12px auto 0;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  letter-spacing: .22em;
}

.entry {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #eaf7ff;
  transition: opacity .6s ease, visibility .6s ease;
}

.entry.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 36, 70, .18), rgba(255,255,255,.18)),
    url("../assets/img/3.jpg") center / cover no-repeat;
  filter: saturate(1.08);
}

.entry__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.4), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(11, 27, 45, .62));
}

.entry__card {
  position: relative;
  width: min(100%, 440px);
  padding: 34px 24px 28px;
  border-radius: 32px;
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(14, 43, 69, .34);
  text-align: center;
}

.entry h1 {
  font-size: clamp(42px, 12vw, 60px);
  line-height: 1.05;
  letter-spacing: .06em;
  font-weight: 900;
}

.entry__desc {
  margin-top: 18px;
  line-height: 1.7;
  color: rgba(30,39,51,.72);
  font-size: 15px;
}

.entry__button {
  margin-top: 26px;
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  background: #14243c;
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 16px 36px rgba(20, 36, 60, .32);
}

.entry__tip {
  margin-top: 14px;
  color: rgba(30,39,51,.58);
  font-size: 12px;
  line-height: 1.5;
}

.music-btn {
  position: fixed;
  z-index: 30;
  right: 14px;
  top: calc(14px + var(--safe-top));
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #243549;
  box-shadow: 0 12px 35px rgba(29,45,66,.18);
  backdrop-filter: blur(14px);
}

.music-btn__icon {
  display: inline-block;
  font-size: 20px;
  animation: rotateMusic 4s linear infinite;
}

.music-btn.is-paused .music-btn__icon {
  animation-play-state: paused;
  opacity: .55;
}

@keyframes rotateMusic {
  to { transform: rotate(360deg); }
}

.page-indicator {
  position: fixed;
  z-index: 29;
  left: 16px;
  top: calc(19px + var(--safe-top));
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  backdrop-filter: blur(12px);
  color: rgba(24, 36, 52, .7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 12px 35px rgba(29,45,66,.12);
}

.theme-final ~ .page-indicator {
  color: #fff;
}

.dots {
  position: fixed;
  z-index: 28;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 9px;
}

.dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 0 0 1px rgba(44, 71, 99, .12);
  transition: height .3s ease, background .3s ease;
}

.dots button.is-active {
  height: 22px;
  background: rgba(40, 71, 101, .86);
}

.swipe-tip {
  position: absolute;
  left: 50%;
  bottom: calc(8px + var(--safe-bottom));
  transform: translateX(-50%);
  color: rgba(30,39,51,.55);
  font-size: 12px;
  letter-spacing: .12em;
  animation: floatTip 1.5s ease-in-out infinite;
}

.theme-film .swipe-tip,
.theme-final .swipe-tip {
  color: rgba(255,255,255,.58);
}

@keyframes floatTip {
  0%, 100% { transform: translate(-50%, 0); opacity: .56; }
  50% { transform: translate(-50%, -6px); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, .85, .28, 1);
}

.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

.screen.is-active .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 680px) {
  .screen {
    padding-left: calc((100vw - 680px) / 2);
    padding-right: calc((100vw - 680px) / 2);
  }
}

@media (max-height: 720px) {
  .section-head {
    padding-bottom: 6px;
  }

  h2 {
    font-size: clamp(26px, 8vw, 40px);
  }

  .copy-card {
    margin-top: 10px;
    padding: 12px 14px;
    line-height: 1.58;
    font-size: 14px;
  }

  .entry__card {
    padding: 28px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snap {
    scroll-behavior: auto;
  }

  .reveal,
  .carousel__slide,
  .music-btn__icon,
  .swipe-tip {
    transition: none;
    animation: none;
  }
}