body.page-home {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0;
}

.container {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.container::-webkit-scrollbar {
  display: none;
}

.story {
  position: absolute;
  width: 400vh;
  height: 100vh;
  overflow: hidden;
}

.wind {
  position: relative;
  width: 400vh;
  height: 100vh;
  top: 0;
  left: 0;
}

.river {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 22vh;
  background-image: url("images/index/river.webp");
  background-repeat: repeat-x;
  background-size: auto 22vh;
  background-position: bottom left;
  z-index: -1;
}

.girl {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  filter: drop-shadow(0 14px 28px rgba(61, 46, 51, 0.1));
}

.hero {
  position: absolute;
  top: 10vh;
  left: 98vh;
  width: 96vh;
  white-space: normal;
}

.hero .eyebrow,
.hero .title,
.hero .description,
.hero .heroCards,
.hero .heroNote,
.hero .footerCredit {
  opacity: 0;
}

.hero .eyebrow,
.hero .description,
.hero .heroCards,
.hero .heroNote,
.hero .footerCredit {
  transform: translateY(16px);
}

.hero.isReady .eyebrow {
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.hero.isReady .title {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero.isReady .description {
  animation: fadeIn 0.6s ease-out 0.35s both;
}

.hero.isReady .heroCards {
  animation: fadeIn 0.6s ease-out 0.5s both;
}

.hero.isReady .heroNote {
  animation: fadeIn 0.6s ease-out 0.65s both;
}

.hero.isReady .footerCredit {
  animation: fadeIn 0.6s ease-out 0.8s both;
}

.eyebrow,
.cardLabel,
.statusLabel,
.loginEyebrow,
.modalEyebrow {
  margin: 0;
  font-size: 1.3vh;
  letter-spacing: 0.42vh;
  text-transform: uppercase;
  color: var(--muted);
}

.hero > .eyebrow {
  text-shadow: 0 1px 8px rgba(255, 250, 248, 0.9);
}

.title {
  margin: 2.5vh 0 0;
  font-family: "CedarvilleCursive", cursive;
  font-size: 10.2vh;
  line-height: 0.95;
  color: var(--deep);
  text-shadow: 0 1px 12px rgba(255, 250, 248, 0.95), 0 0 40px rgba(255, 250, 248, 0.7);
}

.title span {
  display: inline-block;
  margin: 0 1vh;
  font-size: 8vh;
  color: var(--primary);
}

.description,
.heroNote,
.footerCredit,
.cardValue,
.cardMeta,
.statusValue,
.quietButton,
.loginTitle,
.loginError,
.modalTitle,
.modalBody,
.buttonBubble .text,
.scrollHintText,
.scrollHintDismiss {
  font-size: 2.2vh;
}

.description {
  margin: 2vh 0 0;
  max-width: 58vh;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(255, 250, 248, 0.9), 0 0 30px rgba(255, 250, 248, 0.6);
}

.heroCards {
  margin-top: 4vh;
  display: flex;
  gap: 2vh;
  align-items: stretch;
}

.infoCard {
  min-width: 24vh;
  padding: 2.4vh 2.8vh;
  border: 1px solid var(--card-border);
  border-radius: 3.6vh;
  background:
    linear-gradient(180deg, rgba(255, 252, 251, 0.82), rgba(255, 247, 244, 0.68)),
    var(--card);
  box-shadow: 0 2vh 5vh -3vh var(--shadow);
  backdrop-filter: blur(16px);
  white-space: normal;
}

.infoCardLarge {
  min-width: 22vh;
  text-align: center;
}

.cardValue,
.statusValue {
  margin: 1.4vh 0 0;
  line-height: 1.35;
  color: var(--deep);
  white-space: normal;
}

.cardGreeting {
  min-height: 6vh;
}

.cardNumber {
  margin: 1.2vh 0 0;
  font-family: "JosefinSansRegular", "PingFang SC", sans-serif;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.94;
  background: linear-gradient(180deg, #da9ca7 0%, #aa6b75 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cardSuffix,
.cardMeta {
  margin: 0.9vh 0 0;
  font-size: 1.8vh;
  color: var(--muted);
}

.heroNote {
  margin: 3vh 0 0;
  max-width: 62vh;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(255, 250, 248, 0.9), 0 0 30px rgba(255, 250, 248, 0.6);
}

.footerCredit {
  margin: 3vh 0 0;
  font-size: 1.7vh;
  letter-spacing: 0.18vh;
  color: var(--primary);
  text-shadow: 0 1px 8px rgba(255, 250, 248, 0.9);
}

.scrollHint {
  position: absolute;
  left: 0;
  bottom: -11vh;
  display: inline-flex;
  align-items: center;
  gap: 1vh;
  padding: 1.2vh 1.7vh;
  border: 1px solid rgba(196, 134, 142, 0.16);
  border-radius: 999px;
  background: rgba(255, 252, 251, 0.76);
  box-shadow: 0 16px 36px -28px rgba(70, 49, 55, 0.38);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.scrollHint.isVisible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scrollHintTrail {
  width: 5vh;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 134, 142, 0), rgba(196, 134, 142, 0.82));
  animation: breathe 1.9s ease-in-out infinite;
}

.scrollHintText {
  font-size: 1.75vh;
  color: var(--muted);
}

.scrollHintArrow {
  font-size: 2.2vh;
  color: var(--primary);
  animation: horizontalNudge 1.85s ease-in-out infinite, breathe 1.85s ease-in-out infinite;
}

.scrollHintDismiss {
  width: 3vh;
  height: 3vh;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  font-size: 2vh;
}

.authStatus {
  position: fixed;
  top: 4vh;
  right: 4vh;
  display: flex;
  gap: 2vh;
  align-items: center;
  padding: 1.8vh 2.2vh;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 250, 248, 0.82);
  box-shadow: 0 2vh 5vh -3vh var(--shadow);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.statusValue {
  margin-top: 0.6vh;
  font-size: 2.1vh;
}

.quietButton {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--primary);
  font-size: 1.8vh;
}

.navBubble,
.buttonBubble {
  position: absolute;
}

.navBubble .bubbleLink,
.buttonBubble a {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navBubble .bubbleLink {
  overflow: hidden;
  mask-size: 99.6%;
  mask-repeat: no-repeat;
  mask-position: center center;
}

.navBubble:hover .bubbleLink,
.buttonBubble:hover a,
.navBubble .bubbleLink:focus-visible,
.buttonBubble a:focus-visible {
  transform: translateY(-0.9vh) rotate(0.6deg);
}

.navBubble .image,
.buttonBubble .image {
  display: block;
}

.navBubble .image {
  height: 36vh;
}

.navBubble .outline,
.navBubble .hover,
.buttonBubble .hover {
  position: absolute;
  top: 0;
  left: 0;
}

.navBubble .hover,
.buttonBubble .hover {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.navBubble:hover .hover,
.buttonBubble:hover .hover,
.navBubble .bubbleLink:focus-visible .hover,
.buttonBubble a:focus-visible .hover {
  opacity: 1;
}

.bubbleText {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vh;
  padding: 1.3vh 1.6vh;
  border-radius: 3.2vh;
  background: linear-gradient(180deg, rgba(255, 252, 251, 0.6), rgba(255, 249, 247, 0.18));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -24px rgba(70, 49, 55, 0.42);
  white-space: normal;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(255, 250, 248, 0.9);
}

.bubbleEmoji {
  font-size: 4.6vh;
  line-height: 1;
}

.bubbleLabel {
  font-family: "JosefinSansRegular", "PingFang SC", sans-serif;
  font-size: 3.1vh;
  color: var(--deep);
}

.bubbleHint {
  font-size: 1.65vh;
  line-height: 1.35;
  color: rgba(69, 55, 61, 0.82);
}

.bubbleLetters {
  left: 172vh;
  top: 14vh;
}

.bubbleLetters .bubbleLink {
  mask-image: url("images/index/bubble1_mask.png");
}

.bubbleLetters .image {
  height: 30vh;
}

.bubbleWishes {
  left: 210vh;
  top: 46vh;
}

.bubbleWishes .bubbleLink {
  mask-image: url("images/index/bubble2_mask.png");
}

.bubblePuku {
  left: 270vh;
  top: 12vh;
}

.bubblePuku .bubbleLink {
  mask-image: url("images/index/bubble3_mask.png");
}

.bubblePuku .image {
  height: 40vh;
}

.bubbleAbout {
  left: 329vh;
  top: 48vh;
}

.bubbleAbout .bubbleLink {
  mask-image: url("images/index/bubble4_mask.png");
}

.bubbleAbout .image {
  height: 42vh;
}

.buttonBubble {
  top: 18vh;
  left: 360vh;
}

.buttonBubble .image {
  height: 13vh;
}

.buttonBubble .text {
  display: inline-block;
  margin-top: 1vh;
  margin-left: 1.7vh;
  padding: 0.7vh 1.2vh;
  border-radius: 999px;
  font-size: 1.7vh;
  background: rgba(255, 252, 251, 0.66);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.buttonBubble:hover .text,
.buttonBubble a:focus-visible .text {
  opacity: 1;
}

.loginOverlay,
.modalOverlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4vh 3vh;
  background: rgba(245, 240, 238, 0.48);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 6;
}

.modalOverlay {
  z-index: 7;
}

.loginOverlay.isVisible,
.modalOverlay.isVisible {
  opacity: 1;
  pointer-events: auto;
}

.loginCard,
.modalCard {
  width: min(92vw, 58vh);
  padding: 4vh 4vh 3.8vh;
  border: 1px solid rgba(196, 134, 142, 0.24);
  border-radius: 4vh;
  background:
    linear-gradient(180deg, rgba(255, 252, 251, 0.92), rgba(250, 244, 241, 0.86)),
    url("images/index/paper.webp");
  background-size: auto, 52%;
  box-shadow: 0 3vh 10vh -5vh rgba(63, 45, 52, 0.3);
  white-space: normal;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.loginOverlay.isVisible .loginCard,
.modalOverlay.isVisible .modalCard {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.loginTitle,
.modalTitle {
  margin: 1.6vh 0 0;
  font-size: 4vh;
  line-height: 1.2;
  color: var(--deep);
}

.loginRoles {
  margin-top: 3vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6vh;
}

.roleButton {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4vh;
  padding: 2.2vh 2vh;
  border: 1px solid rgba(196, 134, 142, 0.2);
  border-radius: 2.6vh;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.roleButton:hover,
.roleButton:focus-visible {
  transform: translateY(-0.25vh);
  border-color: rgba(196, 134, 142, 0.35);
}

.roleButton.isSelected {
  transform: translateY(-0.4vh);
  border-color: rgba(196, 134, 142, 0.48);
  box-shadow: 0 2.4vh 4vh -3vh rgba(196, 134, 142, 0.45);
}

.roleLabel {
  font-size: 4.6vh;
  line-height: 1;
  color: var(--deep);
}

.roleName {
  font-size: 2vh;
  color: var(--muted);
}

.loginForm {
  margin-top: 2vh;
}

.passwordInput,
.loginSubmit {
  width: 100%;
  border-radius: 2vh;
}

.passwordInput {
  border: 1px solid rgba(196, 134, 142, 0.24);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.9vh 2vh;
  color: var(--deep);
  font-size: 2vh;
  outline: none;
}

.passwordInput:focus {
  border-color: rgba(196, 134, 142, 0.55);
  box-shadow: 0 0 0 0.5vh rgba(196, 134, 142, 0.12);
}

.loginSubmit {
  margin-top: 1.5vh;
  border: 0;
  padding: 1.9vh 2vh;
  background: var(--deep);
  color: #fff8f5;
  font-size: 1.9vh;
  box-shadow: 0 18px 32px -24px rgba(69, 55, 61, 0.72);
}

.loginError {
  margin: 1.6vh 0 0;
  font-size: 1.8vh;
  color: #b35d69;
}

/* ── Puku mascot ── */

@keyframes puku-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes puku-float-fast {
  0%, 100% { transform: translateY(-10px); }
  50% { transform: translateY(-18px); }
}

@keyframes puku-float-low {
  0%, 100% { transform: translateY(5px); }
  50% { transform: translateY(2px); }
}

@keyframes puku-blink {
  0%, 95%, 100% { transform: scaleY(1); }
  97.5% { transform: scaleY(0.1); }
}

@keyframes puku-shadow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(0.85); opacity: 0.2; }
}

.loginMascot {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.5vh;
}

.pukuSvg {
  width: min(28vw, 18vh);
  overflow: visible;
}

.puku-shadow {
  fill: rgba(232, 168, 184, 0.3);
  transform-origin: center;
  animation: puku-shadow-pulse 3s ease-in-out infinite;
}

.puku-part {
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform-origin: center;
}

/* idle */
.loginMascot[data-state="idle"] .puku-wrapper { animation: puku-float 3s ease-in-out infinite; }
.loginMascot[data-state="idle"] .puku-body { opacity: 0.9; }
.loginMascot[data-state="idle"] .puku-eye-idle { opacity: 1; animation: puku-blink 4s infinite; }
.loginMascot[data-state="idle"] .puku-mouth-idle { opacity: 1; }
.loginMascot[data-state="idle"] .puku-blush { opacity: 0.6; }

/* happy */
.loginMascot[data-state="happy"] .puku-wrapper { animation: puku-float-fast 2s ease-in-out infinite; }
.loginMascot[data-state="happy"] .puku-body { opacity: 0.95; }
.loginMascot[data-state="happy"] .puku-eye-happy { opacity: 1; }
.loginMascot[data-state="happy"] .puku-mouth-happy { opacity: 1; }
.loginMascot[data-state="happy"] .puku-blush { opacity: 0.8; transform: translateY(-2px); }

/* shy */
.loginMascot[data-state="shy"] .puku-wrapper { animation: puku-float-low 4s ease-in-out infinite; }
.loginMascot[data-state="shy"] .puku-body { opacity: 0.7; }
.loginMascot[data-state="shy"] .puku-eye-shy { opacity: 1; }
.loginMascot[data-state="shy"] .puku-mouth-shy { opacity: 1; }
.loginMascot[data-state="shy"] .puku-blush { opacity: 0.95; transform: scale(1.2); }
.loginMascot[data-state="shy"] .puku-hand-l { opacity: 0.9; transform: translate(12px, -8px) rotate(15deg); }
.loginMascot[data-state="shy"] .puku-hand-r { opacity: 0.9; transform: translate(-12px, -8px) rotate(-15deg); }

/* celebrate */
.loginMascot[data-state="celebrate"] .puku-wrapper { animation: puku-float-fast 1.5s ease-in-out infinite; }
.loginMascot[data-state="celebrate"] .puku-body { opacity: 0.9; }
.loginMascot[data-state="celebrate"] .puku-eye-celebrate { opacity: 1; }
.loginMascot[data-state="celebrate"] .puku-mouth-celebrate { opacity: 1; }
.loginMascot[data-state="celebrate"] .puku-blush { opacity: 0.8; }
.loginMascot[data-state="celebrate"] .puku-sparkles { opacity: 1; transform: scale(1); }
.puku-sparkles { transform: scale(0.5); }

.modalBody {
  margin: 1.8vh 0 0;
  line-height: 1.55;
  white-space: normal;
}

.modalButton {
  margin-top: 2.4vh;
}

.curtain {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg);
  opacity: 1;
  transition: opacity 0.8s ease-in;
  z-index: 8;
}

.loading {
  height: 10vh;
  animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px), (max-height: 760px) {
  .hero {
    left: 92vh;
    width: 76vh;
  }

  .title {
    font-size: 8.6vh;
  }

  .title span {
    font-size: 6.6vh;
  }

  .description,
  .heroNote,
  .cardValue,
  .cardMeta,
  .statusValue,
  .quietButton,
  .loginTitle,
  .loginError,
  .modalTitle,
  .modalBody,
  .buttonBubble .text {
    font-size: 2vh;
  }

  .heroCards {
    gap: 1.4vh;
  }

  .infoCard {
    min-width: 19vh;
    padding: 2.2vh;
  }

  .scrollHint {
    bottom: -12vh;
  }
}

@media (max-width: 920px) {
  .authStatus {
    top: 2vh;
    right: 2vh;
    gap: 1.6vh;
    padding: 1.4vh 1.8vh;
  }

  .scrollHint {
    bottom: -13vh;
  }
}
