/* ============================================
   Elephant on Acid — Remember Tusko
   Living Memory Book
   ============================================ */

:root {
    --peach: #FFE8D6;
    --cream: #FFFBF5;
    --cream-dark: #FFF3E6;
    --coral: #E8967D;
    --coral-soft: #F0B5A0;
    --gold: #D4A574;
    --gold-light: #F0D4A8;
    --sage: #8BA888;
    --sage-light: #C5DCBF;
    --lavender: #D8CCE8;
    --lavender-light: #EDE6F5;
    --charcoal: #3D3435;
    --charcoal-soft: #6B5E5F;
    --warm-white: #FFF9F5;
    --warm-shadow: rgba(100, 60, 30, 0.08);
    --warm-shadow-md: rgba(100, 60, 30, 0.12);
    --warm-shadow-lg: rgba(100, 60, 30, 0.16);
    --radius: 20px;
    --radius-sm: 12px;
    --font-hand: 'Caveat', cursive;
    --font-head: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --max-w: 680px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 181, 160, 0.10) 0%, rgba(240, 212, 168, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.4s ease-out, top 0.4s ease-out, opacity 0.4s;
    opacity: 0;
    mix-blend-mode: multiply;
}

.cursor-glow.active {
    opacity: 1;
}

@media (hover: none) {
    .cursor-glow { display: none; }
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 70%, var(--warm-white) 100%);
    overflow: hidden;
}

/* Watercolor blobs */
.watercolor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    will-change: transform;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 181, 160, 0.7), transparent 70%);
    top: 5%;
    left: -5%;
    animation: blobDrift1 14s ease-in-out infinite alternate;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(216, 204, 232, 0.6), transparent 70%);
    top: 15%;
    right: -8%;
    animation: blobDrift2 18s ease-in-out infinite alternate;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 220, 191, 0.5), transparent 70%);
    bottom: 15%;
    left: 10%;
    animation: blobDrift3 16s ease-in-out infinite alternate;
}

.blob-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(240, 212, 168, 0.6), transparent 70%);
    bottom: 5%;
    right: 5%;
    animation: blobDrift4 12s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 30px) scale(1.15); }
}

@keyframes blobDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 40px) scale(1.1); }
}

@keyframes blobDrift3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.2); }
}

@keyframes blobDrift4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -30px) scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-avatar {
    position: relative;
    width: clamp(180px, 40vw, 280px);
    height: clamp(180px, 40vw, 280px);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow:
        0 4px 24px var(--warm-shadow-md),
        0 0 0 8px rgba(232, 150, 125, 0.12);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 181, 160, 0.25) 0%, transparent 65%);
    z-index: -1;
    animation: gentleGlow 6s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
}

.title-small {
    display: block;
    font-family: var(--font-hand);
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 500;
    color: var(--coral);
    margin-bottom: 4px;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--charcoal-soft);
    max-width: 400px;
    font-weight: 400;
}

.hero-dates {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--gold);
    font-weight: 600;
}

.date-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral-soft);
}

.date-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--coral-soft), var(--gold-light));
    border-radius: 1px;
}

.scroll-down {
    position: absolute;
    bottom: 32px;
    z-index: 1;
    color: var(--coral-soft);
    animation: bobble 2.5s ease-in-out infinite;
    opacity: 0.6;
}

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


/* ============================================
   WAVE DIVIDERS
   ============================================ */
.wave-divider {
    display: block;
    width: 100%;
    height: 90px;
    position: relative;
    z-index: 1;
    margin-top: -2px;
    margin-bottom: -2px;
}

