body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fff5f7 0%, #fce4ec 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
    width: 100%;
}

h1 { color: #d81b60; margin-bottom: 5px; font-size: 1.8rem; }
.subtitle { color: #ad1457; margin-bottom: 30px; font-size: 0.9rem; }

.gift-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.person-gift {
    width: 150px; /* Cố định chiều rộng tuyệt đối */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar {
    width: 100px; /* Cố định chiều rộng ảnh */
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 2;
    margin-bottom: -15px;
}

.gift-box {
    background: white;
    padding: 20px 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%; /* Sẽ bằng 150px của cha */
    z-index: 1;
    border: 1px solid #fce4ec;
}

.box { font-size: 40px; }
.gift-box p { 
    font-size: 0.85rem; 
    color: #d81b60; 
    margin: 5px 0 0 0; 
    font-weight: bold;
    white-space: nowrap; /* Không cho phép xuống dòng làm lệch ô */
}

.person-gift:hover { transform: translateY(-10px); }

/* Popup */
.wish-card {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wish-content-wrapper {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 350px;
    text-align: center;
}

.hidden { display: none !important; }

button {
    background: #f06292; color: white; border: none;
    padding: 8px 25px; border-radius: 20px; cursor: pointer;
    margin-top: 15px; font-weight: bold;
}

/* Hiệu ứng lấp lánh nhẹ */
.sparkle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    will-change: transform;
    animation: flyUp 5s linear forwards;
    z-index: -1;
}

@keyframes flyUp {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}