* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #FFF5F7, #FDE4EC);
    overflow: hidden;   /* never scroll */
    height: 100vh;
}

/* ---- Flower images ---- */
.flower {
    position: fixed;
    top: 0; right: 0;
    width: 0;                         /* start tiny */
    opacity: 0.5;
    pointer-events: none;
    animation: growFlowerRight 11s ease-out forwards;
}

.flower-bottom {
    position: fixed;
    bottom: 0; left: 0;
    width: 0;                         /* start tiny */
    opacity: 0.5;
    transform: scaleX(-1);
    pointer-events: none;
    animation: growFlowerLeft 16s ease-out forwards;
}

@keyframes growFlowerRight {
    from { width: 0; }
    to { width: 600px; }
}

@keyframes growFlowerLeft {
    from { width: 0; }
    to { width: 600px; }
}

/* ---- Container ---- */
.container {
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 10px;
    position: relative;
    z-index: 2;
}

.timeout-msg {
    background: #fff; color: #C2185B;
    padding: 12px; border-radius: 10px;
    margin-bottom: 20px;
    width: 90%;
    max-width: 500px;
}

h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    color: #C2185B;
    margin: 0;
}
.subtitle {
    font-size: 14px;
    color: #999;
    margin: 5px 0;
}
.divider {
    color: #F48FB1;
    margin: 5px 0 10px;
}

/* ---- Profiles (horizontal scroll) ---- */
/* Profiles – elegant horizontal scroll */
#profiles {
    display: flex;
    flex-wrap: nowrap;          /* keep all profiles on one line */
    gap: 20px;
    padding: 10px 15px 15px;   /* extra bottom padding to show scrollbar */
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 85vw;            /* a bit narrower than full screen */
    margin: 0 auto;
    white-space: nowrap;        /* extra safety */
    scroll-behavior: smooth;    /* smooth scrolling when arrows are used later */
}

.profile {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s;
}

.profile img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    transition: all 0.3s;
    border: 5px solid transparent;
}

.profile:hover img {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(244,143,177,0.5);
}

/* Selected profile – enlarged with animated border */
.profile.selected img {
    transform: scale(1.2);
    border-color: #F48FB1;
    box-shadow: 0 0 25px rgba(244,143,177,0.7);
    animation: pulseBorder 1.2s infinite;
}

@keyframes pulseBorder {
    0% { border-color: #F48FB1; box-shadow: 0 0 15px rgba(244,143,177,0.6); }
    50% { border-color: #C2185B; box-shadow: 0 0 30px rgba(194,24,91,0.8); }
    100% { border-color: #F48FB1; box-shadow: 0 0 15px rgba(244,143,177,0.6); }
}

.profile p {
    margin-top: 8px;
    font-weight: 500;
}

/* ---- PIN section ---- */
#pinSection {
    margin-top: 15px;
    /* no background, just clean text */
}

#username {
    font-size: 24px;
    color: #C2185B;
    margin: 5px 0;
}

/* Heart dots */
#dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
}
.heart-dot {
    font-size: 36px;
    transition: transform 0.2s ease;
    color: #F48FB1;
}
.heart-dot.filled {
    color: #C2185B;
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(244,143,177,0.4);
}

#errorMsg {
    color: red;
    margin-top: 5px;
    font-size: 14px;
}

/* ---- HEARTS BACKGROUND ---- */
.hearts-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.heart {
    position: absolute;
    bottom: -60px;
    color: rgba(244,143,177,0.18);
    font-size: 30px;
    animation: floatUp linear infinite;
    will-change: transform, opacity;
}
/* keep all .h1 … .h20 from your existing CSS (they are unchanged) */

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0.3; }
    50% { transform: translateY(-50vh) rotate(180deg) scale(1); opacity: 0.6; }
    100% { transform: translateY(-110vh) rotate(360deg) scale(0.5); opacity: 0; }
}

/* ---------- FLOATING HEARTS ---------- */
.hearts-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.heart {
    position: absolute;
    bottom: -60px;
    color: rgba(244,143,177,0.18);
    font-size: 30px;
    animation: floatUp linear infinite;
    will-change: transform, opacity;
}
.h1  { left: 5%;  font-size: 40px; animation-duration: 7s;  animation-delay: 0s; }
.h2  { left: 12%; font-size: 24px; animation-duration: 5s;  animation-delay: 1.2s; }
.h3  { left: 22%; font-size: 50px; animation-duration: 8s;  animation-delay: 3s; }
.h4  { left: 30%; font-size: 35px; animation-duration: 6s;  animation-delay: 2s; }
.h5  { left: 40%; font-size: 28px; animation-duration: 7.5s; animation-delay: 4s; }
.h6  { left: 50%; font-size: 55px; animation-duration: 9s;  animation-delay: 0.5s; }
.h7  { left: 58%; font-size: 22px; animation-duration: 5.5s; animation-delay: 1.8s; }
.h8  { left: 65%; font-size: 45px; animation-duration: 8.5s; animation-delay: 2.5s; }
.h9  { left: 72%; font-size: 33px; animation-duration: 6.5s; animation-delay: 3.2s; }
.h10 { left: 80%; font-size: 38px; animation-duration: 7.2s; animation-delay: 0.8s; }
.h11 { left: 88%; font-size: 27px; animation-duration: 5.8s; animation-delay: 1.5s; }
.h12 { left: 95%; font-size: 48px; animation-duration: 8.8s; animation-delay: 2.2s; }
.h13 { left: 3%;  font-size: 32px; animation-duration: 6.2s; animation-delay: 3.8s; }
.h14 { left: 18%; font-size: 42px; animation-duration: 7.8s; animation-delay: 0.3s; }
.h15 { left: 35%; font-size: 26px; animation-duration: 5.2s; animation-delay: 4.5s; }
.h16 { left: 48%; font-size: 36px; animation-duration: 9.2s; animation-delay: 1.1s; }
.h17 { left: 62%; font-size: 44px; animation-duration: 8.2s; animation-delay: 2.9s; }
.h18 { left: 75%; font-size: 29px; animation-duration: 6.8s; animation-delay: 3.5s; }
.h19 { left: 85%; font-size: 52px; animation-duration: 9.5s; animation-delay: 0.1s; }
.h20 { left: 92%; font-size: 34px; animation-duration: 7.4s; animation-delay: 4.2s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-50vh) rotate(180deg) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.heart::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(244,143,177,0.4), transparent);
    border-radius: 50%;
    transform: translate(-50%, 0);
    animation: splashPulse 2s ease-out infinite;
}

@keyframes splashPulse {
    0% {
        transform: translate(-50%, 0) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -40px) scale(3);
        opacity: 0;
    }
}

/* ===== ROYAL SCROLLBAR ===== */
#profiles::-webkit-scrollbar {
    height: 8px;                /* thin horizontal scrollbar */
}

#profiles::-webkit-scrollbar-track {
    background: #ffe6f0;        /* very light pink track */
    border-radius: 10px;
}

#profiles::-webkit-scrollbar-thumb {
    background: #F48FB1;        /* girly pink thumb */
    border-radius: 10px;
    border: 2px solid #ffe6f0;  /* adds padding effect */
}

#profiles::-webkit-scrollbar-thumb:hover {
    background: #C2185B;        /* darker pink on hover */
}

/* ===== MOBILE FRIENDLY FLOWERS ===== */
@media (max-width: 768px) {
    .flower {
        width: 200px;
        opacity: 0.35;
    }
    .flower-bottom {
        width: 200px;
        opacity: 0.35;
    }
}