:root {
    --bg-gradient: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    --primary-pink: #f4978e;
    --dark-pink: #e85d04;
    --accent-peach: #fbc4b6;
    --text-main: #4a5568;
    --card-shadow: 0 15px 35px rgba(244, 151, 142, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    user-select: none;
}

.container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 30px 24px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    box-sizing: border-box;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2 {
    color: #d90429;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.4;
}

p {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 24px;
}

/* Кнопки */
.btn {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(244, 151, 142, 0.4);
}

.btn:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    box-shadow: none;
}

/* ОКНО 1: Зона кнопок */
.buttons-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 120px;
    position: relative;
}

.btn-escape {
    position: relative;
    z-index: 10;
    transition: transform 0.1s ease;
}

/* ОКНО 2: Сетка сценариев */
.grid-scenarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    margin-bottom: 24px;
}

.card-scenario {
    background: #fffdfd;
    border: 2px solid #edf2f7;
    border-radius: 20px;
    padding: 16px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.card-scenario.selected {
    border-color: var(--primary-pink);
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 151, 142, 0.15);
}

.scenario-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

/* ОКНО 3: Форма даты и комментов */
.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.my-custom-input, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #edf2f7;
    border-radius: 16px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    background: #f7fafc;
    transition: border-color 0.2s;
}

.my-custom-input:focus, textarea:focus {
    border-color: var(--primary-pink);
    background: #ffffff;
}

textarea {
    resize: none;
    height: 90px;
}

/* Анимации и гифки */
.gif-display {
    width: 100%;
    max-width: 180px;
    border-radius: 20px;
    margin-top: 15px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.screen {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease-in-out;
}

.background-gif-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-gif {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 4s linear;
    border-radius: 20px;
}

.screen.active {
    display: flex;
}

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

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}