:root {
    --primary: #ff4b72;
    --primary-light: #ff758c;
    --bg-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #feada6 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: #333;
    padding: 20px;
}

/* Floating background hearts */
.heart-bg {
    position: fixed;
    top: -10vh;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    animation: fall 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Main Container */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

h1 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: #d63384;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

p.subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
}

/* Glass Jar Animation Container */
.jar-container {
    position: relative;
    width: 160px;
    height: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.jar-container:hover {
    transform: scale(1.05);
}

/* Glass Jar Body */
.jar {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px 20px 40px 40px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.5), 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    padding: 10px;
    gap: 6px;
}

.jar-lid {
    width: 120px;
    height: 20px;
    background: #e6b800;
    border-radius: 10px;
    position: absolute;
    top: -15px;
    left: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Folded notes inside jar */
.mini-note {
    width: 25px;
    height: 18px;
    border-radius: 3px;
    transform: rotate(var(--rot));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: rotate(var(--rot)) scale(1); }
    100% { transform: rotate(var(--rot)) scale(1.05); }
}

/* Action Buttons */
.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 75, 114, 0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2deg);
    box-shadow: 0 6px 20px rgba(255, 75, 114, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #d63384;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Note Reveal Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.note-card {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transform: scale(0.7) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .note-card {
    transform: scale(1) translateY(0);
}

.note-text {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    color: #2c3e50;
    line-height: 1.4;
    margin: 20px 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-btn:hover { color: #333; }

/* Unlocked Reasons View */
.gallery-view {
    display: none;
    text-align: left;
    margin-top: 15px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.gallery-view.active { display: block; }

.gallery-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Scrollbar */
.gallery-view::-webkit-scrollbar { width: 6px; }
.gallery-view::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }