
.pet-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    color: white;
    display: none;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
}

.pet-container.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.pet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pet-name-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #4ade80;
}

.pet-close {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.pet-close:hover {
    opacity: 1;
}

.pet-visual-area {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.pet-emoji {
    font-size: 50px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pet-emoji.bounce {
    animation: petBounce 0.5s infinite alternate;
}

@keyframes petBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.pet-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    min-height: 2.5em;
    padding: 0 10px;
}

.pet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.stat-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.hunger-fill { background: #fbbf24; }
.happiness-fill { background: #ec4899; }
.energy-fill { background: #3b82f6; }
.health-fill { background: #10b981; }

.pet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pet-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.pet-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.pet-btn span {
    font-size: 0.65rem;
    opacity: 0.8;
}

.pet-footer-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pet-min-btn {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.pet-min-btn:hover {
    color: white;
}
