@charset "UTF-8";

/* ═══════════════════════════════════════════
   10 CARD DECK — Collector's Showcase
   ═══════════════════════════════════════════ */

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

body {
  min-height: 100vh;
  background: #0a0a0f;
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
  position: relative;
}

/* Velvet dark background with subtle texture */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(40, 20, 60, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(20, 30, 60, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(30, 20, 40, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a12, #08080e, #0a0a12);
}

.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── Header ─── */
header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.title {
  font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #d4a54a, #f0d080, #d4a54a, #a07030);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.15em;
  animation: goldShift 4s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(212, 165, 74, 0.3));
}

.subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: rgba(200, 180, 150, 0.5);
  font-size: 1.1rem;
  margin-top: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
}

@keyframes goldShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Gallery Grid ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
  gap: 40px;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}

/* ─── Card Base ─── */
.card {
  --card-glow: #888;
  width: 250px;
  height: 350px;
  position: relative;
  cursor: pointer;
  justify-self: center;
}

.card-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.5),
    0 0 20px color-mix(in srgb, var(--card-glow) 20%, transparent);
  will-change: transform;
}

.card:hover .card-inner {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.6),
    0 0 40px color-mix(in srgb, var(--card-glow) 40%, transparent),
    0 0 80px color-mix(in srgb, var(--card-glow) 15%, transparent);
}

/* Card border (metallic frame) */
.card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05), rgba(255,255,255,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}

.card-art {
  width: 100%;
  height: 310px;
  overflow: hidden;
}

.card-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-footer {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #111;
}

.card-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}

/* ─── Holographic Shimmer ─── */
.shimmer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: 12px;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.card:hover .shimmer {
  opacity: 1;
}

/* Rainbow shimmer overlay on hover */
.card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 0, 0, 0.03) 15%,
    rgba(255, 165, 0, 0.03) 25%,
    rgba(255, 255, 0, 0.03) 35%,
    rgba(0, 255, 0, 0.03) 45%,
    rgba(0, 0, 255, 0.03) 55%,
    rgba(128, 0, 255, 0.03) 65%,
    transparent 80%
  );
  background-size: 200% 200%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  animation: holographicShift 3s linear infinite;
}

.card:hover .card-inner::after {
  opacity: 1;
}

@keyframes holographicShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

/* ─── Card 2 special: white card with rounded inner art ─── */
.card-2 .card-inner {
  background: white;
}

.card-2 .card-art {
  border-radius: 8px;
  margin: 0;
}

.card-2 .card-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.card-2 .card-number {
  font-family: 'Fredoka', sans-serif;
}

/* ═══════════════════════════════════════════
   ANIMATIONS — Bringing cards to life
   ═══════════════════════════════════════════ */

/* ─── Card 1: Stars twinkle ─── */
.stars-1 circle {
  animation: twinkle 3s ease-in-out infinite alternate;
}
.stars-1 circle:nth-child(odd) { animation-delay: -1.5s; }

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* ─── Card 3: Lightning flash ─── */
.lightning-3 {
  animation: lightningFlash 4s ease-in-out infinite;
}

@keyframes lightningFlash {
  0%, 30%, 35%, 60%, 100% { opacity: 0.2; }
  31%, 33% { opacity: 1; }
  61%, 63% { opacity: 0.9; }
}

.rain-3 {
  animation: rainFall 1.5s linear infinite;
}

@keyframes rainFall {
  0% { transform: translateY(-20px); }
  100% { transform: translateY(20px); }
}

.arcs-3 {
  animation: arcFlash 2s ease-in-out infinite alternate;
}

