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

:root {
    --bg: #fff0f3;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #4a4e69;
    --text-muted: #666;
    --primary: #ff4d6d;
    --primary-hover: #c9184a;
    --secondary: #8d99ae;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

/* Beautiful moving blob background */
.background-anim {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,179,198,0.5) 0%, rgba(255,143,163,0) 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulseObj 8s infinite alternate ease-in-out;
}

@keyframes pulseObj {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

#app {
    width: 100%; height: 100%;
    position: relative;
    display: flex; justify-content: center; align-items: center;
}

/* Screens */
.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.screen.active {
    opacity: 1; pointer-events: all;
    animation: popUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popUp {
    0% { transform: translateY(20px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* UI Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 40px 30px;
    max-width: 450px; width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    text-align: center;
}

.transparent-card {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.text-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: left;
}

/* Action Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    outline: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}

/* Envelope Intro Scene */
.envelope-wrapper {
    text-align: center;
    cursor: pointer;
    padding: 40px;
    transition: transform 0.2s;
}

.envelope-wrapper:hover {
    transform: scale(1.05) translateY(-5px);
}

.envelope-icon {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(255, 77, 109, 0.3));
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hint {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* "Dimaafin gak?" Game Area */
.button-container {
    margin-top: 30px;
    position: relative;
    height: 60px; /* Minimal height to accommodate fixed jumping button */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-yes {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
    z-index: 10;
}
.btn-yes:hover {
    transform: scale(1.05);
}

.btn-no {
    background: #e5e5e5;
    color: #888;
    position: absolute; /* Prepares to detach from normal layout */
    transition: left 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), top 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
    right: 0;
}

/* Ending Scene */
.huge-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: floating 2s ease-in-out infinite;
}

#screen-final h2 {
    font-size: 2.2rem;
}
#screen-final p {
    font-size: 1.2rem;
    color: var(--text-main);
}

.declaration {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px dashed rgba(255, 77, 109, 0.3);
}

.declaration h3 {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 700;
}