.pageShell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  z-index: 1;
}

/* background */

.donatedBg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.30), transparent 24%),
    linear-gradient(180deg, #fff8fc 0%, #ffeef8 40%, #ffddea 100%);
}

.donatedGlow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  animation: glowFloat 14s ease-in-out infinite;
}

.glow1 {
  width: 320px;
  height: 320px;
  background: rgba(255, 150, 205, 0.24);
  left: 8%;
  top: 10%;
}

.glow2 {
  width: 360px;
  height: 360px;
  background: rgba(207, 180, 255, 0.18);
  right: 10%;
  top: 14%;
  animation-delay: 2s;
}

.glow3 {
  width: 380px;
  height: 380px;
  background: rgba(255, 205, 230, 0.34);
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

@keyframes glowFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -14px) scale(1.06);
  }
}

.donatedGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.08;
}

.donatedSpark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
  animation: sparkFloat 8s ease-in-out infinite;
}

.spark1 {
  left: 10%;
  top: 24%;
  font-size: 34px;
  color: #ff9ccc;
}

.spark2 {
  right: 14%;
  top: 18%;
  font-size: 28px;
  color: #ffb8dc;
  animation-delay: 1.8s;
}

.spark3 {
  right: 34%;
  top: 35%;
  font-size: 22px;
  color: #ffc8e6;
  animation-delay: 0.8s;
}

.spark4 {
  left: 18%;
  bottom: 18%;
  font-size: 18px;
  color: #e3a1ff;
  animation-delay: 1.4s;
}

.spark5 {
  right: 20%;
  bottom: 26%;
  font-size: 24px;
  color: #ff91c0;
  animation-delay: 2.2s;
}

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

/* local nav */

.topNav {
  max-width: 1320px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow:
    0 16px 36px rgba(255, 154, 206, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navLogoWrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.48);
  flex-shrink: 0;
  text-decoration: none;
}

.navLogo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.navLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.navButton {
  flex: 1 1 120px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #9a4f7d;
  font-weight: 700;
  background: rgba(255,255,255,0.26);
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 999px;
  padding: 12px 18px;
  transition: 0.24s ease;
}

.navButton:hover,
.navButton.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 140, 195, 0.82), rgba(211, 176, 255, 0.76));
  box-shadow:
    0 0 20px rgba(255, 166, 210, 0.22),
    inset 0 0 10px rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* header */

.donatedHeader {
  max-width: 1100px;
  margin: 0 auto 18px;
  text-align: center;
  padding: 14px 10px 4px;
}

.donatedTiny {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.60);
  color: #c15d94;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: lowercase;
}

.donatedTitle {
  margin: 14px 0 8px;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.95;
  background: linear-gradient(180deg, #ff86bf 0%, #ff4ca5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(255, 120, 180, 0.24));
}

.donatedSubtitle {
  margin: 0 auto;
  max-width: 760px;
  color: #b85789;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}

/* shrine scene */

.donatedScene {
  max-width: 1320px;
  margin: 0 auto;
}

.supportShrine {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
  border-radius: 38px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.11));
  border: 1px solid rgba(255,255,255,0.46);
  box-shadow:
    0 20px 48px rgba(255, 154, 206, 0.10),
    inset 0 0 0 1px rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.leftColumn,
.rightColumn,
.centerColumn {
  display: grid;
  gap: 18px;
}

/* shared cards */

.noteCard,
.infoCard,
.mainSupportCard,
.leaderboardCard {
  box-shadow:
    0 18px 34px rgba(255, 154, 206, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.noteCard,
.infoCard {
  padding: 20px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff4fb 0%, #ffe7f5 100%);
  border: 1px solid rgba(255,255,255,0.76);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.noteCard:hover,
.infoCard:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 26px rgba(255,160,210,0.22),
    0 18px 34px rgba(255,154,206,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.tiltedLeft {
  transform: rotate(-2deg);
}

.cardTag {
  display: inline-block;
  margin-bottom: 10px;
  color: #c15e93;
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.4px;
}

.noteCard h3,
.infoCard h3,
.leaderboardCard h3 {
  margin: 0 0 10px;
  color: #b44f82;
  line-height: 1.08;
  font-size: 26px;
}

.noteCard p,
.infoCard p {
  margin: 0;
  color: #8d5374;
  line-height: 1.82;
}

.infoList {
  margin: 0;
  padding-left: 18px;
  color: #8d5374;
  line-height: 1.9;
}

/* main support card */

.mainSupportCard {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.22));
  border: 1px solid rgba(255,255,255,0.64);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mainSupportCard:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 30px rgba(255, 160, 210, 0.22),
    0 20px 38px rgba(255, 154, 206, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.supportHalo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 130, 195, 0.18), transparent 56%);
  pointer-events: none;
  animation: haloPulse 4.8s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.68;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.mainSupportInner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.heroMini,
.softPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.58);
  color: #a86087;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.mainSupportInner h2 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.96;
  color: #b44f82;
}

.mainSupportInner p {
  margin: 0 auto;
  max-width: 720px;
  color: #8d5374;
  line-height: 1.82;
  font-size: 18px;
}

.donationBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 16px 24px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: white;
  background: linear-gradient(135deg, #ff7ebb, #ff5da9);
  box-shadow:
    0 0 26px rgba(255, 120, 190, 0.22),
    0 14px 28px rgba(255, 154, 206, 0.16);
  transition: 0.22s ease;
}

.donationBtn:hover {
  transform: translateY(-3px) scale(1.04);
}

.supportPills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.supportPills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.58);
  color: #a86087;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* leaderboards */

