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

body {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #E8E8E8 0%, #D8D8D8 50%, #CCCCCC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    perspective: 1000px;
    position: relative;
}

/* X Logo - Top Left */
.x-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 32px;
    height: 32px;
    color: rgba(120, 120, 120, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 6px;
}

.x-logo svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.x-logo:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.x-logo:hover svg {
    transform: scale(1.05);
}

.x-logo:active {
    transform: scale(0.95);
}

/* Title Logo - Top Center */
.title-logo {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 4px;
    color: rgba(120, 120, 120, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    cursor: pointer;
    user-select: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
}

.title-logo:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 5px;
    font-weight: 300;
}

.title-logo:active {
    transform: translateX(-50%) scale(0.95);
}

/* Pill Logo - Top Right */
.pill-logo {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 4px;
}

.pill-logo img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) brightness(1.2) opacity(0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-logo:hover {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pill-logo:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.05);
}

.pill-logo:active {
    transform: scale(0.95);
}

/* Mute Toggle - Top Right (next to pill) */
.mute-toggle {
    position: fixed;
    top: 30px;
    right: 90px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px;
    color: rgba(120, 120, 120, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mute-toggle svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mute-toggle:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mute-toggle:hover svg {
    transform: scale(1.05);
}

.mute-toggle:active {
    transform: scale(0.95);
}

.mute-toggle.muted .sound-on {
    display: none;
}

.mute-toggle.muted .sound-off {
    display: block !important;
}

/* Share Button - Below Sphere */
.share-button {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: rgba(120, 120, 120, 0.4);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.share-button.active {
    opacity: 1;
    pointer-events: auto;
}

.share-button .share-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-button:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.share-button:hover .share-icon {
    transform: scale(1.1);
}

.share-button:active {
    transform: translateX(-50%) scale(0.95);
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Sphere - Main Container */
.glass-sphere {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: levitate 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Sphere Base - TRUE Transparent Glass */
.glass-sphere::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        /* Outer rim glow - defines the edge */
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 80px rgba(255, 255, 255, 0.15),
        /* Top-left rim light - light catching the curve */
        inset 20px 20px 60px rgba(255, 255, 255, 0.15),
        inset -20px -20px 60px rgba(0, 0, 0, 0.05),
        /* Bottom-right subtle darkness for depth */
        inset -30px -30px 80px rgba(0, 0, 0, 0.03),
        /* Levitation shadow */
        0 40px 80px rgba(0, 0, 0, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: rimGlisten 4s ease-in-out infinite;
}

/* Inner Glass Layer - Subtle Refraction */
.sphere-inner {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        /* Very subtle inner rim for glass thickness */
        inset 0 0 40px rgba(255, 255, 255, 0.08),
        inset 10px 10px 30px rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Top Highlight - Specular Reflection Spot */
.sphere-highlight {
    position: absolute;
    top: 8%;
    left: 20%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 40% 40%,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.4) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 75%
    );
    filter: blur(15px);
    mix-blend-mode: screen;
    opacity: 1;
    animation: glisten 3s ease-in-out infinite;
}

/* Secondary Reflection - Subtle Light Catch */
.sphere-reflection {
    position: absolute;
    bottom: 15%;
    right: 22%;
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 100%
    );
    filter: blur(12px);
    mix-blend-mode: screen;
    opacity: 0.9;
    animation: glisten 3s ease-in-out 0.5s infinite;
}

/* Bottom Shadow - Levitation Effect */
.glass-sphere::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 25px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.12) 30%,
        rgba(0, 0, 0, 0.05) 60%,
        transparent 85%
    );
    filter: blur(20px);
    animation: shadowPulse 6s ease-in-out infinite;
}

/* Initial Prompt - "Touch me..." */
.initial-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 200;
    font-style: italic;
    letter-spacing: 2px;
    color: rgba(100, 100, 100, 0.5);
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9;
    animation: breathe 4s ease-in-out infinite;
}

