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

/* Voice Controls */
.voice-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 0;
    border: 2px solid #666666;
}

.voice-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

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

.voice-select {
    background: #000000;
    color: #ffffff;
    border: 1px solid #666666;
    padding: 5px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.voice-select:focus {
    border-color: #ffffff;
}

/* Gooey Cursor Effect */
#gooey-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    filter: url('#gooey');
    width: 100vw;
    height: 100vh;
}

.cursor-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff0066, #ff4593, #ff66cc, #ff99ff, #cc99ff, #9999ff);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
    will-change: transform;
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: colorShift 4s ease-in-out infinite;
}

.cursor-circle:nth-child(2) { width: 38px; height: 38px; animation-delay: -0.4s; }
.cursor-circle:nth-child(3) { width: 36px; height: 36px; animation-delay: -0.8s; }
.cursor-circle:nth-child(4) { width: 34px; height: 34px; animation-delay: -1.2s; }
.cursor-circle:nth-child(5) { width: 32px; height: 32px; animation-delay: -1.6s; }
.cursor-circle:nth-child(6) { width: 30px; height: 30px; animation-delay: -2.0s; }
.cursor-circle:nth-child(7) { width: 28px; height: 28px; animation-delay: -2.4s; }
.cursor-circle:nth-child(8) { width: 26px; height: 26px; animation-delay: -2.8s; }

.cursor-circle.main {
    width: 20px;
    height: 20px;
    background: #fff;
    opacity: 0.95;
    mix-blend-mode: screen;
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg) brightness(1); }
    25% { filter: hue-rotate(90deg) brightness(1.1); }
    50% { filter: hue-rotate(180deg) brightness(1.2); }
    75% { filter: hue-rotate(270deg) brightness(1.1); }
    100% { filter: hue-rotate(360deg) brightness(1); }
}

body {
    font-family: 'Arial', sans-serif;
    background: #000000;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Magical Smoke Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(128, 128, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 128, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(128, 128, 128, 0.05) 0%, transparent 50%);
    animation: smokeFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes smokeFloat {
    0%, 100% { 
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateX(-20px) translateY(-30px) scale(1.1);
        opacity: 0.5;
    }
    50% { 
        transform: translateX(20px) translateY(-20px) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: translateX(-10px) translateY(-40px) scale(1.05);
        opacity: 0.6;
    }
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    color: #ffffff;
    max-width: 600px;
    padding: 2rem;
    position: relative;
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(128, 128, 128, 0.1) 0%, transparent 70%);
    animation: magicalAura 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes magicalAura {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

.title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
}

@keyframes titleGlow {
    from { 
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 50px rgba(255, 255, 255, 1), 0 0 80px rgba(128, 128, 128, 0.5);
        transform: scale(1.02);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    color: #cccccc;
    font-weight: 300;
}

.magic-circle {
    width: 150px;
    height: 150px;
    border: 2px solid #666666;
    border-radius: 50%;
    margin: 2rem auto;
    position: relative;
    animation: circleRotate 15s linear infinite;
    background: radial-gradient(circle, rgba(128, 128, 128, 0.1) 0%, transparent 70%);
}

.magic-circle::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: sparkleFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.magic-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid #444444;
    border-radius: 50%;
    animation: innerCircleRotate 10s linear infinite reverse;
}

@keyframes circleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes innerCircleRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

.start-button {
    background: #ffffff;
    border: 2px solid #666666;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: #000000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.3), transparent);
    transition: left 0.6s ease;
}

.start-button:hover::before {
    left: 100%;
}

.start-button:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Questions Screen */
.progress-bar {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 500px;
    background: #333333;
    border-radius: 0;
    padding: 0.5rem;
    border: 1px solid #666666;
    z-index: 10;
}

.progress-fill {
    height: 10px;
    background: #ffffff;
    border-radius: 0;
    transition: width 0.8s ease;
    width: 7.7%; /* 1/13 */
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.5));
    animation: progressShimmer 2s ease-in-out infinite;
}

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

