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

:root {
    --pink: #FF1493; --blue: #00BFFF; --green: #32CD32;
    --orange: #FF6B00; --purple: #9B59B6; --teal: #20B2AA;
    --yellow: #FFD700; --red: #FF3333;
    --dark: #3D2066;
    --radius: 28px;
    /* Light pink pastel palette */
    --bg-hero: #FFF0F5;
    --bg-section1: #FFF5F9;
    --bg-section2: #FFEEF5;
    --bg-section3: #FFF5F9;
    --bg-section4: #FFEEF5;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-solid: #FFFFFF;
    --text-primary: #3D2066;
    --text-secondary: #6B4D8A;
    --text-dark: #2A1545;
    --pink-light: #FFE4EC;
    --pink-lighter: #FFF5F9;
    --pink-medium: #FFB6C1;
    --nav-bg: rgba(255, 240, 245, 0.92);
    --shadow-soft: 0 4px 20px rgba(255, 105, 180, 0.1);
    --shadow-card: 0 8px 32px rgba(255, 105, 180, 0.12);
    --shadow-card-hover: 0 16px 48px rgba(255, 105, 180, 0.18);
    --border-soft: 2px solid rgba(255, 182, 193, 0.4);
    --bow-pattern:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='68' viewBox='0 0 40 34' fill='none'%3E%3Cpath d='M20 17C10 5 0 8 2 14c2 6 12 4 18 3z' fill='%23FF69B4' opacity='.4'/%3E%3Cpath d='M20 17c10-12 20-9 18-3-2 6-12 4-18 3z' fill='%23FF85C8' opacity='.4'/%3E%3Cpath d='M20 17c-4 3-6 11 0 13s6-10 0-13z' fill='%23FFB6DB' opacity='.4'/%3E%3Ccircle cx='20' cy='17' r='2.5' fill='%23FF69B4' opacity='.35'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='76' viewBox='0 0 40 34' fill='none'%3E%3Cpath d='M20 17C10 5 0 8 2 14c2 6 12 4 18 3z' fill='%2387CEEB' opacity='.35'/%3E%3Cpath d='M20 17c10-12 20-9 18-3-2 6-12 4-18 3z' fill='%23A8D8F0' opacity='.35'/%3E%3Cpath d='M20 17c-4 3-6 11 0 13s6-10 0-13z' fill='%23C8E8F8' opacity='.35'/%3E%3Ccircle cx='20' cy='17' r='2.5' fill='%2387CEEB' opacity='.3'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='60' viewBox='0 0 40 34' fill='none'%3E%3Cpath d='M20 17C10 5 0 8 2 14c2 6 12 4 18 3z' fill='%23FFD700' opacity='.35'/%3E%3Cpath d='M20 17c10-12 20-9 18-3-2 6-12 4-18 3z' fill='%23FFE44D' opacity='.35'/%3E%3Cpath d='M20 17c-4 3-6 11 0 13s6-10 0-13z' fill='%23FFF0A0' opacity='.35'/%3E%3Ccircle cx='20' cy='17' r='2.5' fill='%23FFD700' opacity='.3'/%3E%3C/svg%3E");
    --bow-size: 800px 800px, 1000px 1000px, 700px 700px;
    --bow-pos: 0 0, 400px 400px, 200px 200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-hero);
    background-image: var(--bow-pattern);
    background-size: var(--bow-size);
    background-position: var(--bow-pos);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== FLOATING BOWS BACKGROUND ===== */
.bows-background {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden;
}
.floating-bow {
    position: absolute; opacity: 0;
    animation: bow-fall linear infinite;
    filter: drop-shadow(0 2px 6px rgba(255, 105, 180, 0.4));
}
@keyframes bow-fall {
    0% { transform: translateY(-80px) rotate(0deg) scale(0.6); opacity: 0; }
    8% { opacity: 0.85; }
    50% { opacity: 0.9; }
    92% { opacity: 0.85; }
    100% { transform: translateY(calc(100vh + 80px)) rotate(720deg) scale(1.1); opacity: 0; }
}