.initial-prompt.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Quote Text - Inside Sphere */
.quote-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    text-align: center;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.6;
    letter-spacing: 1px;
    color: rgba(80, 80, 80, 0.9);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quote-text.active {
    opacity: 1;
}

/* Hover State - Premium Interaction */
.glass-sphere:hover {
    transform: translateY(-8px) scale(1.02);
}

.glass-sphere:hover::before {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        /* Enhanced rim glow on hover */
        0 0 60px rgba(255, 255, 255, 0.4),
        0 0 100px rgba(255, 255, 255, 0.2),
        /* Rim lights */
        inset 20px 20px 60px rgba(255, 255, 255, 0.2),
        inset -20px -20px 60px rgba(0, 0, 0, 0.06),
        inset -30px -30px 80px rgba(0, 0, 0, 0.04),
        /* Enhanced levitation shadow */
        0 50px 100px rgba(0, 0, 0, 0.22),
        0 25px 50px rgba(0, 0, 0, 0.18);
}

.glass-sphere:hover::after {
    filter: blur(25px);
    opacity: 0.6;
}

/* Levitation Animation */
@keyframes levitate {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Shadow Pulse Animation */
@keyframes shadowPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(0.92);
    }
}

/* Glisten Animation - Light Shimmer */
@keyframes glisten {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Breathe Animation - Subtle "Touch me..." pulse */
@keyframes breathe {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
}

/* Contract Address Footer */
.contract-footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 11px;
    color: rgba(120, 120, 120, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contract-footer:hover {
    color: rgba(80, 80, 80, 0.7);
}

.contract-label {
    font-weight: 500;
}

.contract-address {
    font-weight: 400;
    letter-spacing: 0.5px;
}

.copy-button {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.15);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-icon {
    width: 14px;
    height: 14px;
}

/* Copied feedback animation */
@keyframes copied {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Rim Glisten - Edge Shimmer */
@keyframes rimGlisten {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(255, 255, 255, 0.3),
            0 0 80px rgba(255, 255, 255, 0.15),
            inset 20px 20px 60px rgba(255, 255, 255, 0.15),
            inset -20px -20px 60px rgba(0, 0, 0, 0.05),
            inset -30px -30px 80px rgba(0, 0, 0, 0.03),
            0 40px 80px rgba(0, 0, 0, 0.2),
            0 20px 40px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 0 50px rgba(255, 255, 255, 0.4),
            0 0 100px rgba(255, 255, 255, 0.2),
            inset 20px 20px 60px rgba(255, 255, 255, 0.22),
            inset -20px -20px 60px rgba(0, 0, 0, 0.05),
            inset -30px -30px 80px rgba(0, 0, 0, 0.03),
            0 40px 80px rgba(0, 0, 0, 0.2),
            0 20px 40px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .glass-sphere {
        width: 320px;
        height: 320px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .glass-sphere {
        width: 280px;
        height: 280px;
    }

    .glass-sphere::after {
        bottom: -50px;
        width: 40%;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .glass-sphere {
        width: 220px;
        height: 220px;
    }

    .glass-sphere::after {
        bottom: -40px;
        width: 35%;
        height: 20px;
    }

    .x-logo {
        top: 20px;
        left: 20px;
        width: 28px;
        height: 28px;
    }

    .title-logo {
        top: 20px;
        font-size: 15px;
        letter-spacing: 3px;
    }

    .title-logo:hover {
        letter-spacing: 4px;
    }

    .pill-logo {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }

    .mute-toggle {
        top: 20px;
        right: 70px;
        width: 28px;
        height: 28px;
    }

    .quote-text {
        font-size: 14px;
        width: 75%;
    }

    .share-button {
        font-size: 12px;
        padding: 8px 16px;
        bottom: 15%;
    }

    .share-button .share-icon {
        width: 14px;
        height: 14px;
    }

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