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

html {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #ffb3d9 0%, #ffcce6 50%, #ffe6f2 100%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    overscroll-behavior: none;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'><path d='M18 11v-1a2 2 0 0 0-2-2h-1M4 13h8a2 2 0 0 1 2 2v1M14 10V9a2 2 0 0 0-2-2h-1M10 9.5V8a2 2 0 0 0-2-2H7M14 13.5v1a2 2 0 0 1-2 2h-1M7 8v1a2 2 0 0 1-2 2H4' stroke='%23ff69b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='%23ffb3d9' opacity='0.8'/></svg>") 12 12, pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-float {
    position: absolute;
    font-size: 1.5em;
    opacity: 0.15;
    color: #ff69b4;
    animation: floatUpDown 8s ease-in-out infinite;
    user-select: none;
}

.bg-float-1 {
    left: 10%;
    top: 20%;
    font-size: 1.8em;
    animation-duration: 10s;
    animation-delay: 0s;
}

.bg-float-2 {
    left: 85%;
    top: 30%;
    font-size: 1.3em;
    animation-duration: 9s;
    animation-delay: 1s;
}

.bg-float-3 {
    left: 20%;
    top: 70%;
    font-size: 1.6em;
    animation-duration: 11s;
    animation-delay: 2s;
}

.bg-float-4 {
    left: 75%;
    top: 60%;
    font-size: 1.4em;
    animation-duration: 10s;
    animation-delay: 0.5s;
}

.bg-float-5 {
    left: 5%;
    top: 50%;
    font-size: 1.2em;
    animation-duration: 12s;
    animation-delay: 3s;
}

.bg-float-6 {
    left: 90%;
    top: 15%;
    font-size: 1.7em;
    animation-duration: 9s;
    animation-delay: 1.5s;
}

.bg-float-7 {
    left: 15%;
    top: 10%;
    font-size: 1.5em;
    animation-duration: 11s;
    animation-delay: 2.5s;
}

.bg-float-8 {
    left: 80%;
    top: 75%;
    font-size: 1.4em;
    animation-duration: 10s;
    animation-delay: 0.8s;
}

.bg-float-9 {
    left: 50%;
    top: 25%;
    font-size: 1.3em;
    animation-duration: 13s;
    animation-delay: 3.5s;
}

.bg-float-10 {
    left: 40%;
    top: 80%;
    font-size: 1.6em;
    animation-duration: 9s;
    animation-delay: 1.2s;
}

.bg-float-11 {
    left: 60%;
    top: 5%;
    font-size: 1.4em;
    animation-duration: 12s;
    animation-delay: 2.2s;
}

.bg-float-12 {
    left: 30%;
    top: 45%;
    font-size: 1.5em;
    animation-duration: 10s;
    animation-delay: 4s;
}

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

.container {
    text-align: center;
    padding: 15px;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    color: #ff69b4;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(255, 105, 180, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cat-container {
    position: relative;
    display: inline-block;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'><path d='M18 11v-1a2 2 0 0 0-2-2h-1M4 13h8a2 2 0 0 1 2 2v1M14 10V9a2 2 0 0 0-2-2h-1M10 9.5V8a2 2 0 0 0-2-2H7M14 13.5v1a2 2 0 0 1-2 2h-1M7 8v1a2 2 0 0 1-2 2H4' stroke='%23ff69b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='%23ffb3d9' opacity='0.8'/></svg>") 12 12, pointer;
    width: 100%;
    max-width: 280px;
}

.cat {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'><path d='M18 11v-1a2 2 0 0 0-2-2h-1M4 13h8a2 2 0 0 1 2 2v1M14 10V9a2 2 0 0 0-2-2h-1M10 9.5V8a2 2 0 0 0-2-2H7M14 13.5v1a2 2 0 0 1-2 2h-1M7 8v1a2 2 0 0 1-2 2H4' stroke='%23ff69b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='%23ffb3d9' opacity='0.8'/></svg>") 12 12, pointer;
    transition: transform 0.2s ease;
}