/* ===== NAV ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg); backdrop-filter: blur(16px);
    border-bottom: 3px solid var(--pink-medium); padding: 12px 0;
    box-shadow: 0 2px 16px rgba(255, 105, 180, 0.08);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: 'Bangers', cursive; font-size: 1.8rem;
    color: var(--pink); text-decoration: none; letter-spacing: 2px;
    text-shadow: 1px 1px 0 rgba(255, 215, 0, 0.4);
    display: flex; align-items: center; gap: 6px;
}
.nav-bow { display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-weight: 700; font-size: 0.95rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--pink); }
.hamburger {
    display: none; background: none; border: none;
    font-size: 1.8rem; cursor: pointer; color: var(--pink);
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255, 240, 245, 0.98); padding: 16px 24px;
        border-bottom: 3px solid var(--pink-medium); gap: 16px;
    }
    .nav-links.open { display: flex; }
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden; padding-top: 80px;
    background-color: #FFF0F5;
    background-image:
        radial-gradient(ellipse at 15% 50%, rgba(255,182,193,0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(255,215,0,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(135,206,235,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 60%, rgba(255,182,193,0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 25% 20%, rgba(135,206,235,0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 30%, rgba(255,215,0,0.1) 0%, transparent 40%),
        var(--bow-pattern);
    background-size: auto, auto, auto, auto, auto, auto, var(--bow-size);
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, var(--bow-pos);
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.particle {
    position: absolute; border-radius: 50%;
    animation: particle-float linear infinite; opacity: 0.3;
}
@keyframes particle-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.35; }
    90% { opacity: 0.35; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content { position: relative; z-index: 2; padding: 40px 24px; }
.hero-title {
    font-family: 'Bangers', cursive; font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 6px; color: var(--text-dark);
    text-shadow: 3px 3px 0 var(--pink-medium), 6px 6px 0 rgba(255, 215, 0, 0.2);
    margin-bottom: 8px; line-height: 1; animation: title-pulse 3s ease-in-out infinite;
}
@keyframes title-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.03)} }
.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 900;
    color: var(--text-dark); margin-bottom: 8px;
}
.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary); margin-bottom: 36px;
}
.cta-button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    color: white; text-decoration: none;
    font-family: 'Bangers', cursive; font-size: 1.4rem; letter-spacing: 2px;
    border-radius: 50px; border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 0 #CC0077, 0 10px 30px rgba(255, 20, 147, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.cta-button:hover { transform: translateY(-4px); box-shadow: 0 10px 0 #CC0077, 0 14px 40px rgba(255,20,147,0.3); }
.cta-button:active { transform: translateY(2px); box-shadow: 0 2px 0 #CC0077, 0 4px 15px rgba(255,20,147,0.25); }
.cta-bow-left, .cta-bow-right { display: inline-flex; align-items: center; }

/* ===== SECTIONS ===== */
.section-title {
    font-family: 'Bangers', cursive; font-size: clamp(2.2rem, 5vw, 3.5rem);
    text-align: center; margin-bottom: 8px; letter-spacing: 2px;
    color: var(--text-dark);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    flex-wrap: wrap;
}
.title-bow-left, .title-bow-right { display: inline-flex; align-items: center; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; }
.rainbow-text {
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: rainbow-shift 4s linear infinite;
}
@keyframes rainbow-shift { 0%{background-position:0% center} 100%{background-position:200% center} }

/* ===== ABOUT ===== */
#about { padding: 100px 0; background-color: var(--bg-section1); background-image: var(--bow-pattern); background-size: var(--bow-size); background-position: var(--bow-pos); position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 40px; }
.about-card {
    background: var(--card-bg-solid); border-radius: var(--radius);
    padding: 36px 28px; text-align: center; border: 2px solid rgba(255, 182, 193, 0.3);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
}
.about-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-card-hover); }
.about-icon { font-size: 3.5rem; margin-bottom: 16px; }
.about-card h3 {
    font-family: 'Bangers', cursive; font-size: 1.6rem;
    color: var(--text-dark); letter-spacing: 1px; margin-bottom: 8px;
}
.about-card p { color: var(--text-secondary); line-height: 1.7; }
.card-bow-tl {
    position: absolute; top: 4px; left: 4px; pointer-events: none;
}

/* ===== CHARACTERS ===== */
#characters { padding: 100px 0; background-color: var(--bg-section2); background-image: var(--bow-pattern); background-size: var(--bow-size); background-position: var(--bow-pos); position: relative; z-index: 1; }
.characters-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px; margin-top: 40px;
}
.blob-card {
    background: var(--card-bg-solid); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; position: relative;
    border: 2px solid rgba(255, 182, 193, 0.3);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}
.blob-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}
.blob-card:hover .blob-svg-wrap svg {
    animation: blob-squish 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes blob-squish {
    0%{transform:rotate(0) scale(1)} 20%{transform:rotate(-8deg) scale(1.1,0.9)}
    40%{transform:rotate(6deg) scale(0.95,1.05)} 60%{transform:rotate(-3deg) scale(1.02,0.98)}
    100%{transform:rotate(0) scale(1)}
}
.blob-svg-wrap {
    padding: 24px; display: flex; justify-content: center;
    position: relative;
}
.blob-svg-wrap svg {
    width: 200px; height: auto;
    filter: drop-shadow(0 8px 16px rgba(61, 32, 102, 0.12));
}
/* Card corner bows */
.blob-card .card-bow-corner {
    position: absolute; z-index: 2; pointer-events: none;
}
.blob-card .card-bow-corner.tl { top: 6px; left: 6px; }
.blob-card .card-bow-corner.tr { top: 6px; right: 6px; transform: scaleX(-1); }

.blob-info { padding: 8px 28px 28px; }
.blob-info h3 {
    font-family: 'Bangers', cursive; font-size: 2rem;
    color: var(--text-dark);
    display: inline; margin-right: 10px; letter-spacing: 1px;
}
.blob-trait { font-weight: 800; font-size: 1.05rem; margin: 10px 0 6px; color: var(--text-secondary); }
.blob-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* Rarity Badges */
.rarity-badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; vertical-align: middle;
}
.rarity-badge.common { background: #E8F5E9; color: #2E7D32; }
.rarity-badge.rare { background: #E3F2FD; color: #1565C0; }
.rarity-badge.ultra-rare { background: #FFF3E0; color: #E65100; }
.rarity-badge.chase {
    background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--blue), var(--purple));
    background-size: 200% auto; animation: rainbow-shift 2s linear infinite;
    color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Special cards */
.blob-card.ultra-rare-card {
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.12), var(--shadow-card);
}
.blob-card.chase-card { border: 3px solid transparent; position: relative; }
.blob-card.chase-card::before {
    content: ''; position: absolute; inset: -3px; border-radius: 30px; z-index: -1;
    background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--blue), var(--purple));
    background-size: 300% auto; animation: rainbow-shift 3s linear infinite;
}
.chase-card .blob-svg-wrap svg { animation: chase-glow 2s ease-in-out infinite; }
@keyframes chase-glow {
    0%,100%{filter:drop-shadow(0 0 15px rgba(255,20,147,0.3))}
    33%{filter:drop-shadow(0 0 25px rgba(0,191,255,0.35))}
    66%{filter:drop-shadow(0 0 15px rgba(255,215,0,0.35))}
}

