/* archetype.moe - Y2K Fairycore / Moe Aesthetic */
/* Palette: #ffc8dd, #cdb4db, #a2d2ff, #fffffc, #bde0fe, #ff6b8a, #4a3a5c, #ffd700 */

:root {
    --sky-pink: #ffc8dd;
    --lavender: #cdb4db;
    --baby-blue: #a2d2ff;
    --cream: #fffffc;
    --soft-blue: #bde0fe;
    --heart-red: #ff6b8a;
    --text-dark: #4a3a5c;
    --sparkle: #ffd700;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--text-dark);
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ================================================
   STAR FIELD (Global twinkling stars)
   ================================================ */
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star-sprite {
    position: absolute;
    width: 0;
    height: 0;
    animation: twinkle var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
}

/* Four-pointed star shape via clip-path */
.star-sprite::before {
    content: '';
    position: absolute;
    width: var(--size);
    height: var(--size);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--star-color);
    clip-path: polygon(
        50% 0%, 60% 35%, 100% 50%, 60% 65%,
        50% 100%, 40% 65%, 0% 50%, 40% 35%
    );
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* ================================================
   STAR NAVIGATION (persistent side nav)
   ================================================ */
.star-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.nav-star {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lavender);
    text-decoration: none;
    transition: color 0.4s ease, transform 0.3s ease;
    animation: navPulse 3s ease-in-out infinite;
}

.nav-star svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 3px rgba(205, 180, 219, 0.5));
    transition: filter 0.4s ease, transform 0.3s ease;
}

.nav-star.active {
    color: var(--sparkle);
}

.nav-star.active svg {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
    transform: scale(1.3);
}

.nav-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.nav-star:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes navPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.nav-star.active {
    animation: none;
    opacity: 1;
}

/* ================================================
   PIXEL SPARKLE CONTAINER
   ================================================ */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.pixel-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    image-rendering: pixelated;
    animation: sparkleExpand 0.6s ease-out forwards;
}

@keyframes sparkleExpand {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0);
    }
}

/* ================================================
   SECTIONS (shared)
   ================================================ */
.fairy-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    gap: 2.5rem;
    z-index: 1;
}

/* ================================================
   HEART-STAR DIVIDER
   ================================================ */
.heart-star-divider {
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--lavender);
    opacity: 0.5;
    letter-spacing: 0.5em;
    z-index: 1;
    position: relative;
    background: var(--cream);
}

/* ================================================
   GATEWAY (Welcome / Hero)
   ================================================ */
.gateway {
    background: linear-gradient(180deg, #ffc8dd 0%, #cdb4db 40%, #a2d2ff 80%, #bde0fe 100%);
    overflow: hidden;
}

/* Shimmer Rings */
.shimmer-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffc8dd, #a2d2ff, #cdb4db, #ffd700, #bde0fe, #ffc8dd) border-box;
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: shimmerBorder 4s ease infinite, shimmerSpin 12s linear infinite;
    pointer-events: none;
}

.ring-1 {
    width: 320px;
    height: 320px;
    opacity: 0.4;
}

.ring-2 {
    width: 420px;
    height: 420px;
    opacity: 0.2;
    animation-delay: -2s;
    animation-duration: 5s, 18s;
}

.ring-3 {
    width: 520px;
    height: 520px;
    opacity: 0.1;
    animation-delay: -4s;
    animation-duration: 6s, 25s;
}

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

@keyframes shimmerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gateway Content */
.gateway-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    color: var(--cream);
    text-shadow:
        0 0 30px rgba(255, 200, 221, 0.6),
        0 2px 20px rgba(255, 107, 138, 0.3),
        0 0 60px rgba(162, 210, 255, 0.3);
    -webkit-text-stroke: 1px rgba(255, 255, 252, 0.3);
    letter-spacing: 0.02em;
}

/* Elastic bounce-in for title */
.bounce-in {
    animation: bounceIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.brand-sub {
    font-family: 'Pacifico', cursive;
    font-size: 1.2rem;
    color: var(--cream);
    opacity: 0;
    margin-top: 0.75rem;
    text-shadow: 0 1px 10px rgba(255, 107, 138, 0.3);
}

.fade-in-delayed {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 0.85;
        transform: translateY(0);
    }
}