.progress-text {
    color: #ffffff;
    font-weight: bold;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-container {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.question {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    animation: questionSlide 0.8s ease;
    font-weight: 300;
    line-height: 1.2;
}

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

.answer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.answer-option {
    background: #000000;
    border: 2px solid #666666;
    padding: 1rem;
    border-radius: 0;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    animation: optionFade 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.2), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option:nth-child(1) { animation-delay: 0.1s; }
.answer-option:nth-child(2) { animation-delay: 0.2s; }
.answer-option:nth-child(3) { animation-delay: 0.3s; }
.answer-option:nth-child(4) { animation-delay: 0.4s; }

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

.answer-option:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.answer-option.selected {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: scale(1.02);
}

/* Loading Screen */
.loading-content {
    text-align: center;
    color: #ffffff;
    position: relative;
}

.loading-content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background: 
        radial-gradient(circle at 30% 70%, rgba(128, 128, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(128, 128, 128, 0.1) 0%, transparent 50%);
    animation: loadingSmoke 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes loadingSmoke {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        opacity: 0.6;
    }
}

.baby-mobile {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    position: relative;
    animation: mobileFloat 5s ease-in-out infinite;
}

.mobile-arm {
    width: 4px;
    height: 80px;
    background: #666666;
    margin: 0 auto;
    border-radius: 0;
    position: relative;
}

.mobile-arm::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    border: 2px solid #666666;
}

.mobile-toys {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
}

.toy {
    position: absolute;
    font-size: 2.5rem;
    animation: toyRotate 12s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.toy-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.toy-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: -3s;
}

.toy-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -6s;
}

.toy-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: -9s;
}

@keyframes mobileFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes toyRotate {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg) translateX(60px) rotate(-360deg); }
}

.toy-2, .toy-4 {
    animation-name: toyRotateVertical;
}

@keyframes toyRotateVertical {
    0% { transform: translateY(-50%) rotate(0deg) translateY(60px) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg) translateY(60px) rotate(-360deg); }
}

.loading-text {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.loading-subtext {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.7;
    font-style: italic;
    color: #cccccc;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 0;
    animation: dotPulse 1.8s ease-in-out infinite;
    border: 1px solid #666666;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.4s; }
.loading-dots span:nth-child(3) { animation-delay: 0.8s; }

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

/* Results Screen */
.results-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 2rem;
    position: relative;
}

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

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: elementFloat 8s ease-in-out infinite;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.baby-bottle {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.baby-rattle {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.baby-star {
    bottom: 30%;
    left: 5%;
    animation-delay: 4s;
}

.baby-heart {
    bottom: 20%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes elementFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-15px) rotate(-5deg);
        opacity: 1;
    }
    75% { 
        transform: translateY(-35px) rotate(15deg);
        opacity: 0.6;
    }
}

.results-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    animation: titleReveal 1.5s ease-in-out;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    font-weight: 300;
}

@keyframes titleReveal {
    0% { 
        transform: scale(0.5) rotate(-10deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
        opacity: 0.8;
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

.name-reveal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.name-card, .nickname-card {
    background: #000000;
    border: 2px solid #666666;
    border-radius: 0;
    padding: 2rem;
    animation: cardSlide 1.2s ease forwards;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    overflow: hidden;
}

.nickname-card {
    animation-delay: 0.4s;
}

.name-card::before, .nickname-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(128, 128, 128, 0.1) 0%, transparent 70%);
    animation: cardGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: iconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

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

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

.name-card h2, .nickname-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: #cccccc;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.predicted-name, .predicted-nickname {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    animation: nameReveal 1.5s ease 1s forwards;
    opacity: 0;
    transform: scale(0.8);
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.baby-sparkles {
    font-size: 1.2rem;
    margin-top: 1rem;
    animation: sparkleShimmer 2.5s ease-in-out infinite;
    opacity: 0.7;
}

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

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-3deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.confidence-meter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    color: #cccccc;
}

.meter {
    width: 220px;
    height: 25px;
    background: #333333;
    border: 2px solid #666666;
    border-radius: 0;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 0;
    transition: width 2s ease 1.5s;
    width: 0;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.5));
    animation: meterShimmer 2s ease-in-out infinite;
}

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

.play-again-button {
    background: #ffffff;
    border: 2px solid #666666;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    color: #000000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.play-again-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.3), transparent);
    transition: left 0.6s ease;
}

.play-again-button:hover::before {
    left: 100%;
}

.play-again-button:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Ad Container Styling */
.ad-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 0;
    padding: 1rem;
    min-height: 100px;
    position: relative;
    z-index: 1;
}

.top-banner-ad {
    max-width: 728px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
}

.side-banner-ad {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 5;
    pointer-events: none;
}

.side-banner-ad > * {
    pointer-events: all;
}

.rectangle-ad {
    max-width: 336px;
    width: 100%;
    margin: 1rem auto;
    position: relative;
    z-index: 1;
}

.bottom-banner-ad {
    max-width: 728px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .question {
        font-size: 1.8rem;
    }
    
    .name-reveal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .predicted-name, .predicted-nickname {
        font-size: 2rem;
    }
    
    .confidence-meter {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Hide side ads on mobile */
    .side-banner-ad {
        display: none;
    }
    
    .ad-container {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }
}
