/* ========================= */
/* RESET / BASE */
/* ========================= */

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

:root {
  --pink-1: #fff8fc;
  --pink-2: #ffeef8;
  --pink-3: #ffddea;
  --pink-4: #ffb8dc;
  --pink-5: #ff86bf;
  --pink-6: #ff4ca5;
  --lav-1: #f2ecff;
  --lav-2: #d3b0ff;
  --text-main: #8f5273;
  --text-strong: #b44f82;
  --text-soft: #b85789;
  --white-glass: rgba(255, 255, 255, 0.34);
  --white-border: rgba(255, 255, 255, 0.58);
  --shadow-main: 0 16px 36px rgba(255, 154, 206, 0.12);
  --shadow-soft: 0 12px 28px rgba(255, 154, 206, 0.10);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", "Verdana", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--pink-1) 0%, var(--pink-2) 42%, var(--pink-3) 100%);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body.page-intro-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

iframe,
video {
  max-width: 100%;
  border: 0;
}

/* ========================= */
/* GLOBAL PAGE SHELL */
/* ========================= */

.pageShell {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero,
main,
section,
header,
footer,
nav {
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
}

/* ========================= */
/* SHARED DREAM BACKGROUND */
/* ========================= */

.siteDreamBg {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
}

.siteDreamBg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 18%),
    radial-gradient(circle at 80% 16%, rgba(255, 182, 224, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 154, 206, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.siteDreamNebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.36;
  animation: dreamNebulaFloat 16s ease-in-out infinite;
}

.siteDreamNebula.n1 {
  width: 340px;
  height: 340px;
  left: 5%;
  top: 8%;
  background: rgba(255, 150, 205, 0.22);
}

.siteDreamNebula.n2 {
  width: 420px;
  height: 420px;
  right: 8%;
  top: 12%;
  background: rgba(211, 176, 255, 0.16);
  animation-delay: 2s;
}

.siteDreamNebula.n3 {
  width: 460px;
  height: 460px;
  left: 50%;
  bottom: -8%;
  transform: translateX(-50%);
  background: rgba(255, 205, 230, 0.22);
  animation-delay: 4s;
}

.siteDreamNebula.n4 {
  width: 260px;
  height: 260px;
  right: 24%;
  bottom: 12%;
  background: rgba(255, 240, 248, 0.30);
  animation-delay: 1.3s;
}

@keyframes dreamNebulaFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -16px) scale(1.08);
  }
}

.siteDreamGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.07;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
}

.siteDreamStars,
.siteDreamClouds,
.siteDreamDust {
  position: absolute;
  inset: 0;
}

.siteDreamStar {
  position: absolute;
  color: rgba(255, 235, 246, 0.9);
  text-shadow:
    0 0 10px rgba(255, 182, 224, 0.55),
    0 0 22px rgba(255, 182, 224, 0.16);
  animation: dreamTwinkle 5.4s ease-in-out infinite;
  user-select: none;
}

.siteDreamStar.s1 { left: 8%; top: 18%; font-size: 14px; animation-delay: 0.2s; }
.siteDreamStar.s2 { left: 18%; top: 34%; font-size: 10px; animation-delay: 1.2s; }
.siteDreamStar.s3 { left: 28%; top: 12%; font-size: 16px; animation-delay: 2.1s; }
.siteDreamStar.s4 { left: 40%; top: 24%; font-size: 12px; animation-delay: 0.9s; }
.siteDreamStar.s5 { left: 53%; top: 11%; font-size: 14px; animation-delay: 2.7s; }
.siteDreamStar.s6 { left: 67%; top: 20%; font-size: 12px; animation-delay: 1.7s; }
.siteDreamStar.s7 { left: 78%; top: 13%; font-size: 16px; animation-delay: 3.0s; }
.siteDreamStar.s8 { left: 88%; top: 32%; font-size: 10px; animation-delay: 1.5s; }
.siteDreamStar.s9 { left: 12%; top: 72%; font-size: 16px; animation-delay: 2.8s; }
.siteDreamStar.s10 { left: 26%; top: 82%; font-size: 12px; animation-delay: 1.1s; }
.siteDreamStar.s11 { left: 44%; top: 76%; font-size: 14px; animation-delay: 3.2s; }
.siteDreamStar.s12 { left: 61%; top: 84%; font-size: 12px; animation-delay: 0.6s; }
.siteDreamStar.s13 { left: 74%; top: 74%; font-size: 16px; animation-delay: 2.4s; }
.siteDreamStar.s14 { left: 90%; top: 78%; font-size: 10px; animation-delay: 1.9s; }

@keyframes dreamTwinkle {
  0%, 100% {
    opacity: 0.25;
    transform: translateY(0) scale(0.82);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1.2);
  }
}