/* Background = color of section ABOVE, fill of path = color of section BELOW */
.wave-story-quote { background: var(--warm-white); }
.wave-quote-truth { background: var(--cream); }
.wave-truth-remember { background: var(--lavender-light); }
.wave-remember-message { background: #DDE8DA; }
.wave-message-token { background: var(--cream-dark); }


/* ============================================
   SECTIONS
   ============================================ */
section {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.handwritten {
    font-family: var(--font-hand);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 600;
    color: var(--charcoal);
}

/* Title decorations */
.title-decor {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.decor-leaf, .decor-star, .decor-heart {
    flex-shrink: 0;
    opacity: 0.7;
}

.decor-left {
    animation: decorSway 4s ease-in-out infinite alternate;
}

.decor-right {
    animation: decorSway 4s ease-in-out infinite alternate-reverse;
}

@keyframes decorSway {
    0% { transform: rotate(-5deg) scale(1); }
    100% { transform: rotate(5deg) scale(1.05); }
}


/* ============================================
   STORY
   ============================================ */
.story {
    padding: 100px 0 80px;
    background: var(--warm-white);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.story-text p {
    margin-bottom: 14px;
    color: var(--charcoal-soft);
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-text strong {
    color: var(--charcoal);
    font-weight: 600;
}

.story-text em {
    font-style: italic;
}


/* ============================================
   CLINICAL QUOTE
   ============================================ */
.clinical-quote {
    padding: 80px 0;
    background: var(--cream);
}

.quote-block {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 28px;
    border-left: 3px solid var(--charcoal-soft);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-block p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.9;
    color: var(--charcoal-soft);
    font-style: italic;
}

.quote-block cite {
    display: block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--charcoal-soft);
    opacity: 0.6;
    font-style: normal;
}


/* ============================================
   POLAROID PHOTOS
   ============================================ */
.polaroid {
    background: white;
    padding: 10px 10px 40px;
    border-radius: 4px;
    box-shadow:
        0 4px 16px var(--warm-shadow-md),
        0 1px 4px var(--warm-shadow);
    max-width: 380px;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.02) !important;
    box-shadow:
        0 8px 28px var(--warm-shadow-lg),
        0 2px 8px var(--warm-shadow-md);
}

.polaroid img {
    width: 100%;
    border-radius: 2px;
}

.polaroid-caption {
    display: block;
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--charcoal-soft);
    text-align: center;
    margin-top: 8px;
    padding: 0 4px;
}

.polaroid-tilt-left {
    transform: rotate(-2.5deg);
}

.polaroid-tilt-right {
    transform: rotate(2deg);
}

.polaroid-small {
    max-width: 280px;
    padding: 8px 8px 32px;
}

.polaroid-small .polaroid-caption {
    font-size: 17px;
}

.photo-wall {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
}


/* ============================================
   TRUTH CARD
   ============================================ */
.truth {
    padding: 60px 0;
    background: var(--lavender-light);
}

.truth-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px var(--warm-shadow);
    border: 1px solid rgba(216, 204, 232, 0.4);
    backdrop-filter: blur(10px);
}

.truth-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.truth-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal-soft);
    max-width: 500px;
    margin: 0 auto;
}

.truth-text strong {
    color: var(--sage);
    font-weight: 700;
}

.truth-details {
    max-width: 520px;
    margin: 32px auto 0;
    text-align: center;
}

.truth-details p {
    color: var(--charcoal-soft);
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.7;
}

.west-quote {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--charcoal);
    padding: 16px 24px;
    margin: 16px 0;
    border-left: 3px solid var(--coral-soft);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-align: left;
}

.truth-verdict {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--charcoal) !important;
    font-size: 17px !important;
    margin-top: 20px !important;
}


/* ============================================
   REMEMBER
   ============================================ */
.remember {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #E8F0E5 0%, #DDE8DA 100%);
}

.remember-text {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 32px;
}

.remember-text p {
    color: var(--charcoal-soft);
    margin-bottom: 14px;
}

.remember-highlight {
    text-align: center;
    margin-bottom: 16px;
}

.remember-highlight p {
    font-family: var(--font-hand);
    font-size: clamp(24px, 4vw, 32px);
    color: var(--coral);
    font-weight: 600;
}


/* ============================================
   MESSAGE
   ============================================ */
.message {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--peach) 50%, var(--cream-dark) 100%);
    text-align: center;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.message-big {
    font-family: var(--font-head);
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
    color: var(--charcoal-soft);
    line-height: 1.4;
}

.message-accent {
    font-family: var(--font-head);
    font-size: clamp(24px, 5vw, 36px) !important;
    font-weight: 700;
    color: var(--charcoal) !important;
    margin-top: 16px;
}

.message-final {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 40px 0 24px;
}

.message-final p {
    font-family: var(--font-hand);
    font-size: clamp(22px, 4vw, 30px);
    color: var(--charcoal);
    font-weight: 500;
    line-height: 1.4;
}

.message-remember {
    font-family: var(--font-hand);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 32px;
}

.elephant-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 32px;
    opacity: 0.6;
}

.elephant-row span:nth-child(1) { animation: elephantWalk 3s ease-in-out infinite 0s; }
.elephant-row span:nth-child(2) { animation: elephantWalk 3s ease-in-out infinite 0.3s; }
.elephant-row span:nth-child(3) { animation: elephantWalk 3s ease-in-out infinite 0.6s; }

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


/* ============================================
   BRIDGE
   ============================================ */
.bridge {
    padding: 36px 0 32px;
    text-align: center;
    background: var(--cream-dark);
}

.bridge-text {
    font-family: var(--font-hand);
    font-size: clamp(18px, 3vw, 24px);
    color: var(--charcoal-soft);
    opacity: 0.7;
    font-weight: 400;
}


/* ============================================
   TOKEN
   ============================================ */
.token {
    padding: 80px 0;
    background: var(--cream);
}

.token-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 8px 40px var(--warm-shadow-md);
    border: 1px solid rgba(212, 165, 116, 0.15);
    max-width: 480px;
    margin: 0 auto;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.token-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--peach);
}

.token-name {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
}

.token-subtitle {
    font-family: var(--font-hand);
    font-size: 18px;
    color: var(--coral);
}

.ca-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.ca-label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ca-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--charcoal-soft);
    word-break: break-all;
    flex: 1;
}

