/* =============================================
   Siki's Gacha World — Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;900&display=swap');

:root {
  --pink:    #FF8EC8;
  --purple:  #C084FC;
  --lavender:#E9D5FF;
  --blue:    #7DD3FC;
  --yellow:  #FDE68A;
  --green:   #86EFAC;
  --peach:   #FECACA;
  --white:   #FFFBFF;
  --dark:    #2D1B4E;
  --mid:     #6B21A8;

  --card-radius: 24px;
  --btn-radius:  50px;
  --shadow: 0 8px 32px rgba(160, 60, 200, 0.18);
  --shadow-sm: 0 2px 12px rgba(160, 60, 200, 0.12);
}

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

html, body {
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #FDF4FF 0%, #EDE9FE 50%, #FDF2F8 100%);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Baloo 2', cursive;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--lavender); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--btn-radius);
  font-family: 'Baloo 2', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-decoration: none;
  user-select: none;
  min-height: 52px;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.45);
}
.btn-secondary {
  background: white;
  color: var(--mid);
  border: 2.5px solid var(--lavender);
  box-shadow: var(--shadow-sm);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  min-height: 40px;
}

/* ─── Nav ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(192, 132, 252, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--mid), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mid);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--lavender);
  color: var(--dark);
}

/* ── Mute button ── */
.mute-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1;
  transition: background 0.15s;
}
.mute-btn:hover { background: var(--lavender); }

/* ─── Cards ─── */
.card {
  background: rgba(255,255,255,0.85);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1.5px solid rgba(192, 132, 252, 0.15);
}

/* ─── Stars / sparkle decorations ─── */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  font-size: 1.4rem;
  animation: float 4s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(15deg); }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ─── Tone-down motion for accessibility ─── */
@media (prefers-reduced-motion: reduce) {
  *, .sparkle { animation: none !important; transition: none !important; }
}
