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

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 16px 12px 32px;
    background-color: rgb(246, 211, 217);
    font-family: 'Leckerli One', cursive;
}

body.shake {
    animation: bodyShake 0.4s ease;
}

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

#confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ── Plead popup ── */
.plead-msg {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    color: #e94d58;
    border: 2px solid #e94d58;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: clamp(0.78em, 3vw, 1em);
    z-index: 200;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    max-width: 88vw;
    text-align: center;
    white-space: normal;
}

.plead-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── Card wrapper ── */
.wrapper {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 24px;
    padding: clamp(18px, 5vw, 32px) clamp(16px, 5vw, 28px);
    box-shadow: 0 8px 32px rgba(233, 77, 88, 0.15);
}

/* ── Heading ── */
h2 {
    text-align: center;
    font-size: clamp(1.15em, 5vw, 1.6em);
    color: #e94d58;
    margin-bottom: 14px;
    line-height: 1.3;
}

h2.bounce {
    animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ── GIF ── */
.gif {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ── Yes / No buttons ── */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: clamp(20px, 5vw, 32px);
    position: relative;
    height: 50px;
}

.yes-btn, .no-btn {
    width: clamp(100px, 32vw, 140px);
    height: 46px;
    font-family: 'Leckerli One', cursive;
    font-size: clamp(0.95em, 3vw, 1.15em);
    border-radius: 30px;
    border: 2px solid #e94d58;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    position: absolute;
}

.yes-btn {
    background: #e94d58;
    color: white;
    left: calc(50% - clamp(108px, 34vw, 148px));
}

.no-btn {
    background: white;
    color: #e94d58;
    left: calc(50% + clamp(8px, 2vw, 8px));
}

/* ── Date form ── */
.date-form {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-top: 24px;
}

.date-form.visible {
    display: block;
}

.form-title {
    text-align: center;
    color: #e94d58;
    font-size: clamp(1em, 4vw, 1.2em);
    margin-bottom: 18px;
}

.form-field {
    margin-bottom: clamp(14px, 3vw, 20px);
}

.form-field label {
    display: block;
    color: #666;
    font-size: clamp(0.78em, 2.8vw, 0.92em);
    margin-bottom: 8px;
}

.form-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #f5c0c5;
    border-radius: 12px;
    font-family: 'Leckerli One', cursive;
    font-size: clamp(0.82em, 2.5vw, 0.95em);
    color: #444;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input[type="text"]:focus {
    border-color: #e94d58;
}

.form-field input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #f5c0c5;
    border-radius: 12px;
    font-family: 'Leckerli One', cursive;
    font-size: clamp(0.82em, 2.5vw, 0.95em);
    color: #444;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input[type="date"]:focus {
    border-color: #e94d58;
}

/* ── Choice pill buttons ── */
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-btn {
    padding: clamp(6px, 1.5vw, 9px) clamp(11px, 3vw, 16px);
    font-family: 'Leckerli One', cursive;
    font-size: clamp(0.72em, 2.4vw, 0.88em);
    background: white;
    color: #e94d58;
    border: 2px solid #e94d58;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    white-space: nowrap;
}

.choice-btn.selected {
    background: #e94d58;
    color: white;
    transform: scale(1.05);
}

/* ── Lock button ── */
.lock-btn {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 12px;
    background: #e94d58;
    color: white;
    font-family: 'Leckerli One', cursive;
    font-size: clamp(0.95em, 3vw, 1.1em);
    border-radius: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 77, 88, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    position: static;
    width: 100%;
    height: auto;
}

.lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 77, 88, 0.45);
}

.form-note {
    text-align: center;
    font-size: clamp(0.72em, 2vw, 0.85em);
    color: #aaa;
    margin-top: 10px;
    min-height: 18px;
}