.cat:hover,
.cat:active {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'><path d='M18 11v-1a2 2 0 0 0-2-2h-1M4 13h8a2 2 0 0 1 2 2v1M14 10V9a2 2 0 0 0-2-2h-1M10 9.5V8a2 2 0 0 0-2-2H7M14 13.5v1a2 2 0 0 1-2 2h-1M7 8v1a2 2 0 0 1-2 2H4' stroke='%23ff69b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='%23ffb3d9' opacity='0.8'/></svg>") 12 12, pointer;
}

.cat-head {
    position: relative;
    width: 70%;
    padding-bottom: 58%;
    background: #ffb3d9;
    border-radius: 50% 50% 45% 45%;
    margin: 0 auto;
    box-shadow: 
        0 5px 15px rgba(255, 105, 180, 0.3),
        inset 0 -10px 20px rgba(255, 153, 204, 0.2),
        inset 0 5px 10px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.cat-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 182, 193, 0.15) 2px, rgba(255, 182, 193, 0.15) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 182, 193, 0.1) 2px, rgba(255, 182, 193, 0.1) 3px),
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(255, 192, 203, 0.12) 1px, rgba(255, 192, 203, 0.12) 2px);
    border-radius: 50% 50% 45% 45%;
    z-index: 0;
    opacity: 0.6;
    filter: blur(0.5px);
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.cat-head.happy {
    animation: floatHappy 3s ease-in-out infinite;
}

.cat-head.very-happy {
    animation: floatVeryHappy 3s ease-in-out infinite;
}

@keyframes floatHappy {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes floatVeryHappy {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.cat-ear {
    position: absolute;
    width: 28px;
    height: 34px;
    background: #ffb3d9;
    border-radius: 50% 50% 15% 15% / 60% 60% 40% 40%;
    top: -16px;
    border: 1px solid rgba(255, 153, 204, 0.4);
    box-shadow: 
        0 2px 4px rgba(255, 105, 180, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 1px 2px rgba(255, 105, 180, 0.15));
    transform-origin: bottom center;
    z-index: -1;
}

.cat-ear::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 0.5px, rgba(255, 182, 193, 0.25) 0.5px, rgba(255, 182, 193, 0.25) 1.5px),
        repeating-linear-gradient(90deg, transparent, transparent 0.5px, rgba(255, 182, 193, 0.2) 0.5px, rgba(255, 182, 193, 0.2) 1.5px),
        repeating-linear-gradient(45deg, transparent, transparent 0.5px, rgba(255, 192, 203, 0.18) 0.5px, rgba(255, 192, 203, 0.18) 1px),
        repeating-linear-gradient(-45deg, transparent, transparent 0.5px, rgba(255, 192, 203, 0.15) 0.5px, rgba(255, 192, 203, 0.15) 1px);
    border-radius: 50% 50% 15% 15% / 60% 60% 40% 40%;
    z-index: 0;
    opacity: 0.7;
    filter: blur(0.3px);
    pointer-events: none;
}


.cat-ear-left {
    left: 12%;
    transform: rotate(-25deg) translateZ(-2px);
}

.cat-ear-right {
    right: 12%;
    transform: rotate(25deg) translateZ(-2px);
}

.cat-ear::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 17px;
    background: #ff99cc;
    border-radius: 50% 50% 15% 15% / 60% 60% 40% 40%;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        inset 0 1px 2px rgba(255, 182, 193, 0.5),
        inset 0 0 3px rgba(255, 182, 193, 0.3);
    border: 0.5px solid rgba(255, 153, 204, 0.3);
    z-index: 1;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 0.5px, rgba(255, 182, 193, 0.2) 0.5px, rgba(255, 182, 193, 0.2) 1px);
    filter: blur(0.2px);
}

