:root {
  color-scheme: dark;
  --ink: #161316;
  --ink-soft: #242024;
  --paper: #f8f1e9;
  --paper-deep: #e8d8c7;
  --wisteria: #9b78c8;
  --sakura: #f1a7b7;
  --mint: #8bc9ba;
  --gold: #e2bd62;
  --white: #fffaf6;
  --shadow: rgba(0, 0, 0, 0.38);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.story {
  width: 100%;
  height: var(--app-height, 100dvh);
  min-height: var(--app-height, 100dvh);
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* H5 mobile invitation polish */
@media (min-width: 520px) {
  body {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    background:
      radial-gradient(circle at 50% 10%, rgba(155, 120, 200, 0.18), transparent 34%),
      #100f12;
  }

  .story {
    width: min(430px, 100vw);
    max-width: 430px;
    box-shadow: 0 0 0 1px rgba(255, 250, 246, 0.08), 0 28px 90px rgba(0, 0, 0, 0.46);
  }

  .music-toggle,
  .toast {
    left: calc(50% + min(215px, 50vw) - 14px);
    right: auto;
    transform: translateX(-100%);
  }

  .toast {
    left: 50%;
    transform: translateX(-50%) translateY(18px);
  }

  .toast.is-visible {
    transform: translateX(-50%) translateY(0);
  }
}

.page {
  position: relative;
  height: var(--app-height, 100dvh);
  min-height: var(--app-height, 100dvh);
  overflow: hidden;
  scroll-snap-align: start;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.04), transparent 18%, transparent 72%, rgba(22, 19, 22, 0.18)),
    radial-gradient(circle at 50% 8%, rgba(226, 189, 98, 0.12), transparent 24%);
}

.page-bg,
.map-shot,
.friend-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
}

.shade,
.paper-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.shade {
  background:
    linear-gradient(180deg, rgba(18, 16, 18, 0.42), rgba(18, 16, 18, 0.82)),
    linear-gradient(90deg, rgba(18, 16, 18, 0.8), rgba(18, 16, 18, 0.12));
}

.hero-bg {
  filter: saturate(1.16) brightness(1.18) contrast(0.96);
  opacity: 1;
  object-position: 64% center;
}

.hero-shade {
  background:
    radial-gradient(circle at 68% 40%, rgba(226, 189, 98, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(155, 120, 200, 0.18), rgba(241, 167, 183, 0.1) 48%, rgba(42, 30, 54, 0.28)),
    linear-gradient(90deg, rgba(38, 25, 52, 0.5) 0%, rgba(68, 42, 82, 0.24) 50%, rgba(38, 25, 52, 0.14) 100%);
}

.paper-layer {
  background:
    radial-gradient(circle at 76% 18%, rgba(139, 201, 186, 0.24), transparent 32%),
    radial-gradient(circle at 14% 72%, rgba(155, 120, 200, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(248, 241, 233, 0.84), rgba(232, 216, 199, 0.9)),
    rgba(248, 241, 233, 0.78);
  mix-blend-mode: normal;
}

.paper-layer.strong {
  background:
    linear-gradient(180deg, rgba(248, 241, 233, 0.96), rgba(232, 216, 199, 0.98)),
    rgba(248, 241, 233, 0.9);
}

.schedule-bg {
  object-position: center center;
  filter: saturate(1.04) brightness(0.98);
}

.schedule-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(248, 241, 233, 0.08), rgba(248, 241, 233, 0.24)),
    radial-gradient(circle at 50% 50%, rgba(255, 250, 246, 0.28), transparent 48%);
}

.friend-bg {
  width: 100%;
  object-position: 7% bottom;
  filter: saturate(1.18) brightness(0.88) contrast(1.04);
  opacity: 1;
  transform: none;
}

.friendship-layer {
  background:
    radial-gradient(circle at 64% 58%, rgba(226, 189, 98, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(92, 54, 116, 0.24) 0%, rgba(155, 120, 200, 0.16) 48%, rgba(241, 167, 183, 0.12) 100%),
    linear-gradient(180deg, rgba(42, 30, 54, 0.12), rgba(42, 30, 54, 0.26));
}

.safe {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 96px 28px 92px;
  position: relative;
  z-index: 2;
}

.page .safe {
  width: min(100%, 430px);
  padding: max(74px, env(safe-area-inset-top)) 18px max(74px, env(safe-area-inset-bottom));
}

.music-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 50;
  border: 1px solid rgba(226, 189, 98, 0.72);
  border-radius: 8px;
  background: rgba(22, 19, 22, 0.78);
  color: var(--white);
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px var(--shadow);
}

.music-toggle {
  max-width: 168px;
  font-size: 0.78rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 3.35rem;
  text-shadow: 0 0 24px rgba(226, 189, 98, 0.38);
}

h2 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 2.65rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.28;
}

.subtitle {
  max-width: 540px;
  margin-bottom: 22px;
  color: var(--paper);
  font-size: 1.28rem;
}

.lead {
  max-width: 620px;
  margin: 22px 0 28px;
  color: rgba(255, 250, 246, 0.94);
  font-size: 1.05rem;
  line-height: 1.85;
}

.page .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0;
}

