:root {
    /* Nord Snow Storm Backgrounds */
    --bg-color: #e5e9f0; /* nord5 */
    
    /* Nord Minimalism & Clay Palette */
    --c-clay-bg: #eceff4; /* nord6 */
    --c-primary: #5e81ac; /* nord10 - Primary Action Dark Blue */
    --c-secondary: #88c0d0; /* nord8 - Main Frost Blue */
    --c-tertiary: #b48ead; /* nord15 - Purple */
    --c-accent: #a3be8c; /* nord14 - Green */
    --c-pink: #bf616a; /* nord11 - Red */
    --c-yellow: #ebcb8b; /* nord13 - Yellow */
    
    --text-main: #2e3440; /* nord0 */
    --text-sub: #4c566a; /* nord3 */
}

*, *::before, *::after {
    box-sizing: border-box;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    font-family: 'Nunito', sans-serif;
    overflow: hidden;
    overflow-x: hidden;
    perspective: 1500px; /* 3D depth for the card tilt */
}

/* Polka Dot Playful Background Grid */
.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#d8dee9 3px, transparent 3px),
        radial-gradient(#d8dee9 3px, transparent 3px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: panGrid 30s linear infinite;
    z-index: 0;
}

@keyframes panGrid {
    0% { background-position: 0 0, 25px 25px; }
    100% { background-position: 50px 50px, 75px 75px; }
}

/* --- THE CLAYMORPHISM ENGINE --- */
.clay-container {
    position: relative;
    z-index: 10;
    padding: 70px 50px;
    width: calc(100% - 32px);
    max-width: 650px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    background-color: var(--c-clay-bg);
    border-radius: 50px;
    
    /* Extreme Premium Clay Shadow */
    box-shadow: 
        25px 25px 50px rgba(0, 0, 0, 0.06),
        -25px -25px 50px rgba(255, 255, 255, 0.9),
        inset 15px 15px 30px rgba(255, 255, 255, 0.9),
        inset -15px -15px 30px rgba(0, 0, 0, 0.04);
    
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Super quick response to mouse tilt */
}

/* Typography Styling */
.content h1 {
    font-family: 'DynaPuff', cursive;
    font-size: 2.8rem;
    margin: 0;
    color: var(--c-primary);
    line-height: 1.3;
    text-shadow: 
        2px 2px 5px rgba(0,0,0,0.08), 
        -2px -2px 5px rgba(255,255,255,1);
    transform: translateZ(50px); /* 3D Pop inside card */
}

.content h2 {
    font-size: 1.6rem;
    color: var(--text-sub);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    transform: translateZ(30px);
}

/* Character Graphic - Peak Cuteness */
.character-container {
    width: 160px;
    height: 160px;
    background-color: var(--c-yellow); /* Nord yellow clay */
    border-radius: 46%; /* Organic bouncy shape */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Dedicated Clay shadow for character */
    box-shadow: 
        15px 15px 30px rgba(0, 0, 0, 0.1),
        -15px -15px 30px rgba(255, 255, 255, 1),
        inset 12px 12px 24px rgba(255, 255, 255, 0.7),
        inset -12px -12px 24px rgba(0, 0, 0, 0.08);
        
    animation: gentleBob 3.5s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(60px); /* Significant 3d pop */
}

@keyframes gentleBob {
    0%, 100% { transform: translateZ(60px) translateY(0) rotate(0deg); }
    50% { transform: translateZ(60px) translateY(-12px) rotate(3deg); }
}

.eyes-container {
    display: flex;
    gap: 22px;
    margin-bottom: 5px;
    z-index: 2;
}

.eye {
    width: 34px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 50%;
    position: relative;
    box-shadow: 
        2px 2px 5px rgba(0,0,0,0.05),
        inset 4px 4px 8px rgba(0, 0, 0, 0.12),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02);
}