/* ===== RARITY ===== */
#rarity { padding: 100px 0; background-color: var(--bg-section3); background-image: var(--bow-pattern); background-size: var(--bow-size); background-position: var(--bow-pos); position: relative; z-index: 1; }
.rarity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.rarity-item {
    display: flex; align-items: flex-start; gap: 18px; padding: 28px;
    background: var(--card-bg-solid); border-radius: var(--radius);
    border: 2px solid rgba(255, 182, 193, 0.25);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}
.rarity-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.rarity-gem {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; flex-shrink: 0;
}
.common-gem { background: linear-gradient(135deg, var(--pink), var(--green)); }
.rare-gem { background: linear-gradient(135deg, var(--purple), var(--teal)); }
.ultra-gem { background: linear-gradient(135deg, var(--orange), var(--red)); }
.chase-gem {
    background: linear-gradient(135deg, var(--pink), var(--yellow), var(--green), var(--blue), var(--purple));
    background-size: 200% auto; animation: rainbow-shift 3s linear infinite;
}
.rarity-item h4 {
    font-family: 'Bangers', cursive; font-size: 1.4rem;
    color: var(--text-dark); letter-spacing: 1px; margin-bottom: 4px;
}
.rarity-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ===== COLLECT ===== */
#collect { padding: 100px 0; background-color: var(--bg-section4); background-image: var(--bow-pattern); background-size: var(--bow-size); background-position: var(--bow-pos); position: relative; z-index: 1; }
.collect-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 40px 0; }
.collect-blob {
    width: 110px; height: 110px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bangers', cursive; font-size: 1.1rem; letter-spacing: 1px;
    color: white; cursor: pointer; user-select: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(61, 32, 102, 0.12);
    transition: transform 0.2s, opacity 0.3s; position: relative;
}
.collect-blob:hover { transform: scale(1.15); }
.collect-blob.collected {
    box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 7px var(--pink), 0 0 20px rgba(255, 20, 147, 0.2);
    border-color: var(--pink);
}
.collect-blob.collected::after {
    content: '✓'; position: absolute; top: -8px; right: -8px;
    background: var(--pink); color: white; width: 28px; height: 28px; border-radius: 50%;
    font-size: 16px; font-family: sans-serif;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid white;
}
.collect-blob:not(.collected) { opacity: 0.3; filter: grayscale(60%); }
.collect-counter {
    text-align: center; font-family: 'Bangers', cursive;
    font-size: 2rem; color: var(--text-dark); letter-spacing: 2px;
}
#collectCount { color: var(--pink); font-size: 2.8rem; text-shadow: 2px 2px 0 rgba(255, 215, 0, 0.3); }

/* ===== FOOTER ===== */
footer {
    background-color: #FFF0F5;
    background-image: linear-gradient(180deg, #FFF0F5, #FFE4EC), var(--bow-pattern);
    background-size: auto, var(--bow-size);
    background-position: 0 0, var(--bow-pos);
    color: var(--text-primary); padding: 60px 0;
    text-align: center; border-top: 3px solid var(--pink-medium);
}
.footer-bow {
    display: flex; justify-content: center; margin-bottom: 12px;
}
.footer-logo {
    font-family: 'Bangers', cursive; font-size: 2.2rem;
    color: var(--pink); letter-spacing: 3px; margin-bottom: 8px;
    text-shadow: 1px 1px 0 rgba(255, 215, 0, 0.3);
}
footer p { color: var(--text-secondary); }
.footer-small { margin-top: 20px; font-size: 0.85rem; opacity: 0.6; }

/* ===== ANIMATIONS ===== */
.blob-card, .about-card, .rarity-item, .collect-blob {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.blob-card.visible, .about-card.visible, .rarity-item.visible, .collect-blob.visible {
    opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .characters-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .collect-blob { width: 85px; height: 85px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .about-grid { grid-template-columns: 1fr; }
    .cta-button { padding: 14px 32px; font-size: 1.2rem; }
}