.page h1 {
  max-width: 360px;
  font-size: clamp(2rem, 10vw, 2.72rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.page h2 {
  max-width: 360px;
  font-size: clamp(1.72rem, 8vw, 2.18rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page h3 {
  font-size: 1rem;
}

.subtitle {
  max-width: 330px;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.lead {
  max-width: 350px;
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.72;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.mission-grid {
  grid-template-columns: 1fr;
  gap: 9px;
  max-width: 348px;
}

.mission-grid p,
.friend-symbols p,
.member-file,
.timeline li,
.place-list article,
.route-panel {
  border: 1px solid rgba(255, 250, 246, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 44px var(--shadow);
}

.mission-grid p {
  margin: 0;
  padding: 11px 12px;
  background: rgba(22, 19, 22, 0.36);
  backdrop-filter: blur(7px);
}

.mission-grid strong,
.mission-grid span {
  display: block;
}

.mission-grid strong {
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.mission-grid span {
  color: var(--white);
  line-height: 1.45;
}

.inline-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.inline-map-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(226, 189, 98, 0.72);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(22, 19, 22, 0.48);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.inline-map-links {
  gap: 7px;
  margin-top: 8px;
}

.inline-map-links a {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.78rem;
}

.friend-character.is-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(255, 250, 246, 0.1) 0 12px, rgba(226, 189, 98, 0.14) 12px 24px),
    rgba(22, 19, 22, 0.72);
}

.friend-character.is-placeholder img {
  display: none;
}

.swipe-cue {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  animation: pulseCue 1.8s infinite;
}

.swipe-cue {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(22, 19, 22, 0.28);
  backdrop-filter: blur(6px);
}

.petals span {
  position: absolute;
  top: -24px;
  width: 18px;
  height: 18px;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255, 214, 226, 0.94) 0 24%, transparent 25%),
    radial-gradient(ellipse at 88% 44%, rgba(241, 167, 183, 0.9) 0 24%, transparent 25%),
    radial-gradient(ellipse at 70% 88%, rgba(255, 214, 226, 0.88) 0 24%, transparent 25%),
    radial-gradient(ellipse at 30% 88%, rgba(241, 167, 183, 0.9) 0 24%, transparent 25%),
    radial-gradient(ellipse at 12% 44%, rgba(255, 214, 226, 0.88) 0 24%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(226, 189, 98, 0.88) 0 11%, transparent 12%);
  z-index: 1;
  animation: fall 8s linear infinite;
}

.petals span:nth-child(1) { left: 12%; animation-delay: 0s; }
.petals span:nth-child(2) { left: 30%; animation-delay: 1.8s; }
.petals span:nth-child(3) { left: 48%; animation-delay: 3.2s; }
.petals span:nth-child(4) { left: 66%; animation-delay: 4.4s; }
.petals span:nth-child(5) { left: 84%; animation-delay: 2.4s; }
.petals span:nth-child(6) { left: 20%; animation-delay: 5.1s; }
.petals span:nth-child(7) { left: 38%; animation-delay: 6.2s; }
.petals span:nth-child(8) { left: 56%; animation-delay: 0.9s; }
.petals span:nth-child(9) { left: 74%; animation-delay: 3.7s; }
.petals span:nth-child(10) { left: 91%; animation-delay: 5.7s; }
.petals span:nth-child(11) { left: 6%; animation-delay: 2.9s; }
.petals span:nth-child(12) { left: 43%; animation-delay: 4.9s; }

.page-friendship,
.page-schedule {
  color: var(--ink);
}

.page-friendship {
  align-items: start;
}

.page-friendship .safe {
  padding-top: 82px;
  padding-bottom: 230px;
}

.page-friendship .safe {
  padding-top: 86px;
  padding-bottom: 154px;
}

.page-friendship h2,
.page-friendship .friend-copy,
.page-friendship .quote {
  text-shadow: 0 2px 14px rgba(255, 250, 246, 0.82);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 30px;
  align-items: center;
}

.two-column {
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-friendship .two-column {
  align-items: start;
}

.friend-copy p {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: 1.06rem;
  line-height: 1.9;
}

.friend-copy p {
  max-width: 350px;
  margin-bottom: 9px;
  font-size: 0.92rem;
  line-height: 1.62;
}

.quote {
  display: inline-block;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  color: #8b3f69;
  background: transparent;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow:
    0 2px 0 rgba(255, 250, 246, 0.72),
    0 0 18px rgba(226, 189, 98, 0.42);
}

.quote {
  max-width: 350px;
  font-size: 1.42rem;
}

.friend-character-grid {
  display: grid;
  gap: 14px;
}

.friend-character-grid {
  gap: 9px;
}

.friend-character {
  margin: 0;
  min-height: 168px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(22, 19, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.2);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
  animation: popIn 0.8s both;
}

.friend-character {
  min-height: 92px;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 250, 246, 0.18);
  border-color: rgba(255, 250, 246, 0.36);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.friend-character:nth-child(2) { animation-delay: 0.18s; }
.friend-character:nth-child(3) { animation-delay: 0.36s; }

.friend-character img {
  min-height: 144px;
  border-radius: 6px;
  object-position: center top;
}

.friend-character img {
  min-height: 82px;
}

.friend-character span {
  display: block;
  color: #755297;
  font-size: 1.06rem;
  font-weight: 900;
  margin-bottom: 7px;
  line-height: 1.2;
}

.friend-character h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.56rem;
  font-weight: 900;
  line-height: 1.14;
}

.friend-character span {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.friend-character h3 {
  font-size: 1.22rem;
  margin-bottom: 0;
}

.friend-character p {
  margin: 0;
  color: #332a2f;
  line-height: 1.62;
}

.mist-layer {
  position: absolute;
  inset: auto -12% 8% -12%;
  height: 28%;
  z-index: -2;
  background: repeating-linear-gradient(0deg, rgba(255, 250, 246, 0.24) 0 18px, transparent 18px 48px);
  filter: blur(18px);
  animation: mistMove 12s ease-in-out infinite alternate;
}

.kimetsu-elements {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blade-line {
  position: absolute;
  height: 3px;
  width: 72%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 246, 0.72), rgba(139, 201, 186, 0.58), transparent);
  filter: drop-shadow(0 0 10px rgba(139, 201, 186, 0.52));
  transform-origin: center;
  opacity: 0.7;
}

.blade-one {
  top: 22%;
  left: -13%;
  transform: rotate(-17deg);
}

.blade-two {
  right: -18%;
  bottom: 23%;
  transform: rotate(18deg);
}

.butterfly-spark {
  position: absolute;
  width: 34px;
  height: 26px;
  opacity: 0.62;
  filter: drop-shadow(0 0 10px rgba(155, 120, 200, 0.62));
}

.butterfly-spark::before,
.butterfly-spark::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 15px;
  height: 20px;
  border: 1px solid rgba(155, 120, 200, 0.82);
  background: rgba(255, 250, 246, 0.24);
}

.butterfly-spark::before {
  left: 1px;
  border-radius: 13px 13px 4px 13px;
  transform: rotate(-26deg);
}

.butterfly-spark::after {
  right: 1px;
  border-radius: 13px 13px 13px 4px;
  transform: rotate(26deg);
}

.spark-one {
  left: 12%;
  top: 28%;
  animation: floatSmall 5s ease-in-out infinite;
}

.spark-two {
  right: 18%;
  bottom: 18%;
  animation: floatSmall 6s 0.8s ease-in-out infinite;
}

.profile-bg {
  object-position: center center;
  filter: none;
  opacity: 1;
  animation: profileReveal 2.2s cubic-bezier(0.2, 0.75, 0.2, 1) both, profileBreath 8s 2.2s ease-in-out infinite alternate;
}

.profile-shade {
  background:
    linear-gradient(90deg, rgba(20, 16, 32, 0.16) 0%, rgba(20, 16, 32, 0.08) 48%, rgba(20, 16, 32, 0.02) 100%),
    linear-gradient(180deg, rgba(20, 16, 32, 0.02), rgba(20, 16, 32, 0.12));
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.62fr);
  gap: 22px;
  align-items: start;
  transform: translateY(-76px);
}

.profile-layout {
  grid-template-columns: 1fr;
  gap: 14px;
  transform: translateY(-38px);
}

.profile-intro {
  max-width: 490px;
  font-size: 1.18rem;
  line-height: 1.8;
}

.profile-intro {
  max-width: 340px;
  font-size: 1rem;
  line-height: 1.64;
}

.member-file {
  padding: 18px;
  border-color: rgba(255, 250, 246, 0.42);
  background: rgba(255, 250, 246, 0.08);
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  animation: fileFlip 0.88s both;
}

.member-file {
  padding: 12px;
  background: rgba(255, 250, 246, 0.1);
  border-color: rgba(255, 250, 246, 0.5);
}

.member-file p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 250, 246, 0.18);
}

.member-file p {
  padding: 8px 0;
}

.member-file p:last-child {
  border-bottom: 0;
}

.member-file span,
.member-file strong {
  display: block;
}

.member-file span {
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.member-file strong {
  line-height: 1.55;
}

.member-file strong {
  font-size: 0.92rem;
  line-height: 1.42;
}

.reward {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gold);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow:
    0 2px 0 rgba(22, 19, 22, 0.36),
    0 0 22px rgba(226, 189, 98, 0.62);
}

.reward {
  font-size: 2rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 20px;
  display: grid;
  gap: 13px;
  position: relative;
}

.timeline {
  gap: 9px;
  margin: 16px 0 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--mint), var(--sakura));
  box-shadow: 0 0 16px rgba(226, 189, 98, 0.56);
}

.timeline li {
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background: rgba(255, 250, 246, 0.78);
  animation: slideIn 0.7s both;
}

.timeline li {
  min-height: 88px;
  grid-template-columns: 66px 1fr;
  padding: 10px;
  background: rgba(255, 250, 246, 0.74);
  backdrop-filter: blur(3px);
}

.timeline li:nth-child(2) { animation-delay: 0.12s; }
.timeline li:nth-child(3) { animation-delay: 0.24s; }
.timeline li:nth-child(4) { animation-delay: 0.36s; }
.timeline li:nth-child(5) { animation-delay: 0.48s; }

.timeline time {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 900;
  align-self: center;
}

.timeline time {
  width: 50px;
  height: 50px;
  font-size: 0.82rem;
}

.timeline p {
  margin-bottom: 4px;
  line-height: 1.5;
}

.timeline p,
.timeline span {
  font-size: 0.9rem;
}

.timeline span {
  color: #5e5650;
  line-height: 1.5;
}

