:root {
  --ink: #3d3935;
  --muted: #6f6861;
  --cream: #fff8e8;
  --cream-deep: #f9e7ba;
  --yellow: #fff0b9;
  --pink: #ffe5ea;
  --blue: #dff0ff;
  --green: #e0f4df;
  --orange: #ffe0bf;
  --lilac: #efe5ff;
  --white: #fffdf7;
  --line: rgba(84, 74, 61, 0.12);
  --shadow: 0 12px 26px rgba(114, 92, 66, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: #f6ead6;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
}

.h5-shell {
  position: relative;
  width: min(100vw, 430px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
}

.h5-shell::-webkit-scrollbar {
  display: none;
}

.music-btn {
  position: fixed;
  z-index: 20;
  top: calc(16px + env(safe-area-inset-top));
  left: min(calc(100vw - 56px), calc(50vw + 158px));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffffd9;
  box-shadow: 0 8px 18px rgba(95, 76, 58, 0.16);
  color: #78a7cf;
  font-size: 23px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.music-btn.is-playing {
  background: #dff0ff;
  color: #3f7eaa;
  box-shadow: 0 8px 18px rgba(95, 76, 58, 0.14), inset 0 0 0 2px rgba(122, 167, 200, 0.22);
}

.music-btn.is-paused {
  opacity: 0.82;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  padding: calc(30px + env(safe-area-inset-top)) 24px calc(72px + env(safe-area-inset-bottom));
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.page-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 18% 19%, rgba(255, 229, 234, 0.76), transparent 26%),
    linear-gradient(180deg, #fff7e6 0%, #fffaf0 58%, #fff3dc 100%);
}

.page-what {
  overflow: hidden;
  background: linear-gradient(180deg, #eaf6ff 0%, #fff9ed 100%);
}

.page-types {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 224, 191, 0.55), transparent 24%),
    linear-gradient(180deg, #fffaf0 0%, #f4fbf1 100%);
}

.page-why {
  background: linear-gradient(180deg, #fff7e8 0%, #fffdf7 100%);
}

.page-interest {
  background:
    radial-gradient(circle at 88% 12%, rgba(239, 229, 255, 0.58), transparent 24%),
    linear-gradient(180deg, #fff8ec 0%, #f6fbf1 100%);
}

.page-slider {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 229, 234, 0.72), transparent 24%),
    linear-gradient(180deg, #fffaf0 0%, #eef8ff 100%);
}

.page-choice {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 224, 191, 0.54), transparent 25%),
    linear-gradient(180deg, #f8fcf2 0%, #fff7ed 100%);
}

.page-hold {
  background:
    radial-gradient(circle at 11% 15%, rgba(223, 240, 255, 0.78), transparent 25%),
    linear-gradient(180deg, #fff8ec 0%, #fffdf7 100%);
}

.page-ending {
  background:
    radial-gradient(circle at 84% 19%, rgba(255, 229, 234, 0.66), transparent 23%),
    linear-gradient(180deg, #fffaf0 0%, #f3fbef 100%);
  text-align: center;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}

.blob-blue {
  top: -28px;
  right: -34px;
  width: 128px;
  height: 128px;
  background: #d9edff;
}

.blob-orange {
  bottom: 78px;
  left: -42px;
  width: 118px;
  height: 118px;
  background: #ffd9b4;
}

.cover-page-dot {
  position: absolute;
  z-index: 2;
  top: calc(30px + env(safe-area-inset-top));
  left: 24px;
}

.cover-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 44px;
}

.cover-title {
  margin: 0;
  font-size: 35px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.cover-subtitle {
  margin: 7px 0 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.cover-lead {
  width: 100%;
  max-width: 318px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.student-illo {
  position: relative;
  z-index: 1;
  width: min(318px, 88vw);
  margin: 24px auto 13px;
}

.student-illo svg {
  display: block;
  width: 100%;
  height: auto;
}

.illo-shadow {
  fill: rgba(133, 101, 68, 0.12);
}

.student circle {
  fill: #ffd3b5;
  stroke: #6b5b4c;
  stroke-width: 4;
}

.student path,
.student rect {
  stroke: #6b5b4c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student > path:first-of-type {
  fill: #5f534a;
}

.student-left .body {
  fill: #ffe7a8;
}

.student-mid .body {
  fill: #cfe7ff;
}

.student-right .body {
  fill: #f9d6df;
}

.arm,
.leg {
  fill: none;
}

.cup {
  fill: #c7ecd4;
}

.cup-line,
.book-line {
  fill: none;
}

.book {
  fill: #fffdf7;
}

.phone {
  fill: #e8def8;
}

.phone-dot {
  fill: #6b5b4c;
  stroke: none;
}

.spark {
  fill: #ffe58a;
  stroke: #6b5b4c;
  stroke-width: 4;
  stroke-linejoin: round;
}

.spark.small {
  fill: #bee9d1;
}

.tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 2px;
}

.tag-button {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 14px;
  border: 1px solid rgba(108, 91, 72, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #746557;
  font-size: 13px;
  box-shadow: 0 8px 15px rgba(116, 93, 65, 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tag-button.is-expanded {
  background: #ffe7b6;
  color: #745338;
  box-shadow: 0 10px 18px rgba(151, 110, 62, 0.14);
}

.tag-button:active,
.tag-button.is-tapped {
  transform: scale(0.96);
}

.tag-note {
  position: relative;
  z-index: 1;
  width: min(318px, 100%);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  border: 1px dashed transparent;
  border-radius: 18px;
  background: transparent;
  color: #725f4f;
  text-align: left;
  box-shadow: none;
  transition: max-height 0.26s ease, margin-top 0.26s ease, padding 0.26s ease, background 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.tag-note.is-open {
  max-height: 96px;
  margin-top: 11px;
  padding: 12px 14px;
  border-color: rgba(191, 143, 73, 0.28);
  background: #fff0bd;
  box-shadow: 0 10px 18px rgba(137, 101, 57, 0.1);
}

.tag-note-panel {
  display: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tag-note-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cover-note {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  color: #8b7664;
  font-size: 14px;
}

.cover-stickers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 312px;
  margin-top: 19px;
}

.cover-stickers span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px dashed rgba(112, 94, 75, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
  color: #8a7b68;
  font-size: 12px;
}

.page-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #7aa7c8;
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.page-title {
  position: relative;
  z-index: 1;
  margin: 18px 0 14px;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0;
}

.page-title.centered {
  text-align: center;
  margin-top: 9px;
  margin-bottom: 17px;
}

.text-card {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.definition-card {
  padding: 13px 17px;
}

.definition-card p {
  margin: 0;
  color: #625a52;
  font-size: 14px;
  line-height: 1.58;
}

.page-what .page-title {
  margin-top: 14px;
  margin-bottom: 11px;
}

.page-what .definition-card {
  padding: 11px 16px;
}

.page-what .definition-card p {
  line-height: 1.48;
}

.image-collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.35fr 1fr;
  gap: 12px;
  height: 452px;
  margin-top: 14px;
  padding: 15px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.collage-item {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.collage-main {
  grid-column: 1 / -1;
}

.collage-item img,
.type-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.collage-item figcaption {
  position: absolute;
  top: 11px;
  left: 11px;
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.86);
  color: #6b5c4e;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 15px rgba(105, 83, 58, 0.12);
}

.reason-card strong,
.type-card strong {
  display: block;
  font-weight: 800;
}

.reason-card p,
.intro-copy {
  margin: 0;
  color: var(--muted);
}

.type-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 0;
}

.type-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 157px;
  padding: 10px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 9px 18px rgba(93, 77, 61, 0.09);
  cursor: default;
  transition: box-shadow 0.2s ease;
}

.type-image-wrap {
  display: block;
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
}

.type-card strong {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.type-yellow {
  background: var(--yellow);
}

.type-pink {
  background: var(--pink);
}

.type-blue {
  background: var(--blue);
}

.type-green {
  background: var(--green);
}

.type-orange {
  background: var(--orange);
}

.type-lilac {
  background: var(--lilac);
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  padding: 15px 17px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.68;
  box-shadow: 0 9px 19px rgba(117, 91, 62, 0.08);
}

.reason-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.reason-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 91px;
  padding: 14px 15px;
  border: 1px solid rgba(121, 96, 70, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 9px 19px rgba(110, 87, 62, 0.09);
}

.reason-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #ffeac5;
  color: #c17d3f;
  font-weight: 800;
}

.reason-card:nth-child(2) span {
  background: #ffe5ea;
  color: #c97789;
}

.reason-card:nth-child(3) span {
  background: #dff0ff;
  color: #5d93bf;
}

.reason-card:nth-child(4) span {
  background: #e0f4df;
  color: #6d9d62;
}

.reason-card strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.reason-card p {
  font-size: 13px;
  line-height: 1.45;
}

.side-line {
  position: absolute;
  top: 122px;
  right: 21px;
  width: 2px;
  height: 560px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffd4bd, #dff0ff, #e0f4df);
  opacity: 0.72;
}

.page-subcopy,
.slider-tip {
  position: relative;
  z-index: 1;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.interest-collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.28fr 1fr 1fr;
  gap: 10px;
  height: 510px;
  padding: 13px;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: var(--shadow);
}

.interest-photo {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.72);
}

.interest-photo-main {
  grid-column: 1 / -1;
}

.interest-photo img,
.slide-image img,
.choice-option img,
.sticker-img img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
}

.interest-photo figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
  color: #6f6156;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 7px 13px rgba(103, 79, 55, 0.1);
}

.interest-slider {
  position: relative;
  z-index: 1;
  margin: 4px -24px 0;
}

.page-slider .page-title {
  margin-top: 13px;
  margin-bottom: 10px;
}

.page-slider .interest-slider {
  margin-top: 0;
}

.interest-track {
  display: flex;
  gap: 16px;
  padding: 8px 47px 13px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 47px;
  -webkit-overflow-scrolling: touch;
}

.interest-track::-webkit-scrollbar {
  display: none;
}

.slide-card {
  flex: 0 0 284px;
  scroll-snap-align: center;
  min-height: 432px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 13px 28px rgba(112, 89, 63, 0.12);
  transform: scale(0.96);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.slide-card.is-active {
  transform: scale(1);
  box-shadow: 0 15px 31px rgba(112, 89, 63, 0.16);
}

.slide-image {
  height: 286px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff7e7;
}

.slide-card strong {
  display: block;
  margin: 14px 0 7px;
  font-size: 22px;
  line-height: 1.2;
}

.slide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(124, 104, 82, 0.22);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease, transform 0.16s ease;
}

.slider-dot.is-active {
  width: 22px;
  background: #e8a65d;
}

.slider-dot:active,
.choice-option:active,
.hold-generate:active,
.back-home:active {
  transform: scale(0.96);
}

.slider-tip {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

.page-slider .slider-tip {
  display: none;
}

.choice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.choice-option {
  min-height: 158px;
  padding: 10px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 19px rgba(105, 84, 60, 0.09);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.choice-option.is-selected {
  box-shadow: 0 11px 22px rgba(105, 84, 60, 0.14), inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.choice-happy {
  background: #fff1c8;
}

.choice-chat {
  background: #dff0ff;
}

.choice-picnic {
  background: #e6f5df;
}

.choice-share {
  background: #f0e5ff;
}

.choice-option span {
  display: block;
  height: 105px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.choice-option strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.2;
}

.choice-result {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 16px 17px;
  border: 1px dashed rgba(174, 128, 67, 0.25);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.choice-result span,
.hold-result span {
  display: block;
  color: #b97838;
  font-size: 15px;
  font-weight: 800;
}

.choice-result p,
.hold-result p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.choice-result.is-changing,
.hold-result.is-showing {
  animation: resultFade 0.28s ease;
}

.keyword-card {
  position: relative;
  z-index: 1;
  min-height: 500px;
  margin-top: 8px;
  padding: 18px 17px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.sticker-board {
  position: relative;
  height: 286px;
}

.sticker-img {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 10px 20px rgba(100, 79, 55, 0.11);
}

.sticker-one {
  left: 0;
  top: 14px;
  width: 136px;
  height: 128px;
  transform: rotate(-5deg);
}

.sticker-two {
  right: 0;
  top: 0;
  width: 150px;
  height: 136px;
  transform: rotate(4deg);
}

.sticker-three {
  left: 28px;
  bottom: 0;
  width: 128px;
  height: 122px;
  transform: rotate(5deg);
}

.sticker-four {
  right: 20px;
  bottom: 10px;
  width: 128px;
  height: 120px;
  transform: rotate(-4deg);
}

.hold-generate {
  position: relative;
  display: block;
  width: min(230px, 100%);
  min-height: 48px;
  margin: 8px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffdca9 0%, #ffe9bf 100%);
  color: #72573d;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 11px 21px rgba(163, 112, 54, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.hold-generate::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: rgba(255, 196, 112, 0.42);
  transition: width 0.12s linear;
}

.hold-generate span,
.hold-generate {
  isolation: isolate;
}

.hold-generate.is-holding {
  transform: scale(1.03);
}

.hold-generate.is-holding::before {
  width: 100%;
  transition-duration: 1s;
}

.hold-note {
  margin: 10px 0 0;
  color: #8d7d6d;
  font-size: 12px;
  text-align: center;
}

.hold-result {
  display: none;
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 20px;
  background: #fff5dc;
  box-shadow: inset 0 0 0 1px rgba(190, 143, 75, 0.13);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.hold-result.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ending-card {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 26px 24px;
  border: 1px solid rgba(120, 97, 73, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.ending-card p {
  margin: 0;
  color: #625a52;
  font-size: 17px;
  line-height: 1.85;
}

.ending-card p + p {
  margin-top: 20px;
}

.ending-slogan {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  color: #7b6a58;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 800;
}

.back-home {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  min-height: 48px;
  margin-top: 22px;
  border-radius: 999px;
  background: #ffdca9;
  color: #6d563f;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(146, 103, 55, 0.16);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.ending-deco {
  position: absolute;
  color: rgba(219, 151, 89, 0.55);
  pointer-events: none;
}

.ending-star {
  top: 150px;
  right: 46px;
  font-size: 28px;
}

.ending-heart {
  bottom: 190px;
  left: 42px;
  font-size: 27px;
}

.ending-dot {
  top: 222px;
  left: 46px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #dff0ff;
}

.swipe-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(88, 77, 68, 0.58);
  font-size: 12px;
  pointer-events: none;
}

.page-what .swipe-hint,
.page-types .swipe-hint {
  z-index: 0;
}

.swipe-hint i {
  display: block;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hintUp 1.6s ease-in-out infinite;
}

.animate-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.page-current .animate-item {
  opacity: 1;
  transform: translateY(0);
}

.page-current .animate-item:nth-of-type(1) {
  transition-delay: 0.04s;
}

.page-current .animate-item:nth-of-type(2) {
  transition-delay: 0.12s;
}

.page-current .animate-item:nth-of-type(3) {
  transition-delay: 0.2s;
}

.page-current .animate-item:nth-of-type(4) {
  transition-delay: 0.28s;
}

.page-current .animate-item:nth-of-type(5) {
  transition-delay: 0.36s;
}

.page-current .animate-item:nth-of-type(6) {
  transition-delay: 0.44s;
}

@keyframes hintUp {
  0%,
  100% {
    transform: translateY(2px) rotate(45deg);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-4px) rotate(45deg);
    opacity: 1;
  }
}

@keyframes resultFade {
  from {
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 860px) {
  .image-collage {
    height: 420px;
  }

  .page-what .image-collage {
    margin-top: 12px;
  }

  .page-slider .slide-card {
    flex-basis: 270px;
    min-height: 408px;
    padding: 12px;
  }

  .page-slider .slide-image {
    height: 262px;
  }

  .page-slider .interest-track {
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .interest-collage {
    height: 486px;
    gap: 9px;
  }

  .page-subcopy {
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .ending-card {
    margin-top: 20px;
    padding: 23px 22px;
  }

  .ending-slogan {
    margin-top: 18px;
  }

  .back-home {
    margin-top: 17px;
  }
}

@media (max-height: 740px) {
  .page {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .cover-copy {
    margin-top: 20px;
  }

  .cover-title {
    font-size: 30px;
  }

  .cover-subtitle {
    font-size: 21px;
  }

  .cover-lead {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.55;
  }

  .student-illo {
    width: min(276px, 84vw);
    margin-top: 15px;
    margin-bottom: 8px;
  }

  .cover-note {
    margin-top: 11px;
  }

  .tag-note.is-open {
    max-height: 84px;
    margin-top: 8px;
    padding: 10px 12px;
  }

  .tag-note-panel {
    font-size: 12px;
    line-height: 1.45;
  }

  .cover-stickers {
    margin-top: 12px;
  }

  .cover-stickers span {
    min-height: 27px;
    padding: 0 9px;
    font-size: 11px;
  }

  .page-title {
    margin-top: 12px;
    margin-bottom: 11px;
    font-size: 24px;
  }

  .definition-card {
    padding: 11px 15px;
  }

  .definition-card p {
    font-size: 13px;
    line-height: 1.42;
  }

  .image-collage {
    height: 410px;
    margin-top: 12px;
    padding: 12px;
    gap: 9px;
  }

  .reason-list,
  .type-grid {
    gap: 8px;
  }

  .type-card {
    min-height: 128px;
    padding: 8px;
  }

  .type-image-wrap {
    height: 89px;
  }

  .type-card strong {
    font-size: 15px;
  }

  .reason-card p {
    font-size: 12px;
  }

  .intro-copy {
    margin-bottom: 10px;
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.5;
  }

  .side-line {
    top: 112px;
    height: 500px;
  }

  .reason-card {
    min-height: 78px;
    padding: 11px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-btn,
  .swipe-hint i,
  .animate-item,
  .type-card,
  .tag-button,
  .tag-note {
    animation: none;
    transition: none;
  }
}