/* Character Silhouette */
.character-silhouette {
    position: absolute;
    bottom: 8%;
    z-index: 1;
    opacity: 0;
    animation: silhouetteIn 1.2s ease 1.2s forwards;
    filter: drop-shadow(0 0 20px rgba(255, 200, 221, 0.5));
}

@keyframes silhouetteIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sparkle Trail */
.sparkle-trail {
    position: absolute;
    bottom: 12%;
    width: 250px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sparkle), transparent);
    opacity: 0.5;
    animation: trailPulse 3s ease-in-out infinite;
}

@keyframes trailPulse {
    0%, 100% { opacity: 0.2; transform: scaleX(0.7); }
    50% { opacity: 0.6; transform: scaleX(1.3); }
}

/* ================================================
   SECTION HEADING
   ================================================ */
.section-heading {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    color: var(--text-dark);
    text-align: center;
    text-shadow: 0 1px 8px rgba(205, 180, 219, 0.3);
}

/* ================================================
   ARCHETYPE GALLERY (Cards)
   ================================================ */
.classes {
    background: linear-gradient(180deg, var(--cream), rgba(205, 180, 219, 0.12), rgba(162, 210, 255, 0.08), var(--cream));
}

.card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1100px;
    perspective: 800px;
}

.archetype-card {
    border-radius: 30px;
    padding: 2.5rem 1.8rem 2rem;
    max-width: 240px;
    width: 100%;
    text-align: center;
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.archetype-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: cardFloat 4s ease-in-out infinite;
}

.archetype-card:nth-child(1).visible { animation-delay: 0s; }
.archetype-card:nth-child(2).visible { animation-delay: 0.5s; }
.archetype-card:nth-child(3).visible { animation-delay: 1s; }
.archetype-card:nth-child(4).visible { animation-delay: 1.5s; }

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

.archetype-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(205, 180, 219, 0.35);
    animation: none;
}

/* Iridescent Border */
.iridescent-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 32px;
    background: linear-gradient(135deg, #ffc8dd, #a2d2ff, #cdb4db, #bde0fe, #ffd700, #ffc8dd);
    background-size: 300% 300%;
    animation: shimmerBorder 4s ease infinite;
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.archetype-card:hover .iridescent-border {
    opacity: 0.9;
    animation-duration: 2s;
}

/* Card Color Variants */
.card-pink {
    background: linear-gradient(180deg, rgba(255, 200, 221, 0.65), rgba(255, 255, 252, 0.9));
}

.card-lavender {
    background: linear-gradient(180deg, rgba(205, 180, 219, 0.65), rgba(255, 255, 252, 0.9));
}

.card-blue {
    background: linear-gradient(180deg, rgba(162, 210, 255, 0.65), rgba(255, 255, 252, 0.9));
}

.card-gold {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.25), rgba(255, 255, 252, 0.9));
}

.card-icon {
    margin-bottom: 1.2rem;
}

.card-name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 4px rgba(205, 180, 219, 0.2);
}

.card-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(74, 58, 92, 0.7);
}

.card-tag {
    display: inline-block;
    font-family: 'Pacifico', cursive;
    font-size: 0.7rem;
    color: var(--heart-red);
    margin-top: 1.2rem;
    opacity: 0.7;
}

/* ================================================
   TRANSFORMATION SEQUENCE
   ================================================ */
.transformation {
    background: var(--cream);
    overflow: hidden;
    transition: background 1.5s ease;
}

/* Expanding Star Rings */
.star-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.star-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--sparkle);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.star-ring.ring-a {
    width: 100px;
    height: 100px;
}

.star-ring.ring-b {
    width: 200px;
    height: 200px;
}

.star-ring.ring-c {
    width: 300px;
    height: 300px;
}

.star-ring.expanding {
    animation: ringExpand 2s ease-out forwards;
}

.star-ring.ring-b.expanding {
    animation-delay: 0.3s;
}

.star-ring.ring-c.expanding {
    animation-delay: 0.6s;
}

@keyframes ringExpand {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Transform Steps */
.transform-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.step-pill {
    background: linear-gradient(135deg, rgba(255, 200, 221, 0.35), rgba(162, 210, 255, 0.35));
    border: 1px solid rgba(205, 180, 219, 0.35);
    border-radius: 999px;
    padding: 1.1rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease, background 0.5s ease, border-color 0.5s ease;
    backdrop-filter: blur(4px);
}

.step-pill.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-pill:hover {
    background: linear-gradient(135deg, rgba(255, 200, 221, 0.55), rgba(162, 210, 255, 0.55));
    border-color: rgba(255, 215, 0, 0.4);
}

.step-num {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--heart-red);
    flex-shrink: 0;
    text-shadow: 0 1px 6px rgba(255, 107, 138, 0.2);
}