.quest-goal,
.quest-reward {
  margin: 10px 0 0;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(255, 250, 246, 0.72);
}

.quest-reward {
  color: #8a5c1e;
}

.page-schedule .join-button {
  margin-top: 18px;
}

.page-schedule .join-button {
  font-size: 1.04rem;
  font-weight: 900;
  animation: joinButtonFlash 1.05s ease-in-out infinite;
}

@keyframes joinButtonFlash {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
    box-shadow: 0 0 14px rgba(226, 189, 98, 0.42);
  }
  50% {
    filter: brightness(1.34);
    transform: scale(1.025);
    box-shadow:
      0 0 20px rgba(255, 250, 246, 0.72),
      0 0 34px rgba(226, 189, 98, 0.9);
  }
}

.map-shade {
  background:
    linear-gradient(180deg, rgba(18, 16, 18, 0.34), rgba(18, 16, 18, 0.82)),
    linear-gradient(90deg, rgba(18, 16, 18, 0.78), rgba(18, 16, 18, 0.36));
}

.route-panel {
  overflow: hidden;
  min-height: 190px;
  margin-bottom: 16px;
  position: relative;
  background: rgba(22, 19, 22, 0.62);
}

.map-shot {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.map-shot.is-hidden {
  display: none;
}

.route-line {
  position: relative;
  z-index: 1;
  min-height: 190px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--mint), var(--sakura));
  box-shadow: 0 0 16px rgba(226, 189, 98, 0.66);
  animation: routeGlow 2.8s linear infinite;
}

.route-line span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(255, 250, 246, 0.32);
  border-radius: 8px;
  background: rgba(22, 19, 22, 0.78);
  text-align: center;
  font-weight: 800;
}

.place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.place-list article {
  padding: 14px;
  background: rgba(22, 19, 22, 0.66);
  backdrop-filter: blur(10px);
}

.place-list h3 {
  color: var(--gold);
}

.place-list p {
  margin-bottom: 6px;
  font-weight: 800;
}

.place-list span {
  display: block;
  color: rgba(255, 250, 246, 0.78);
  line-height: 1.5;
}

