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

:root {
    --pink-light: #2a1520;
    --pink: #ff6ba6;
    --pink-mid: #ff8ec4;
    --pink-deep: #ff4d94;
    --lavender: #1e1528;
    --lavender-deep: #b07de0;
    --sky: #0f1a2a;
    --peach: #1f1510;
    --bg: #0d0b10;
    --surface: #161220;
    --text: #e8d5f0;
    --text-light: #9a7aaa;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--pink-light) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--lavender) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, var(--sky) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 90%, var(--peach) 0%, transparent 40%);
    z-index: 0;
    animation: bg-shift 20s ease-in-out infinite alternate;
}

@keyframes bg-shift {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.sparkle-field {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: sparkle-float linear infinite;
    user-select: none;
}

@keyframes sparkle-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0.5);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) rotate(360deg) scale(1.2);
    }
}

.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.mascot {
    width: clamp(90px, 150vw, 195px);
    height: auto;
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
    animation: mascot-bounce 3s ease-in-out infinite;
    user-select: none;
    filter: drop-shadow(0 4px 20px rgba(255, 142, 196, 0.15));
    border-radius: 12px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 100 100"><text y=".9em" font-size="80">🐾</text></svg>') 14 14, pointer;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.mascot:active {
    transform: scale(0.95, 0.88);
}

@keyframes mascot-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink-mid), var(--lavender-deep), var(--pink-deep));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease-in-out infinite;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

@keyframes gradient-flow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--pink);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
}

.divider::before,
.divider::after {
    content: '';
    width: clamp(30px, 10vw, 80px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 166, 0.4), transparent);
}

.say-hi {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    background: rgba(255, 77, 148, 0.1);
    border: 1px solid rgba(255, 77, 148, 0.25);
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pink);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.02em;
}

.say-hi:hover {
    background: rgba(255, 77, 148, 0.2);
    border-color: var(--pink);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 77, 148, 0.15), 0 0 60px rgba(255, 77, 148, 0.05);
}

.say-hi:active {
    transform: translateY(-1px);
}

.corner-deco {
    position: fixed;
    z-index: 5;
    font-size: 2rem;
    opacity: 0.1;
    user-select: none;
    pointer-events: none;
}

.corner-deco.tl {
    top: 1.5rem;
    left: 1.5rem;
}

.corner-deco.tr {
    top: 1.5rem;
    right: 1.5rem;
}

.corner-deco.bl {
    bottom: 1.5rem;
    left: 1.5rem;
}

.corner-deco.br {
    bottom: 1.5rem;
    right: 1.5rem;
}

.click-heart {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    font-size: 1.5rem;
    animation: heart-pop 1s ease-out forwards;
}

@keyframes heart-pop {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translateY(-40px) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.8);
    }
}

.mascot.kyaa {
    animation: kyaa-shake 0.5s ease-in-out;
}

@keyframes kyaa-shake {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-15px) rotate(-8deg);
    }

    40% {
        transform: translateY(-5px) rotate(5deg);
    }

    60% {
        transform: translateY(-10px) rotate(-3deg);
    }

    80% {
        transform: translateY(-2px) rotate(2deg);
    }
}

.kyaa-text {
    position: fixed;
    z-index: 200;
    font-size: 2rem;
    font-weight: 800;
    color: var(--pink-deep);
    opacity: 0;
    pointer-events: none;
    animation: kyaa-pop 1.2s ease-out forwards;
    text-shadow: 0 2px 15px rgba(255, 77, 148, 0.5);
}

.kyaa-text.rare {
    color: #ffd700 !important;
    font-size: 2.4rem !important;
    text-shadow: 0 2px 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.2) !important;
    animation: kyaa-pop 2s ease-out forwards;
}

.kyaa-text.combo {
    font-size: 2.4rem;
    color: #ff9ece;
    text-shadow: 0 2px 20px rgba(255, 158, 206, 0.6);
}

.kyaa-text.rare.combo {
    font-size: 2.6rem;
}

@keyframes kyaa-pop {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }

    30% {
        opacity: 1;
        transform: scale(1.3) rotate(5deg);
    }

    60% {
        opacity: 1;
        transform: scale(1) rotate(-2deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px) rotate(0deg);
    }
}

.content.dizzy {
    animation: screen-shake 0.4s ease-in-out;
}

@keyframes screen-shake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    15% {
        transform: translate(-4px, 2px);
    }

    30% {
        transform: translate(3px, -3px);
    }

    45% {
        transform: translate(-2px, 1px);
    }

    60% {
        transform: translate(4px, -1px);
    }

    75% {
        transform: translate(-1px, 3px);
    }
}