.step-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-dark);
}

.step-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--sky-pink), var(--baby-blue));
    opacity: 0.35;
}

/* ================================================
   ENCHANTMENT (Magical Frame)
   ================================================ */
.enchantment {
    background: linear-gradient(180deg, var(--cream), rgba(162, 210, 255, 0.12), rgba(205, 180, 219, 0.08), var(--cream));
}

.magical-frame {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 3.5rem 2.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.magical-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

.frame-corner {
    position: absolute;
    width: 35px;
    height: 35px;
}

.fc-tl {
    top: 0; left: 0;
    border-top: 2px solid var(--sparkle);
    border-left: 2px solid var(--sparkle);
    border-top-left-radius: 10px;
}

.fc-tr {
    top: 0; right: 0;
    border-top: 2px solid var(--sparkle);
    border-right: 2px solid var(--sparkle);
    border-top-right-radius: 10px;
}

.fc-bl {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--sparkle);
    border-left: 2px solid var(--sparkle);
    border-bottom-left-radius: 10px;
}

.fc-br {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--sparkle);
    border-right: 2px solid var(--sparkle);
    border-bottom-right-radius: 10px;
}

/* Frame Star Decorations */
.frame-star {
    position: absolute;
    color: var(--sparkle);
    font-size: 1rem;
    animation: frameStarPulse 2.5s ease-in-out infinite;
}

.fs-top { top: -8px; left: 50%; transform: translateX(-50%); }
.fs-right { right: -8px; top: 50%; transform: translateY(-50%); animation-delay: 0.6s; }
.fs-bottom { bottom: -8px; left: 50%; transform: translateX(-50%); animation-delay: 1.2s; }
.fs-left { left: -8px; top: 50%; transform: translateY(-50%); animation-delay: 1.8s; }

@keyframes frameStarPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.enchantment-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.9;
    color: rgba(74, 58, 92, 0.8);
}

.enchantment-sign {
    font-family: 'Pacifico', cursive;
    font-size: 0.9rem;
    color: var(--heart-red);
    margin-top: 1.8rem;
    opacity: 0.6;
}

/* ================================================
   MUSIC PLAYER (decorative, non-functional)
   ================================================ */
.music-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 200, 221, 0.2);
    border: 1px solid rgba(205, 180, 219, 0.3);
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    max-width: 280px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.music-player.visible {
    opacity: 1;
    transform: translateY(0);
}

.cd-disc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cdb4db, #a2d2ff, #ffc8dd, #ffd700);
    background-size: 200% 200%;
    animation: cdSpin 3s linear infinite, shimmerBorder 3s ease infinite;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cream);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.player-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--lavender);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.player-track {
    font-family: 'Pacifico', cursive;
    font-size: 0.7rem;
    color: var(--text-dark);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar {
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: rgba(205, 180, 219, 0.3);
    overflow: hidden;
    margin-top: 2px;
}

.player-progress {
    width: 35%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sky-pink), var(--baby-blue));
    animation: progressMove 8s ease-in-out infinite;
}

@keyframes cdSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progressMove {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 0%; }
}

/* ================================================
   GARDEN (Footer)
   ================================================ */
.garden {
    min-height: 60vh;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(255, 200, 221, 0.08) 50%, rgba(189, 224, 254, 0.1) 100%);
    padding-bottom: 3rem;
    gap: 2rem;
}

.garden-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
    padding: 0 1rem;
}

.pixel-flower {
    width: 10px;
    image-rendering: pixelated;
    opacity: 0;
    animation: flowerGrow 0.6s ease forwards;
}

/* Pixel flowers: alternating colors */
.pf-1, .pf-3, .pf-5, .pf-7, .pf-9, .pf-11 {
    height: 22px;
    background: linear-gradient(180deg, var(--heart-red) 35%, var(--text-dark) 35%);
    clip-path: polygon(50% 0%, 75% 15%, 100% 25%, 75% 40%, 50% 40%, 25% 40%, 0% 25%, 25% 15%);
}