.map-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.map-links a,
.join-button {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

.map-links a {
  padding: 8px 11px;
  border: 1px solid rgba(226, 189, 98, 0.62);
  color: var(--gold);
  background: rgba(255, 250, 246, 0.06);
}

.tips {
  margin: 18px 0 16px;
  max-width: 820px;
  line-height: 1.75;
}

.join-button {
  border: 0;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 0 22px rgba(226, 189, 98, 0.42);
  animation: buttonGlow 1.8s infinite alternate;
}

.join-button {
  width: 100%;
  min-height: 46px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(18px);
  max-width: min(92%, 520px);
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(22, 19, 22, 0.88);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  box-shadow: 0 16px 32px var(--shadow);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes swordFlash {
  from { transform: translateX(-42%) rotate(-16deg); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translateX(42%) rotate(-16deg); opacity: 0; }
}

@keyframes fall {
  from { transform: translate3d(0, -24px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translate3d(42px, 104svh, 0) rotate(240deg); opacity: 0; }
}

@keyframes pulseCue {
  0%, 100% { opacity: 0.58; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-6px); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mistMove {
  from { transform: translateX(-2%); }
  to { transform: translateX(2%); }
}

@keyframes fileFlip {
  from { opacity: 0; transform: perspective(900px) rotateY(-16deg) translateY(12px); }
  to { opacity: 1; transform: perspective(900px) rotateY(0) translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes routeGlow {
  from { filter: brightness(0.85); }
  50% { filter: brightness(1.4); }
  to { filter: brightness(0.85); }
}

@keyframes buttonGlow {
  from { box-shadow: 0 0 12px rgba(226, 189, 98, 0.38); }
  to { box-shadow: 0 0 30px rgba(226, 189, 98, 0.74); }
}

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

@keyframes floatSmall {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes profileReveal {
  from {
    opacity: 0;
    transform: scale(1.08) translateY(18px);
    filter: saturate(0.82) brightness(0.72) blur(5px);
  }
  58% {
    opacity: 1;
    filter: saturate(1.08) brightness(1.04) blur(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: none;
  }
}

@keyframes profileBreath {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.018) translateY(-4px); }
}

@keyframes profileMistReveal {
  0% {
    opacity: 0;
    transform: translateY(18%);
  }
  36% {
    opacity: 0.64;
  }
  100% {
    opacity: 0;
    transform: translateY(-18%);
  }
}

@media (max-width: 760px) {
  .safe {
    padding: 82px 18px 82px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .subtitle {
    font-size: 1.08rem;
  }

  .mission-grid,
  .two-column,
  .profile-layout,
  .place-list {
    grid-template-columns: 1fr;
  }

  .friend-character {
    grid-template-columns: 92px 1fr;
    min-height: 148px;
  }

  .friend-character img {
    min-height: 122px;
  }

  .friend-bg {
    width: 100%;
    object-position: 7% bottom;
    transform: none;
  }

  .page-friendship .safe {
    padding-top: 74px;
    padding-bottom: 202px;
  }

  .profile-bg {
    object-position: center center;
    filter: none;
    opacity: 1;
  }

  .profile-shade {
    background:
      linear-gradient(180deg, rgba(20, 16, 32, 0.02), rgba(20, 16, 32, 0.18)),
      linear-gradient(90deg, rgba(20, 16, 32, 0.12), rgba(20, 16, 32, 0.02));
  }

  .profile-layout {
    transform: translateY(-56px);
  }

  .timeline::before {
    left: 38px;
  }

  .timeline li {
    grid-template-columns: 76px 1fr;
    min-height: 108px;
  }

  .timeline time {
    width: 56px;
    height: 56px;
    font-size: 0.86rem;
  }

  .route-line {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .route-line::before {
    left: 50%;
    right: auto;
    top: 11%;
    bottom: 11%;
    width: 3px;
    height: auto;
  }

  .music-toggle {
    max-width: 172px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.76rem;
  }

  .friend-character {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .friend-character img {
    min-height: 112px;
  }

  .friend-character h3 {
    font-size: 1.22rem;
  }

  .friend-character p {
    font-size: 0.9rem;
  }
}

@media (max-width: 760px) {
  .page .safe {
    width: min(100%, 430px);
    padding: max(72px, env(safe-area-inset-top)) 18px max(72px, env(safe-area-inset-bottom));
  }

  .page-hero .safe {
    padding-top: max(78px, env(safe-area-inset-top));
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    max-width: 348px;
  }

  .mission-grid p {
    padding: 11px 12px;
    background: rgba(22, 19, 22, 0.36);
  }

  .page h1 {
    font-size: clamp(2rem, 10vw, 2.66rem);
  }

  .page h2 {
    font-size: clamp(1.72rem, 8vw, 2.12rem);
  }

  .lead {
    max-width: 350px;
    font-size: 0.92rem;
    line-height: 1.72;
  }

  .page-friendship .safe {
    padding-top: 86px;
    padding-bottom: 154px;
  }

  .friend-copy p {
    margin-bottom: 9px;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .quote {
    font-size: 1.42rem;
  }

  .friend-character-grid {
    gap: 9px;
  }

  .friend-character {
    min-height: 92px;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 250, 246, 0.18);
    border-color: rgba(255, 250, 246, 0.36);
  }

  .friend-character img {
    min-height: 82px;
  }

  .friend-character span {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }

  .friend-character h3 {
    font-size: 1.22rem;
    margin-bottom: 0;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    transform: translateY(-38px);
  }

  .member-file {
    padding: 12px;
  }

  .member-file p {
    padding: 8px 0;
  }

  .member-file strong {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .reward {
    font-size: 2rem;
  }

  .timeline {
    gap: 9px;
    margin: 16px 0 14px;
  }

  .timeline::before {
    left: 34px;
  }

  .timeline li {
    min-height: 88px;
    grid-template-columns: 66px 1fr;
    padding: 10px;
    background: rgba(255, 250, 246, 0.74);
  }

  .timeline time {
    width: 50px;
    height: 50px;
    font-size: 0.82rem;
  }

  .timeline p,
  .timeline span {
    font-size: 0.9rem;
  }

  .join-button {
    width: 100%;
    min-height: 46px;
  }
}

/* Final H5 page-turn and mobile composition refinements */
.story {
  height: var(--app-height, 100dvh);
}

.page .safe {
  --panel-width: 348px;
}

.mission-grid,
.friend-character-grid,
.member-file,
.timeline,
.quest-goal,
.quest-reward,
.page-schedule .join-button {
  width: 100%;
  max-width: var(--panel-width);
}

.page-friendship .safe {
  padding-top: 92px;
  padding-bottom: 96px;
  padding-left: 18px;
  padding-right: 18px;
}

.page-friendship h2 {
  margin-bottom: 12px;
  white-space: normal;
}

.friend-copy p {
  max-width: var(--panel-width);
}

.quote {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 2px 0 10px;
  white-space: nowrap;
  font-family: "STXingkai", "华文行楷", "FZShuTi", "STKaiti", "KaiTi", serif;
  font-size: clamp(1.12rem, 5.05vw, 1.32rem);
  line-height: 1.16;
  color: #7c2f5f;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255, 250, 246, 0.95),
    0 0 10px rgba(255, 250, 246, 0.78),
    0 0 18px rgba(226, 189, 98, 0.42);
}

.friend-character-grid {
  gap: 8px;
  margin-bottom: 118px;
}

.friend-character {
  min-height: 76px;
  grid-template-columns: 68px 1fr;
  padding: 7px;
  background: rgba(255, 250, 246, 0.2);
  border-color: rgba(255, 250, 246, 0.46);
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.friend-character img {
  min-height: 66px;
}

.friend-character span {
  font-size: 1.02rem;
}

.friend-character h3 {
  font-size: 1.28rem;
}

.page-friendship .friend-character h3 {
  font-family: "HYXingKai", "HanziPen SC", "STXingkai", "华文行楷", "KaiTi", serif;
  color: #14100f;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.14;
  text-shadow:
    0 1px 0 rgba(255, 250, 246, 0.82),
    0 0 1px rgba(20, 16, 15, 0.16);
  transform: none;
}

.profile-copy,
.member-file,
.reward {
  max-width: var(--panel-width);
}

.member-file {
  width: 100%;
}

.page-profile {
  align-items: start;
}

.page-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 36%, rgba(255, 250, 246, 0.28) 52%, transparent 70%),
    radial-gradient(circle at 50% 64%, rgba(241, 167, 183, 0.18), transparent 34%);
  filter: blur(10px);
  opacity: 0;
  transform: translateY(16%);
  animation: profileMistReveal 2.6s 0.28s ease-out both;
}

.page-profile .safe {
  padding-top: max(78px, env(safe-area-inset-top));
  padding-bottom: max(42px, env(safe-area-inset-bottom));
}

.page-profile .profile-layout {
  transform: none;
  gap: 8px;
}

.page-profile .profile-copy {
  max-width: 318px;
}

.page-profile .eyebrow {
  font-size: 0.94rem;
  font-weight: 900;
}

.page-profile h2 {
  margin-bottom: 10px;
}

.page-profile .profile-intro {
  margin-bottom: 6px;
  font-size: 0.94rem;
  line-height: 1.48;
}

.page-profile .member-file {
  max-width: 318px;
  justify-self: start;
  padding: 9px 11px;
  background: rgba(255, 250, 246, 0.06);
  border-color: rgba(255, 250, 246, 0.32);
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.page-profile .member-file p {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
}

.page-profile .member-file span,
.page-profile .member-file strong {
  display: block;
}

.page-profile .member-file span {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.page-profile .member-file strong {
  font-size: 0.82rem;
  line-height: 1.34;
}

.page-profile .reward {
  margin-top: 22px;
  font-size: 1.8rem;
}

.page-schedule h2 {
  max-width: var(--panel-width);
  white-space: nowrap;
  font-size: clamp(1.52rem, 6.2vw, 1.86rem);
}

.timeline {
  margin-top: 14px;
}

.timeline li {
  background:
    linear-gradient(135deg, rgba(255, 232, 244, 0.52), rgba(218, 247, 239, 0.36)),
    rgba(255, 250, 246, 0.24);
  border-color: rgba(255, 250, 246, 0.58);
  backdrop-filter: blur(6px) saturate(1.18);
  box-shadow:
    0 12px 28px rgba(155, 120, 200, 0.14),
    inset 0 1px 0 rgba(255, 250, 246, 0.58);
}

.page h1,
.page h2,
.page-schedule h2 {
  max-width: var(--panel-width);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(1.56rem, 6.4vw, 1.92rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.page h1 {
  margin-bottom: 14px;
}

.page h2 {
  margin-bottom: 14px;
}

.page-schedule h2 {
  white-space: nowrap;
}

.page-schedule .eyebrow {
  color: #7b4aa2;
  font-size: 0.96rem;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255, 250, 246, 0.95),
    0 0 12px rgba(255, 250, 246, 0.74);
}

.mission-grid p {
  background: rgba(22, 19, 22, 0.07);
  border-color: rgba(255, 250, 246, 0.1);
  backdrop-filter: blur(1.5px);
}

.inline-map-links a {
  background: rgba(22, 19, 22, 0.1);
}

.friend-character {
  background: rgba(255, 250, 246, 0.12);
  border-color: rgba(255, 250, 246, 0.28);
  backdrop-filter: blur(2px);
}

.page-profile .safe {
  padding-top: max(112px, env(safe-area-inset-top));
}

.page-profile .profile-layout {
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.page-profile .profile-copy,
.page-profile .member-file,
.page-profile .reward {
  justify-self: center;
}

.page-profile .member-file {
  max-width: 318px;
  margin-top: 8px;
  background: rgba(255, 250, 246, 0.035);
  border-color: rgba(255, 250, 246, 0.22);
  backdrop-filter: blur(1.5px);
}

.page-profile .member-file p {
  text-align: left;
}

.timeline li {
  background:
    linear-gradient(135deg, rgba(255, 232, 244, 0.22), rgba(218, 247, 239, 0.16)),
    rgba(255, 250, 246, 0.08);
  border-color: rgba(255, 250, 246, 0.26);
  backdrop-filter: blur(3px) saturate(1.04);
}

.quest-goal,
.quest-reward {
  background: rgba(255, 250, 246, 0.08);
}

.quest-goal {
  white-space: nowrap;
  font-size: clamp(0.82rem, 3.6vw, 0.92rem);
}

.timeline .keep-line {
  white-space: nowrap;
  font-size: 0.78rem;
}

.page-hero .subtitle {
  width: 100%;
  max-width: var(--panel-width);
  white-space: nowrap;
  overflow: visible;
  font-size: clamp(0.92rem, 4.2vw, 1.02rem);
}

.page-hero .safe {
  width: min(100%, 430px);
  margin-left: 0;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero .subtitle,
.page-hero .mission-grid,
.page-hero .lead {
  max-width: 278px;
}

.page-hero h1 {
  font-size: clamp(1.42rem, 6vw, 1.82rem);
  line-height: 1.12;
  margin-bottom: 10px;
}

.page-hero .subtitle {
  font-size: clamp(0.78rem, 3.5vw, 0.92rem);
}

.page-hero .mission-grid {
  gap: 6px;
}

.page-hero .mission-grid p {
  padding: 8px 9px;
}

.page-hero .lead {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.52;
}

.tap-hint {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(226, 189, 98, 0.58);
  animation: tapHintPulse 1.15s ease-in-out infinite;
}

.mission-grid .inline-map-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.mission-grid .inline-map-links .tap-hint {
  display: inline-flex;
  white-space: nowrap;
}

@keyframes tapHintPulse {
  0%, 100% {
    opacity: 0.58;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-4px);
  }
}

.page-profile .profile-bg {
  animation: none;
  opacity: 0;
  transform: scale(1.08) translateY(18px);
  filter: saturate(0.82) brightness(0.72) blur(5px);
}

.page-profile.is-active .profile-bg {
  animation: profileReveal 2.2s cubic-bezier(0.2, 0.75, 0.2, 1) both, profileBreath 8s 2.2s ease-in-out infinite alternate;
}

.page-profile::after {
  animation: none;
  opacity: 0;
}

.page-profile.is-active::after {
  animation: profileMistReveal 2.6s 0.28s ease-out both;
}

.page-friendship .friend-character {
  opacity: 0;
  transform: translateY(10px);
  animation: none;
}

.page-friendship.is-active .friend-character {
  animation: softRevealIn 1.95s ease-out both;
}

.page-friendship.is-active .friend-character:nth-child(1) {
  animation-delay: 0.28s;
}

.page-friendship.is-active .friend-character:nth-child(2) {
  animation-delay: 1.36s;
}

.page-friendship.is-active .friend-character:nth-child(3) {
  animation-delay: 2.44s;
}

@keyframes softRevealIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: brightness(1.18) blur(3px);
  }
  52% {
    opacity: 0.5;
    transform: translateY(4px);
    filter: brightness(1.1) blur(1.4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

.page-schedule .schedule-bg,
.page-schedule .schedule-layer,
.page-schedule .safe {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(-10px);
  animation: none;
}

.page-schedule.is-active .schedule-bg,
.page-schedule.is-active .schedule-layer {
  animation: pageScrollUnfold 3.15s cubic-bezier(0.18, 0.74, 0.16, 1) both;
}

.page-schedule.is-active .safe {
  animation: pageScrollUnfold 3.15s 0.18s cubic-bezier(0.18, 0.74, 0.16, 1) both;
}

.page-schedule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.62), rgba(226, 189, 98, 0.28), transparent),
    linear-gradient(90deg, transparent, rgba(255, 250, 246, 0.86), transparent);
  filter: blur(1px);
  transform: translateY(-36px);
}

.page-schedule.is-active::after {
  animation: scrollEdgeSweep 3.15s cubic-bezier(0.18, 0.74, 0.16, 1) both;
}

.page-schedule::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 24px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 10px 50%, rgba(255, 250, 246, 0.92) 0 8px, transparent 9px),
    radial-gradient(circle at calc(100% - 10px) 50%, rgba(255, 250, 246, 0.92) 0 8px, transparent 9px),
    linear-gradient(180deg, rgba(255, 250, 246, 0.94), rgba(226, 189, 98, 0.78) 46%, rgba(132, 88, 155, 0.82));
  box-shadow:
    0 7px 18px rgba(22, 19, 22, 0.22),
    0 0 18px rgba(226, 189, 98, 0.28);
  transform: translateY(-34px);
}

.page-schedule.is-active::before {
  animation: scrollRodUnroll 3.15s cubic-bezier(0.18, 0.74, 0.16, 1) both;
}

@keyframes pageScrollUnfold {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-10px);
    filter: brightness(1.14) blur(2px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    filter: brightness(1) blur(0);
  }
}

@keyframes scrollEdgeSweep {
  0% {
    opacity: 0;
    transform: translateY(-36px);
  }
  18% {
    opacity: 0.82;
  }
  86% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateY(100svh);
  }
}

@keyframes scrollRodUnroll {
  0% {
    opacity: 0;
    transform: translateY(-34px) rotateX(0deg);
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(calc(100svh - 34px)) rotateX(720deg);
  }
}

/* Final motion pass: faster friendship reveal and blade-sweep schedule reveal */
.page-friendship.is-active .friend-character {
  animation: softRevealIn 1.45s ease-out both;
}

.page-friendship.is-active .friend-character:nth-child(1) {
  animation-delay: 0.18s;
}

.page-friendship.is-active .friend-character:nth-child(2) {
  animation-delay: 0.92s;
}

.page-friendship.is-active .friend-character:nth-child(3) {
  animation-delay: 1.66s;
}

.page-schedule .schedule-bg,
.page-schedule .schedule-layer,
.page-schedule .safe {
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transform: translateX(-10px);
  animation: none;
}

.page-schedule.is-active .schedule-bg,
.page-schedule.is-active .schedule-layer {
  animation: bladePageReveal 2.25s cubic-bezier(0.16, 0.72, 0.16, 1) both;
}

.page-schedule.is-active .safe {
  animation: bladePageReveal 2.25s 0.28s cubic-bezier(0.16, 0.72, 0.16, 1) both;
}

.page-schedule::before,
.page-schedule::after {
  left: -42%;
  right: auto;
  top: 0;
  width: 190%;
  height: 100%;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-34%) rotate(-16deg);
  box-shadow: none;
  filter: drop-shadow(0 0 12px rgba(255, 250, 246, 0.72));
}

.page-schedule::before {
  background:
    linear-gradient(90deg, transparent 0 21%, rgba(255, 250, 246, 0.92) 23%, rgba(139, 201, 186, 0.68) 24%, transparent 27%),
    linear-gradient(90deg, transparent 0 44%, rgba(226, 189, 98, 0.88) 46%, rgba(255, 250, 246, 0.94) 47%, transparent 50%),
    linear-gradient(90deg, transparent 0 68%, rgba(241, 167, 183, 0.86) 70%, rgba(255, 250, 246, 0.9) 71%, transparent 74%);
}

.page-schedule::after {
  z-index: 4;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(255, 250, 246, 0.86) 34%, rgba(155, 120, 200, 0.76) 35%, transparent 38%),
    linear-gradient(90deg, transparent 0 56%, rgba(255, 250, 246, 0.9) 58%, rgba(226, 189, 98, 0.72) 59%, transparent 62%);
  transform: translateX(-42%) rotate(14deg);
}

.page-schedule.is-active::before {
  animation: bladeSweepOne 1.95s 0.08s ease-out both;
}

.page-schedule.is-active::after {
  animation: bladeSweepTwo 2.15s 0.42s ease-out both;
}

@keyframes bladePageReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    transform: translateX(-10px);
    filter: brightness(1.28) blur(2px);
  }
  42% {
    opacity: 0.58;
    clip-path: inset(0 0 0 42%);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
    filter: brightness(1) blur(0);
  }
}

@keyframes bladeSweepOne {
  0% {
    opacity: 0;
    transform: translateX(-34%) rotate(-16deg);
  }
  16%, 72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(26%) rotate(-16deg);
  }
}

@keyframes bladeSweepTwo {
  0% {
    opacity: 0;
    transform: translateX(-42%) rotate(14deg);
  }
  18%, 70% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translateX(24%) rotate(14deg);
  }
}

.page-schedule .schedule-layer::before,
.page-schedule .schedule-layer::after {
  content: "";
  position: absolute;
  inset: -28%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  filter:
    drop-shadow(0 0 10px rgba(255, 250, 246, 0.95))
    drop-shadow(0 0 20px rgba(139, 201, 186, 0.5));
}

.page-schedule .schedule-layer::before {
  background:
    linear-gradient(42deg, transparent 0 42%, rgba(255, 250, 246, 0.98) 43%, rgba(139, 201, 186, 0.8) 44%, transparent 46%),
    linear-gradient(128deg, transparent 0 53%, rgba(255, 250, 246, 0.92) 54%, rgba(226, 189, 98, 0.72) 55%, transparent 57%),
    linear-gradient(72deg, transparent 0 31%, rgba(255, 250, 246, 0.78) 32%, rgba(241, 167, 183, 0.66) 33%, transparent 35%);
  transform: translate(-34%, -30%) scale(1.04);
}

.page-schedule .schedule-layer::after {
  background:
    linear-gradient(-42deg, transparent 0 40%, rgba(255, 250, 246, 0.96) 41%, rgba(155, 120, 200, 0.78) 42%, transparent 44%),
    linear-gradient(-126deg, transparent 0 60%, rgba(255, 250, 246, 0.9) 61%, rgba(139, 201, 186, 0.72) 62%, transparent 64%),
    linear-gradient(-72deg, transparent 0 24%, rgba(255, 250, 246, 0.74) 25%, rgba(226, 189, 98, 0.66) 26%, transparent 28%);
  transform: translate(34%, 30%) scale(1.04);
}

.page-schedule.is-active .schedule-layer::before {
  animation: bladeBurstIn 1.9s 0.18s ease-out both;
}

.page-schedule.is-active .schedule-layer::after {
  animation: bladeBurstOut 2.05s 0.34s ease-out both;
}

.page-schedule.is-active::before {
  animation: none;
}

.page-schedule.is-active::after {
  animation: none;
}

@keyframes bladeBurstIn {
  0% {
    opacity: 0;
    transform: translate(-36%, -32%) scale(1.04);
  }
  16%, 68% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(30%, 28%) scale(1.04);
  }
}

