  /* ==========================================
   RESET & GLOBAL STYLES
========================================== */

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

body{

    font-family:"Poppins",sans-serif;

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:flex-start;

    padding:40px 20px;

    overflow-x:hidden;
    overflow-y:auto;

    position:relative;

    background:linear-gradient(
        135deg,
        #FCEDD8 0%,
        #FFD464 25%,
        #FF8A65 55%,
        #E23C64 80%,
        #B0183D 100%
    );

}


/* ==========================================
        FLOATING BLOBS
========================================== */

.blob{

    position:fixed;

    border-radius:50%;

    filter:blur(90px);

    animation:float 10s ease-in-out infinite;

    z-index:-1;

}

.blob1{

    width:260px;
    height:260px;

    background:rgba(255,255,255,.35);

    top:-80px;
    left:-80px;

}

.blob2{

    width:220px;
    height:220px;

    background:rgba(255,212,100,.30);

    right:-60px;
    bottom:40px;

    animation-delay:3s;

}

.blob3{

    width:180px;
    height:180px;

    background:rgba(255,94,94,.30);

    left:15%;
    bottom:35%;

    animation-delay:5s;

}

@keyframes float{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-25px);

    }

}


/* ==========================================
          MAIN CARD
========================================== */

.container{

    width:100%;
    max-width:430px;

    margin:auto;

    padding:35px;

    border-radius:28px;

    position:relative;

    z-index:2;

    text-align:center;

    background:rgba(255,255,255,.22);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.35);

    box-shadow:
        0 20px 45px rgba(0,0,0,.18);

}


/* ==========================================
           HEADING
========================================== */

h1{

    color:#ffffff;

    font-size:2.2rem;

    margin-bottom:10px;

}

.subtitle{

    color:white;

    line-height:1.6;

    margin-bottom:25px;

    opacity:.95;

}


/* ==========================================
             INPUT
========================================== */

input{

    width:100%;

    padding:15px;

    border:none;

    outline:none;

    border-radius:15px;

    background:white;

    color:#B0183D;

    font-size:16px;

    font-weight:600;

    text-align:center;

    margin-bottom:22px;

    transition:.3s;

}

input::placeholder{

    color:#999;

}

input:focus{

    transform:scale(1.02);

    box-shadow:0 0 15px rgba(255,255,255,.6);

}


/* ==========================================
            BUTTONS
========================================== */

.buttons{

    display:flex;

    gap:12px;

    margin-bottom:30px;

}

button{

    flex:1;

    padding:14px;

    border:none;

    border-radius:15px;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

#checkBtn{

    background:#B0183D;

    color:white;

}

#checkBtn:hover{

    background:#E23C64;

    transform:translateY(-3px);

}

#resetBtn{

    background:white;

    color:#B0183D;

}

#resetBtn:hover{

    background:#FCEDD8;

    transform:translateY(-3px);

}


/* ==========================================
        PROGRESS CIRCLE
========================================== */

.progress-section{

    display:flex;

    justify-content:center;

    margin:25px 0;

}

.progress-circle{

    position:relative;

    width:clamp(130px,35vw,180px);

    aspect-ratio:1;

    margin:auto;

}

.progress-circle svg{

    width:100%;
    height:100%;

    display:block;

    transform:rotate(-90deg);

    transform-origin:center;

}

.bg{

    fill:none;

    stroke:rgba(255,255,255,.30);

    stroke-width:12;

}

.progress{

    fill:none;

    stroke:#FFD464;

    stroke-width:12;

    stroke-linecap:round;

    stroke-dasharray:440;

    stroke-dashoffset:440;

    transition:1.2s ease;

}

.percentage-text{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:clamp(1.4rem,4vw,2rem);

    font-weight:700;

}
/* ==========================================
           REPORT CARD
========================================== */

.report-card{

    display:none;

    margin-top:20px;

    padding:22px;

    border-radius:20px;

    background:rgba(176,24,61,.90);

    color:#fff;

    border:1px solid rgba(255,255,255,.25);

    box-shadow:0 12px 30px rgba(0,0,0,.18);

    animation:fade .5s ease;

}

.report-card h2{

    color:#FFD464;

    margin-bottom:18px;

    font-size:1.4rem;

}

.row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.15);

    font-size:15px;

    font-weight:500;

}

.row:last-child{

    border-bottom:none;

}

.row span:last-child{

    font-weight:600;

}


/* ==========================================
            QUOTE BOX
========================================== */

.quote-box{

    display:none;

    margin-top:20px;

    padding:20px;

    border-radius:20px;

    background:rgba(255,255,255,.95);

    color:#333;

    border:1px solid rgba(0,0,0,.08);

    box-shadow:0 10px 25px rgba(0,0,0,.12);

    animation:fade .6s ease;

}

.quote-box h3{

    color:#B0183D;

    margin-bottom:10px;

}

.quote-box p{

    line-height:1.7;

    font-size:.95rem;

}


/* ==========================================
            CONFETTI
========================================== */

#confetti{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

    pointer-events:none;

    z-index:999;

}


/* ==========================================
            ANIMATIONS
========================================== */

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/* ==========================================
          TABLET RESPONSIVE
========================================== */

@media (max-width:768px){

    body{

        padding:30px 15px;

    }

    .container{

        max-width:400px;

        padding:28px;

    }

    h1{

        font-size:2rem;

    }

    .subtitle{

        font-size:.92rem;

    }

    button{

        font-size:15px;

        padding:13px;

    }

    .report-card{

        padding:18px;

    }

    .quote-box{

        padding:18px;

    }

}


/* ==========================================
          MOBILE RESPONSIVE
========================================== */

@media (max-width:480px){

    body{

        padding:20px 12px;

    }

    .container{

        width:100%;

        padding:22px;

        border-radius:22px;

    }

    h1{

        font-size:1.8rem;

    }

    .subtitle{

        font-size:.9rem;

        margin-bottom:20px;

    }

    .buttons{

        flex-direction:column;

        gap:10px;

    }

    button{

        width:100%;

    }

    .report-card{

        background:#B0183D;

        color:#fff;

    }

    .quote-box{

        background:#fff;

        color:#333;

    }

    .row{

        font-size:14px;

    }

    .report-card h2{

        font-size:1.2rem;

    }

    .quote-box p{

        font-size:.9rem;

    }

}


/* ==========================================
          SMALL MOBILE
========================================== */

@media (max-width:360px){

    .container{

        padding:18px;

    }

    h1{

        font-size:1.6rem;

    }

    .subtitle{

        font-size:.85rem;

    }

    .row{

        flex-direction:column;

        gap:5px;

        text-align:center;

    }

    .row span{

        display:block;

    }

}