/**
 * Vase Smash Celebration - Cat knocks vase off table
 * Triggered at 10+ blacklist blocks today
 *
 * @version 1.4.0
 */

/* ===== Overlay Container ===== */
.vase-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at bottom, rgba(30, 20, 40, 0.92) 0%, rgba(0, 0, 0, 0.96) 100%);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.vase-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Floor ===== */
.vase-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #3d2817 0%, #2a1a0f 100%);
    border-top: 4px solid #5c3d1e;
}

/* ===== Scene Container ===== */
.vase-scene {
    position: relative;
    width: 500px;
    height: 400px;
    z-index: 10;
}

/* ===== Table ===== */
.vase-table {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
}

.table-top {
    position: relative;
    width: 300px;
    height: 20px;
    background: linear-gradient(180deg, #8b5a2b 0%, #6b4423 50%, #5c3d1e 100%);
    border-radius: 5px 5px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.table-top::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    border-radius: 2px;
}

.table-legs {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.table-leg {
    width: 15px;
    height: 100px;
    background: linear-gradient(90deg, #5c3d1e 0%, #8b5a2b 50%, #5c3d1e 100%);
    border-radius: 0 0 3px 3px;
}

/* ===== Vase ===== */
.vase-container {
    position: absolute;
    bottom: 200px;
    left: 130px;
    width: 60px;
    height: 80px;
    transition: transform 0.3s ease;
}

.vase-container.pushed {
    animation: vase-fall 0.8s ease-in forwards;
}

@keyframes vase-fall {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    30% {
        transform: translateX(10px) translateY(-10px) rotate(15deg);
    }
    100% {
        transform: translateX(80px) translateY(200px) rotate(180deg);
        opacity: 0;
    }
}

.vase-body {
    position: relative;
    width: 50px;
    height: 70px;
    margin: 0 auto;
}

.vase-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 15px;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 5px 5px 0 0;
    border: 2px solid #922b21;
    border-bottom: none;
}

.vase-main {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 58px;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    border-radius: 10px 10px 25px 25px;
    border: 2px solid #922b21;
    overflow: hidden;
}

/* Vase decorations */
.vase-main::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 5px;
    right: 5px;
    height: 8px;
    background: linear-gradient(90deg, #f5b041 0%, #f39c12 50%, #f5b041 100%);
    border-radius: 2px;
}

.vase-main::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 5px;
    right: 5px;
    height: 8px;
    background: linear-gradient(90deg, #f5b041 0%, #f39c12 50%, #f5b041 100%);
    border-radius: 2px;
}

/* ===== Broken Pieces ===== */
.vase-broken {
    position: absolute;
    bottom: 85px;
    left: 180px;
    width: 100px;
    height: 50px;
    opacity: 0;
    pointer-events: none;
}

.vase-broken.show {
    opacity: 1;
}

.vase-piece {
    position: absolute;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 1px solid #922b21;
    opacity: 0;
}

.vase-piece.scatter {
    animation: piece-scatter 0.5s ease-out forwards;
}

@keyframes piece-scatter {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.8);
        opacity: 1;
    }
}

/* ===== CRASH Bubble ===== */
.crash-bubble {
    position: absolute;
    bottom: 140px;
    left: 160px;
    padding: 15px 25px;
    background: #fff;
    border: 4px solid #1f2937;
    border-radius: 20px;
    transform: scale(0);
    opacity: 0;
    z-index: 50;
}

.crash-bubble.show {
    animation: crash-pop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes crash-pop {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.crash-bubble::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    border: 10px solid transparent;
    border-top-color: #1f2937;
}

.crash-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 33px;
    border: 7px solid transparent;
    border-top-color: #fff;
}

.crash-text {
    font-size: 28px;
    font-weight: 900;
    color: #e74c3c;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-shadow: 2px 2px 0 #922b21;
    letter-spacing: 2px;
}

/* ===== Cat on Table ===== */
.vase-cat {
    position: absolute;
    bottom: 200px;
    right: 100px;
    width: 80px;
    height: 90px;
    transition: right 1.5s ease-in-out;
}

.vase-cat.approach {
    right: 230px;
}

.vase-cat.push {
    animation: cat-push 0.4s ease-in-out;
}

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

