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

:root {
    --background: #fafafa;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --primary: #ffeb99;
    --primary-foreground: #1a1a1a;
    --secondary: #c8b89b;
    --muted: #f0ede8;
    --muted-foreground: #666677;
    --accent: #a5d6fc;
    --border: #e0dcd4;
    --warning: #ffeb99;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-elegant: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(255, 235, 153, 0.4);
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Karla', system-ui, sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.stage {
    display: none;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stage.active {
    display: block;
}

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

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

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-elegant);
}

.warning-icon {
    background: var(--warning);
}

.info-icon {
    background: var(--secondary);
}

.success-icon {
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

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

.icon-circle svg {
    width: 40px;
    height: 40px;
}

h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.divider {
    width: 96px;
    height: 2px;
    background: var(--primary);
    margin: 1.5rem auto;
}

.divider-secondary {
    background: var(--secondary);
}

p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

p.italic {
    font-style: italic;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

button:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--foreground);
}

.btn-secondary:hover {
    background: #b8a88b;
}

button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

button:hover svg {
    transform: scale(1.1);
}

.solution-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-elegant);
    margin-top: 2rem;
}

.solution-image-placeholder {
    aspect-ratio: 1;
    max-width: 100%;
    background: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    margin: 1.5rem 0;
    padding: 2rem;
}

.solution-image-placeholder p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.solution-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin: 1.5rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--foreground);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}