.pf-2, .pf-4, .pf-6, .pf-8, .pf-10 {
    height: 28px;
    background: linear-gradient(180deg, var(--sparkle) 30%, var(--text-dark) 30%);
    clip-path: polygon(50% 0%, 80% 12%, 100% 28%, 70% 35%, 50% 35%, 30% 35%, 0% 28%, 20% 12%);
}

.pf-1 { height: 18px; animation-delay: 0.1s; }
.pf-2 { height: 26px; animation-delay: 0.2s; }
.pf-3 { height: 24px; animation-delay: 0.3s; }
.pf-4 { height: 30px; animation-delay: 0.4s; }
.pf-5 { height: 20px; animation-delay: 0.5s; }
.pf-6 { height: 32px; animation-delay: 0.6s; }
.pf-7 { height: 22px; animation-delay: 0.7s; }
.pf-8 { height: 28px; animation-delay: 0.8s; }
.pf-9 { height: 16px; animation-delay: 0.9s; }
.pf-10 { height: 24px; animation-delay: 1.0s; }
.pf-11 { height: 20px; animation-delay: 1.1s; }

@keyframes flowerGrow {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* ================================================
   GUESTBOOK
   ================================================ */
.guestbook {
    max-width: 450px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.guestbook.visible {
    opacity: 1;
    transform: translateY(0);
}

.guestbook-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.message-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message-bubble {
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mb-pink {
    background: rgba(255, 200, 221, 0.35);
    border: 1px solid rgba(255, 200, 221, 0.3);
    margin-right: 3rem;
}

.mb-blue {
    background: rgba(162, 210, 255, 0.35);
    border: 1px solid rgba(162, 210, 255, 0.3);
    margin-left: 3rem;
}

.mb-lavender {
    background: rgba(205, 180, 219, 0.35);
    border: 1px solid rgba(205, 180, 219, 0.3);
    margin-right: 1.5rem;
}

.msg-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-dark);
}

.msg-author {
    font-family: 'Pacifico', cursive;
    font-size: 0.6rem;
    color: var(--lavender);
    opacity: 0.7;
}

/* ================================================
   VISITOR COUNTER
   ================================================ */
.visitor-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visitor-counter.visible {
    opacity: 1;
    transform: translateY(0);
}

.counter-label {
    font-family: 'Pacifico', cursive;
    font-size: 0.7rem;
    color: var(--lavender);
    letter-spacing: 0.1em;
}

.counter-display {
    display: flex;
    gap: 3px;
}

.counter-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 28px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: rgba(205, 180, 219, 0.2);
    border: 1px solid rgba(205, 180, 219, 0.3);
    border-radius: 4px;
}

/* ================================================
   GARDEN TEXT
   ================================================ */
.garden-text {
    font-family: 'Pacifico', cursive;
    font-size: 0.85rem;
    color: var(--lavender);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.garden-text.visible {
    opacity: 0.6;
    transform: translateY(0);
}

.garden-heart {
    font-size: 1.5rem;
    color: var(--heart-red);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.garden-heart.visible {
    opacity: 0.5;
    transform: translateY(0);
}

/* ================================================
   FADE-IN UTILITY
   ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   BUTTERFLY (CSS-only, appears on hover)
   ================================================ */
.butterfly {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 50;
}

.butterfly-wing {
    position: absolute;
    width: 8px;
    height: 12px;
    border-radius: 50% 50% 50% 0;
    background: var(--sky-pink);
    opacity: 0.6;
}

.butterfly-wing.left {
    left: 0;
    transform-origin: right center;
    animation: wingFlap 0.4s ease-in-out infinite alternate;
}

.butterfly-wing.right {
    right: 0;
    border-radius: 50% 50% 0 50%;
    transform-origin: left center;
    animation: wingFlap 0.4s ease-in-out infinite alternate-reverse;
}

@keyframes wingFlap {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(60deg); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
        align-items: center;
    }

    .archetype-card {
        max-width: 300px;
    }

    .shimmer-ring.ring-1 { width: 220px; height: 220px; }
    .shimmer-ring.ring-2 { width: 300px; height: 300px; }
    .shimmer-ring.ring-3 { width: 380px; height: 380px; }

    .star-nav {
        right: 10px;
        gap: 14px;
    }

    .nav-label {
        display: none;
    }

    .mb-pink, .mb-blue, .mb-lavender {
        margin-left: 0;
        margin-right: 0;
    }

    .fairy-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .star-nav {
        display: none;
    }

    .music-player {
        max-width: 250px;
    }
}
