* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Нежный пастельный градиент */
    background-color: #2a4243;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 1rem;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Убираем копирайт Leaflet для чистоты интерфейса */
.leaflet-control-attribution {
    display: none !important;
}

/* Воздушное неоновое свечение при ошибке (Валидация времени) */
.error-airy-glow {
    border-color: #fecaca !important; /* Нежно-красная граница */
    box-shadow: 0 0 25px 8px rgba(244, 63, 94, 0.25) !important; /* Парящее розово-красное облако вокруг */
    animation: airyShake 0.4s ease-in-out;
}

@keyframes airyShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

#background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

#custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(80, 7, 36, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#custom-alert.flex {
    display: flex;
}

.alert-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 2.5rem;
    max-width: 20rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: fadeIn 0.3s ease-out;
    box-sizing: border-box;
}

.alert-card > * + * {
    margin-top: 1rem;
}

.alert-img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    border-radius: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.alert-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f87171;
    margin: 0;
}

.alert-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.btn-alert-close {
    width: 100%;
    padding: 0.75rem 0;
    background-color: #f472b6;
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-alert-close:hover {
    background-color: #ec4899;
    box-shadow: 0 15px 30px rgba(244, 63, 94, 0.5);
    transform: scale(1.05);
    filter: saturate(1.2) contrast(1.1);
}

#main-card {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 1.75rem;
    border-radius: 2.5rem;
    box-shadow: 0 30px 70px rgba(255, 182, 193, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 28rem;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s ease;
    box-sizing: border-box;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
    box-sizing: border-box;
}

.screen.hidden {
    display: none !important;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-1.5 > * + * {
    margin-top: 0.375rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.flex-center img {
    display: block;
}

.img-screen-1 {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    border-radius: 1.8rem;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.25);
    border: 2px solid #ffffff;
}

.text-title-gray {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    width: 100%;
}

.text-desc-gray {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.625;
    font-weight: 500;
    margin: 0;
    width: 100%;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    min-height: 110px;
    width: 100%;
}

@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
        min-height: 0;
    }
}

.btn-yes {
    padding: 0.875rem 2rem;
    background-color: #a78bfa;
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(166, 140, 253, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    font-size: 1rem;
}

.btn-yes:hover {
    background-color: #8b5cf6;
    box-shadow: 0 15px 35px rgba(166, 140, 253, 0.6);
    transform: scale(1.08) translateY(-2px);
    filter: saturate(1.2) contrast(1.1);
}

.btn-no {
    padding: 0.875rem 2rem;
    background-color: #18181b;
    color: #d4d4d8;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid #27272a;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    width: 100%;
    font-size: 1.125rem;
    z-index: 20;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .btn-no {
        width: auto;
    }
}

.btn-no:hover {
    background-color: #27272a;
}

.img-screen-truth {
    width: 14rem;
    height: 14rem;
    object-fit: cover;
    border-radius: 1.8rem;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.25);
    border: 4px solid #ffffff;
}

.text-title-pink {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f472b6;
    margin: 0;
    width: 100%;
}

.btn-truth-confirm {
    padding: 0.875rem 2rem;
    background-color: #f472b6;
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    font-size: 1.125rem;
}

.btn-truth-confirm:hover {
    background-color: #ec4899;
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.6);
    transform: scale(1.08) translateY(-2px);
    filter: saturate(1.2) contrast(1.1);
}

.grid-activity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-activity {
    padding: 1rem;
    border: 2px solid #fdf2f8;
    border-radius: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    color: #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(255, 182, 193, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-sizing: border-box;
}

.btn-activity:hover {
    border-color: #f472b6;
    background-color: #ffffff;
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.35);
    transform: scale(1.05) translateY(-3px);
}

.btn-activity .font-bold {
    font-weight: 700;
}

.text-3xl {
    font-size: 1.875rem;
}

.form-group {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #fdf2f8;
    border-radius: 1rem;
    color: #374151;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #fbcfe8;
    box-shadow: 0 0 0 4px #fce7f3;
    outline: none;
}

.map-container {
    text-align: left;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-link-pink {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: #f472b6;
    font-weight: 700;
    text-decoration: underline;
    letter-spacing: 0.025em;
    cursor: pointer;
    padding: 0;
}

.btn-link-pink:hover {
    color: #ec4899;
}

.map-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.15);
    height: 9rem;
    position: relative;
    z-index: 0;
    width: 100%;
    box-sizing: border-box;
}

.map-pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.map-pin-overlay svg {
    width: 2rem;
    height: 2rem;
    color: #f472b6;
    filter: drop-shadow(0 4px 8px rgba(244, 63, 94, 0.3));
}

.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    width: 100%;
    box-sizing: border-box;
}

.map-footer-link {
    color: #f472b6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.map-footer-link:hover {
    color: #ec4899;
    text-decoration: underline;
}

.badge-plus-code {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #fdf2f8;
    padding: 0.125rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 9px;
    font-weight: 700;
    font-family: monospace;
    color: #6b7280;
}

.btn-confirm-all {
    padding: 0.875rem 2rem;
    background-color: #f472b6;
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    font-size: 1rem;
}

.btn-confirm-all:hover {
    background-color: #ec4899;
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.6);
    transform: scale(1.05) translateY(-2px);
    filter: saturate(1.2) contrast(1.1);
}

.img-screen-success {
    width: 11rem;
    height: 11rem;
    object-fit: cover;
    border-radius: 9999px;
    border: 4px solid #ffffff;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.3);
}

.text-title-green {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0;
    width: 100%;
}

.text-final-choice {
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
    width: 100%;
}

.status-message {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.625;
    padding: 0.75rem;
    background-color: rgba(253, 242, 248, 0.4);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}

.pt-2 {
    padding-top: 0.5rem;
    width: 100%;
}

.btn-telegram-fallback {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #38bdf8;
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-telegram-fallback.inline-flex {
    display: inline-flex;
}

.btn-telegram-fallback:hover {
    background-color: #0ea5e9;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, -100%) translateY(0);
    }
    50% {
        transform: translate(-50%, -100%) translateY(-8px);
    }
}

#date-error {
    font-size: 11px;
    color: #f87171;
    font-weight: 700;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

#date-error.hidden {
    display: none !important;
}

.particle {
    position: absolute;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 9999;
    transition: all 1s ease-out;
}

.bubble {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    font-size: 1.5rem;
}