@keyframes bladeBurstOut {
  0% {
    opacity: 0;
    transform: translate(36%, 32%) scale(1.04);
  }
  14%, 72% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
    transform: translate(-30%, -28%) scale(1.04);
  }
}

/* Final schedule effect: soft page fade with fast all-direction blade burst */
.page-schedule .schedule-bg,
.page-schedule .schedule-layer,
.page-schedule .safe {
  opacity: 0;
  clip-path: none;
  transform: scale(1.02);
  animation: none;
}

.page-schedule.is-active .schedule-bg,
.page-schedule.is-active .schedule-layer {
  animation: scheduleSoftFade 1.45s 0.28s ease-out both;
}

.page-schedule.is-active .safe {
  animation: scheduleSoftFade 1.35s 0.54s ease-out both;
}

.page-schedule .schedule-layer::before {
  background:
    linear-gradient(42deg, transparent 0 39%, rgba(255, 250, 246, 1) 40%, rgba(139, 201, 186, 0.92) 41%, transparent 44%),
    linear-gradient(128deg, transparent 0 50%, rgba(255, 250, 246, 0.96) 51%, rgba(226, 189, 98, 0.86) 52%, transparent 55%),
    linear-gradient(72deg, transparent 0 27%, rgba(255, 250, 246, 0.92) 28%, rgba(241, 167, 183, 0.82) 29%, transparent 32%),
    linear-gradient(18deg, transparent 0 62%, rgba(255, 250, 246, 0.86) 63%, rgba(155, 120, 200, 0.7) 64%, transparent 67%);
}

