:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --primary-color: #ffffff;
    --accent-color: #00d4ff;
    --accent-alt: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --font-inter: 'Inter', sans-serif;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
}

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

body {
    font-family: var(--font-inter);
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

/* Fundo Animado (Blobs) */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ff6b9d, #ff00ff);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* O Container de Vidro (Glassmorphism) */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    min-height: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
}

/* Tipografia */
h1 {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

p {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-alt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* Botões */
.btn-primary,
.btn-secondary,
.btn-option {
    font-family: var(--font-inter);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-alt));
    color: #000;
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
}

.btn-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-option {
    background: var(--glass-bg);
    color: white;
    padding: 16px;
    text-align: left;
    font-size: 1rem;
    border: 1px solid var(--glass-border);
}

.btn-option:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 24px;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

/* Imagem do Resultado */
.image-frame {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botão Voltar */
.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
}

.btn-back:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-color);
}

/* Utilitários de Tela */
.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
}

.screen.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.6s forwards;
}

.screen.hidden {
    display: none !important;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-alt));
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

/* Responsivo */
@media (max-width: 600px) {
    .glass-container {
        width: 95%;
        padding: 25px;
        min-height: 550px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .image-frame {
        width: 180px;
        height: 180px;
    }
    
    .btn-primary {
        padding: 14px 28px;
        font-size: 1rem;
    }
}