:root {
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    /* Soft white/grey default */
    --card-bg: #ffffff;
    --text-color: #4a4a4a;
    --accent-color: #ff9a9e;
    --font-hand: 'Patrick Hand', cursive;
    --font-ui: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    /* Background handled by .bg-layer */
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

.bg-layer.active {
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

h1 {
    font-family: var(--font-hand);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    color: #333;
    min-height: 120px;
    /* Prevent layout jump */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

h1.fade-out {
    opacity: 0;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

button {
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s ease;
    outline: none;
}

.primary-btn {
    background: var(--accent-color);
    background-image: linear-gradient(to right, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.6);
}

.primary-btn:active {
    transform: scale(0.95);
}

.secondary-btn {
    background: #f0f0f0;
    color: #666;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.secondary-btn:hover {
    background: #e0e0e0;
    color: #333;
}

footer {
    margin-top: 2rem;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }
}