body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ff758c, #ffb199);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

h1 {
    color: white;
    margin-bottom: 5px;
    font-size: 26px;
}

.subtitle {
    color: white;
    margin-bottom: 20px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tile {
    background: white;
    border-radius: 18px;
    padding: 22px 0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.tile:hover {
    transform: scale(1.1);
}

.tile.locked {
    background: #eee;
    color: #999;
    cursor: not-allowed;
}

.tile.unlocked {
    background: #ff6f91;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background: white;
    margin: 20% auto;
    padding: 25px;
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

input {
    padding: 10px;
    width: 85%;
    border-radius: 12px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: #ff3f6c;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #e62e5c;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

#error {
    color: red;
}

/* ===== ANIMOWANE SERDUSZKA ===== */

.hearts-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -20px;
    font-size: 20px;
    animation: floatUp linear forwards;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-110vh) scale(1.5);
        opacity: 0;
    }
}

/* ===== RESPONSYWNOŚĆ TELEFON ===== */

@media (max-width: 480px) {

    h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
    }

    .calendar {
        gap: 10px;
    }

    .tile {
        padding: 18px 0;
        font-size: 18px;
        border-radius: 16px;
    }

    .modal-content {
        border-radius: 20px;
    }
}