.ca-copy {
    position: relative;
    background: none;
    border: none;
    color: var(--charcoal-soft);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.ca-copy:hover { color: var(--coral); }

.copy-toast {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 12px;
    background: var(--sage);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.ca-copy.copied .copy-toast { opacity: 1; }

/* Buttons */
.token-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-warm {
    background: var(--peach);
    color: var(--charcoal);
    border: 1px solid transparent;
}

.btn-warm:hover {
    background: var(--coral-soft);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 150, 125, 0.3);
}

.btn-soft {
    background: var(--cream);
    color: var(--charcoal-soft);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.btn-soft:hover {
    background: var(--gold-light);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.2);
}

.btn svg {
    flex-shrink: 0;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 60px 24px 48px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 100%);
}

.footer-elephant {
    font-size: 36px;
    margin-bottom: 12px;
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.footer-text {
    font-size: 28px;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.footer-dates {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--charcoal-soft);
    opacity: 0.5;
    margin-bottom: 24px;
}

.footer-sources {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 12px;
}

.footer-sources a {
    color: var(--charcoal-soft);
    opacity: 0.4;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.3s;
}

.footer-sources a:hover { opacity: 0.8; }

.footer-sources span {
    color: var(--charcoal-soft);
    opacity: 0.2;
}


/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Polaroid reveal from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px) rotate(-6deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0) rotate(-2.5deg);
}

/* Polaroid reveal from right */
.reveal-right {
    opacity: 0;
    transform: translateX(60px) rotate(6deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0) rotate(2deg);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.7s; }

/* Hero reveals play immediately */
.hero .reveal {
    animation: heroReveal 0.8s ease forwards;
    transition: none;
}

.hero .reveal-delay-1 { animation-delay: 0.2s; }
.hero .reveal-delay-2 { animation-delay: 0.4s; }
.hero .reveal-delay-3 { animation-delay: 0.6s; }
.hero .reveal-delay-4 { animation-delay: 1.2s; }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .hero { padding: 48px 20px; }

    .watercolor-blob { filter: blur(60px); }
    .blob-1 { width: 250px; height: 250px; }
    .blob-2 { width: 220px; height: 220px; }
    .blob-3 { width: 200px; height: 200px; }
    .blob-4 { width: 180px; height: 180px; }

    .polaroid, .polaroid-small {
        max-width: 100%;
    }

    .photo-wall {
        flex-direction: column;
        align-items: center;
    }

    .truth-card { padding: 28px 20px; }

    .token-card { padding: 28px 20px; }

    .token-links {
        grid-template-columns: 1fr;
    }

    .ca-row {
        flex-wrap: wrap;
    }

    .wave-divider {
        height: 55px;
    }

    .title-decor svg {
        width: 20px;
        height: 20px;
    }
}


/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--coral-soft);
    color: white;
}


/* ============================================
   MUSIC TOGGLE
   ============================================ */
.music-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px 12px 16px;
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 181, 160, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-hand);
    font-size: 17px;
    color: var(--charcoal-soft);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    opacity: 0;
    animation: musicFadeIn 0.6s ease 0.5s forwards, musicPulse 2.5s ease-in-out 1.1s infinite;
}

.music-toggle.ready {
    opacity: 1;
}

@keyframes musicFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 0 rgba(240, 181, 160, 0);
        border-color: rgba(240, 181, 160, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(240, 181, 160, 0.45), 0 0 0 12px rgba(240, 181, 160, 0.15);
        border-color: rgba(240, 181, 160, 0.8);
    }
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
}

.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--peach);
    color: var(--charcoal);
    flex-shrink: 0;
    transition: background 0.3s;
}

.music-toggle:hover .music-icon {
    background: var(--coral-soft);
    color: white;
}

.music-label {
    transition: opacity 0.3s;
}


/* Play/Bars icon switching */
.icon-play { display: block; }
.icon-bars { display: none; }

.music-toggle.playing .icon-play { display: none; }
.music-toggle.playing .icon-bars { display: block; }

/* Animated equalizer bars */
.music-toggle.playing .bar-1 { animation: eqBar 0.8s ease-in-out infinite alternate; }
.music-toggle.playing .bar-2 { animation: eqBar 0.6s ease-in-out infinite alternate 0.1s; }
.music-toggle.playing .bar-3 { animation: eqBar 0.7s ease-in-out infinite alternate 0.2s; }
.music-toggle.playing .bar-4 { animation: eqBar 0.5s ease-in-out infinite alternate 0.15s; }

@keyframes eqBar {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Playing state glow */
.music-toggle.playing {
    animation: none;
    opacity: 1;
    border-color: rgba(240, 181, 160, 0.5);
    box-shadow: 0 4px 24px rgba(240, 181, 160, 0.2);
}

.music-toggle.playing .music-icon {
    background: var(--coral-soft);
    color: white;
}

/* Mobile */
@media (max-width: 600px) {
    .music-toggle {
        padding: 10px 18px 10px 12px;
        font-size: 15px;
    }
    .music-icon {
        width: 24px;
        height: 24px;
    }
    .music-icon svg {
        width: 14px;
        height: 14px;
    }
}