@keyframes arcFlash {
  0% { opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { opacity: 0.2; }
}

/* ─── Card 4: Fireflies float ─── */
.fireflies-4 circle:nth-child(1) { animation: fireflyDrift 5s ease-in-out infinite; }
.fireflies-4 circle:nth-child(2) { animation: fireflyDrift 6s ease-in-out infinite -1s; }
.fireflies-4 circle:nth-child(3) { animation: fireflyDrift 4.5s ease-in-out infinite -2s; }
.fireflies-4 circle:nth-child(4) { animation: fireflyDrift 5.5s ease-in-out infinite -3s; }
.fireflies-4 circle:nth-child(5) { animation: fireflyDrift 5s ease-in-out infinite -0.5s; }
.fireflies-4 circle:nth-child(6) { animation: fireflyDrift 6s ease-in-out infinite -1.5s; }
.fireflies-4 circle:nth-child(7) { animation: fireflyDrift 4s ease-in-out infinite -2.5s; }
.fireflies-4 circle:nth-child(8) { animation: fireflyDrift 5.5s ease-in-out infinite -3.5s; }
.fireflies-4 circle:nth-child(9) { animation: fireflyDrift 5s ease-in-out infinite -4s; }

@keyframes fireflyDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  25% { transform: translate(5px, -8px); opacity: 0.9; }
  50% { transform: translate(-3px, -4px); opacity: 0.5; }
  75% { transform: translate(4px, 3px); opacity: 0.8; }
}

/* ─── Card 5: Bubbles rise ─── */
.bubbles-5 {
  animation: bubbleRise 6s ease-in-out infinite;
}

@keyframes bubbleRise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bio-glow-5 circle {
  animation: bioGlow 3s ease-in-out infinite alternate;
}
.bio-glow-5 circle:nth-child(even) { animation-delay: -1.5s; }

@keyframes bioGlow {
  0% { opacity: 0.4; r: 2; }
  100% { opacity: 0.9; }
}

/* ─── Card 6: Sakura fall ─── */
.sakura-6 ellipse {
  animation: sakuraFall 8s ease-in-out infinite;
}
.sakura-6 ellipse:nth-child(1) { animation-delay: 0s; }
.sakura-6 ellipse:nth-child(2) { animation-delay: -1s; }
.sakura-6 ellipse:nth-child(3) { animation-delay: -2s; }
.sakura-6 ellipse:nth-child(4) { animation-delay: -3s; }
.sakura-6 ellipse:nth-child(5) { animation-delay: -4s; }
.sakura-6 ellipse:nth-child(6) { animation-delay: -5s; }
.sakura-6 ellipse:nth-child(7) { animation-delay: -6s; }
.sakura-6 ellipse:nth-child(8) { animation-delay: -7s; }
.sakura-6 ellipse:nth-child(9) { animation-delay: -0.5s; }

@keyframes sakuraFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
  50% { opacity: 0.5; }
  100% { transform: translate(10px, 30px) rotate(180deg); opacity: 0; }
}

.tails-6 {
  animation: foxfireWave 4s ease-in-out infinite alternate;
}