/* Ear tufts - fluffy fur inside ears */
.cat-ear-tuft {
    position: absolute;
    width: 8px;
    height: 10px;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.cat-ear-tuft::before,
.cat-ear-tuft::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 6px;
    background: linear-gradient(to top, #ffb3d9, #ffc0cb);
    border-radius: 50% 50% 0 0;
    opacity: 0.8;
}

.cat-ear-tuft::before {
    left: 1px;
    transform: rotate(-15deg);
}

.cat-ear-tuft::after {
    right: 1px;
    transform: rotate(15deg);
}

.cat-ear-left .cat-ear-tuft::before {
    transform: rotate(-20deg);
}

.cat-ear-left .cat-ear-tuft::after {
    transform: rotate(10deg);
}

.cat-ear-right .cat-ear-tuft::before {
    transform: rotate(-10deg);
}

.cat-ear-right .cat-ear-tuft::after {
    transform: rotate(20deg);
}

.cat-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 20%;
    z-index: 1;
}

.cat-eye {
    position: absolute;
    width: 20px;
    height: 28px;
    background: white;
    border-radius: 50%;
    top: 30%;
    overflow: visible;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cat-eye.closed {
    height: 2px;
    border-radius: 50%;
    overflow: hidden;
}

.cat-eye.closed .cat-eyelash {
    opacity: 0;
}

/* Pretty faint eyelashes */
.cat-eyelash {
    position: absolute;
    width: 2px;
    height: 7px;
    background: linear-gradient(to top, rgba(180, 130, 150, 0.5), rgba(200, 155, 176, 0.2));
    border-radius: 50% 50% 20% 20%;
    top: -5px;
    filter: blur(0.2px);
    opacity: 0.45;
    transform-origin: bottom center;
}

.cat-eyelash-1 {
    left: 15%;
    height: 6px;
    transform: rotate(-25deg);
}

.cat-eyelash-2 {
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    top: -7px;
    height: 8px;
}

.cat-eyelash-3 {
    right: 15%;
    height: 6px;
    transform: rotate(25deg);
}

/* Right eye - mirror the lashes */
.cat-eye-right .cat-eyelash-1 {
    left: auto;
    right: 15%;
    transform: rotate(25deg);
}

.cat-eye-right .cat-eyelash-3 {
    right: auto;
    left: 15%;
    transform: rotate(-25deg);
}

/* Hide eyelashes when super happy (closed eyes) */
.cat-eye.super-happy .cat-eyelash {
    opacity: 0;
}

.cat-eye-left {
    left: 35%;
}

.cat-eye-right {
    right: 35%;
}

.cat-eye.level-1 {
    height: 26px;
    border-radius: 50% 50% 0 0;
}

.cat-eye.level-2 {
    height: 24px;
    border-radius: 50% 50% 0 0;
}

.cat-eye.level-3 {
    height: 22px;
    border-radius: 50% 50% 0 0;
}

.cat-eye.level-4 {
    height: 20px;
    border-radius: 50% 50% 0 0;
}

.cat-eye.level-5 {
    height: 18px;
    border-radius: 50% 50% 0 0;
    animation: squint 0.3s ease-in-out;
}

.cat-eye.level-6 {
    height: 16px;
    border-radius: 50% 50% 0 0;
    animation: squint 0.3s ease-in-out;
}

@keyframes squint {
    0%, 100% { height: 20px; }
    50% { height: 18px; }
}

.cat-pupil {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff69b4;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cat-pupil.level-1 {
    background: #ff69b4;
    box-shadow: 0 0 4px rgba(255, 105, 180, 0.4);
}

.cat-pupil.level-2 {
    background: #ff69b4;
    box-shadow: 0 0 6px rgba(255, 105, 180, 0.5);
}

.cat-pupil.level-3 {
    background: #ff1493;
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.6);
}

.cat-pupil.level-4 {
    background: #ff1493;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.7);
}

.cat-pupil.level-5 {
    background: #ff1493;
    box-shadow: 0 0 12px rgba(255, 20, 147, 0.8);
    animation: sparklePupil 1s ease-in-out infinite;
}

.cat-pupil.level-6 {
    background: #ff1493;
    box-shadow: 0 0 14px rgba(255, 20, 147, 1);
    animation: sparklePupil 0.8s ease-in-out infinite;
}

@keyframes sparklePupil {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 20, 147, 0.8); }
    50% { box-shadow: 0 0 16px rgba(255, 20, 147, 1); }
}

