:root {
    --bg-gradient: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    --primary: #e91e63;
    --primary-hover: #c2185b;
    --text-main: #2d2d2d;
    --text-muted: #666666;
    --card-bg: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
}

/* Экран открытки */
.card-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    max-width: 440px;
    width: 100%;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.12);
    text-align: center;
    position: relative;
}

.card-badge {
    display: inline-block;
    background: #fce4ec;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f8f8f8;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Кнопки */
.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
    width: 100%;
}

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

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

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

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-main);
}

/* Плашка "Пролистай вниз" */
.scroll-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(45, 45, 45, 0.85);
    backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 100;
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-badge.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.scroll-badge .arrow {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Нижняя секция квеста */
.quest-section {
    background: #ffffff;
    padding: 50px 20px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.quest-container {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.quest-container h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.quest-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.progress-item {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: #f0f0f0;
    color: #999;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.progress-item.found {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.progress-item.current {
    border: 2px solid #2d2d2d;
}

/* Модальное окно победы */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    max-width: 380px;
    width: 100%;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}