.page-schedule .schedule-layer::after {
  background:
    linear-gradient(-42deg, transparent 0 37%, rgba(255, 250, 246, 1) 38%, rgba(155, 120, 200, 0.9) 39%, transparent 42%),
    linear-gradient(-126deg, transparent 0 57%, rgba(255, 250, 246, 0.96) 58%, rgba(139, 201, 186, 0.86) 59%, transparent 62%),
    linear-gradient(-72deg, transparent 0 21%, rgba(255, 250, 246, 0.9) 22%, rgba(226, 189, 98, 0.82) 23%, transparent 26%),
    linear-gradient(-18deg, transparent 0 68%, rgba(255, 250, 246, 0.84) 69%, rgba(241, 167, 183, 0.72) 70%, transparent 73%);
}

.page-schedule.is-active .schedule-layer::before {
  animation: bladeSprayIn 0.92s 0.06s ease-out both;
}

.page-schedule.is-active .schedule-layer::after {
  animation: bladeSprayOut 1.02s 0.2s ease-out both;
}

@keyframes scheduleSoftFade {
  0% {
    opacity: 0;
    transform: scale(1.02);
    filter: brightness(1.24) blur(3px);
  }
  52% {
    opacity: 0.52;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0);
  }
}

@keyframes bladeSprayIn {
  0% {
    opacity: 0;
    transform: translate(-58%, -54%) scale(1.12);
  }
  18%, 62% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(48%, 46%) scale(1.12);
  }
}

@keyframes bladeSprayOut {
  0% {
    opacity: 0;
    transform: translate(58%, 54%) scale(1.12);
  }
  16%, 64% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-48%, -46%) scale(1.12);
  }
}

/* Sharper final blade burst: fixed piercing slashes from every side */
.page-schedule .schedule-layer::before,
.page-schedule .schedule-layer::after {
  inset: -10%;
  z-index: 3;
  opacity: 0;
  transform: scale(0.42);
  transform-origin: center;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 12px rgba(139, 201, 186, 0.72))
    drop-shadow(0 0 22px rgba(226, 189, 98, 0.45));
}

.page-schedule .schedule-layer::before {
  background:
    linear-gradient(44deg, transparent 0 48.9%, rgba(139, 201, 186, 0.58) 49.15%, rgba(255, 255, 255, 1) 49.55%, rgba(255, 255, 255, 1) 50.45%, rgba(139, 201, 186, 0.58) 50.85%, transparent 51.1%),
    linear-gradient(-44deg, transparent 0 48.9%, rgba(226, 189, 98, 0.68) 49.15%, rgba(255, 255, 255, 1) 49.55%, rgba(255, 255, 255, 1) 50.45%, rgba(226, 189, 98, 0.68) 50.85%, transparent 51.1%),
    linear-gradient(14deg, transparent 0 49.12%, rgba(226, 189, 98, 0.52) 49.34%, rgba(255, 255, 255, 0.95) 49.72%, rgba(255, 255, 255, 0.95) 50.28%, rgba(226, 189, 98, 0.52) 50.66%, transparent 50.88%);
}

.page-schedule .schedule-layer::after {
  background:
    linear-gradient(90deg, transparent 0 49.06%, rgba(255, 255, 255, 0.34) 49.24%, rgba(255, 255, 255, 1) 49.72%, rgba(255, 255, 255, 1) 50.28%, rgba(255, 255, 255, 0.34) 50.76%, transparent 50.94%),
    linear-gradient(0deg, transparent 0 49.06%, rgba(139, 201, 186, 0.58) 49.24%, rgba(255, 255, 255, 1) 49.72%, rgba(255, 255, 255, 1) 50.28%, rgba(139, 201, 186, 0.58) 50.76%, transparent 50.94%),
    linear-gradient(72deg, transparent 0 49.16%, rgba(139, 201, 186, 0.44) 49.34%, rgba(255, 255, 255, 0.94) 49.78%, rgba(255, 255, 255, 0.94) 50.22%, rgba(139, 201, 186, 0.44) 50.66%, transparent 50.84%),
    linear-gradient(-72deg, transparent 0 49.16%, rgba(226, 189, 98, 0.42) 49.34%, rgba(255, 255, 255, 0.94) 49.78%, rgba(255, 255, 255, 0.94) 50.22%, rgba(226, 189, 98, 0.42) 50.66%, transparent 50.84%);
}

.page-schedule.is-active .schedule-layer::before {
  animation: sharpBladePierce 0.72s 0.08s ease-out both;
}

.page-schedule.is-active .schedule-layer::after {
  animation: sharpBladePierce 0.78s 0.42s ease-out both;
}

.page-schedule::before,
.page-schedule::after {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  border-radius: 0;
  transform: scale(0.28);
  transform-origin: center;
  mix-blend-mode: screen;
  box-shadow: none;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.96))
    drop-shadow(0 0 14px rgba(226, 189, 98, 0.54))
    drop-shadow(0 0 18px rgba(139, 201, 186, 0.42));
}

.page-schedule::before {
  background:
    linear-gradient(28deg, transparent 0 49.14%, rgba(226, 189, 98, 0.58) 49.36%, rgba(255, 255, 255, 1) 49.78%, rgba(255, 255, 255, 1) 50.22%, rgba(226, 189, 98, 0.58) 50.64%, transparent 50.86%),
    linear-gradient(-62deg, transparent 0 49.08%, rgba(139, 201, 186, 0.54) 49.3%, rgba(255, 255, 255, 0.96) 49.76%, rgba(255, 255, 255, 0.96) 50.24%, rgba(139, 201, 186, 0.54) 50.7%, transparent 50.92%);
}