.leaderboards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.leaderboardCard {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.20));
  border: 1px solid rgba(255,255,255,0.60);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leaderboardCard::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at center, rgba(255, 160, 210, 0.16), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  transform: scale(0.9);
}

.leaderboardCard::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -30%;
  width: 60%;
  height: 260%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.10) 35%,
    rgba(255,210,235,0.28) 50%,
    rgba(255,255,255,0.10) 65%,
    transparent 100%
  );
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}

.leaderboardCard:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 34px rgba(255, 160, 210, 0.24),
    0 22px 40px rgba(255, 154, 206, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.leaderboardCard:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

.leaderboardCard:hover::after {
  opacity: 1;
  animation: shimmerSweep 1s ease forwards;
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-40%) rotate(18deg);
  }
  100% {
    transform: translateX(220%) rotate(18deg);
  }
}

.donationBoard:hover {
  box-shadow:
    0 0 40px rgba(255, 120, 190, 0.30),
    0 22px 40px rgba(255, 154, 206, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.givenBoard:hover {
  box-shadow:
    0 0 34px rgba(211, 176, 255, 0.24),
    0 22px 40px rgba(255, 154, 206, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.leaderboardTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.leaderboardList {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.leaderboardRow {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.52);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.leaderboardRow:hover {
  transform: translateX(4px);
  box-shadow: 0 0 18px rgba(255, 170, 215, 0.18);
  background: rgba(255,255,255,0.56);
}

.rankBadge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff0f8, #ffd7eb);
  color: #b44f82;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
  position: relative;
}

.rank1 .rankBadge {
  background: linear-gradient(135deg, #ffd76c, #fff0b0);
  color: #8a5f00;
}

.rank2 .rankBadge {
  background: linear-gradient(135deg, #dfe6f0, #f7fbff);
  color: #617089;
}

.rank3 .rankBadge {
  background: linear-gradient(135deg, #f0c7b0, #ffe7d7);
  color: #8c5a3b;
}

.rank1 .rankBadge::after,
.rank2 .rankBadge::after,
.rank3 .rankBadge::after {
  position: absolute;
  font-size: 12px;
  right: -2px;
  top: -4px;
}

.rank1 .rankBadge::after {
  content: "👑";
}

.rank2 .rankBadge::after {
  content: "✦";
}

.rank3 .rankBadge::after {
  content: "♡";
}

.leaderboardPerson {
  display: grid;
  gap: 2px;
}

.leaderboardPerson strong {
  color: #b44f82;
  font-size: 16px;
}

.leaderboardPerson span {
  color: #9a6481;
  font-size: 13px;
}

.leaderboardAmount {
  color: #b44f82;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

/* EMOTIONAL SUPPORT SECTION */

.emotionalSupportSection {
  margin-top: 20px;
}

.emotionalSupportCard {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.20));
  border: 1px solid rgba(255,255,255,0.60);
  box-shadow:
    0 18px 34px rgba(255, 154, 206, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.emotionalSupportTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.emotionalSupportCard h3 {
  margin: 0 0 12px;
  color: #b44f82;
  font-size: 30px;
  line-height: 1.08;
}

.emotionalSupportText {
  margin: 0 0 18px;
  color: #8d5374;
  line-height: 1.9;
}

.supportNameScroller {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.14);
}

.supportNameScroller::before,
.supportNameScroller::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.supportNameScroller::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 240, 248, 0.95), transparent);
}

.supportNameScroller::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 234, 244, 0.95), transparent);
}

.supportNameTrack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  animation: supportNamesScroll 10s linear infinite;
}

.supportNameRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.supportNameRow span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.58);
  color: #a34f7f;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@keyframes supportNamesScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* footer */

.siteFooter {
  max-width: 1320px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #b05c89;
  font-size: 15px;
}

.footerLinks {
  display: flex;
  gap: 14px;
}

.footerLinks a {
  color: #c06c99;
  text-decoration: none;
}

.footerLinks a:hover {
  text-decoration: underline;
}

/* responsive */

@media (max-width: 1280px) {
  .supportShrine {
    grid-template-columns: 1fr;
  }

  .tiltedLeft {
    transform: none;
  }
}

@media (max-width: 980px) {
  .leaderboards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pageShell {
    padding: 14px;
  }

  .navButton {
    flex: 1 1 calc(50% - 8px);
  }

  .donatedTitle {
    font-size: clamp(44px, 12vw, 72px);
  }

  .donatedSubtitle {
    font-size: 16px;
  }

  .supportShrine {
    padding: 18px;
    border-radius: 28px;
  }

  .noteCard h3,
  .infoCard h3,
  .leaderboardCard h3,
  .emotionalSupportCard h3 {
    font-size: 24px;
  }

  .mainSupportInner h2 {
    font-size: 28px;
  }

  .mainSupportInner p {
    font-size: 16px;
  }

  .leaderboardRow {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .leaderboardAmount {
    grid-column: 2;
    justify-self: end;
  }

  .supportNameScroller {
    height: 170px;
  }

  .supportNameRow {
    grid-template-columns: 1fr;
  }

  .siteFooter {
    flex-direction: column;
  }
}