.siteDreamCloud {
  position: absolute;
  width: 220px;
  height: 86px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.72), transparent 34%),
    radial-gradient(circle at 52% 46%, rgba(255, 241, 248, 0.56), transparent 38%),
    radial-gradient(circle at 72% 54%, rgba(255, 220, 239, 0.40), transparent 34%);
  filter: blur(18px);
  opacity: 0.22;
  animation: dreamCloudDrift 24s linear infinite;
}

.siteDreamCloud.c1 { top: 10%; left: -12%; animation-duration: 34s; }
.siteDreamCloud.c2 { top: 28%; left: -20%; animation-duration: 42s; animation-delay: 4s; }
.siteDreamCloud.c3 { top: 62%; left: -18%; animation-duration: 38s; animation-delay: 8s; }
.siteDreamCloud.c4 { top: 78%; left: -24%; animation-duration: 46s; animation-delay: 2s; }

@keyframes dreamCloudDrift {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }
  50% {
    transform: translateX(58vw) translateY(-8px) scale(1.04);
  }
  100% {
    transform: translateX(120vw) translateY(0) scale(1);
  }
}

.siteDreamDustDot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 223, 242, 0.58);
  box-shadow: 0 0 12px rgba(255, 182, 224, 0.26);
  animation: dreamDustFloat 10s ease-in-out infinite;
}

.siteDreamDustDot.d1 { left: 14%; top: 42%; animation-delay: 0s; }
.siteDreamDustDot.d2 { left: 34%; top: 56%; animation-delay: 1.2s; }
.siteDreamDustDot.d3 { left: 58%; top: 46%; animation-delay: 2.1s; }
.siteDreamDustDot.d4 { left: 72%; top: 60%; animation-delay: 3.0s; }
.siteDreamDustDot.d5 { left: 86%; top: 48%; animation-delay: 1.8s; }

@keyframes dreamDustFloat {
  0%, 100% {
    opacity: 0.18;
    transform: translateY(0) scale(0.85);
  }
  50% {
    opacity: 0.58;
    transform: translateY(-10px) scale(1.2);
  }
}

/* page flavor classes */

body.page-home .siteDreamNebula.n1,
body.page-home .siteDreamNebula.n3 {
  opacity: 0.46;
}

body.page-music .siteDreamClouds {
  opacity: 1;
}

body.page-art .siteDreamStars {
  opacity: 1;
}

body.page-streams .siteDreamDust {
  opacity: 1;
}

body.page-donated .siteDreamNebula.n4 {
  opacity: 0.48;
}

/* ========================= */
/* PAGE INTRO OVERLAY */
/* ========================= */

.pageIntroOverlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    visibility 0.7s ease;
  visibility: visible;
}

.pageIntroOverlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.pageIntroOverlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 247, 252, 0.88), rgba(255, 230, 242, 0.78));
  backdrop-filter: blur(4px);
}

.pageIntroCore {
  position: relative;
  z-index: 2;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pageIntroGlow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.75;
  background: radial-gradient(circle, rgba(255, 126, 189, 0.24), transparent 66%);
  animation: introGlowPulse 1.2s ease-in-out infinite;
}

.pageIntroShape {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow:
    0 0 24px rgba(255, 146, 206, 0.18),
    inset 0 0 20px rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  animation: introFloat 0.9s ease-out forwards;
}

.pageIntroLabel {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
  color: #b85a8f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  white-space: nowrap;
}

.pageIntroOverlay.page-home .pageIntroShape {
  clip-path: path("M70 124 C58 114, 10 82, 6 44 C3 22, 16 8, 36 6 C51 5, 62 14, 70 24 C78 14, 89 5, 104 6 C124 8, 137 22, 134 44 C130 82, 82 114, 70 124 Z");
  width: 140px;
  height: 130px;
}

.pageIntroOverlay.page-about .pageIntroShape {
  border-radius: 28px;
}

.pageIntroOverlay.page-projects .pageIntroShape {
  border-radius: 22px;
  transform: rotate(-4deg);
}

.pageIntroOverlay.page-streams .pageIntroShape {
  border-radius: 22px;
  box-shadow:
    0 0 26px rgba(255, 92, 167, 0.22),
    inset 0 0 0 2px rgba(255,255,255,0.12);
}

.pageIntroOverlay.page-music .pageIntroShape {
  border-radius: 50%;
}

.pageIntroOverlay.page-art .pageIntroShape {
  border-radius: 20px;
  transform: rotate(4deg);
}

.pageIntroOverlay.page-fursona .pageIntroShape {
  border-radius: 50% 50% 42% 42%;
}

.pageIntroOverlay.page-chat .pageIntroShape {
  border-radius: 28px 28px 28px 8px;
}

.pageIntroOverlay.page-donated .pageIntroShape {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 71%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes introGlowPulse {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.92;
  }
}

