body {
  background-color: #fdf6e3;
  font-family: "Comic Sans MS", cursive, "Georgia", serif;
  color: #222;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(135deg, #fffbe6 25%, #fdf6e3 25%, #fdf6e3 50%, #fffbe6 50%, #fffbe6 75%, #fdf6e3 75%, #fdf6e3 100%);
  background-size: 28px 28px;
}

header {
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(45deg, #9933ff, #cc66ff);
  color: #ffffcc;
  border-bottom: 4px dashed #ff69b4;
  box-shadow: 0 0 20px rgba(153, 51, 255, 0.6);
  position: relative;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #ffe680;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  text-shadow: 1px 1px #4b007a;
}

nav a:hover {
  text-decoration: underline wavy #ff69b4;
  color: #ff69b4;
  text-shadow: 1px 1px 4px #ffb3d9;
}

main {
  width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fffef7;
  border: 3px double #cc99ff;
  box-shadow: 0 0 16px rgba(255, 105, 180, 0.2);
  border-radius: 20px;
}

footer {
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
  padding: 10px;
  color: #666;
  border-top: 2px dotted #ff69b4;
  font-style: italic;
}

h1, h2 {
  font-family: "Courier New", monospace;
  color: #cc0066;
  text-shadow: 2px 2px #ffe6f0;
}

h1 {
  animation: wiggle 1.8s ease-in-out infinite;
  display: inline-block;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(2deg); }
  70% { transform: rotate(-2deg); }
}

#cookie-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  font-size: 32px;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0.85;
}

#music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

#music-toggle:hover {
  transform: scale(1.2) rotate(10deg);
}

.yin-bg {
  position: fixed;
  top: var(--y);
  left: var(--x);
  width: 64px;
  opacity: 0.25;
  animation: spin 20s linear infinite;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 3px #aaa);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