/* Enhanced anime-style eye sparkles */
.cat-eye-sparkle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cat-eye-sparkle-main {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 25%;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.8);
}

.cat-eye-sparkle-small {
    width: 3px;
    height: 3px;
    top: 55%;
    right: 25%;
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.6);
}

.cat-eye-sparkle-tiny {
    width: 2px;
    height: 2px;
    top: 35%;
    right: 35%;
    box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5);
}

.cat-eye-sparkle.visible {
    opacity: 1;
}

.cat-eye-sparkle-main.visible {
    animation: sparkleMain 1.5s ease-in-out infinite;
}

.cat-eye-sparkle-small.visible {
    animation: sparkleSmall 2s ease-in-out infinite 0.3s;
}

.cat-eye-sparkle-tiny.visible {
    animation: sparkleTiny 1.8s ease-in-out infinite 0.6s;
}

@keyframes sparkleMain {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.9; }
}

@keyframes sparkleSmall {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes sparkleTiny {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(0.5); opacity: 1; }
}

/* Happy closed eyes (arched lines when super happy) */
.cat-happy-eye {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.cat-happy-eye::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 10px;
    border: 3px solid #333;
    border-color: #333 transparent transparent transparent;
    border-radius: 50% 50% 0 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cat-eye.super-happy .cat-pupil,
.cat-eye.super-happy .cat-eye-sparkle {
    opacity: 0 !important;
}

.cat-eye.super-happy {
    background: transparent;
    box-shadow: none;
}

.cat-eye.super-happy .cat-happy-eye {
    opacity: 1;
    animation: happyEyeBounce 0.5s ease-in-out infinite;
}

@keyframes happyEyeBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.9); }
}