.vase-cat.smug {
    animation: cat-smug 0.5s ease-in-out infinite;
}

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

/* Cat Body */
.vcat-body {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 45px;
    height: 40px;
    background: linear-gradient(180deg, #4a4a4a 0%, #333 100%);
    border-radius: 50% 50% 45% 45%;
    border: 2px solid #222;
}

/* Cat Head */
.vcat-head {
    position: absolute;
    bottom: 30px;
    left: 12px;
    width: 55px;
    height: 50px;
    background: linear-gradient(180deg, #555 0%, #4a4a4a 100%);
    border-radius: 50% 50% 45% 45%;
    border: 2px solid #222;
}

/* Cat Ears */
.vcat-ear {
    position: absolute;
    top: -14px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid #555;
}

.vcat-ear.left {
    left: 3px;
    transform: rotate(-15deg);
}

.vcat-ear.right {
    right: 3px;
    transform: rotate(15deg);
}

.vcat-ear::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #ffb6c1;
}

/* Cat Eyes - Normal */
.vcat-eyes {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
}

.vcat-eye {
    width: 14px;
    height: 16px;
    background: #7cfc00;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #228b22;
}

.vcat-eye::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 4px;
    height: 10px;
    background: #111;
    border-radius: 50%;
}

/* Cat mischievous eyes */
.vase-cat.mischievous .vcat-eye {
    height: 10px;
}

.vase-cat.mischievous .vcat-eye::after {
    top: 2px;
    height: 6px;
}

/* Cat smug eyes (closed/satisfied) */
.vase-cat.smug .vcat-eye::after {
    width: 12px;
    height: 3px;
    top: 6px;
    left: 1px;
    border-radius: 0 0 50% 50%;
    background: #111;
}

/* Cat Nose */
.vcat-nose {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    background: #ff69b4;
    border-radius: 50% 50% 40% 40%;
}

/* Cat Mouth */
.vcat-mouth {
    position: absolute;
    top: 29px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 8px;
}

.vcat-mouth::before,
.vcat-mouth::after {
    content: '';
    position: absolute;
    top: 0;
    width: 8px;
    height: 6px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 50% 50%;
    background: transparent;
}

.vcat-mouth::before { left: -1px; }
.vcat-mouth::after { right: -1px; }

/* Cat smug smile */
.vase-cat.smug .vcat-mouth::before,
.vase-cat.smug .vcat-mouth::after {
    border-color: #ff69b4;
    height: 8px;
}

/* Cat Tail */
.vcat-tail {
    position: absolute;
    bottom: 15px;
    left: 58px;
    width: 10px;
    height: 45px;
    background: linear-gradient(90deg, #4a4a4a 0%, #333 100%);
    border-radius: 5px;
    transform-origin: bottom center;
    transform: rotate(-20deg);
    border: 2px solid #222;
}

.vase-cat.approach .vcat-tail,
.vase-cat.mischievous .vcat-tail {
    animation: tail-swish 0.4s ease-in-out infinite alternate;
}

@keyframes tail-swish {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(10deg); }
}

/* Cat Paw (for pushing) */
.vcat-paw {
    position: absolute;
    bottom: 35px;
    left: -10px;
    width: 18px;
    height: 15px;
    background: #4a4a4a;
    border-radius: 50%;
    border: 2px solid #222;
    opacity: 0;
}

.vase-cat.push .vcat-paw {
    opacity: 1;
    animation: paw-push 0.4s ease-in-out;
}

@keyframes paw-push {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

/* ===== Message ===== */
.vase-message {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    text-align: center;
    opacity: 0;
    z-index: 100;
}

.vase-message.show {
    animation: message-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes message-pop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.vase-message-count {
    font-size: 80px;
    font-weight: 900;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 50%, #922b21 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(231, 76, 60, 0.6));
    line-height: 1;
}

.vase-message-text {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    line-height: 1.3;
}

/* ===== Close Button ===== */
.vase-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.vase-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.vase-close::before,
.vase-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
}

.vase-close::before { transform: rotate(45deg); }
.vase-close::after { transform: rotate(-45deg); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .vase-scene {
        transform: scale(0.6);
    }

    .vase-message-count {
        font-size: 50px;
    }

    .vase-message-text {
        font-size: 20px;
    }
}