@keyframes foxfireWave {
  0% { filter: url(#g6-foxfire) brightness(1); }
  100% { filter: url(#g6-foxfire) brightness(1.3); }
}

/* ─── Card 7: Embers rise ─── */
.embers-7 circle {
  animation: emberRise 4s ease-out infinite;
}
.embers-7 circle:nth-child(1) { animation-delay: 0s; }
.embers-7 circle:nth-child(2) { animation-delay: -0.5s; }
.embers-7 circle:nth-child(3) { animation-delay: -1s; }
.embers-7 circle:nth-child(4) { animation-delay: -1.5s; }
.embers-7 circle:nth-child(5) { animation-delay: -2s; }
.embers-7 circle:nth-child(6) { animation-delay: -2.5s; }
.embers-7 circle:nth-child(7) { animation-delay: -3s; }
.embers-7 circle:nth-child(8) { animation-delay: -3.5s; }
.embers-7 circle:nth-child(9) { animation-delay: -0.8s; }
.embers-7 circle:nth-child(10) { animation-delay: -1.8s; }

@keyframes emberRise {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { opacity: 0.6; }
  100% { transform: translateY(-30px) scale(0.3); opacity: 0; }
}

/* ─── Card 8: Snow fall + Aurora wave ─── */
.snow-8 circle {
  animation: snowFall 7s linear infinite;
}
.snow-8 circle:nth-child(1) { animation-delay: 0s; }
.snow-8 circle:nth-child(2) { animation-delay: -1s; }
.snow-8 circle:nth-child(3) { animation-delay: -2s; }
.snow-8 circle:nth-child(4) { animation-delay: -3s; }
.snow-8 circle:nth-child(5) { animation-delay: -4s; }
.snow-8 circle:nth-child(6) { animation-delay: -5s; }
.snow-8 circle:nth-child(7) { animation-delay: -6s; }
.snow-8 circle:nth-child(8) { animation-delay: -0.5s; }
.snow-8 circle:nth-child(9) { animation-delay: -1.5s; }
.snow-8 circle:nth-child(10) { animation-delay: -2.5s; }

@keyframes snowFall {
  0% { transform: translateY(-10px) translateX(0); opacity: 0.6; }
  25% { transform: translateY(5px) translateX(3px); }
  50% { transform: translateY(20px) translateX(-2px); opacity: 0.4; }
  75% { transform: translateY(35px) translateX(4px); }
  100% { transform: translateY(50px) translateX(0); opacity: 0; }
}

.aurora-8 {
  animation: auroraWave 6s ease-in-out infinite alternate;
}

@keyframes auroraWave {
  0% { transform: translateX(-5px); opacity: 0.4; }
  100% { transform: translateX(5px); opacity: 0.7; }
}

.crystals-8 {
  animation: crystalFloat 5s ease-in-out infinite alternate;
}

@keyframes crystalFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* ─── Card 9: Butterflies + Petals ─── */
.butterflies-9 g:nth-child(1) { animation: butterflyFly 6s ease-in-out infinite; }
.butterflies-9 g:nth-child(2) { animation: butterflyFly 7s ease-in-out infinite -2s; }
.butterflies-9 g:nth-child(3) { animation: butterflyFly 5s ease-in-out infinite -4s; }

@keyframes butterflyFly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -10px) rotate(5deg); }
  50% { transform: translate(-5px, -5px) rotate(-3deg); }
  75% { transform: translate(3px, 5px) rotate(2deg); }
}

.petals-9 ellipse {
  animation: petalDrift 8s ease-in-out infinite;
}
.petals-9 ellipse:nth-child(1) { animation-delay: 0s; }
.petals-9 ellipse:nth-child(2) { animation-delay: -2s; }
.petals-9 ellipse:nth-child(3) { animation-delay: -4s; }
.petals-9 ellipse:nth-child(4) { animation-delay: -6s; }
.petals-9 ellipse:nth-child(5) { animation-delay: -1s; }

@keyframes petalDrift {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  100% { transform: translate(15px, 30px) rotate(90deg); opacity: 0; }
}

/* ─── Card 10: Star threads pulse + Dust drift ─── */
.threads-10 line {
  animation: threadPulse 3s ease-in-out infinite alternate;
}
.threads-10 line:nth-child(odd) { animation-delay: -1.5s; }

@keyframes threadPulse {
  0% { opacity: 0.3; stroke-width: 0.5; }
  100% { opacity: 0.8; stroke-width: 1.2; }
}

.dust-10 circle {
  animation: dustDrift 8s ease-in-out infinite;
}
.dust-10 circle:nth-child(1) { animation-delay: 0s; }
.dust-10 circle:nth-child(2) { animation-delay: -1.5s; }
.dust-10 circle:nth-child(3) { animation-delay: -3s; }
.dust-10 circle:nth-child(4) { animation-delay: -4.5s; }
.dust-10 circle:nth-child(5) { animation-delay: -6s; }
.dust-10 circle:nth-child(6) { animation-delay: -2s; }
.dust-10 circle:nth-child(7) { animation-delay: -5s; }

@keyframes dustDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.2; }
  33% { transform: translate(5px, -8px); opacity: 0.4; }
  66% { transform: translate(-4px, 3px); opacity: 0.15; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 250px));
    gap: 30px;
    padding: 20px;
  }

  header {
    padding: 40px 20px 20px;
  }
}

@media (min-width: 1400px) {
  .gallery {
    grid-template-columns: repeat(5, 250px);
  }
}