.cat-nose {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #d4a5b8;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.cat-mouth {
    position: absolute;
    width: 0;
    height: 0;
    top: 58%;
    left: 47%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.cat-mouth::before {
    content: '3';
    position: absolute;
    font-size: 24px;
    color: #d4a5b8;
    font-weight: bold;
    transform: rotate(90deg) translateX(-50%);
    left: 50%;
    top: 0;
    line-height: 1;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.cat-mouth.level-1::before {
    font-size: 26px;
    color: #d4a5b8;
}

.cat-mouth.level-2::before {
    font-size: 28px;
    color: #d4a5b8;
}

.cat-mouth.level-3::before {
    font-size: 30px;
    color: #d4a5b8;
}

.cat-mouth.level-4::before {
    font-size: 32px;
    color: #d4a5b8;
}

.cat-mouth.level-5::before {
    font-size: 34px;
    color: #d4a5b8;
}

.cat-mouth.level-6::before {
    font-size: 36px;
    color: #d4a5b8;
}

.cat-whisker {
    position: absolute;
    width: 32px;
    height: 1.5px;
    background: #ff99cc;
    top: 60%;
    border-radius: 1px;
}

.cat-whisker-left-1 {
    left: 26px;
    transform: rotate(-2deg);
}

.cat-whisker-left-2 {
    left: 27px;
    top: 65%;
    transform: rotate(-10deg);
}

.cat-whisker-right-1 {
    right: 25px;
    transform: rotate(6deg);
}

.cat-whisker-right-2 {
    right: 26px;
    top: 65%;
    transform: rotate(12deg);
}

.cat-blush {
    position: absolute;
    width: 40px;
    height: 30px;
    background: rgba(255, 182, 193, 0);
    border-radius: 50%;
    top: 52%;
    opacity: 0;
    transition: opacity 0.5s ease, background 0.5s ease, width 0.5s ease, height 0.5s ease;
    filter: blur(10px);
}

.cat-blush-left {
    left: 12%;
}

.cat-blush-right {
    right: 12%;
}

.cat-blush.visible {
    opacity: 0.6;
    background: rgba(255, 182, 193, 0.7);
    width: 45px;
    height: 35px;
}

.cat-blush.very-visible {
    opacity: 0.8;
    background: rgba(255, 105, 180, 0.8);
    width: 50px;
    height: 40px;
    animation: blushPulse 2s ease-in-out infinite;
}

@keyframes blushPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

/* Cheek fluff - fluffy fur on cheeks */
.cat-cheek-fluff {
    position: absolute;
    width: 30px;
    height: 20px;
    top: 48%;
    opacity: 0.4;
    pointer-events: none;
}

.cat-cheek-fluff::before,
.cat-cheek-fluff::after {
    content: '';
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(255, 182, 193, 0.6));
    border-radius: 50%;
}

.cat-cheek-fluff::before {
    width: 12px;
    height: 8px;
    top: 0;
}

.cat-cheek-fluff::after {
    width: 10px;
    height: 6px;
    top: 6px;
    left: 5px;
}

.cat-cheek-fluff-left {
    left: 5%;
    transform: rotate(-10deg);
}

.cat-cheek-fluff-left::before {
    left: 0;
}

.cat-cheek-fluff-right {
    right: 5%;
    transform: rotate(10deg) scaleX(-1);
}

.cat-cheek-fluff-right::before {
    right: 0;
}

/* Enhanced ears with subtle animation on pet */
.cat-ear {
    transition: transform 0.3s ease;
}

.cat.petted .cat-ear-left {
    animation: earWiggleLeft 0.4s ease-in-out;
}

.cat.petted .cat-ear-right {
    animation: earWiggleRight 0.4s ease-in-out;
}

@keyframes earWiggleLeft {
    0%, 100% { transform: rotate(-25deg) translateZ(-2px); }
    25% { transform: rotate(-30deg) translateZ(-2px); }
    75% { transform: rotate(-20deg) translateZ(-2px); }
}

@keyframes earWiggleRight {
    0%, 100% { transform: rotate(25deg) translateZ(-2px); }
    25% { transform: rotate(20deg) translateZ(-2px); }
    75% { transform: rotate(30deg) translateZ(-2px); }
}

.cat-body {
    position: relative;
    width: 80%;
    padding-bottom: 60%;
    background: #ffb3d9;
    border-radius: 50% 50% 40% 40%;
    margin: -15px auto 0;
    box-shadow: 
        0 5px 15px rgba(255, 105, 180, 0.3),
        inset 0 -10px 20px rgba(255, 153, 204, 0.2),
        inset 0 5px 10px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite 0.5s;
    background-image: 
        radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.cat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 182, 193, 0.15) 2px, rgba(255, 182, 193, 0.15) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 182, 193, 0.1) 2px, rgba(255, 182, 193, 0.1) 3px),
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(255, 192, 203, 0.12) 1px, rgba(255, 192, 203, 0.12) 2px);
    border-radius: 50% 50% 40% 40%;
    z-index: 0;
    opacity: 0.6;
    filter: blur(0.5px);
    pointer-events: none;
}

.cat-paw {
    position: absolute;
    width: 40px;
    height: 48px;
    background: #ffb3d9;
    border-radius: 50% 50% 30% 30%;
    bottom: -24px;
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.cat-paw::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 182, 193, 0.2) 1px, rgba(255, 182, 193, 0.2) 2px),
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(255, 192, 203, 0.15) 1px, rgba(255, 192, 203, 0.15) 2px);
    border-radius: 50% 50% 30% 30%;
    z-index: 0;
    opacity: 0.6;
    filter: blur(0.4px);
    pointer-events: none;
}

.cat-paw-left {
    left: 25%;
    animation: pawMove 2s ease-in-out infinite;
}

