:root {
    --color-cream: #fef6f0;
    --color-peach-light: #fde8d8;
    --color-peach: #f5c6aa;
    --color-pink-soft: #f4a7b9;
    --color-pink: #e8839a;
    --color-pink-deep: #d66b82;
    --color-brown-light: #c9a28a;
    --color-brown: #8b6f5e;
    --color-brown-dark: #5c4033;
    --color-white: #ffffff;
    --font-main: "Pacifico", cursive;
    --font-btn: "Marck Script", cursive;
    --shadow-card: 0 8px 32px rgba(214, 107, 130, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-btn: 0 4px 0 var(--color-pink-deep);
    --radius-card: 24px;
    --radius-btn: 14px;
}

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

body {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: linear-gradient(145deg, var(--color-cream) 0%, var(--color-peach-light) 50%, var(--color-cream) 100%);
    min-height: 100dvh;
    overflow: hidden;
}

/* ===== Floating background dots ===== */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 260px;
    height: 260px;
    background: var(--color-pink-soft);
    top: -60px;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

body::after {
    width: 200px;
    height: 200px;
    background: var(--color-peach);
    bottom: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.50); }
}

/* ===== Layout ===== */
.container {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.container-wrapper {
    position: relative;
    overflow: hidden;
    width: min(460px, 90vw);
    height: min(640px, 85vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(244, 167, 185, 0.35);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 28px 24px 24px;
    animation: cardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
}

/* ===== GIF ===== */
.img-wrapper {
    margin-bottom: 0;
}

#questionGif,
#finalGif {
    height: clamp(140px, 28vh, 220px);
    border-radius: 16px;
    filter: drop-shadow(0 4px 12px rgba(139, 111, 94, 0.15));
}

/* ===== Text ===== */
.text-wrapper {
    margin-bottom: 0;
    padding: 0 8px;
}

.text-question {
    font-family: var(--font-main);
    font-size: clamp(20px, 4.5vw, 30px);
    text-align: center;
    color: var(--color-brown-dark);
    line-height: 1.4;
}

/* ===== Buttons ===== */
.btns-wrapper {
    gap: clamp(24px, 2vw, 80px);
    align-items: center;
    margin-top: 55px;
}

.btn {
    position: relative;
    height: 52px;
    width: 170px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-pink-soft) 0%, var(--color-pink) 100%);
    color: var(--color-white);
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-btn);
    cursor: pointer;
    border: 2px solid var(--color-pink-deep);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-btn);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-block {
    height: 56px;
    width: 170px;
}

.btn-wrong {
    position: relative;
}

.btn-wrong.moving {
    position: absolute;
}

.btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--color-pink-deep);
    transition-duration: 0.05s;
}

.btn:hover {
    background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-pink-soft) 100%);
    color: var(--color-brown-dark);
    border-color: var(--color-pink-soft);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--color-pink-deep);
}

/* ===== Datetime picker ===== */
.datetime-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.datetime-inputs {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.input-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.input-label {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-brown);
}

.input-styled {
    width: 160px;
    height: 46px;
    font-size: 16px;
    font-family: var(--font-btn);
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-brown-dark);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-styled::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.btn-submit {
    margin-top: 4px;
    width: 200px;
}

.time-selects {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-select {
    width: 70px;
    height: 46px;
    padding: 0 4px;
}

.time-colon {
    font-family: var(--font-main);
    font-size: 24px;
    color: var(--color-brown);
}

.shake {
    animation: shake 0.4s ease;
    border-color: #e05555 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ===== Utility ===== */
.hidden {
    display: none;
}

/* ===== Responsive ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container-wrapper {
        max-width: 480px;
        min-height: 75vh;
    }

    #questionGif {
        max-height: 240px;
    }
}

@media (max-width: 768px) {
    .container-wrapper {
        width: 92vw;
        height: 88vh;
        padding: 20px 16px;
        gap: 16px;
    }

    .btn {
        width: 140px;
        height: 48px;
        font-size: 18px;
    }

    .btn-block {
        width: 140px;
        height: 52px;
    }

    #questionGif {
        max-height: 160px;
    }

    .btns-wrapper {
        gap: 20px;
    }

    .input-styled {
        width: 140px;
        height: 42px;
        font-size: 14px;
    }

    .btn-submit {
        width: 170px;
    }
}

@media (max-width: 400px) {
    .text-question {
        font-size: clamp(18px, 5vw, 24px);
    }

    .container-wrapper {
        padding: 16px 12px;
        gap: 12px;
    }
}

@media (min-height: 900px) {
    .container-wrapper {
        min-height: 600px;
    }
}