@keyframes introFloat {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================= */
/* SHARED GLASS / PANELS */
/* ========================= */

.glassPanel {
  background: var(--white-glass);
  border: 1px solid var(--white-border);
  box-shadow:
    var(--shadow-main),
    inset 0 0 0 1px rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.softPanel {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.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;
}

/* ========================= */
/* GLOBAL BUTTONS */
/* ========================= */

.buttonReset,
.navButton,
.projectButton,
.deskBtn,
.musicBtn,
.musicCardBtn,
.quickBtn,
.donationBtn,
.heroButtons .btn {
  -webkit-tap-highlight-color: transparent;
}

.navButton,
.projectButton,
.deskBtn,
.musicBtn,
.musicCardBtn,
.quickBtn,
.donationBtn,
.heroButtons .btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.navButton:hover,
.projectButton:hover,
.deskBtn:hover,
.musicBtn:hover,
.musicCardBtn:hover,
.quickBtn:hover,
.donationBtn:hover,
.heroButtons .btn:hover {
  transform: translateY(-2px);
}

.navButton:active,
.projectButton:active,
.deskBtn:active,
.musicBtn:active,
.musicCardBtn:active,
.quickBtn:active,
.donationBtn:active,
.heroButtons .btn:active {
  transform: scale(0.98);
}

/* ========================= */
/* SHARED NAV TOUCH-UPS */
/* ========================= */

.topNav {
  position: relative;
}

.navLogoWrap {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.navLogoWrap:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 22px rgba(255, 154, 206, 0.14),
    inset 0 0 0 1px rgba(255,255,255,0.14);
}

.navLogo {
  pointer-events: none;
}

.navLinks {
  align-items: stretch;
}

.navButton {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================= */
/* SHARED FOOTER */
/* ========================= */

.siteFooter {
  padding: 6px 2px 18px;
}

.footerLinks {
  flex-wrap: wrap;
}

.footerLinks a {
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

.footerLinks a:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ========================= */
/* SHARED CARD BEHAVIOR */
/* ========================= */

.memoryCard,
.storyPanel,
.windowCard,
.miniWindowCard,
.appCard,
.drawerCard,
.noteCard,
.stickyCard,
.stickyWidget,
.bottomCard,
.projectCard,
.introPanel,
.infoPanel,
.supportCard,
.chatCard,
.notesCard,
.featuredCard,
.featuredArtCard,
.musicCard,
.gifCard,
.textCard,
.bigCard,
.bigThanksCard,
.chatEmbedCard,
.streamCard,
.infoCard,
.sideCard,
.mainMonitor,
.albumCard,
.supportShrineCard,
.mainShrineCard,
.widgetCard,
.thanksCard,
.thanksMiniCard,
.chatHeroCard,
.heroBannerCard,
.featuredTrackCard {
  border-radius: 24px;
}

/* ========================= */
/* GLOBAL ART CREDIT HOVER */
/* ========================= */

.artCreditWrap {
  position: relative;
  overflow: hidden;
}

.artCreditWrap .artCreditBadge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(35, 16, 28, 0.58);
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.artCreditWrap:hover .artCreditBadge,
.artCreditWrap:focus-within .artCreditBadge {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* ACCESSIBILITY / FOCUS */
/* ========================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 95, 165, 0.72);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ========================= */
/* SELECTION */
/* ========================= */

::selection {
  background: rgba(255, 122, 186, 0.26);
  color: #7a3d60;
}

/* ========================= */
/* SCROLLBAR */
/* ========================= */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.22);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 136, 191, 0.72), rgba(210, 176, 255, 0.72));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.36);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .topNav {
    gap: 10px;
  }

  .navLinks {
    gap: 8px;
  }

  .navButton {
    min-height: 42px;
  }

  .siteFooter {
    gap: 10px;
  }

  .pageIntroCore {
    width: min(220px, 66vw);
    height: min(220px, 66vw);
  }

  .pageIntroShape {
    width: 108px;
    height: 108px;
  }
  /* ========================= */
/* SITE-WIDE POLISH PASS */
/* ========================= */

.sitePolishBtn {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.sitePolishBtn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.04);
  box-shadow:
    0 0 20px rgba(255, 170, 215, 0.20),
    0 10px 22px rgba(255, 154, 206, 0.14);
}

.sitePolishBtn:active {
  transform: scale(0.98);
}

.hoverSoundReady {
  cursor: pointer;
}

/* art credit helper */
.artCreditWrap {
  position: relative;
  overflow: hidden;
}

.artCreditLabel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(30, 12, 24, 0.62);
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.artCreditWrap:hover .artCreditLabel,
.artCreditWrap:focus-within .artCreditLabel {
  opacity: 1;
  transform: translateY(0);
}
}