.page-schedule::after {
  background:
    linear-gradient(-24deg, transparent 0 49.14%, rgba(226, 189, 98, 0.56) 49.36%, rgba(255, 255, 255, 1) 49.78%, rgba(255, 255, 255, 1) 50.22%, rgba(226, 189, 98, 0.56) 50.64%, transparent 50.86%),
    linear-gradient(58deg, transparent 0 49.08%, rgba(139, 201, 186, 0.54) 49.3%, rgba(255, 255, 255, 0.96) 49.76%, rgba(255, 255, 255, 0.96) 50.24%, rgba(139, 201, 186, 0.54) 50.7%, transparent 50.92%);
}

.page-schedule.is-active::before {
  animation: sharpBladePierce 0.7s 0.24s ease-out both;
}

.page-schedule.is-active::after {
  animation: sharpBladePierce 0.76s 0.66s ease-out both;
}

@keyframes sharpBladePierce {
  0% {
    opacity: 0;
    transform: scale(0.18);
  }
  18% {
    opacity: 1;
    transform: scale(1.08);
  }
  42% {
    opacity: 0.96;
    transform: scale(1.16);
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

/* Independent blade wisps: staggered gold and cold light from all sides */
.page-schedule .schedule-layer::before,
.page-schedule .schedule-layer::after,
.page-schedule::before,
.page-schedule::after {
  animation: none !important;
  opacity: 0 !important;
}

.blade-bursts {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.blade {
  --blade-color: rgba(255, 255, 255, 1);
  --blade-glow: rgba(139, 201, 186, 0.72);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 2px;
  opacity: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, var(--blade-glow) 11%, var(--blade-color) 42%, var(--blade-color) 58%, var(--blade-glow) 89%, transparent 100%);
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.95),
    0 0 14px var(--blade-glow);
  transform-origin: center;
  filter: blur(0.1px);
}

.blade::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 44px;
  height: 8px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--blade-color), transparent);
  clip-path: polygon(0 48%, 100% 0, 100% 100%);
  opacity: 0.96;
}

.page-schedule.is-active .blade {
  animation: bladeWisp 0.62s ease-out both;
}

.blade-a {
  --blade-glow: rgba(226, 189, 98, 0.78);
  width: 64%;
  transform: translate(-118%, -260%) rotate(23deg) scaleX(0.2);
  animation-delay: 0.05s !important;
}

.blade-b {
  --blade-glow: rgba(139, 201, 186, 0.82);
  width: 56%;
  transform: translate(18%, -410%) rotate(146deg) scaleX(0.2);
  animation-delay: 0.22s !important;
}

.blade-c {
  --blade-glow: rgba(226, 189, 98, 0.72);
  width: 48%;
  transform: translate(-128%, 250%) rotate(-18deg) scaleX(0.2);
  animation-delay: 0.38s !important;
}

.blade-d {
  --blade-glow: rgba(139, 201, 186, 0.76);
  width: 70%;
  transform: translate(22%, 330%) rotate(-148deg) scaleX(0.2);
  animation-delay: 0.56s !important;
}

.blade-e {
  --blade-glow: rgba(226, 189, 98, 0.66);
  width: 46%;
  transform: translate(-120%, -40%) rotate(4deg) scaleX(0.2);
  animation-delay: 0.72s !important;
}

.blade-f {
  --blade-glow: rgba(139, 201, 186, 0.7);
  width: 52%;
  transform: translate(28%, 40%) rotate(180deg) scaleX(0.2);
  animation-delay: 0.86s !important;
}

.blade-g {
  --blade-glow: rgba(226, 189, 98, 0.72);
  width: 42%;
  transform: translate(-42%, -760%) rotate(92deg) scaleX(0.2);
  animation-delay: 1.02s !important;
}

@keyframes bladeWisp {
  0% {
    opacity: 0;
    transform: var(--blade-start, translate(-50%, -50%)) scaleX(0.12);
  }
  18% {
    opacity: 1;
  }
  52% {
    opacity: 0.98;
  }
  100% {
    opacity: 0;
    transform: var(--blade-end, translate(-50%, -50%)) scaleX(1.18);
  }
}

.blade {
  top: -8%;
}

.blade-a {
  left: -24%;
  --blade-start: translate(0, 0) rotate(32deg) scaleX(0.12);
  --blade-end: translate(112%, 145%) rotate(32deg) scaleX(1.18);
}

.blade-b {
  left: 72%;
  --blade-start: translate(0, 0) rotate(148deg) scaleX(0.12);
  --blade-end: translate(-112%, 150%) rotate(148deg) scaleX(1.18);
}

.blade-c {
  left: 8%;
  --blade-start: translate(0, 0) rotate(48deg) scaleX(0.12);
  --blade-end: translate(86%, 172%) rotate(48deg) scaleX(1.18);
}

.blade-d {
  left: 58%;
  --blade-start: translate(0, 0) rotate(132deg) scaleX(0.12);
  --blade-end: translate(-82%, 174%) rotate(132deg) scaleX(1.18);
}

.blade-e {
  left: -12%;
  --blade-start: translate(0, 0) rotate(18deg) scaleX(0.12);
  --blade-end: translate(128%, 118%) rotate(18deg) scaleX(1.18);
}

.blade-f {
  left: 84%;
  --blade-start: translate(0, 0) rotate(164deg) scaleX(0.12);
  --blade-end: translate(-126%, 118%) rotate(164deg) scaleX(1.18);
}

.blade-g {
  left: 34%;
  --blade-start: translate(0, 0) rotate(94deg) scaleX(0.12);
  --blade-end: translate(0, 170%) rotate(94deg) scaleX(1.18);
}

/* Denser, heavier blade rain from top and sides */
.blade {
  width: 96%;
  height: 4px;
  background:
    linear-gradient(90deg, transparent 0%, var(--blade-glow) 8%, var(--blade-color) 28%, var(--blade-color) 72%, var(--blade-glow) 92%, transparent 100%);
  box-shadow:
    0 0 7px rgba(255, 255, 255, 1),
    0 0 18px var(--blade-glow),
    0 0 28px rgba(255, 255, 255, 0.36);
}

.blade::before {
  width: 74px;
  height: 13px;
}

.page-schedule.is-active .blade {
  animation: bladeWisp 0.92s ease-out both;
}

.blade-a,
.blade-c,
.blade-e,
.blade-h,
.blade-j {
  --blade-glow: rgba(226, 189, 98, 0.86);
}

.blade-b,
.blade-d,
.blade-f,
.blade-g,
.blade-i,
.blade-k,
.blade-l {
  --blade-glow: rgba(139, 201, 186, 0.88);
}

.blade-a { top: -18%; left: -48%; width: 122%; animation-delay: 0.04s !important; --blade-start: translate(0, 0) rotate(34deg) scaleX(0.12); --blade-end: translate(150%, 265%) rotate(34deg) scaleX(1.38); }
.blade-c { top: -10%; left: -58%; width: 116%; animation-delay: 0.28s !important; --blade-start: translate(0, 0) rotate(28deg) scaleX(0.12); --blade-end: translate(158%, 230%) rotate(28deg) scaleX(1.34); }
.blade-e { top: 2%; left: -52%; width: 128%; animation-delay: 0.52s !important; --blade-start: translate(0, 0) rotate(42deg) scaleX(0.12); --blade-end: translate(144%, 285%) rotate(42deg) scaleX(1.38); }