.cat-paw-right {
    right: 25%;
    animation: pawMove 2s ease-in-out infinite 0.5s;
}

@keyframes pawMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.heart {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    opacity: 0;
    pointer-events: none;
    animation: heartPop 0.6s ease-out;
}

@keyframes heartPop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px) scale(0.8);
    }
}

.score-container {
    margin-top: 25px;
}

.score-text {
    font-size: clamp(1.3em, 4vw, 1.8em);
    color: #ff69b4;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    margin-bottom: 8px;
}

#petCount {
    color: #ff1493;
    font-size: 1.2em;
    display: inline-block;
    animation: countPop 0.3s ease-out;
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.hint {
    font-size: clamp(0.9em, 3vw, 1.1em);
    color: #ff99cc;
    font-style: italic;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Meaw bubble */
.meaw-bubble {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 1.4em;
    color: #ff69b4;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

.meaw-bubble p {
    margin: 0;
    padding: 0;
}

.meaw-bubble.show {
    opacity: 1;
    animation: meawFloat 2s ease-out forwards;
}

.meaw-bubble.show.left {
    animation: meawFloatLeft 2s ease-out forwards;
}

.meaw-bubble.show.right {
    animation: meawFloatRight 2s ease-out forwards;
}

@keyframes meawFloatLeft {
    0% {
        transform: translateY(-50%) translateX(0) scale(0.8);
        opacity: 0;
    }
    20% {
        transform: translateY(-50%) translateX(-10px) scale(1);
        opacity: 1;
    }
    80% {
        transform: translateY(-50%) translateX(-20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(-30px) scale(0.9);
        opacity: 0;
    }
}

@keyframes meawFloatRight {
    0% {
        transform: translateY(-50%) translateX(0) scale(0.8);
        opacity: 0;
    }
    20% {
        transform: translateY(-50%) translateX(10px) scale(1);
        opacity: 1;
    }
    80% {
        transform: translateY(-50%) translateX(20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(30px) scale(0.9);
        opacity: 0;
    }
}

/* Particle effects */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    font-size: 1.2em;
    animation: particleFloat 1.5s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--random-x, 0), -80px) scale(1.2) rotate(180deg);
    }
}

/* Responsive for iPhone 12 and mobile devices */
@media screen and (max-width: 428px) {
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    .title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 12px;
    }
    
    .cat-container {
        max-width: min(280px, 85vw);
    }
    
    .cat {
        max-width: min(280px, 85vw);
    }
    
    .score-container {
        margin-top: 15px;
    }
    
    .score-text {
        font-size: clamp(1.1em, 4.5vw, 1.5em);
    }
    
    .hint {
        font-size: clamp(0.85em, 3.5vw, 1em);
    }
    
    .bg-float {
        font-size: clamp(1em, 3vw, 1.5em);
    }
}

@media screen and (max-height: 844px) {
    .container {
        padding: 8px;
    }
    
    .title {
        margin-bottom: 10px;
    }
    
    .cat-container {
        max-width: min(260px, 80vw);
    }
}

@media screen and (max-width: 375px) {
    .cat-container {
        max-width: min(240px, 75vw);
    }
    
    .cat {
        max-width: min(240px, 75vw);
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .cat {
        cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'><path d='M18 11v-1a2 2 0 0 0-2-2h-1M4 13h8a2 2 0 0 1 2 2v1M14 10V9a2 2 0 0 0-2-2h-1M10 9.5V8a2 2 0 0 0-2-2H7M14 13.5v1a2 2 0 0 1-2 2h-1M7 8v1a2 2 0 0 1-2 2H4' stroke='%23ff69b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='%23ffb3d9' opacity='0.8'/></svg>") 12 12, pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .cat:active {
        transform: scale(0.95);
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
}

/* iPhone 12 specific (390x844) */
@media screen and (width: 390px) and (height: 844px) {
    .container {
        padding: 12px;
    }
    
    .cat-container {
        max-width: 270px;
    }
}
