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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.progress-bar {
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #8b5cf6 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Content Card */
.content-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-height: 450px;
    backdrop-filter: blur(10px);
}

/* Screens */
.screen {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.active {
    display: block;
}

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

/* Typography */
h1 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h3 {
    color: #8b5cf6;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.stop-title {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 28px;
    background: linear-gradient(90deg, #10b981 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Puzzle Content */
.puzzle-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    min-height: 140px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.puzzle-content strong {
    color: #8b5cf6;
    font-weight: 600;
}

/* Hint Box */
.hint-box {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-left: 4px solid #8b5cf6;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

.hint-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.6;
}

.kiss-requirement {
    font-size: 13px;
    color: rgba(139, 92, 246, 0.8);
    font-style: italic;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Input Group */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

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

/* Feedback Messages */
.feedback {
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    margin-top: 12px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

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

.feedback.correct {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.feedback.incorrect {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Final Message */
.final-message {
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 24px;
    line-height: 1.8;
}

/* Welcome Screen Specific */
#welcomeScreen {
    text-align: center;
}

#welcomeScreen h1 {
    background: linear-gradient(90deg, #10b981 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
}

#welcomeScreen p {
    font-size: 16px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
}

/* Success Screen */
#successScreen {
    text-align: center;
}

#successScreen p {
    font-size: 17px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.8);
}

/* Final Screen */
#finalScreen {
    text-align: center;
}

#finalScreen h1 {
    font-size: 34px;
    margin-bottom: 28px;
    background: linear-gradient(90deg, #10b981 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Camera Screen */
#cameraScreen {
    text-align: center;
}

.camera-container {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0;
    max-width: 100%;
    position: relative;
}

#cameraVideo {
    width: 100%;
    height: auto;
    display: block;
}

#capturedPhoto {
    width: 100%;
    height: auto;
    display: block;
}

.camera-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.camera-buttons button {
    width: 100%;
}

#verificationSection {
    margin-top: 24px;
    padding: 24px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
}

.verification-text {
    font-size: 15px;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .content-card {
        padding: 32px 24px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }
}