.blade-b { top: -17%; left: 76%; width: 122%; animation-delay: 0.16s !important; --blade-start: translate(0, 0) rotate(146deg) scaleX(0.12); --blade-end: translate(-150%, 265%) rotate(146deg) scaleX(1.38); }
.blade-d { top: -4%; left: 82%; width: 118%; animation-delay: 0.4s !important; --blade-start: translate(0, 0) rotate(136deg) scaleX(0.12); --blade-end: translate(-154%, 250%) rotate(136deg) scaleX(1.34); }

.blade-g { top: -24%; left: 24%; width: 104%; animation-delay: 0.72s !important; --blade-start: translate(0, 0) rotate(90deg) scaleX(0.12); --blade-end: translate(0, 325%) rotate(90deg) scaleX(1.32); }

.blade-f,
.blade-h,
.blade-i,
.blade-j,
.blade-k,
.blade-l {
  display: none;
}

/* Blade effects disabled */
.page-schedule .schedule-layer::before,
.page-schedule .schedule-layer::after,
.page-schedule::before,
.page-schedule::after {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}

.lightning-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(118deg, transparent 0 43%, rgba(255, 255, 255, 0.98) 44%, rgba(226, 189, 98, 0.7) 45%, transparent 47%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82), transparent 32%),
    rgba(255, 250, 246, 0.18);
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 24px rgba(226, 189, 98, 0.48));
}

.page-schedule.is-active .lightning-flash {
  animation: lightningFlash 1.18s 0.08s ease-out both;
}

@keyframes lightningFlash {
  0%, 100% {
    opacity: 0;
  }
  8% {
    opacity: 1;
    filter:
      drop-shadow(0 0 18px rgba(255, 255, 255, 1))
      drop-shadow(0 0 34px rgba(226, 189, 98, 0.68));
  }
  14% {
    opacity: 0.16;
  }
  22% {
    opacity: 0.86;
  }
  36% {
    opacity: 0.24;
  }
  62% {
    opacity: 0;
  }
}

@keyframes bladeWisp {
  0% {
    opacity: 0;
    transform: var(--blade-start) scaleX(0.08);
  }
  12% {
    opacity: 1;
  }
  74% {
    opacity: 0.98;
  }
  100% {
    opacity: 0;
    transform: var(--blade-end);
  }
}

/* Current final schedule effect: dense visible blade streaks flying fully off-page */
.page-schedule .lightning-flash {
  display: none !important;
}

.page-schedule .blade-bursts {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  opacity: 1 !important;
}

.page-schedule .blade {
  --blade-color: rgba(255, 255, 255, 1);
  --blade-glow: rgba(226, 189, 98, 0.9);
  display: block !important;
  position: absolute;
  width: 132%;
  height: 7px;
  left: 0;
  top: 0;
  opacity: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, var(--blade-glow) 6%, var(--blade-color) 22%, var(--blade-color) 78%, var(--blade-glow) 94%, transparent 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 1),
    0 0 22px var(--blade-glow),
    0 0 34px rgba(255, 255, 255, 0.42);
  filter: blur(0.05px);
  transform-origin: center;
}

.page-schedule .blade::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 96px;
  height: 20px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--blade-color), transparent);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  opacity: 0.98;
}

.page-schedule.is-active .blade {
  animation: bladeFlyOut 1.05s ease-out both !important;
}

.page-schedule .blade-a,
.page-schedule .blade-c,
.page-schedule .blade-e,
.page-schedule .blade-h,
.page-schedule .blade-j {
  --blade-glow: rgba(226, 189, 98, 0.92);
}

.page-schedule .blade-b,
.page-schedule .blade-d,
.page-schedule .blade-f,
.page-schedule .blade-g,
.page-schedule .blade-i,
.page-schedule .blade-k,
.page-schedule .blade-l {
  --blade-glow: rgba(139, 201, 186, 0.92);
}

.page-schedule .blade-a { top: -16%; left: -52%; width: 142%; animation-delay: 0.04s !important; --blade-start: translate(0, 0) rotate(34deg) scaleX(0.2); --blade-end: translate(168%, 320%) rotate(34deg) scaleX(1.35); }
.page-schedule .blade-b { top: -15%; left: 78%; width: 140%; animation-delay: 0.16s !important; --blade-start: translate(0, 0) rotate(146deg) scaleX(0.2); --blade-end: translate(-168%, 322%) rotate(146deg) scaleX(1.35); }
.page-schedule .blade-c { top: -6%; left: -64%; width: 132%; animation-delay: 0.28s !important; --blade-start: translate(0, 0) rotate(28deg) scaleX(0.2); --blade-end: translate(178%, 270%) rotate(28deg) scaleX(1.32); }
.page-schedule .blade-d { top: -4%; left: 86%; width: 132%; animation-delay: 0.4s !important; --blade-start: translate(0, 0) rotate(136deg) scaleX(0.2); --blade-end: translate(-178%, 270%) rotate(136deg) scaleX(1.32); }
.page-schedule .blade-e { top: 5%; left: -58%; width: 148%; animation-delay: 0.52s !important; --blade-start: translate(0, 0) rotate(42deg) scaleX(0.2); --blade-end: translate(162%, 345%) rotate(42deg) scaleX(1.36); }
.page-schedule .blade-f { top: 22%; left: 94%; width: 138%; animation-delay: 0.64s !important; --blade-start: translate(0, 0) rotate(176deg) scaleX(0.2); --blade-end: translate(-190%, 24%) rotate(176deg) scaleX(1.36); }
.page-schedule .blade-g { top: -26%; left: 26%; width: 112%; animation-delay: 0.76s !important; --blade-start: translate(0, 0) rotate(90deg) scaleX(0.2); --blade-end: translate(0, 410%) rotate(90deg) scaleX(1.28); }
.page-schedule .blade-h { top: 34%; left: -82%; width: 146%; animation-delay: 0.88s !important; --blade-start: translate(0, 0) rotate(2deg) scaleX(0.2); --blade-end: translate(210%, -4%) rotate(2deg) scaleX(1.36); }
.page-schedule .blade-i { top: 46%; left: 96%; width: 146%; animation-delay: 1s !important; --blade-start: translate(0, 0) rotate(182deg) scaleX(0.2); --blade-end: translate(-212%, -4%) rotate(182deg) scaleX(1.36); }
.page-schedule .blade-j { top: -20%; left: -20%; width: 124%; animation-delay: 1.12s !important; --blade-start: translate(0, 0) rotate(58deg) scaleX(0.2); --blade-end: translate(118%, 395%) rotate(58deg) scaleX(1.3); }
.page-schedule .blade-k { top: -18%; left: 48%; width: 124%; animation-delay: 1.24s !important; --blade-start: translate(0, 0) rotate(122deg) scaleX(0.2); --blade-end: translate(-118%, 390%) rotate(122deg) scaleX(1.3); }
.page-schedule .blade-l { top: 12%; left: 90%; width: 136%; animation-delay: 1.36s !important; --blade-start: translate(0, 0) rotate(164deg) scaleX(0.2); --blade-end: translate(-196%, 118%) rotate(164deg) scaleX(1.34); }

@keyframes bladeFlyOut {
  0% {
    opacity: 0;
    transform: var(--blade-start);
  }
  10% {
    opacity: 1;
  }
  78% {
    opacity: 0.98;
  }
  100% {
    opacity: 0;
    transform: var(--blade-end);
  }
}

/* Final schedule entrance: lightning only, all blade streaks disabled */
.page-schedule .blade-bursts,
.page-schedule .blade {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}

.page-schedule .lightning-flash {
  display: block !important;
}

.page-schedule.is-active .lightning-flash {
  animation: lightningFlash 1.18s 0.08s ease-out both !important;
}

@media (max-width: 420px) {
  .page .safe {
    --panel-width: 340px;
  }

  .page-friendship .safe {
    padding-top: 86px;
    padding-bottom: 122px;
  }

  .friend-copy p {
    margin-bottom: 7px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .friend-character {
    grid-template-columns: 64px 1fr;
    min-height: 72px;
  }

  .friend-character img {
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
