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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    padding: 20px;
    position: relative;
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-top: 60px;
}

.controls {
    margin-top: 40px;
    text-align: center;
}

.start-btn, .reset-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
}

.start-btn {
    background: #fff;
    color: #667eea;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.error-message {
    background: rgba(255, 68, 68, 0.9);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
}

.error-message.show {
    display: block;
}

.sequence-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sequence-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
}

.note-indicator {
    text-align: center;
}


.indicator-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.note-indicator.active .indicator-circle {
    background: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.8);
    animation: pulse 0.5s ease;
}

.note-indicator.failed .indicator-circle {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
    animation: shake 0.5s ease;
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.current-note-display {
    text-align: center;
    position: relative;
    min-height: 120px;
}

.current-note-value {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.note-float {
    position: absolute;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: noteFloat 0.8s ease-out forwards;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes noteFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--float-x)), calc(-50% + var(--float-y))) scale(0.7);
        filter: blur(3px);
    }
}

.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.success-message.show {
    display: flex;
}

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

.success-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 60px;
    border-radius: 20px;
    max-width: 600px;
    text-align: center;
    animation: zoomIn 0.5s ease;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-content p {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sequence-indicators {
        gap: 15px;
    }

    .indicator-circle {
        width: 60px;
        height: 60px;
    }

    .current-note-value {
        font-size: 3rem;
    }

    .note-float {
        font-size: 3rem;
    }

    .success-content {
        padding: 40px 20px;
        margin: 20px;
    }

    .success-content p {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .sequence-indicators {
        gap: 10px;
    }

    .start-btn, .reset-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .indicator-circle {
        width: 50px;
        height: 50px;
    }

    .current-note-value {
        font-size: 2.5rem;
    }

    .note-float {
        font-size: 2.5rem;
    }
}
