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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 40%, #0f0f23 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: cosmicShift 15s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes cosmicShift {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.cosmic-orb {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle, #ff6b9d 0%, #c471ed 50%, #12c2e9 100%);
    border-radius: 50%;
    animation: orbPulse 3s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(255, 107, 157, 0.5),
        0 0 60px rgba(196, 113, 237, 0.3),
        0 0 90px rgba(18, 194, 233, 0.2);
}

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

.title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b9d, #c471ed, #12c2e9, #ff6b9d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 1rem;
}

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

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 300;
}

.wish-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.wish-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.wish-form-container h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #c471ed;
}

.input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

#wishInput {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

#wishInput:focus {
    border-color: #c471ed;
    box-shadow: 0 0 20px rgba(196, 113, 237, 0.3);
}

#wishInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.energy-bar {
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #c471ed, #12c2e9);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.wish-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b9d, #c471ed);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.wish-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(196, 113, 237, 0.4);
}

.wish-button:active {
    transform: translateY(0);
}

.button-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.wish-visualization {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    height: 120px;
}

#wishCanvas {
    width: 100%;
    height: 60px;
    border-radius: 10px;
}

.wish-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    color: #c471ed;
    line-height: 1.2;
}

.granted-wishes {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.granted-wishes h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #12c2e9;
}

.wish-list {
    display: grid;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.wish-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ff6b9d;
    animation: wishAppear 0.5s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.wish-text {
    flex: 1;
    font-weight: 500;
}

.wish-time {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 1rem;
}

.granted-badge {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}

.cosmic-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cosmic-message-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: messageSlideIn 0.6s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cosmic-message-header {
    margin-bottom: 1.5rem;
}

.universe-avatar {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: avatarGlow 2s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

.cosmic-message-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ff6b9d, #c471ed, #12c2e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.cosmic-message-body {
    margin-bottom: 2rem;
}

.message-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #c471ed;
}

.message-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #12c2e9;
}

.message-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.affirmation {
    font-style: italic;
    font-weight: 500;
    color: #ff6b9d !important;
}

.cosmic-close-btn {
    background: linear-gradient(45deg, #ff6b9d, #c471ed);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.cosmic-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(196, 113, 237, 0.4);
}

.cosmic-close-btn:active {
    transform: translateY(0);
}

.music-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 15px;
    z-index: 1000;
}

.music-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #c471ed;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.music-btn:hover {
    transform: scale(1.1);
    background: rgba(196, 113, 237, 0.2);
}

.music-btn.muted {
    opacity: 0.5;
    color: #ff6b9d;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ff6b9d, #c471ed);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ff6b9d, #c471ed);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .wish-interface {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cosmic-orb {
        width: 80px;
        height: 80px;
    }
    
    .cosmic-message-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .universe-avatar {
        font-size: 2.5rem;
    }
    
    .cosmic-message-header h3 {
        font-size: 1.3rem;
    }
    
    .message-section {
        padding: 0.8rem;
    }
    
    .message-section h4 {
        font-size: 1rem;
    }
    
    .message-section p {
        font-size: 0.9rem;
    }
}

.wish-list::-webkit-scrollbar {
    width: 8px;
}

.wish-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.wish-list::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b9d, #c471ed);
    border-radius: 4px;
}