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

:root {
    --primary: #FF6B9D;
    --secondary: #FF9A3C;
    --text: #3D2B3D;
    --text-muted: #C9A0C9;
    --card-bg: rgba(255, 255, 255, 0.72);
    --shadow: 0 4px 16px rgba(255, 107, 157, 0.12);
}

body {
    min-height: 100vh;
    background: linear-gradient(150deg, #FFF5E4 0%, #FFE8D6 25%, #FFDDE8 60%, #F5E6FF 100%);
    background-attachment: fixed;
    font-family: 'Nunito', sans-serif;
    padding: 2.5rem 1rem 5rem;
    position: relative;
    overflow-x: hidden;
}

.deco {
    position: fixed;
    font-size: 3.5rem;
    opacity: 0.14;
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
    z-index: 0;
}

.deco-1 { top: 8%;  left: 4%;  animation-delay: 0s; }
.deco-2 { top: 35%; right: 3%; animation-delay: 2s; font-size: 4.5rem; }
.deco-3 { bottom: 32%; left: 3%; animation-delay: 4s; }
.deco-4 { bottom: 8%; right: 5%; animation-delay: 5.5s; font-size: 4rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-18px) rotate(5deg); }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---- Header ---- */

header {
    text-align: center;
    margin-bottom: 2rem;
}

.sun {
    font-size: 3.8rem;
    display: block;
    margin-bottom: 0.4rem;
    animation: pulse-sun 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulse-sun {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0px #FFD166); }
    50%       { transform: scale(1.12); filter: drop-shadow(0 0 12px #FFD166cc); }
}

h1 {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF9A3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

/* ---- Progress ---- */

.progress-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-track {
    height: 10px;
    background: #FFE0EC;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D, #FF9A3C, #FFD166);
    border-radius: 50px;
    width: 0%;
    transition: width 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-text {
    font-size: 0.87rem;
    color: var(--primary);
    font-weight: 800;
    text-align: center;
}

/* ---- Task list ---- */

.task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.task-item {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 0.78rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 107, 157, 0.28);
    transform: translateX(6px);
    box-shadow: 0 6px 22px rgba(255, 107, 157, 0.18);
}

.task-item:active {
    transform: translateX(6px) scale(0.985);
}

.task-item.completed {
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none;
    border-color: transparent;
}

.task-item.completed:hover {
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.task-number {
    font-size: 0.68rem;
    color: #DFC0DF;
    min-width: 22px;
    font-weight: 800;
    text-align: right;
    flex-shrink: 0;
}

.checkbox {
    width: 26px;
    height: 26px;
    border: 2.5px solid #FFB3D1;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 13px;
    color: transparent;
    background: white;
}

.task-item.completed .checkbox {
    background: linear-gradient(135deg, #FF6B9D, #FF9A3C);
    border-color: transparent;
    color: white;
    transform: scale(1.12);
}

.task-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #C9A0C9;
    font-weight: 600;
}

/* ---- Done banner ---- */

.done-banner {
    display: none;
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.done-banner.visible { display: block; }

@keyframes pop-in {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.done-banner .trophy { font-size: 3rem; margin-bottom: 0.5rem; display: block; }
.done-banner h2 {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B9D, #FF9A3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.done-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.3rem;
}

/* ---- Responsive ---- */

@media (max-width: 500px) {
    .deco { display: none; }
    h1 { font-size: 1.8rem; }
    body { padding: 1.5rem 0.75rem 4rem; }
}
