:root {
  /* Soft but richer light mode */
  --bg: #FCEEF4;
  --pink-1: #F8D7E4;
  --pink-2: #F4A6C1;
  --pink-3: #EF7A9D;
  --pink-4: #E05A82;
  --deep: #B83B6A;
  --text: #3F1F2E;
  --text-soft: #6B3F50;
  --cream: #FFF6F9;
  --card: #FFF9FB;
}

html[data-theme="dark"] {
  --bg: #2A1F24;
  --pink-1: #3D2A32;
  --pink-2: #5C3A45;
  --pink-3: #8B5A6B;
  --pink-4: #C97B8E;
  --deep: #FFB7C5;
  --text: #FFE4EC;
  --text-soft: #E8C4CE;
  --cream: #3A2A30;
  --card: #3a2a30;
}

/* ========== BASE + WALLPAPER ========== */
body {
  margin: 0;
  font-family: 'Lexend', 'Atkinson Hyperlegible', system-ui, sans-serif;
  background-color: var(--bg);
  background-image: url("https://i.postimg.cc/1XVP0p4y/wallpaper.jpg");
  background-repeat: repeat;
  background-size: 480px;
  background-position: top center;
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Soft overlay so it works in dark mode */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] body::before {
  opacity: 0.68;
}

/* Soft floating decorations */
body::after {
  content: "♡ ✿ ♡";
  position: fixed;
  bottom: 18px;
  right: 18px;
  font-size: 1.4rem;
  color: var(--pink-3);
  opacity: 0.5;
  letter-spacing: 8px;
  pointer-events: none;
  z-index: 5;
}

/* ========== CUTE PINK SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--pink-1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink-3), var(--pink-4));
  border-radius: 10px;
  border: 2px solid var(--pink-1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pink-4), var(--deep));
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--pink-3) var(--pink-1);
}

/* ========== LAYOUT ========== */
.site {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

@media (max-width: 850px) {
  .site {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 2px solid var(--pink-3);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(176, 59, 106, 0.08);
  position: relative;
}

.card::before {
  content: "✿";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.15rem;
  color: var(--pink-3);
  opacity: 0.65;
}

.card h2,
.card h3 {
  font-family: 'Yomogi', cursive;
  color: var(--deep);
  margin: 0 0 8px 0;
  font-size: 1.25rem;
}

/* ========== NAVIGATION with GIF ========== */
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin: 3px 0;
  background: var(--pink-1);
  border-radius: 11px;
  text-decoration: none;
  color: var(--text);
  transition: 0.2s ease;
}

.nav a::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("https://i.postimg.cc/SNJFML33/3f5bcb6cb126f029823af8a5fce4e54c.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.nav a:hover {
  background: var(--pink-3);
  color: white;
  transform: translateY(-1px);
}

.header {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
  border: 2px dashed var(--pink-4);
  border-radius: 20px;
  margin-bottom: 8px;
  position: relative;
}

.header::before {
  content: "♡  ✿  ♡";
  display: block;
  font-size: 1.1rem;
  color: var(--deep);
  opacity: 0.7;
  margin-bottom: 6px;
  letter-spacing: 6px;
}

.header h1 {
  font-family: 'Yomogi', cursive;
  font-size: 2.2rem;
  color: var(--deep);
  margin: 0;
}

.header p {
  margin: 6px 0 0 0;
  color: var(--text-soft);
}

.main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

section h2 {
  font-family: 'Yomogi', cursive;
  color: var(--deep);
  font-size: 1.4rem;
  margin: 0 0 8px 0;
  border-bottom: 1px dotted var(--pink-3);
  padding-bottom: 3px;
}

p, li {
  margin: 0 0 8px 0;
}

ul {
  padding-left: 1.2em;
  margin: 0;
}

.quote {
  background: var(--pink-1);
  border-left: 4px solid var(--pink-4);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin: 10px 0;
  font-style: italic;
}

.toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 5px 11px;
  background: var(--pink-2);
  border: 1px solid var(--pink-3);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.toggle-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

lite-youtube {
  max-width: 100%;
  border-radius: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gallery-item {
  background: var(--pink-1);
  border: 2px solid var(--pink-3);
  border-radius: 10px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.ask-form label {
  display: block;
  margin: 10px 0 3px;
  font-weight: 500;
}

.ask-form input,
.ask-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 2px solid var(--pink-3);
  border-radius: 10px;
  background: var(--cream);
  font-family: inherit;
  font-size: 1rem;
}

.ask-form textarea {
  min-height: 100px;
}

.ask-form button {
  margin-top: 10px;
  padding: 9px 16px;
  background: var(--pink-3);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.ask-form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  margin-top: 8px;
  background: var(--pink-1);
  border-radius: 14px;
  border: 2px solid var(--pink-3);
  font-size: 0.95rem;
  position: relative;
}

footer::before {
  content: "✿ ♡ ✿";
  display: block;
  margin-bottom: 4px;
  color: var(--pink-3);
  letter-spacing: 6px;
  opacity: 0.7;
}

/* ========== PETALS ========== */
.petal {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 10px;
  height: 10px;
  border-radius: 50% 0 50% 50%;
  background: #FFB7C5;
  opacity: 0.6;
  animation: fall 16s linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.reduced-motion .petal {
  display: none !important;
}
.pet-card {
  /* keeps the card looking normal */
}

.pet-container {
  display: flex;
  justify-content: flex-start;   /* left aligned */
  margin-top: 0.75rem;
}

.pet-container iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 314 / 321;
}