.pupil {
    width: 16px;
    height: 16px;
    background-color: var(--text-main);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.cheeks {
    position: absolute;
    top: 55%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    box-sizing: border-box;
    opacity: 0.7;
    pointer-events: none;
}
.cheeks::before, .cheeks::after {
    content: '';
    width: 28px;
    height: 16px;
    background-color: rgba(191, 97, 106, 0.7); /* nord11 red */
    border-radius: 50%;
    filter: blur(5px);
}

.mouth {
    width: 22px;
    height: 12px;
    background-color: var(--c-pink); /* nord11 */
    border-radius: 0 0 20px 20px;
    margin-top: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.character-container:hover .mouth {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transform: translateY(-2px);
}

/* Premium Button Interaction */
.squish-button {
    margin-top: 15px;
    padding: 18px 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #eceff4;
    background-color: var(--c-primary);
    border: none;
    border-radius: 50px;
    
    /* Vibrant inset glow for the button */
    box-shadow: 
        12px 12px 24px rgba(94, 129, 172, 0.25),
        -12px -12px 24px rgba(255, 255, 255, 1),
        inset 8px 8px 16px rgba(255, 255, 255, 0.3),
        inset -8px -8px 16px rgba(0, 0, 0, 0.15);
        
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(70px); 
}

.squish-button .btn-text {
    display: inline-block;
    transition: transform 0.2s;
}

.squish-button:hover {
    transform: translateZ(80px) scale(1.08);
    background-color: #81a1c1;
}

.squish-button:hover .btn-text {
    transform: scale(1.1);
}

.squish-button:active {
    transform: translateZ(40px) scale(0.95);
    box-shadow: 
        4px 4px 8px rgba(94, 129, 172, 0.2),
        -4px -4px 8px rgba(255, 255, 255, 1),
        inset 12px 12px 20px rgba(0, 0, 0, 0.15),
        inset -12px -12px 20px rgba(255, 255, 255, 0.3);
}

/* Floating Shapes - The "Fun Elements" */
.floating-shape {
    position: fixed;
    z-index: 5;
    /* Soft uniform clay shadow */
    box-shadow: 
        15px 15px 35px rgba(0,0,0,0.06),
        -15px -15px 35px rgba(255,255,255,0.9),
        inset 10px 10px 20px rgba(255,255,255,0.6),
        inset -10px -10px 20px rgba(0,0,0,0.04);
}

.shape-star {
    width: 120px;
    height: 120px;
    background-color: var(--c-secondary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: 12%;
    left: 12%;
    animation: morphFloat 9s infinite alternate ease-in-out;
}

.shape-blob {
    width: 220px;
    height: 220px;
    background-color: var(--c-tertiary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: -8%;
    right: -4%;
    animation: morphFloat2 14s infinite ease-in-out alternate;
}

.shape-pill {
    width: 150px;
    height: 70px;
    background-color: var(--c-accent);
    border-radius: 50px;
    top: 25%;
    right: 10%;
    animation: floatShape2 8s infinite alternate-reverse ease-in-out;
}

.shape-circle {
    width: 90px;
    height: 90px;
    background-color: var(--c-primary);
    border-radius: 50%;
    bottom: 25%;
    left: 8%;
    animation: floatShape1 6s infinite alternate ease-in-out;
}

.shape-blob-2 {
    width: 150px;
    height: 140px;
    background-color: var(--c-pink);
    border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    top: 55%;
    left: 5%;
    animation: morphFloat 11s infinite alternate-reverse ease-in-out;
}

@keyframes morphFloat {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translateY(-40px) rotate(25deg) scale(1.08);
    }
}

@keyframes morphFloat2 {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translateY(-50px) rotate(-15deg) scale(1.05);
    }
}

@keyframes floatShape1 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-35px) rotate(20deg); }
}

@keyframes floatShape2 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-45px) rotate(-15deg); }
}

/* Magical Text Bouncing created via JS */
.char {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
}
.char:hover {
    transform: translateY(-10px) scale(1.2) rotate(6deg);
    color: var(--c-secondary);
}

/* Enforce pointer on interactive elements despite the global default override */
.squish-button, 
.squish-button * {
    cursor: pointer !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    body {
        padding: 16px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .clay-container {
        padding: 40px 24px;
        width: 100%;
        max-width: 100%;
        gap: 20px;
        border-radius: 36px;
    }
    
    .content h1 {
        font-size: 1.8rem;
        line-height: 1.35;
    }
    
    .content h2 {
        font-size: 1.15rem;
    }
    
    .character-container {
        width: 120px;
        height: 120px;
        transform: translateZ(30px);
    }
    
    @keyframes gentleBob {
        0%, 100% { transform: translateZ(30px) translateY(0) rotate(0deg); }
        50% { transform: translateZ(30px) translateY(-8px) rotate(2deg); }
    }
    
    .eyes-container {
        gap: 16px;
    }
    
    .eye {
        width: 26px;
        height: 34px;
    }
    
    .pupil {
        width: 12px;
        height: 12px;
    }
    
    .mouth {
        width: 18px;
        height: 10px;
    }
    
    .squish-button {
        padding: 14px 35px;
        font-size: 1.2rem;
        transform: translateZ(40px);
    }
    
    .squish-button:hover {
        transform: translateZ(50px) scale(1.05);
    }

    .squish-button:active {
        transform: translateZ(30px) scale(0.95);
    }
    
    /* Scale floating shapes to fit mobile viewport */
    .shape-blob {
        width: 100px;
        height: 100px;
        bottom: 5%;
        right: -2%;
    }
    
    .shape-star {
        width: 70px;
        height: 70px;
        top: 4%;
        left: 2%;
    }
    
    .shape-pill {
        width: 80px;
        height: 35px;
        top: 12%;
        right: 2%;
    }
    
    .shape-circle {
        width: 55px;
        height: 55px;
        bottom: 12%;
        left: 2%;
    }
    
    .shape-blob-2 {
        width: 80px;
        height: 70px;
        top: 60%;
        left: -2%;
    }
}

/* --- Extra Small Screens (iPhone SE, etc.) --- */
@media (max-width: 400px) {
    body {
        padding: 12px;
    }

    .clay-container {
        padding: 30px 18px;
        gap: 16px;
        border-radius: 30px;
        box-shadow: 
            15px 15px 30px rgba(0, 0, 0, 0.06),
            -15px -15px 30px rgba(255, 255, 255, 0.9),
            inset 10px 10px 20px rgba(255, 255, 255, 0.9),
            inset -10px -10px 20px rgba(0, 0, 0, 0.04);
    }

    .content h1 {
        font-size: 1.5rem;
    }

    .content h2 {
        font-size: 1rem;
    }

    .character-container {
        width: 100px;
        height: 100px;
    }

    .eyes-container {
        gap: 14px;
    }

    .eye {
        width: 22px;
        height: 30px;
    }

    .pupil {
        width: 10px;
        height: 10px;
    }

    .mouth {
        width: 16px;
        height: 8px;
        margin-top: 5px;
    }

    .squish-button {
        padding: 12px 28px;
        font-size: 1.1rem;
    }

    .shape-blob {
        width: 80px;
        height: 80px;
    }

    .shape-star {
        width: 55px;
        height: 55px;
    }

    .shape-pill {
        width: 65px;
        height: 28px;
    }

    .shape-circle {
        width: 45px;
        height: 45px;
    }

    .shape-blob-2 {
        width: 65px;
        height: 55px;
    }
}
