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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: radial-gradient(circle at center, #1a0012 0%, #050005 72%, #000 100%);
    cursor: grab;
    font-family: 'Quicksand', sans-serif;
}

body:active {
    cursor: grabbing;
}

button,
input {
    font: inherit;
}

#loveRainCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    touch-action: none;
}

/* Style cho Welcome Overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #260018 0%, #070002 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-card {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 420px;
    width: calc(100% - 40px);
}

.welcome-title {
    font-size: 26px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
    color: rgba(255, 248, 253, 0.72);
    line-height: 1.5;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff4dbe 0%, #cc0070 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 190, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 77, 190, 0.6);
}

.welcome-btn:active {
    transform: scale(0.98);
}

/* Hiệu ứng đập pulsing cho trái tim */
.heart-pulse {
    display: inline-block;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.24); }
    100% { transform: scale(1); }
}

/* Class biến mất mượt mà */
.welcome-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}
