*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    min-height:100vh;
    overflow:hidden;
    background:linear-gradient(-45deg,#39d98a,#69ff97,#ff69b4,#ff9fd2);
    background-size:400% 400%;
    animation:bg 12s ease infinite;
}

@keyframes bg{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

.screen{
    position:absolute;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    opacity:0;
    pointer-events:none;
    transition:.7s;
    padding:20px;
}

.screen.active{
    opacity:1;
    pointer-events:all;
}

h1{
    color:white;
    font-size:56px;
    text-align:center;
    text-shadow:0 5px 20px rgba(0,0,0,.25);
}

h2{
    color:white;
    margin-bottom:20px;
    text-align:center;
}

p{
    color:white;
    text-align:center;
    font-size:20px;
}

button{
    margin-top:30px;
    padding:18px 45px;
    border:none;
    border-radius:18px;
    background:#ff4fa4;
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

button:hover{
    transform:translateY(-5px) scale(1.05);
}

button:disabled{
    opacity:.4;
    cursor:not-allowed;
}

.glass{
    width:min(700px,90%);
    backdrop-filter:blur(18px);
    background:rgba(255,255,255,.16);
    border-radius:30px;
    padding:40px;
    border:1px solid rgba(255,255,255,.25);
}

.agree{
    display:flex;
    align-items:center;
    gap:15px;
    margin:18px 0;
    color:white;
    font-size:18px;
}

input[type=checkbox]{
    width:24px;
    height:24px;
    accent-color:#ff4fa4;
}

#puzzle{
    margin-top:30px;
    width:720px;
    height:720px;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    grid-template-rows:repeat(6,1fr);
    gap:2px;
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.3);
}

.tile{
    cursor:grab;
    background-size:600% 600%;
    transition:.15s;
}

.tile:hover{
    transform:scale(.97);
}

#confetti{
    position:fixed;
    inset:0;
    pointer-events:none;
}

.love{
    margin-top:20px;
    line-height:1.8;
    font-size:22px;
}

#hearts{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
}

.heart{
    position:absolute;
    color:white;
    animation:fly linear forwards;
    opacity:.8;
}

@keyframes fly{

0%{
transform:translateY(100vh) scale(.5);
opacity:0;
}

20%{
opacity:1;
}

100%{
transform:translateY(-120vh) rotate(360deg);
opacity:0;
}

}

max-width:900px{

h1{
font-size:38px;
}

#puzzle{
width:96vw;
height:96vw;
}

button{
width:100%;
font-size:20px;
}

.glass{
padding:25px;
}

}