@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🦄</text></svg>'), auto;
}

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

body {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    overflow: hidden;
    animation: backgroundRave 3s ease-in-out infinite;
}

@keyframes backgroundRave {
    0% { background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb); }
    25% { background: linear-gradient(90deg, #ff9ff3, #54a0ff, #5f27cd); }
    50% { background: linear-gradient(135deg, #00d2d3, #ff6b6b, #feca57); }
    75% { background: linear-gradient(180deg, #5f27cd, #ff9ff3, #48dbfb); }
    100% { background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb); }
}

.disco-ball {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    animation: discoSpin 2s linear infinite;
    filter: drop-shadow(0 0 20px gold);
    z-index: 100;
}

@keyframes discoSpin {
    0% { transform: translateX(-50%) rotateY(0deg); }
    100% { transform: translateX(-50%) rotateY(360deg); }
}

.container {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 3px dashed hotpink;
    animation: containerShake 0.5s ease-in-out infinite;
}

@keyframes containerShake {
    0%, 100% { transform: rotate(calc(var(--shake-amount, 0.3deg) * -1)); }
    50% { transform: rotate(var(--shake-amount, 0.3deg)); }
}

.hearts-top, .hearts-bottom {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.spinning {
    animation: spinAround 4s linear infinite;
}

@keyframes spinAround {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bounce-crazy {
    animation: bounceCrazy 0.3s ease-in-out infinite;
}

@keyframes bounceCrazy {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
}

h1 {
    font-size: 5rem;
    margin: 1rem 0;
    text-shadow:
        3px 3px 0px #ff1493,
        6px 6px 0px #00ffff,
        9px 9px 0px #ffff00;
}

.rainbow-text {
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { color: #ff0000; }
    17% { color: #ff8000; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    67% { color: #0080ff; }
    83% { color: #8000ff; }
    100% { color: #ff0000; }
}

.letter {
    display: inline-block;
}

.crazy1 { animation: crazy1 0.5s ease-in-out infinite; }
.crazy2 { animation: crazy2 0.4s ease-in-out infinite; }
.crazy3 { animation: crazy3 0.6s ease-in-out infinite; }
.crazy4 { animation: crazy4 0.35s ease-in-out infinite; }
.crazy5 { animation: crazy5 0.45s ease-in-out infinite; }

@keyframes crazy1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-20deg); }
    75% { transform: translateY(10px) rotate(10deg); }
}

@keyframes crazy2 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

@keyframes crazy3 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

@keyframes crazy4 {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(20deg); }
}

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

.cute-text {
    font-size: 2.5rem;
    color: #fff;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
}

.glitch::before {
    animation: glitch1 0.3s infinite;
    color: #0ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch2 0.3s infinite;
    color: #f0f;
    z-index: -2;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(-3px, -3px); }
}

.highlight {
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff);
    background-size: 300% 300%;
    animation: rainbowBg 2s ease infinite;
    padding: 0.2rem 1rem;
    border-radius: 10px;
    display: inline-block;
    color: #000;
    font-weight: bold;
}

@keyframes rainbowBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wobble {
    animation: wobble 0.5s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    margin: 1rem 0;
    background: black;
    padding: 0.5rem;
    border-radius: 5px;
}

.marquee span {
    display: inline-block;
    animation: marquee 5s linear infinite;
    color: #0f0;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #0f0;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.sparkles {
    font-size: 2rem;
    margin: 1.5rem 0;
}

.rotate-container {
    animation: rotateContainer 10s linear infinite;
}

@keyframes rotateContainer {
    0% { transform: perspective(500px) rotateX(0deg); }
    100% { transform: perspective(500px) rotateX(360deg); }
}

.spin-emoji {
    display: inline-block;
    animation: spinEmoji 1s linear infinite;
}

.spin-emoji.reverse {
    animation-direction: reverse;
}

@keyframes spinEmoji {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-chaos {
    perspective: 1000px;
}

.heart-btn {
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0000);
    background-size: 400% 400%;
    animation: rainbowBtn 3s ease infinite, pulse-crazy 0.5s ease-in-out infinite;
    border: 4px solid white;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    box-shadow:
        0 0 20px #ff00ff,
        0 0 40px #00ffff,
        0 0 60px #ffff00;
    font-family: inherit;
    text-shadow: 2px 2px 0 #000;
    transition: transform 0.1s;
}

@keyframes rainbowBtn {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse-crazy {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

.heart-btn:hover {
    transform: scale(1.2) rotate(5deg);
    animation: shake 0.1s linear infinite;
}

@keyframes shake {
    0%, 100% { transform: scale(1.2) rotate(5deg) translateX(0); }
    25% { transform: scale(1.2) rotate(5deg) translateX(-5px); }
    75% { transform: scale(1.2) rotate(5deg) translateX(5px); }
}

.heart-btn:active {
    transform: scale(0.9);
}

.heart-container {
    margin-top: 1rem;
    min-height: 50px;
}

.heart-burst {
    display: inline-block;
    animation: burstCrazy 1s ease-out forwards;
    font-size: 2rem;
}

@keyframes burstCrazy {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

/* Roast styling */
.roast-burst {
    display: block;
    padding: 1rem 2rem;
    margin: 0.5rem 0;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    animation: roastAppear 0.5s ease-out forwards;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border: 3px solid;
}

@keyframes roastAppear {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.roast-runaway {
    border-color: #ff6b6b;
    animation: roastAppear 0.5s ease-out, runAway 2s ease-in-out infinite 0.5s;
}

@keyframes runAway {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(50px); }
    75% { transform: translateX(-50px); }
}

.roast-flip {
    border-color: #feca57;
    animation: roastAppear 0.5s ease-out, flipIt 1s ease-in-out forwards 0.5s;
}

@keyframes flipIt {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(180deg); }
}

.roast-error {
    border-color: #ff0000;
    font-family: monospace;
    background: #0000aa;
    animation: roastAppear 0.5s ease-out, bsod 0.5s step-end infinite 0.5s;
}

@keyframes bsod {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.roast-confetti {
    border-color: #ff9ff3;
    animation: roastAppear 0.5s ease-out, confettiShake 0.3s ease-in-out infinite 0.5s;
}

@keyframes confettiShake {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.roast-sarcastic {
    border-color: #54a0ff;
    font-style: italic;
}

.roast-grandma {
    border-color: #5f27cd;
    animation: roastAppear 0.5s ease-out, oldify 2s ease-in-out forwards 0.5s;
}

@keyframes oldify {
    0% { filter: sepia(0); }
    100% { filter: sepia(1); }
}

.roast-dramatic {
    border-color: #00d2d3;
    animation: roastAppear 0.5s ease-out, dramatic 0.5s ease-in-out infinite 0.5s;
}

@keyframes dramatic {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.roast-refuse {
    border-color: #ff6b6b;
    font-size: 2rem;
    letter-spacing: 1rem;
}

.roast-captcha {
    border-color: #1dd1a1;
    font-family: monospace;
}

.roast-question {
    border-color: #feca57;
    animation: roastAppear 0.5s ease-out, questionMark 1s ease-in-out infinite 0.5s;
}

@keyframes questionMark {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg) translateY(-5px); }
    75% { transform: rotate(5deg) translateY(5px); }
}

.secret-message {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.8);
    color: #0f0;
    font-family: monospace;
    border-radius: 5px;
    font-size: 0.9rem;
}

.blink {
    animation: blink 0.5s step-end infinite;
}

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

/* Floating emojis */
.floating-emojis {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.floater {
    position: absolute;
    font-size: 3rem;
    animation: floatRandom 8s ease-in-out infinite;
}

.f1 { top: 10%; left: 5%; animation-delay: 0s; }
.f2 { top: 20%; right: 10%; animation-delay: 1s; }
.f3 { top: 60%; left: 8%; animation-delay: 2s; }
.f4 { top: 70%; right: 5%; animation-delay: 3s; }
.f5 { top: 40%; left: 3%; animation-delay: 4s; }
.f6 { top: 30%; right: 3%; animation-delay: 5s; }
.f7 { top: 80%; left: 15%; animation-delay: 6s; }
.f8 { top: 50%; right: 8%; animation-delay: 7s; }

@keyframes floatRandom {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -50px) rotate(90deg) scale(1.5); }
    50% { transform: translate(-20px, 30px) rotate(180deg) scale(0.8); }
    75% { transform: translate(40px, 20px) rotate(270deg) scale(1.2); }
}

/* Corner images */
.corner-img {
    position: fixed;
    font-size: 4rem;
    animation: cornerBounce 2s ease-in-out infinite;
    z-index: 10;
}

.tl { top: 10px; left: 10px; }
.tr { top: 10px; right: 10px; animation-delay: 0.5s; }
.bl { bottom: 10px; left: 10px; animation-delay: 1s; }
.br { bottom: 10px; right: 10px; animation-delay: 1.5s; }

@keyframes cornerBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.5) rotate(20deg); }
}

/* Extra chaos */
body::before {
    content: "🍕🌈🦄🔥👽🎪";
    position: fixed;
    top: 50%;
    left: -100%;
    font-size: 3rem;
    animation: flyAcross 10s linear infinite;
    white-space: nowrap;
}

@keyframes flyAcross {
    0% { left: -100%; transform: translateY(-50%) rotate(0deg); }
    100% { left: 100%; transform: translateY(-50%) rotate(720deg); }
}
